Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
mitkImageChannelSelector.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 mitkImageChannelSelector_h
14 #define mitkImageChannelSelector_h
15 
16 #include <mitkSubImageSelector.h>
17 #include <MitkCoreExports.h>
18 
19 namespace mitk
20 {
33  {
34  public:
36 
37  itkFactorylessNewMacro(Self);
38 
39  itkCloneMacro(Self);
40 
42  itkGetConstMacro(ChannelNr, int);
44  itkSetMacro(ChannelNr, int);
45 
46  protected:
48 
50 
52  void GenerateOutputInformation() override;
53 
56 
58  void GenerateData() override;
59 
61  };
62 
63 } // namespace mitk
64 
65 #endif
#define MITKCORE_EXPORT
Provides access to a channel of the input image.
void GenerateOutputInformation() override
Initialize output information (geometry, pixel type, dimensions) from the input image.
void GenerateInputRequestedRegion() override
Set the requested region on the input to match the selected channel.
mitkClassMacro(ImageChannelSelector, SubImageSelector)
void GenerateData() override
Extract the selected channel data from the input image.
Base class of all classes providing access to parts of an image.
Find image slices visible on a given plane.