Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
mitkSubImageSelector.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 mitkSubImageSelector_h
14 #define mitkSubImageSelector_h
15 
16 #include <mitkBaseData.h>
17 #include <mitkImageDataItem.h>
18 #include <mitkImageToImageFilter.h>
19 #include <MitkCoreExports.h>
20 
21 namespace mitk
22 {
34  {
35  public:
38 
39  itkFactorylessNewMacro(Self);
40 
41  itkCloneMacro(Self);
42 
48  virtual void SetPosNr(int p);
49 
51 
52  ~SubImageSelector() override;
53 
54  protected:
63  mitk::Image::ImageDataItemPointer GetSliceData(int s = 0, int t = 0, int n = 0);
64 
73 
81 
90  void SetSliceItem(mitk::Image::ImageDataItemPointer dataItem, int s = 0, int t = 0, int n = 0);
91 
99  void SetVolumeItem(mitk::Image::ImageDataItemPointer dataItem, int t = 0, int n = 0);
100 
108  };
109 
110 } // namespace mitk
111 
112 #endif
#define MITKCORE_EXPORT
Superclass of all classes having one or more Images as input and generating Images as output.
Base class of all classes providing access to parts of an image.
mitk::Image::ImageDataItemPointer GetVolumeData(int t=0, int n=0)
Get the data item for the specified volume.
mitk::Image::ImageDataItemPointer GetChannelData(int n=0)
Get the data item for the specified channel.
~SubImageSelector() override
void SetVolumeItem(mitk::Image::ImageDataItemPointer dataItem, int t=0, int n=0)
Set the data item for the specified volume in the output image.
mitk::Image::ImageDataItemPointer GetSliceData(int s=0, int t=0, int n=0)
Get the data item for the specified slice.
void SetChannelItem(mitk::Image::ImageDataItemPointer dataItem, int n=0)
Set the data item for the specified channel in the output image.
void SetSliceItem(mitk::Image::ImageDataItemPointer dataItem, int s=0, int t=0, int n=0)
Set the data item for the specified slice in the output image.
mitkClassMacro(SubImageSelector, ImageToImageFilter)
virtual void SetPosNr(int p)
Set the position number for sub-image selection.
Find image slices visible on a given plane.