SourceXtractorPlusPlus 0.21
SourceXtractor++, the next generation SExtractor
Loading...
Searching...
No Matches
ApertureFlagTask.cpp
Go to the documentation of this file.
1
17/*
18 * ApertureFlagTask.cpp
19 *
20 * Created on: Oct 09, 2018
21 * Author: Alejandro Alvarez Ayllon
22 */
23
27
35
38
39namespace SourceXtractor {
40
41
43 // get the detection frame info
44 const auto& detection_frame_info = source.getProperty<DetectionFrameInfo>();
45 const auto variance_threshold = detection_frame_info.getVarianceThreshold();
46
47 // get detection frame images
48 const auto& detection_frame_images = source.getProperty<DetectionFrameImages>();
49
53
54 // get the object center
55 const auto& centroid_x = source.getProperty<PixelCentroid>().getCentroidX();
56 const auto& centroid_y = source.getProperty<PixelCentroid>().getCentroidY();
57
58 // get the pixel list
59 const auto& pix_list = source.getProperty<PixelCoordinateList>().getCoordinateList();
60
62
63 for (auto aperture_diameter : m_apertures) {
68 }
69
70 // set the source properties
71 source.setProperty<ApertureFlag>(all_flags);
72
73 // draw check image for all apertures
74 auto aperture_check_img = CheckImages::getInstance().getDetectionApertureImage(detection_frame_info.getHduIndex());
76 for (auto aperture_diameter : m_apertures) {
77 unsigned int src_id = source.getProperty<SourceID>().getId();
80 }
81 }
82}
83
84} // end of namespace SourceXtractor
void computeProperties(SourceInterface &source) const override
Computes one or more properties for the Source.
std::vector< SeFloat > m_apertures
Aperture photometry flag.
static CheckImages & getInstance()
The centroid of all the pixels in the source, weighted by their DetectionImage pixel values.
The SourceInterface is an abstract "source" that has properties attached to it.
T make_pair(T... args)
Flags computeFlags(const std::shared_ptr< Aperture > &aperture, SeFloat centroid_x, SeFloat centroid_y, const std::vector< PixelCoordinate > &pix_list, const std::shared_ptr< Image< SeFloat > > &detection_img, const std::shared_ptr< Image< SeFloat > > &detection_variance, const std::shared_ptr< Image< SeFloat > > &threshold_image, SeFloat variance_threshold)
Definition Flagging.cpp:27
@ LayerVarianceMap
Definition Frame.h:45
@ LayerThresholdedImage
Definition Frame.h:41
@ LayerSubtractedImage
Definition Frame.h:39