Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitkMaskAndCutRoiImageFilter.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,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 #ifndef MITKMASKANDCUTROIIMAGEFILTER_H
17 #define MITKMASKANDCUTROIIMAGEFILTER_H
18 
20 #include "mitkImageToImageFilter.h"
21 
22 #include "itkRegionOfInterestImageFilter.h"
24 #include "mitkBoundingObject.h"
25 #include "mitkDataNode.h"
26 #include "mitkMaskImageFilter.h"
27 
28 namespace mitk
29 {
40  {
41  typedef itk::Image<short, 3> ItkImageType;
42  typedef itk::Image<unsigned char, 3> ItkMaskType;
43  typedef itk::ImageRegion<3> RegionType;
44  typedef itk::RegionOfInterestImageFilter<ItkImageType, ItkImageType> ROIFilterType;
45 
46  public:
48  itkFactorylessNewMacro(Self) itkCloneMacro(Self)
49 
50  itkGetMacro(MaxValue, mitk::ScalarType);
51  itkGetMacro(MinValue, mitk::ScalarType);
52 
53  void SetRegionOfInterest(mitk::BaseData *roi);
54  // void SetRegionOfInterest(Image::Pointer image);
55  // void SetRegionOfInterest(BoundingObject::Pointer boundingObject);
56  // void SetRegionOfInterestByNode(mitk::DataNode::Pointer node);
57 
58  // temporary fix for bug #
59  mitk::Image::Pointer GetOutput();
60 
61  protected:
64 
65  void GenerateData() override;
66 
70 
71  // needed for temporary fix
73 
76 
77  }; // class
78 
79 } // namespace
80 
81 #endif
mitk::AutoCropImageFilter::Pointer m_CropFilter
itk::SmartPointer< Self > Pointer
Base of all data objects.
Definition: mitkBaseData.h:39
double ScalarType
Superclass of all classes generating some kind of mitk::BaseData.
DataCollection - Class to facilitate loading/accessing structured data.
#define MITKALGORITHMSEXT_EXPORT
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:44
mitk::MaskImageFilter::Pointer m_MaskFilter
Superclass of all classes having one or more Images as input and generating Images as output...
Cuts a region of interest (ROI) out of an image.