SourceXtractorPlusPlus 0.21
SourceXtractor++, the next generation SExtractor
Loading...
Searching...
No Matches
MeasurementFrameGroupRectangle.h
Go to the documentation of this file.
1
17/*
18 * MeasurementFrameGroupRectangle.h
19 *
20 * Created on: Sep 5, 2018
21 * Author: Alejandro Alvarez Ayllon
22 */
23
24#ifndef _SEIMPLEMENTATION_PLUGIN_MEASUREMENTFRAMEGROUPRECTANGLE_MEASUREMENTFRAMEGROUPRECTANGLE_H_
25#define _SEIMPLEMENTATION_PLUGIN_MEASUREMENTFRAMEGROUPRECTANGLE_MEASUREMENTFRAMEGROUPRECTANGLE_H_
26
27
30
31namespace SourceXtractor {
32
34public:
36
39
44
47 return m_min_coord;
48 }
49
52 return m_max_coord;
53 }
54
55 int getWidth() const {
56 if (m_max_coord.m_x < 0)
57 return 0;
58 return m_max_coord.m_x - m_min_coord.m_x + 1;
59 }
60
61 int getHeight() const {
62 if (m_max_coord.m_x < 0)
63 return 0;
64 return m_max_coord.m_y - m_min_coord.m_y + 1;
65 }
66
69 bool badProjection() const {
70 return m_bad_projection;
71 }
72
73private:
76};
77
78} // end SourceXtractor
79
80#endif // _SEIMPLEMENTATION_PLUGIN_MEASUREMENTFRAMEGROUPRECTANGLE_MEASUREMENTFRAMEGROUPRECTANGLE_H_
MeasurementFrameGroupRectangle(PixelCoordinate min_coord, PixelCoordinate max_coord)
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.