SourceXtractorPlusPlus  0.10
Please provide a description of the project.
Public Member Functions | Static Public Member Functions | Public Attributes | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
SourceXtractor::CheckImages Class Reference

#include <CheckImages.h>

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

Public Member Functions

virtual ~CheckImages ()=default
 
void saveImages ()
 
std::shared_ptr< WriteableImage< unsigned int > > getSegmentationImage () const
 
std::shared_ptr< WriteableImage< unsigned int > > getPartitionImage () const
 
std::shared_ptr< WriteableImage< unsigned int > > getGroupImage () const
 
std::shared_ptr< WriteableImage< unsigned int > > getAutoApertureImage () const
 
std::shared_ptr< WriteableImage< unsigned int > > getApertureImage () const
 
std::shared_ptr< WriteableImage< SeFloat > > getMoffatImage () const
 
std::shared_ptr< WriteableImage< unsigned int > > getAutoApertureImage (std::shared_ptr< const MeasurementImageFrame > frame)
 
std::shared_ptr< WriteableImage< unsigned int > > getApertureImage (std::shared_ptr< const MeasurementImageFrame > frame)
 
std::shared_ptr< WriteableImage< MeasurementImage::PixelType > > getModelFittingImage (std::shared_ptr< const MeasurementImageFrame > frame)
 
std::shared_ptr< WriteableImage< MeasurementImage::PixelType > > getPsfImage (std::shared_ptr< const MeasurementImageFrame > frame)
 
void setBackgroundCheckImage (std::shared_ptr< Image< SeFloat >> background_image)
 
void setVarianceCheckImage (std::shared_ptr< Image< SeFloat >> variance_image)
 
void setFilteredCheckImage (std::shared_ptr< Image< SeFloat >> filtered_image)
 
void setThresholdedCheckImage (std::shared_ptr< Image< SeFloat >> thresholded_image)
 
void setSnrCheckImage (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)
 
virtual void reportConfigDependencies (Euclid::Configuration::ConfigManager &manager) const override
 Registers all the Configuration dependencies. More...
 
virtual void configure (Euclid::Configuration::ConfigManager &manager) override
 Method which should initialize the object. More...
 
- Public Member Functions inherited from SourceXtractor::Configurable
virtual ~Configurable ()=default
 Destructor. More...
 

Static Public Member Functions

static CheckImagesgetInstance ()
 

Public Attributes

std::mutex m_access_mutex
 

Private Member Functions

 CheckImages ()
 

Private Attributes

std::shared_ptr< WriteableImage< unsigned int > > m_segmentation_image
 
std::shared_ptr< WriteableImage< unsigned int > > m_partition_image
 
std::shared_ptr< WriteableImage< unsigned int > > m_group_image
 
std::shared_ptr< WriteableImage< unsigned int > > m_auto_aperture_image
 
std::shared_ptr< WriteableImage< unsigned int > > m_aperture_image
 
std::shared_ptr< WriteableImage< SeFloat > > m_moffat_image
 
std::map< std::shared_ptr< const MeasurementImageFrame >, decltype(m_aperture_image)> m_measurement_aperture_images
 
std::map< std::shared_ptr< const MeasurementImageFrame >, decltype(m_auto_aperture_image)> m_measurement_auto_aperture_images
 
std::map< std::shared_ptr< const MeasurementImageFrame >, std::shared_ptr< WriteableImage< MeasurementImage::PixelType > > > m_check_image_model_fitting
 
std::map< std::shared_ptr< const MeasurementImageFrame >, std::shared_ptr< WriteableImage< MeasurementImage::PixelType > > > m_check_image_psf
 
std::shared_ptr< DetectionImagem_detection_image
 
std::shared_ptr< Image< SeFloat > > m_background_image
 
std::shared_ptr< Image< SeFloat > > m_filtered_image
 
std::shared_ptr< Image< SeFloat > > m_thresholded_image
 
std::shared_ptr< Image< SeFloat > > m_snr_image
 
std::shared_ptr< WeightImagem_variance_image
 
std::shared_ptr< CoordinateSystemm_coordinate_system
 
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
 
std::map< boost::filesystem::path, std::tuple< std::shared_ptr< Image< SeFloat > >, bool > > m_custom_images
 

Static Private Attributes

static std::unique_ptr< CheckImagesm_instance
 

Detailed Description

Definition at line 44 of file CheckImages.h.

Constructor & Destructor Documentation

◆ ~CheckImages()

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

◆ CheckImages()

SourceXtractor::CheckImages::CheckImages ( )
private

Definition at line 35 of file CheckImages.cpp.

Member Function Documentation

◆ configure()

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

Method which should initialize the object.

The given manager is guaranteed to already be in the initialized state, so all the required Configurations can be accessed using its getConfiguration() method.

Parameters
managerThe manager to get the Configurations from

Implements SourceXtractor::Configurable.

Definition at line 62 of file CheckImages.cpp.

References Euclid::Configuration::ConfigManager::getConfiguration(), m_aperture_filename, m_aperture_image, m_auto_aperture_filename, m_auto_aperture_image, m_coordinate_system, m_detection_image, m_filtered_filename, m_group_filename, m_group_image, m_model_background_filename, m_model_fitting_image_filename, m_model_variance_filename, m_moffat_filename, m_moffat_image, m_partition_filename, m_partition_image, m_psf_filename, m_residual_filename, m_segmentation_filename, m_segmentation_image, m_snr_filename, and m_thresholded_filename.

Referenced by SEMain::mainMethod().

Here is the call graph for this function:

◆ getApertureImage() [1/2]

std::shared_ptr<WriteableImage<unsigned int> > SourceXtractor::CheckImages::getApertureImage ( ) const
inline

◆ getApertureImage() [2/2]

std::shared_ptr< WriteableImage< unsigned int > > SourceXtractor::CheckImages::getApertureImage ( std::shared_ptr< const MeasurementImageFrame frame)

Definition at line 144 of file CheckImages.cpp.

References conf::filename, std::lock(), m_access_mutex, m_aperture_filename, m_measurement_aperture_images, and std::make_pair().

Here is the call graph for this function:

◆ getAutoApertureImage() [1/2]

std::shared_ptr<WriteableImage<unsigned int> > SourceXtractor::CheckImages::getAutoApertureImage ( ) const
inline

◆ getAutoApertureImage() [2/2]

std::shared_ptr< WriteableImage< unsigned int > > SourceXtractor::CheckImages::getAutoApertureImage ( std::shared_ptr< const MeasurementImageFrame frame)

Definition at line 117 of file CheckImages.cpp.

References conf::filename, std::lock(), m_access_mutex, m_auto_aperture_filename, m_measurement_auto_aperture_images, and std::make_pair().

Here is the call graph for this function:

◆ getGroupImage()

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

Definition at line 60 of file CheckImages.h.

References m_group_image.

◆ getInstance()

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

◆ getModelFittingImage()

std::shared_ptr< WriteableImage< MeasurementImage::PixelType > > SourceXtractor::CheckImages::getModelFittingImage ( std::shared_ptr< const MeasurementImageFrame frame)

◆ getMoffatImage()

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

Definition at line 72 of file CheckImages.h.

References m_moffat_image.

◆ getPartitionImage()

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

Definition at line 56 of file CheckImages.h.

References m_partition_image.

◆ getPsfImage()

std::shared_ptr< WriteableImage< MeasurementImage::PixelType > > SourceXtractor::CheckImages::getPsfImage ( std::shared_ptr< const MeasurementImageFrame frame)

Definition at line 205 of file CheckImages.cpp.

References conf::filename, SourceXtractor::Frame< T >::getCoordinateSystem(), SourceXtractor::Frame< T >::getLabel(), SourceXtractor::Frame< T >::getOriginalImage(), std::lock(), m_access_mutex, m_check_image_psf, m_psf_filename, and std::make_pair().

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

Here is the call graph for this function:

◆ getSegmentationImage()

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

Definition at line 52 of file CheckImages.h.

References m_segmentation_image.

Referenced by SEMain::mainMethod().

◆ getWriteableCheckImage()

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

Definition at line 42 of file CheckImages.cpp.

References std::dynamic_pointer_cast(), 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 38 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 ( )

◆ setBackgroundCheckImage()

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

Definition at line 88 of file CheckImages.h.

References m_background_image.

Referenced by SEMain::mainMethod().

◆ setCustomCheckImage()

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

Definition at line 58 of file CheckImages.cpp.

References m_custom_images, and std::make_tuple().

Here is the call graph for this function:

◆ setFilteredCheckImage()

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

Definition at line 96 of file CheckImages.h.

References m_filtered_image.

Referenced by SEMain::mainMethod().

◆ setSnrCheckImage()

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

Definition at line 104 of file CheckImages.h.

References m_snr_image.

Referenced by SEMain::mainMethod().

◆ setThresholdedCheckImage()

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

Definition at line 100 of file CheckImages.h.

References m_thresholded_image.

Referenced by SEMain::mainMethod().

◆ setVarianceCheckImage()

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

Definition at line 92 of file CheckImages.h.

References m_variance_image.

Referenced by SEMain::mainMethod().

Member Data Documentation

◆ m_access_mutex

std::mutex SourceXtractor::CheckImages::m_access_mutex

◆ m_aperture_filename

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

Definition at line 159 of file CheckImages.h.

Referenced by configure(), and getApertureImage().

◆ m_aperture_image

std::shared_ptr<WriteableImage<unsigned int> > SourceXtractor::CheckImages::m_aperture_image
private

Definition at line 134 of file CheckImages.h.

Referenced by configure(), and getApertureImage().

◆ m_auto_aperture_filename

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

Definition at line 158 of file CheckImages.h.

Referenced by configure(), and getAutoApertureImage().

◆ m_auto_aperture_image

std::shared_ptr<WriteableImage<unsigned int> > SourceXtractor::CheckImages::m_auto_aperture_image
private

Definition at line 133 of file CheckImages.h.

Referenced by configure(), and getAutoApertureImage().

◆ m_background_image

std::shared_ptr<Image<SeFloat> > SourceXtractor::CheckImages::m_background_image
private

Definition at line 141 of file CheckImages.h.

Referenced by saveImages(), and setBackgroundCheckImage().

◆ m_check_image_model_fitting

std::map<std::shared_ptr<const MeasurementImageFrame>, std::shared_ptr<WriteableImage<MeasurementImage::PixelType> > > SourceXtractor::CheckImages::m_check_image_model_fitting
private

Definition at line 138 of file CheckImages.h.

Referenced by getModelFittingImage(), and saveImages().

◆ m_check_image_psf

std::map<std::shared_ptr<const MeasurementImageFrame>, std::shared_ptr<WriteableImage<MeasurementImage::PixelType> > > SourceXtractor::CheckImages::m_check_image_psf
private

Definition at line 138 of file CheckImages.h.

Referenced by getPsfImage().

◆ m_coordinate_system

std::shared_ptr<CoordinateSystem> SourceXtractor::CheckImages::m_coordinate_system
private

Definition at line 146 of file CheckImages.h.

Referenced by configure(), 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 163 of file CheckImages.h.

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

◆ m_detection_image

std::shared_ptr<DetectionImage> SourceXtractor::CheckImages::m_detection_image
private

Definition at line 140 of file CheckImages.h.

Referenced by configure().

◆ m_filtered_filename

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

Definition at line 155 of file CheckImages.h.

Referenced by configure(), and saveImages().

◆ m_filtered_image

std::shared_ptr<Image<SeFloat> > SourceXtractor::CheckImages::m_filtered_image
private

Definition at line 142 of file CheckImages.h.

Referenced by saveImages(), and setFilteredCheckImage().

◆ m_group_filename

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

Definition at line 154 of file CheckImages.h.

Referenced by configure().

◆ m_group_image

std::shared_ptr<WriteableImage<unsigned int> > SourceXtractor::CheckImages::m_group_image
private

Definition at line 132 of file CheckImages.h.

Referenced by configure(), and getGroupImage().

◆ m_instance

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

Definition at line 127 of file CheckImages.h.

Referenced by getInstance().

◆ m_measurement_aperture_images

std::map<std::shared_ptr<const MeasurementImageFrame>, decltype(m_aperture_image)> SourceXtractor::CheckImages::m_measurement_aperture_images
private

Definition at line 136 of file CheckImages.h.

Referenced by getApertureImage().

◆ m_measurement_auto_aperture_images

std::map<std::shared_ptr<const MeasurementImageFrame>, decltype(m_auto_aperture_image)> SourceXtractor::CheckImages::m_measurement_auto_aperture_images
private

Definition at line 137 of file CheckImages.h.

Referenced by getAutoApertureImage().

◆ m_model_background_filename

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

Definition at line 150 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 148 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 151 of file CheckImages.h.

Referenced by configure(), and saveImages().

◆ m_moffat_filename

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

Definition at line 160 of file CheckImages.h.

Referenced by configure().

◆ m_moffat_image

std::shared_ptr<WriteableImage<SeFloat> > SourceXtractor::CheckImages::m_moffat_image
private

Definition at line 135 of file CheckImages.h.

Referenced by configure(), and getMoffatImage().

◆ m_partition_filename

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

Definition at line 153 of file CheckImages.h.

Referenced by configure().

◆ m_partition_image

std::shared_ptr<WriteableImage<unsigned int> > SourceXtractor::CheckImages::m_partition_image
private

Definition at line 131 of file CheckImages.h.

Referenced by configure(), and getPartitionImage().

◆ m_psf_filename

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

Definition at line 161 of file CheckImages.h.

Referenced by configure(), and getPsfImage().

◆ m_residual_filename

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

Definition at line 149 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 152 of file CheckImages.h.

Referenced by configure().

◆ m_segmentation_image

std::shared_ptr<WriteableImage<unsigned int> > SourceXtractor::CheckImages::m_segmentation_image
private

Definition at line 130 of file CheckImages.h.

Referenced by configure(), and getSegmentationImage().

◆ m_snr_filename

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

Definition at line 157 of file CheckImages.h.

Referenced by configure(), and saveImages().

◆ m_snr_image

std::shared_ptr<Image<SeFloat> > SourceXtractor::CheckImages::m_snr_image
private

Definition at line 144 of file CheckImages.h.

Referenced by saveImages(), and setSnrCheckImage().

◆ m_thresholded_filename

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

Definition at line 156 of file CheckImages.h.

Referenced by configure(), and saveImages().

◆ m_thresholded_image

std::shared_ptr<Image<SeFloat> > SourceXtractor::CheckImages::m_thresholded_image
private

Definition at line 143 of file CheckImages.h.

Referenced by saveImages(), and setThresholdedCheckImage().

◆ m_variance_image

std::shared_ptr<WeightImage> SourceXtractor::CheckImages::m_variance_image
private

Definition at line 145 of file CheckImages.h.

Referenced by saveImages(), and setVarianceCheckImage().


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