SourceXtractorPlusPlus 0.21
SourceXtractor++, the next generation SExtractor
Loading...
Searching...
No Matches
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
30namespace SourceXtractor {
31
37class PixelBoundaries : public Property {
38
39public:
40
44 virtual ~PixelBoundaries() = default;
45
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
65private:
67
68}; /* End of PixelBoundaries class */
69
70
72
73public:
74
78 virtual ~PixelBoundariesHalfMaximum() = default;
79
83};
84
85
86} /* namespace SourceXtractor */
87
88
89#endif
PixelBoundariesHalfMaximum(int min_x, int min_y, int max_x, int max_y)
virtual ~PixelBoundariesHalfMaximum()=default
Destructor.
The bounding box of all the pixels in the source. Both min and max coordinate are inclusive.
PixelCoordinate getMin() const
virtual ~PixelBoundaries()=default
Destructor.
PixelBoundaries(int min_x, int min_y, int max_x, int max_y)
PixelCoordinate getMax() const
Base class for all Properties. (has no actual content)
Definition Property.h:33
A pixel coordinate made of two integers m_x and m_y.