Medical Imaging Interaction Toolkit  2018.4.99-389bf124
Medical Imaging Interaction Toolkit
mitkCropImageFilter.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 MITK_CROP_IMAGE_FILTER
14 #define MITK_CROP_IMAGE_FILTER
15 
16 #include <MitkPhotoacousticsAlgorithmsExports.h>
17 #include "mitkImageToImageFilter.h"
18 #include "itkMacro.h"
19 
20 namespace mitk {
25  class MITKPHOTOACOUSTICSALGORITHMS_EXPORT CropImageFilter : public ImageToImageFilter
26  {
27  public:
29 
30  itkFactorylessNewMacro(Self);
31  itkCloneMacro(Self);
32 
33  itkGetMacro(XPixelsCropStart, unsigned int);
34  itkSetMacro(XPixelsCropStart, unsigned int);
35  itkGetMacro(YPixelsCropStart, unsigned int);
36  itkSetMacro(YPixelsCropStart, unsigned int);
37  itkGetMacro(ZPixelsCropStart, unsigned int);
38  itkSetMacro(ZPixelsCropStart, unsigned int);
39 
40  itkGetMacro(XPixelsCropEnd, unsigned int);
41  itkSetMacro(XPixelsCropEnd, unsigned int);
42  itkGetMacro(YPixelsCropEnd, unsigned int);
43  itkSetMacro(YPixelsCropEnd, unsigned int);
44  itkGetMacro(ZPixelsCropEnd, unsigned int);
45  itkSetMacro(ZPixelsCropEnd, unsigned int);
46 
47  protected:
49 
50  ~CropImageFilter() override;
51 
52  void GenerateData() override;
53 
54  void SanityCheckPreconditions();
55 
56  unsigned int m_XPixelsCropStart;
57  unsigned int m_YPixelsCropStart;
58  unsigned int m_ZPixelsCropStart;
59  unsigned int m_XPixelsCropEnd;
60  unsigned int m_YPixelsCropEnd;
61  unsigned int m_ZPixelsCropEnd;
62  };
63 } // namespace mitk
64 
65 #endif //MITK_CROP_IMAGE_FILTER
Class implementing an mitk::ImageToImageFilter for casting any mitk image to a float 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:40
Superclass of all classes having one or more Images as input and generating Images as output...