SourceXtractorPlusPlus 0.19.2
SourceXtractor++, the next generation SExtractor
Loading...
Searching...
No Matches
Classes | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
SourceXtractor::CheckImages Class Reference

#include <CheckImages.h>

Inheritance diagram for SourceXtractor::CheckImages:
Inheritance graph
[legend]
Collaboration diagram for SourceXtractor::CheckImages:
Collaboration graph
[legend]

Classes

struct  FrameInfo
 

Public Member Functions

virtual ~CheckImages ()=default
 
void saveImages ()
 
std::shared_ptr< WriteableImage< int > > getSegmentationImage (size_t index) const
 
std::shared_ptr< WriteableImage< int > > getPartitionImage (size_t index) const
 
std::shared_ptr< WriteableImage< int > > getGroupImage (size_t index) const
 
std::shared_ptr< WriteableImage< int > > getDetectionAutoApertureImage (size_t index) const
 
std::shared_ptr< WriteableImage< int > > getDetectionApertureImage (size_t index) const
 
std::shared_ptr< WriteableImage< SeFloat > > getMoffatImage (size_t index) const
 
std::shared_ptr< WriteableImage< int > > getMeasurementAutoApertureImage (unsigned int frame_number)
 
std::shared_ptr< WriteableImage< int > > getMeasurementApertureImage (unsigned int frame_number)
 
std::shared_ptr< WriteableImage< MeasurementImage::PixelType > > getModelFittingImage (unsigned int frame_number)
 
std::shared_ptr< WriteableImage< MeasurementImage::PixelType > > getPsfImage (unsigned int frame_number)
 
std::shared_ptr< WriteableImage< float > > getMLDetectionImage (unsigned int plane_number, size_t index)
 
void addBackgroundCheckImage (std::shared_ptr< Image< SeFloat > > background_image)
 
void addVarianceCheckImage (std::shared_ptr< Image< SeFloat > > variance_image)
 
void addFilteredCheckImage (std::shared_ptr< Image< SeFloat > > filtered_image)
 
void addThresholdedCheckImage (std::shared_ptr< Image< SeFloat > > thresholded_image)
 
void addSnrCheckImage (std::shared_ptr< Image< SeFloat > > snr_image)
 
std::shared_ptr< WriteableImage< SeFloat > > getWriteableCheckImage (std::string id, int width, int height)
 
void setCustomCheckImage (std::string id, std::shared_ptr< Image< SeFloat > > image)
 
void reportConfigDependencies (Euclid::Configuration::ConfigManager &manager) const override
 Registers all the Configuration dependencies.
 
void configure (Euclid::Configuration::ConfigManager &manager) override
 Method which should initialize the object.
 
- Public Member Functions inherited from SourceXtractor::Configurable
virtual ~Configurable ()=default
 Destructor.
 
virtual void reportConfigDependencies (Euclid::Configuration::ConfigManager &manager) const =0
 Registers all the Configuration dependencies.
 
virtual void configure (Euclid::Configuration::ConfigManager &manager)=0
 Method which should initialize the object.
 

Static Public Member Functions

static CheckImagesgetInstance ()
 

Private Member Functions

 CheckImages ()
 

Private Attributes

std::vector< std::shared_ptr< WriteableImage< int > > > m_segmentation_images
 
std::vector< std::shared_ptr< WriteableImage< int > > > m_partition_images
 
std::vector< std::shared_ptr< WriteableImage< int > > > m_group_images
 
std::vector< std::shared_ptr< WriteableImage< int > > > m_auto_aperture_images
 
std::vector< std::shared_ptr< WriteableImage< int > > > m_aperture_images
 
std::vector< std::shared_ptr< WriteableImage< SeFloat > > > m_moffat_images
 
std::map< unsigned int, std::shared_ptr< WriteableImage< int > > > m_measurement_aperture_images
 
std::map< unsigned int, std::shared_ptr< WriteableImage< int > > > m_measurement_auto_aperture_images
 
std::map< unsigned int, std::shared_ptr< WriteableImage< MeasurementImage::PixelType > > > m_check_image_model_fitting
 
std::map< unsigned int, std::shared_ptr< WriteableImage< MeasurementImage::PixelType > > > m_check_image_psf
 
std::vector< std::map< unsigned int, std::shared_ptr< WriteableImage< float > > > > m_check_image_ml_detection
 
std::vector< std::shared_ptr< DetectionImage > > m_detection_images
 
std::vector< std::shared_ptr< Image< SeFloat > > > m_background_images
 
std::vector< std::shared_ptr< Image< SeFloat > > > m_filtered_images
 
std::vector< std::shared_ptr< Image< SeFloat > > > m_thresholded_images
 
std::vector< std::shared_ptr< Image< SeFloat > > > m_snr_images
 
std::vector< std::shared_ptr< WeightImage > > m_variance_images
 
std::vector< std::shared_ptr< CoordinateSystem > > m_coordinate_systems
 
boost::filesystem::path m_model_fitting_image_filename
 
boost::filesystem::path m_residual_filename
 
boost::filesystem::path m_model_background_filename
 
boost::filesystem::path m_model_variance_filename
 
boost::filesystem::path m_segmentation_filename
 
boost::filesystem::path m_partition_filename
 
boost::filesystem::path m_group_filename
 
boost::filesystem::path m_filtered_filename
 
boost::filesystem::path m_thresholded_filename
 
boost::filesystem::path m_snr_filename
 
boost::filesystem::path m_auto_aperture_filename
 
boost::filesystem::path m_aperture_filename
 
boost::filesystem::path m_moffat_filename
 
boost::filesystem::path m_psf_filename
 
boost::filesystem::path m_ml_detection_filename
 
std::map< boost::filesystem::path, std::tuple< std::shared_ptr< Image< SeFloat > >, bool > > m_custom_images
 
std::map< int, FrameInfom_measurement_frames
 
std::mutex m_access_mutex
 

Static Private Attributes

static std::unique_ptr< CheckImagesm_instance
 

Detailed Description

Definition at line 46 of file CheckImages.h.

Constructor & Destructor Documentation

◆ ~CheckImages()

virtual SourceXtractor::CheckImages::~CheckImages ( )
virtualdefault

◆ CheckImages()

SourceXtractor::CheckImages::CheckImages ( )
private

Definition at line 55 of file CheckImages.cpp.

Member Function Documentation

◆ addBackgroundCheckImage()

void SourceXtractor::CheckImages::addBackgroundCheckImage ( std::shared_ptr< Image< SeFloat > >  background_image)
inline

Definition at line 124 of file CheckImages.h.

References std::vector< T >::emplace_back(), and m_background_images.

Referenced by SourceXtractor::DetectionFrameConfig::initialize().

Here is the call graph for this function:

◆ addFilteredCheckImage()

void SourceXtractor::CheckImages::addFilteredCheckImage ( std::shared_ptr< Image< SeFloat > >  filtered_image)
inline

Definition at line 132 of file CheckImages.h.

References std::vector< T >::emplace_back(), and m_filtered_images.

Referenced by SourceXtractor::DetectionFrameConfig::initialize().

Here is the call graph for this function:

◆ addSnrCheckImage()

void SourceXtractor::CheckImages::addSnrCheckImage ( std::shared_ptr< Image< SeFloat > >  snr_image)
inline

Definition at line 140 of file CheckImages.h.

References std::vector< T >::emplace_back(), and m_snr_images.

Referenced by SourceXtractor::DetectionFrameConfig::initialize().

Here is the call graph for this function:

◆ addThresholdedCheckImage()

void SourceXtractor::CheckImages::addThresholdedCheckImage ( std::shared_ptr< Image< SeFloat > >  thresholded_image)
inline

Definition at line 136 of file CheckImages.h.

References std::vector< T >::emplace_back(), and m_thresholded_images.

Referenced by SourceXtractor::DetectionFrameConfig::initialize().

Here is the call graph for this function:

◆ addVarianceCheckImage()

void SourceXtractor::CheckImages::addVarianceCheckImage ( std::shared_ptr< Image< SeFloat > >  variance_image)
inline

Definition at line 128 of file CheckImages.h.

References m_variance_images.

Referenced by SourceXtractor::DetectionFrameConfig::initialize().

◆ configure()

void SourceXtractor::CheckImages::configure ( Euclid::Configuration::ConfigManager manager)
overridevirtual

◆ getDetectionApertureImage()

std::shared_ptr< WriteableImage< int > > SourceXtractor::CheckImages::getDetectionApertureImage ( size_t  index) const
inline

Definition at line 94 of file CheckImages.h.

References SourceXtractor::LockedWriteableImage< T >::create(), and m_aperture_images.

Referenced by SourceXtractor::ApertureFlagTask::computeProperties().

Here is the call graph for this function:

◆ getDetectionAutoApertureImage()

std::shared_ptr< WriteableImage< int > > SourceXtractor::CheckImages::getDetectionAutoApertureImage ( size_t  index) const
inline

Definition at line 84 of file CheckImages.h.

References SourceXtractor::LockedWriteableImage< T >::create(), and m_auto_aperture_images.

Referenced by SourceXtractor::AutoPhotometryFlagTask::computeProperties().

Here is the call graph for this function:

◆ getGroupImage()

std::shared_ptr< WriteableImage< int > > SourceXtractor::CheckImages::getGroupImage ( size_t  index) const
inline

Definition at line 74 of file CheckImages.h.

References SourceXtractor::LockedWriteableImage< T >::create(), and m_group_images.

Referenced by SourceXtractor::GroupIdCheckImage::handleMessage().

Here is the call graph for this function:

◆ getInstance()

static CheckImages & SourceXtractor::CheckImages::getInstance ( )
inlinestatic

◆ getMeasurementApertureImage()

std::shared_ptr< WriteableImage< int > > SourceXtractor::CheckImages::getMeasurementApertureImage ( unsigned int  frame_number)

◆ getMeasurementAutoApertureImage()

std::shared_ptr< WriteableImage< int > > SourceXtractor::CheckImages::getMeasurementAutoApertureImage ( unsigned int  frame_number)

◆ getMLDetectionImage()

std::shared_ptr< WriteableImage< MeasurementImage::PixelType > > SourceXtractor::CheckImages::getMLDetectionImage ( unsigned int  plane_number,
size_t  index 
)

◆ getModelFittingImage()

std::shared_ptr< WriteableImage< MeasurementImage::PixelType > > SourceXtractor::CheckImages::getModelFittingImage ( unsigned int  frame_number)

◆ getMoffatImage()

std::shared_ptr< WriteableImage< SeFloat > > SourceXtractor::CheckImages::getMoffatImage ( size_t  index) const
inline

Definition at line 104 of file CheckImages.h.

References SourceXtractor::LockedWriteableImage< T >::create(), and m_moffat_images.

Referenced by SourceXtractor::MoffatCheckImage::handleMessage().

Here is the call graph for this function:

◆ getPartitionImage()

std::shared_ptr< WriteableImage< int > > SourceXtractor::CheckImages::getPartitionImage ( size_t  index) const
inline

Definition at line 64 of file CheckImages.h.

References SourceXtractor::LockedWriteableImage< T >::create(), and m_partition_images.

Referenced by SourceXtractor::SourceIdCheckImage::handleMessage().

Here is the call graph for this function:

◆ getPsfImage()

std::shared_ptr< WriteableImage< MeasurementImage::PixelType > > SourceXtractor::CheckImages::getPsfImage ( unsigned int  frame_number)

◆ getSegmentationImage()

std::shared_ptr< WriteableImage< int > > SourceXtractor::CheckImages::getSegmentationImage ( size_t  index) const
inline

Definition at line 54 of file CheckImages.h.

References SourceXtractor::LockedWriteableImage< T >::create(), and m_segmentation_images.

Referenced by SourceXtractor::DetectionIdCheckImage::handleMessage().

Here is the call graph for this function:

◆ getWriteableCheckImage()

std::shared_ptr< WriteableImage< SeFloat > > SourceXtractor::CheckImages::getWriteableCheckImage ( std::string  id,
int  width,
int  height 
)

Definition at line 65 of file CheckImages.cpp.

References m_custom_images, and std::make_tuple().

Here is the call graph for this function:

◆ reportConfigDependencies()

void SourceXtractor::CheckImages::reportConfigDependencies ( Euclid::Configuration::ConfigManager manager) const
overridevirtual

Registers all the Configuration dependencies.

Configurable implementations should implement this method to register to the given ConfigManager (using the registerConfiguration() method) all the Configurations they are going to use

Parameters
managerThe manager to register the dependencies to

Implements SourceXtractor::Configurable.

Definition at line 58 of file CheckImages.cpp.

References Euclid::Configuration::ConfigManager::registerConfiguration().

Referenced by SEMain::getConfigParameters().

Here is the call graph for this function:

◆ saveImages()

void SourceXtractor::CheckImages::saveImages ( )

◆ setCustomCheckImage()

void SourceXtractor::CheckImages::setCustomCheckImage ( std::string  id,
std::shared_ptr< Image< SeFloat > >  image 
)

Definition at line 80 of file CheckImages.cpp.

References m_custom_images, and std::make_tuple().

Here is the call graph for this function:

Member Data Documentation

◆ m_access_mutex

std::mutex SourceXtractor::CheckImages::m_access_mutex
private

◆ m_aperture_filename

boost::filesystem::path SourceXtractor::CheckImages::m_aperture_filename
private

Definition at line 204 of file CheckImages.h.

Referenced by configure(), and getMeasurementApertureImage().

◆ m_aperture_images

std::vector<std::shared_ptr<WriteableImage<int> > > SourceXtractor::CheckImages::m_aperture_images
private

Definition at line 175 of file CheckImages.h.

Referenced by configure(), and getDetectionApertureImage().

◆ m_auto_aperture_filename

boost::filesystem::path SourceXtractor::CheckImages::m_auto_aperture_filename
private

Definition at line 203 of file CheckImages.h.

Referenced by configure(), and getMeasurementAutoApertureImage().

◆ m_auto_aperture_images

std::vector<std::shared_ptr<WriteableImage<int> > > SourceXtractor::CheckImages::m_auto_aperture_images
private

Definition at line 174 of file CheckImages.h.

Referenced by configure(), and getDetectionAutoApertureImage().

◆ m_background_images

std::vector<std::shared_ptr<Image<SeFloat> > > SourceXtractor::CheckImages::m_background_images
private

Definition at line 184 of file CheckImages.h.

Referenced by addBackgroundCheckImage(), and saveImages().

◆ m_check_image_ml_detection

std::vector<std::map<unsigned int, std::shared_ptr<WriteableImage<float> > > > SourceXtractor::CheckImages::m_check_image_ml_detection
private

Definition at line 181 of file CheckImages.h.

Referenced by configure(), and getMLDetectionImage().

◆ m_check_image_model_fitting

std::map<unsigned int, std::shared_ptr<WriteableImage<MeasurementImage::PixelType> > > SourceXtractor::CheckImages::m_check_image_model_fitting
private

Definition at line 180 of file CheckImages.h.

Referenced by getModelFittingImage(), and saveImages().

◆ m_check_image_psf

std::map<unsigned int, std::shared_ptr<WriteableImage<MeasurementImage::PixelType> > > SourceXtractor::CheckImages::m_check_image_psf
private

Definition at line 180 of file CheckImages.h.

Referenced by getPsfImage().

◆ m_coordinate_systems

std::vector<std::shared_ptr<CoordinateSystem> > SourceXtractor::CheckImages::m_coordinate_systems
private

Definition at line 191 of file CheckImages.h.

Referenced by configure(), getMLDetectionImage(), and saveImages().

◆ m_custom_images

std::map<boost::filesystem::path, std::tuple<std::shared_ptr<Image<SeFloat> >, bool> > SourceXtractor::CheckImages::m_custom_images
private

Definition at line 209 of file CheckImages.h.

Referenced by getWriteableCheckImage(), saveImages(), and setCustomCheckImage().

◆ m_detection_images

std::vector<std::shared_ptr<DetectionImage> > SourceXtractor::CheckImages::m_detection_images
private

Definition at line 183 of file CheckImages.h.

Referenced by configure(), and getMLDetectionImage().

◆ m_filtered_filename

boost::filesystem::path SourceXtractor::CheckImages::m_filtered_filename
private

Definition at line 200 of file CheckImages.h.

Referenced by configure(), and saveImages().

◆ m_filtered_images

std::vector<std::shared_ptr<Image<SeFloat> > > SourceXtractor::CheckImages::m_filtered_images
private

Definition at line 185 of file CheckImages.h.

Referenced by addFilteredCheckImage(), and saveImages().

◆ m_group_filename

boost::filesystem::path SourceXtractor::CheckImages::m_group_filename
private

Definition at line 199 of file CheckImages.h.

Referenced by configure().

◆ m_group_images

std::vector<std::shared_ptr<WriteableImage<int> > > SourceXtractor::CheckImages::m_group_images
private

Definition at line 173 of file CheckImages.h.

Referenced by configure(), and getGroupImage().

◆ m_instance

std::unique_ptr< CheckImages > SourceXtractor::CheckImages::m_instance
staticprivate

Definition at line 161 of file CheckImages.h.

Referenced by getInstance().

◆ m_measurement_aperture_images

std::map<unsigned int, std::shared_ptr<WriteableImage<int> > > SourceXtractor::CheckImages::m_measurement_aperture_images
private

Definition at line 178 of file CheckImages.h.

Referenced by getMeasurementApertureImage().

◆ m_measurement_auto_aperture_images

std::map<unsigned int, std::shared_ptr<WriteableImage<int> > > SourceXtractor::CheckImages::m_measurement_auto_aperture_images
private

Definition at line 179 of file CheckImages.h.

Referenced by getMeasurementAutoApertureImage().

◆ m_measurement_frames

std::map<int, FrameInfo> SourceXtractor::CheckImages::m_measurement_frames
private

◆ m_ml_detection_filename

boost::filesystem::path SourceXtractor::CheckImages::m_ml_detection_filename
private

Definition at line 207 of file CheckImages.h.

Referenced by configure(), and getMLDetectionImage().

◆ m_model_background_filename

boost::filesystem::path SourceXtractor::CheckImages::m_model_background_filename
private

Definition at line 195 of file CheckImages.h.

Referenced by configure(), and saveImages().

◆ m_model_fitting_image_filename

boost::filesystem::path SourceXtractor::CheckImages::m_model_fitting_image_filename
private

Definition at line 193 of file CheckImages.h.

Referenced by configure(), and getModelFittingImage().

◆ m_model_variance_filename

boost::filesystem::path SourceXtractor::CheckImages::m_model_variance_filename
private

Definition at line 196 of file CheckImages.h.

Referenced by configure(), and saveImages().

◆ m_moffat_filename

boost::filesystem::path SourceXtractor::CheckImages::m_moffat_filename
private

Definition at line 205 of file CheckImages.h.

Referenced by configure().

◆ m_moffat_images

std::vector<std::shared_ptr<WriteableImage<SeFloat> > > SourceXtractor::CheckImages::m_moffat_images
private

Definition at line 176 of file CheckImages.h.

Referenced by configure(), and getMoffatImage().

◆ m_partition_filename

boost::filesystem::path SourceXtractor::CheckImages::m_partition_filename
private

Definition at line 198 of file CheckImages.h.

Referenced by configure().

◆ m_partition_images

std::vector<std::shared_ptr<WriteableImage<int> > > SourceXtractor::CheckImages::m_partition_images
private

Definition at line 172 of file CheckImages.h.

Referenced by configure(), and getPartitionImage().

◆ m_psf_filename

boost::filesystem::path SourceXtractor::CheckImages::m_psf_filename
private

Definition at line 206 of file CheckImages.h.

Referenced by configure(), and getPsfImage().

◆ m_residual_filename

boost::filesystem::path SourceXtractor::CheckImages::m_residual_filename
private

Definition at line 194 of file CheckImages.h.

Referenced by configure(), getModelFittingImage(), and saveImages().

◆ m_segmentation_filename

boost::filesystem::path SourceXtractor::CheckImages::m_segmentation_filename
private

Definition at line 197 of file CheckImages.h.

Referenced by configure().

◆ m_segmentation_images

std::vector<std::shared_ptr<WriteableImage<int> > > SourceXtractor::CheckImages::m_segmentation_images
private

Definition at line 171 of file CheckImages.h.

Referenced by configure(), and getSegmentationImage().

◆ m_snr_filename

boost::filesystem::path SourceXtractor::CheckImages::m_snr_filename
private

Definition at line 202 of file CheckImages.h.

Referenced by configure(), and saveImages().

◆ m_snr_images

std::vector<std::shared_ptr<Image<SeFloat> > > SourceXtractor::CheckImages::m_snr_images
private

Definition at line 187 of file CheckImages.h.

Referenced by addSnrCheckImage(), and saveImages().

◆ m_thresholded_filename

boost::filesystem::path SourceXtractor::CheckImages::m_thresholded_filename
private

Definition at line 201 of file CheckImages.h.

Referenced by configure(), and saveImages().

◆ m_thresholded_images

std::vector<std::shared_ptr<Image<SeFloat> > > SourceXtractor::CheckImages::m_thresholded_images
private

Definition at line 186 of file CheckImages.h.

Referenced by addThresholdedCheckImage(), and saveImages().

◆ m_variance_images

std::vector<std::shared_ptr<WeightImage> > SourceXtractor::CheckImages::m_variance_images
private

Definition at line 188 of file CheckImages.h.

Referenced by addVarianceCheckImage(), and saveImages().


The documentation for this class was generated from the following files: