SourceXtractorPlusPlus  0.10
Please provide a description of the project.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
CircularAperture.h
Go to the documentation of this file.
1 
17 /*
18  * CircularAperture.h
19  *
20  * Created on: Oct 08, 2018
21  * Author: Alejandro Alvarez
22  */
23 
24 #ifndef _SEFRAMEWORK_SEFRAMEWORK_APERTURE_CIRCULARAPERTURE_H
25 #define _SEFRAMEWORK_SEFRAMEWORK_APERTURE_CIRCULARAPERTURE_H
26 
27 #include "Aperture.h"
28 
29 namespace SourceXtractor {
30 
31 class CircularAperture : public Aperture {
32 public:
33  virtual ~CircularAperture() = default;
34 
35  CircularAperture(SeFloat radius) : m_radius(radius) {}
36 
37  SeFloat getArea(SeFloat center_x, SeFloat center_y, SeFloat pixel_x, SeFloat pixel_y) const override;
38 
39  PixelCoordinate getMinPixel(SeFloat centroid_x, SeFloat centroid_y) const override;
40 
41  PixelCoordinate getMaxPixel(SeFloat centroid_x, SeFloat centroid_y) const override;
42 
43  SeFloat getRadiusSquared(SeFloat center_x, SeFloat center_y, SeFloat pixel_x, SeFloat pixel_y) const override;
44 
45 private:
47 };
48 
49 } // end SourceXtractor
50 
51 #endif // _SEFRAMEWORK_SEFRAMEWORK_APERTURE_CIRCULARAPERTURE_H
PixelCoordinate getMaxPixel(SeFloat centroid_x, SeFloat centroid_y) const override
SeFloat32 SeFloat
Definition: Types.h:32
SeFloat getRadiusSquared(SeFloat center_x, SeFloat center_y, SeFloat pixel_x, SeFloat pixel_y) const override
A pixel coordinate made of two integers m_x and m_y.
virtual ~CircularAperture()=default
PixelCoordinate getMinPixel(SeFloat centroid_x, SeFloat centroid_y) const override
SeFloat getArea(SeFloat center_x, SeFloat center_y, SeFloat pixel_x, SeFloat pixel_y) const override