Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
mitkImageSliceSelector.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 mitkImageSliceSelector_h
14 #define mitkImageSliceSelector_h
15 
16 #include <mitkSubImageSelector.h>
17 #include <MitkCoreExports.h>
18 
19 namespace mitk
20 {
34  {
35  public:
37 
38  itkFactorylessNewMacro(Self);
39 
40  itkCloneMacro(Self);
41 
43  itkGetConstMacro(SliceNr, int);
45  itkSetMacro(SliceNr, int);
46 
48  itkGetConstMacro(TimeNr, int);
50  itkSetMacro(TimeNr, int);
51 
53  itkGetConstMacro(ChannelNr, int);
55  itkSetMacro(ChannelNr, int);
56 
57  protected:
59  void GenerateOutputInformation() override;
60 
63 
65  void GenerateData() override;
66 
68 
69  ~ImageSliceSelector() override;
70 
71  int m_SliceNr;
72 
73  int m_TimeNr;
74 
76  };
77 
78 } // namespace mitk
79 
80 #endif
#define MITKCORE_EXPORT
Provides access to a single slice of the input image.
void GenerateInputRequestedRegion() override
Set the requested region on the input to match the selected slice, time step, and channel.
void GenerateData() override
Extract the selected slice data from the input image.
void GenerateOutputInformation() override
Initialize output information (geometry, pixel type, dimensions) for the 2D slice output.
~ImageSliceSelector() override
mitkClassMacro(ImageSliceSelector, SubImageSelector)
Base class of all classes providing access to parts of an image.
Find image slices visible on a given plane.