Medical Imaging Interaction Toolkit  2022.04.99-d0208401
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 IMAGECHANNELSELECTOR_H_HEADER_INCLUDED_C1E4F4E7
14 #define IMAGECHANNELSELECTOR_H_HEADER_INCLUDED_C1E4F4E7
15 
16 #include "mitkSubImageSelector.h"
17 #include <MitkCoreExports.h>
18 
19 namespace mitk
20 {
21  //##Documentation
22  //## @brief Provides access to a channel of the input image
23  //##
24  //## If the input is generated by a ProcessObject, only the required data is
25  //## requested.
26  //## @ingroup Process
28  {
29  public:
31 
32  itkFactorylessNewMacro(Self);
33 
34  itkCloneMacro(Self);
35 
36  itkGetConstMacro(ChannelNr, int);
37  itkSetMacro(ChannelNr, int);
38 
39  protected:
41 
42  ~ImageChannelSelector() override;
43 
44  void GenerateOutputInformation() override;
45 
46  void GenerateInputRequestedRegion() override;
47 
48  void GenerateData() override;
49 
51  };
52 
53 } // namespace mitk
54 
55 #endif /* IMAGECHANNELSELECTOR_H_HEADER_INCLUDED_C1E4F4E7 */
#define MITKCORE_EXPORT
Provides access to a channel of the input image.
Superclass of all classes generating some kind of mitk::BaseData.
DataCollection - Class to facilitate loading/accessing structured data.
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:36
Base class of all classes providing access to parts of an image.