SourceXtractorPlusPlus  0.13
Please provide a description of the project.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PixelBoundaries.h
Go to the documentation of this file.
1 
23 #ifndef _SEIMPLEMENTATION_PROPERTY_PIXELBOUNDARIES_H
24 #define _SEIMPLEMENTATION_PROPERTY_PIXELBOUNDARIES_H
25 
27 
29 
30 namespace SourceXtractor {
31 
37 class PixelBoundaries : public Property {
38 
39 public:
40 
44  virtual ~PixelBoundaries() = default;
45 
46  PixelBoundaries(int min_x, int min_y, int max_x, int max_y) : m_min(min_x, min_y), m_max(max_x, max_y) {
47  }
48 
50  return m_min;
51  }
52 
54  return m_max;
55  }
56 
57  int getWidth() const {
58  return m_max.m_x - m_min.m_x + 1;
59  }
60 
61  int getHeight() const {
62  return m_max.m_y - m_min.m_y + 1;
63  }
64 
65 private:
67 
68 }; /* End of PixelBoundaries class */
69 
70 
72 
73 public:
74 
78  virtual ~PixelBoundariesHalfMaximum() = default;
79 
80  PixelBoundariesHalfMaximum(int min_x, int min_y, int max_x, int max_y)
81  : PixelBoundaries(min_x, min_y, max_x, max_y) {
82  }
83 };
84 
85 
86 } /* namespace SourceXtractor */
87 
88 
89 #endif
The bounding box of all the pixels in the source. Both min and max coordinate are inclusive...
Base class for all Properties. (has no actual content)
Definition: Property.h:33
virtual ~PixelBoundariesHalfMaximum()=default
Destructor.
A pixel coordinate made of two integers m_x and m_y.
PixelCoordinate getMax() const
PixelBoundaries(int min_x, int min_y, int max_x, int max_y)
PixelBoundariesHalfMaximum(int min_x, int min_y, int max_x, int max_y)
PixelCoordinate getMin() const
virtual ~PixelBoundaries()=default
Destructor.