Medical Imaging Interaction Toolkit  2026.06.00
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 
32  {
33  public:
35 
45  const Image *slice,
46  const TimeStepType timestep,
47  const PlaneGeometry * planeGeometry);
48  ~SegSliceOperation() override = default;
49 
51  bool IsValid() const override;
52 
54  Image::Pointer GetSlice() const;
61 
62  protected:
66  PlaneGeometry::ConstPointer m_PlaneGeometry;
69  mitk::BaseGeometry::ConstPointer m_GuardReferenceGeometry;
70  };
71 }
72 #endif
#define MITKSEGMENTATION_EXPORT
Stores a compressed copy of a mitk::Image using LZ4 compression.
Image class for storing multi-dimensional medical image data.
Definition: mitkImage.h:76
MultiLabelSegmentation class for handling labels and layers in a segmentation session.
Describes the geometry of a plane object.
Base class for any operation based on a MultiLabelSegmentation instance.
An Operation for applying an edited 2D slice to 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)
Construct a slice operation.
class ITK_EXPORT Image
Find image slices visible on a given plane.
std::size_t TimeStepType
Type for time step indices (non-negative integers starting from 0).