| 15 | #include <mitkImage.h> |
| 16 | |
| 17 | mitk::SegSliceOperation::SegSliceOperation(MultiLabelSegmentation* segmentation, |
| 18 | MultiLabelSegmentation::GroupIndexType groupID, |
| 19 | const Image* slice, |
| 20 | const TimeStepType timestep, |
| 21 | const PlaneGeometry* planeGeometry) |
| 22 | : SegChangeOperationBase(segmentation, 1), m_GroupID(groupID), m_TimeStep(timestep) |
| 23 | |
| 24 | { |
| 25 | m_PlaneGeometry = planeGeometry->Clone(); |
| 26 | /* |
| 27 | Quick fix for bug 12338. |
| 28 | Guard object - fix this when clone method of PlaneGeometry is cloning the reference geometry (see bug 13392)*/ |
| 29 | m_GuardReferenceGeometry = dynamic_cast<const PlaneGeometry *>(m_PlaneGeometry.GetPointer())->GetReferenceGeometry(); |
| 30 | /*---------------------------------------------------------------------------------------------------*/ |
| 31 | |
| 32 | m_CompressedImageContainer.CompressImage(slice); |
| 33 | } |
| 34 | |
| 35 | mitk::Image::Pointer mitk::SegSliceOperation::GetSlice() const |
| 36 | { |
nothing calls this directly
no test coverage detected