FAST  3.2.0
Framework for Heterogeneous Medical Image Computing and Visualization
UltrasoundImageCropper.hpp
Go to the documentation of this file.
1 #ifndef ULTRASOUND_IMAGE_CROPPER_HPP_
2 #define ULTRASOUND_IMAGE_CROPPER_HPP_
3 
4 #include "FAST/ProcessObject.hpp"
5 
6 namespace fast {
7 
8 class FAST_EXPORT UltrasoundImageCropper : public ProcessObject {
10  public:
17  void setPhysicalWidth(float width);
23  void setStaticCropping(bool staticCropping);
24  void loadAttributes() override;
25  private:
27  void execute();
28 
29  float m_physicalWidth = 0;
30  bool m_staticCropping = false;
31 
32  int m_width = -1, m_height = -1, m_offsetX = -1, m_offsetY = -1;
33  Vector3f m_spacing;
34 };
35 
36 }
37 
38 #endif
fast
Definition: AffineTransformation.hpp:7
fast::UltrasoundImageCropper
Definition: UltrasoundImageCropper.hpp:8
FAST_OBJECT
#define FAST_OBJECT(className)
Definition: Object.hpp:9
ProcessObject.hpp
fast::ProcessObject
Definition: ProcessObject.hpp:22