MCPcopy Create free account
hub / github.com/MITK/MITK / SegSliceOperation

Method SegSliceOperation

Modules/Segmentation/src/Algorithms/mitkSegSliceOperation.cpp:17–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15#include <mitkImage.h>
16
17mitk::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
35mitk::Image::Pointer mitk::SegSliceOperation::GetSlice() const
36{

Callers

nothing calls this directly

Calls 4

GetPointerMethod · 0.80
CompressImageMethod · 0.80
CloneMethod · 0.45
GetReferenceGeometryMethod · 0.45

Tested by

no test coverage detected