FAST  3.2.0
Framework for Heterogeneous Medical Image Computing and Visualization
ImageCropper.hpp
Go to the documentation of this file.
1 #ifndef IMAGE_CROPPER_HPP_
2 #define IMAGE_CROPPER_HPP_
3 
4 #include "FAST/ProcessObject.hpp"
5 
6 namespace fast {
7 
8 class FAST_EXPORT ImageCropper : public ProcessObject {
10  public:
11  void setOffset(VectorXi offset);
12  void setSize(VectorXi size);
17  void allowOutOfBoundsCropping(bool allow);
18 
19  void setCropBottom(float fraction);
20  void setCropTop(float fraction);
21  private:
22  ImageCropper();
23  void execute();
24 
25  float mCropBottom;
26  float mCropTop;
27  VectorXi mOffset;
28  VectorXi mSize;
29  bool mAllowOutOfBoundsCropping;
30 };
31 
32 
33 } // end namespace fast
34 
35 #endif
fast
Definition: AffineTransformation.hpp:7
FAST_OBJECT
#define FAST_OBJECT(className)
Definition: Object.hpp:9
ProcessObject.hpp
fast::ImageCropper
Definition: ImageCropper.hpp:8
fast::ProcessObject
Definition: ProcessObject.hpp:22