Medical Imaging Interaction Toolkit  2025.12.02
Medical Imaging Interaction Toolkit
mitkSegSliceOperation.h
Go to the documentation of this file.
1 /*============================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 
13 #ifndef mitkSegSliceOperation_h
14 #define mitkSegSliceOperation_h
15 
19 
20 namespace mitk
21 {
22  class Image;
23 
29  {
30  public:
32 
36  const Image *slice,
37  const TimeStepType timestep,
38  const PlaneGeometry * planeGeometry);
39  ~SegSliceOperation() override = default;
40 
42  bool IsValid() const override;
43 
52 
53  protected:
57  PlaneGeometry::ConstPointer m_PlaneGeometry;
60  mitk::BaseGeometry::ConstPointer m_GuardReferenceGeometry;
61  };
62 }
63 #endif
#define MITKSEGMENTATION_EXPORT
Image class for storing images.
Definition: mitkImage.h:70
MultiLabelSegmentation class for handling labels and layers in a segmentation session.
Describes a two-dimensional, rectangular plane.
Base class for any operation based on a MultiLabelSegmentation instance.
An Operation for applying an edited slice to the a group of a MultiLabelSegmentation.
Image::Pointer GetSlice() const
Get the slice that is applied in the operation.
const PlaneGeometry * GetSlicePlaneGeometry() const
Get the plane where the slice has to be applied in the volume.
~SegSliceOperation() override=default
mitkClassMacro(SegSliceOperation, SegChangeOperationBase)
MultiLabelSegmentation::GroupIndexType GetGroupID() const
Get the group index of the group image that should be modified.
MultiLabelSegmentation::GroupIndexType m_GroupID
TimeStepType GetTimeStep() const
Get the time step the operation should be applied on.
CompressedImageContainer m_CompressedImageContainer
PlaneGeometry::ConstPointer m_PlaneGeometry
mitk::BaseGeometry::ConstPointer m_GuardReferenceGeometry
bool IsValid() const override
Check if it is a valid operation.
SegSliceOperation(MultiLabelSegmentation *segmentation, MultiLabelSegmentation::GroupIndexType groupID, const Image *slice, const TimeStepType timestep, const PlaneGeometry *planeGeometry)
class ITK_EXPORT Image
Find image slices visible on a given plane.
std::size_t TimeStepType