Medical Imaging Interaction Toolkit  2024.06.99-60d9b802
Medical Imaging Interaction Toolkit
mitkImageTimeSelector.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 mitkImageTimeSelector_h
14 #define mitkImageTimeSelector_h
15 
16 #include "mitkSubImageSelector.h"
17 #include <MitkCoreExports.h>
18 
19 namespace mitk
20 {
21  //##Documentation
22  //## @brief Provides access to a volume at a specific time 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(TimeNr, int);
37  itkSetMacro(TimeNr, int);
38 
39  itkGetConstMacro(ChannelNr, int);
40  itkSetMacro(ChannelNr, int);
41 
42  protected:
44 
45  ~ImageTimeSelector() override;
46 
47  void GenerateOutputInformation() override;
48 
49  void GenerateInputRequestedRegion() override;
50 
51  void GenerateData() override;
52 
53  int m_TimeNr;
54 
56  };
57 
58 
64  MITKCORE_EXPORT Image::ConstPointer SelectImageByTimeStep(const Image* image, unsigned int timestep);
66  MITKCORE_EXPORT Image::Pointer SelectImageByTimeStep(Image* image, unsigned int timestep);
75 
76 } // namespace mitk
77 
78 #endif
mitk::SubImageSelector
Base class of all classes providing access to parts of an image.
Definition: mitkSubImageSelector.h:31
mitk::ImageTimeSelector::m_TimeNr
int m_TimeNr
Definition: mitkImageTimeSelector.h:53
mitk::ImageTimeSelector
Provides access to a volume at a specific time of the input image.
Definition: mitkImageTimeSelector.h:27
mitk::ImageTimeSelector::m_ChannelNr
int m_ChannelNr
Definition: mitkImageTimeSelector.h:55
mitk::Image
Image class for storing images.
Definition: mitkImage.h:69
itk::SmartPointer< const Self >
mitk
Find image slices visible on a given plane.
Definition: RenderingTests.dox:1
mitk::BaseDataSource
Superclass of all classes generating some kind of mitk::BaseData.
Definition: mitkBaseDataSource.h:71
MitkCoreExports.h
mitkSubImageSelector.h
mitk::SelectImageByTimeStep
MITKCORE_EXPORT Image::ConstPointer SelectImageByTimeStep(const Image *image, unsigned int timestep)
mitk::SelectImageByTimePoint
MITKCORE_EXPORT Image::ConstPointer SelectImageByTimePoint(const Image *image, TimePointType timePoint)
mitkClassMacro
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:36
mitk::TimePointType
mitk::ScalarType TimePointType
Definition: mitkTimeGeometry.h:26
MITKCORE_EXPORT
#define MITKCORE_EXPORT
Definition: MitkCoreExports.h:15