SourceXtractorPlusPlus 0.21
SourceXtractor++, the next generation SExtractor
Loading...
Searching...
No Matches
Classes | Public Member Functions | Private Member Functions | Private Attributes | List of all members
SourceXtractor::Frame< T > Class Template Reference

#include <Frame.h>

Collaboration diagram for SourceXtractor::Frame< T >:
Collaboration graph
[legend]

Classes

class  ImageFilter
 

Public Member Functions

 Frame (std::shared_ptr< Image< T > > detection_image, std::shared_ptr< WeightImage > variance_map, WeightImage::PixelType variance_threshold, std::shared_ptr< CoordinateSystem > coordinate_system, SeFloat gain, SeFloat saturation, int interpolation_gap)
 
 Frame (std::shared_ptr< Image< T > > detection_image, std::shared_ptr< CoordinateSystem > coordinate_system=nullptr, std::shared_ptr< WeightImage > variance_map=nullptr)
 
std::shared_ptr< Image< T > > getImage (FrameImageLayer layer) const
 
std::shared_ptr< Image< T > > getOriginalImage () const
 
size_t getHduIndex () const
 
void setHduIndex (size_t hdu_index)
 
const std::map< std::string, MetadataEntry > & getMetadata () const
 
void setMetadata (const std::map< std::string, MetadataEntry > &metadata)
 
std::shared_ptr< Image< T > > getInterpolatedImage () const
 
std::shared_ptr< Image< T > > getSubtractedImage () const
 
std::shared_ptr< Image< T > > getFilteredImage () const
 
std::shared_ptr< Image< T > > getThresholdedImage () const
 
std::shared_ptr< Image< T > > getSnrImage () const
 
std::shared_ptr< WeightImagegetVarianceMap () const
 
std::shared_ptr< WeightImagegetUnfilteredVarianceMap () const
 
std::shared_ptr< WeightImagegetOriginalVarianceMap () const
 
std::shared_ptr< CoordinateSystemgetCoordinateSystem () const
 
WeightImage::PixelType getVarianceThreshold () const
 
SeFloat getGain () const
 
SeFloat getSaturation () const
 
SeFloat getBackgroundMedianRms () const
 
std::shared_ptr< Image< T > > getDetectionThresholdMap () const
 
std::string getLabel () const
 
void setVarianceMap (std::shared_ptr< WeightImage > variance_map)
 
void setVarianceThreshold (WeightImage::PixelType threshold)
 
std::shared_ptr< Image< T > > getBackgroundLevelMap () const
 
void setDetectionThreshold (T detection_threshold)
 
void setBackgroundLevel (T background_level)
 
void setBackgroundLevel (std::shared_ptr< Image< T > > background_level_map, T background_rms)
 
void setFilter (std::shared_ptr< ImageFilter > filter)
 
void setLabel (const std::string &label)
 

Private Member Functions

void applyFilter ()
 
void applyInterpolation ()
 

Private Attributes

std::shared_ptr< Image< T > > m_image
 
std::shared_ptr< WeightImagem_variance_map
 
std::shared_ptr< Image< T > > m_background_level_map
 
std::shared_ptr< CoordinateSystemm_coordinate_system
 
SeFloat m_gain
 
SeFloat m_saturation
 
SeFloat m_background_rms
 
m_detection_threshold
 
WeightImage::PixelType m_variance_threshold
 
int m_interpolation_gap
 
std::shared_ptr< ImageFilterm_filter
 
std::shared_ptr< Image< T > > m_interpolated_image
 
std::shared_ptr< Image< WeightImage::PixelType > > m_interpolated_variance
 
std::shared_ptr< Image< T > > m_filtered_image
 
std::shared_ptr< Image< T > > m_filtered_variance_map
 
std::string m_label
 
size_t m_hdu_index = 0
 
std::map< std::string, MetadataEntrym_metadata {}
 

Detailed Description

template<typename T>
class SourceXtractor::Frame< T >

Definition at line 50 of file Frame.h.

Constructor & Destructor Documentation

◆ Frame() [1/2]

template<typename T >
SourceXtractor::Frame< T >::Frame ( std::shared_ptr< Image< T > > detection_image,
std::shared_ptr< WeightImage > variance_map,
WeightImage::PixelType variance_threshold,
std::shared_ptr< CoordinateSystem > coordinate_system,
SeFloat gain,
SeFloat saturation,
int interpolation_gap )

Definition at line 31 of file Frame.cpp.

References SourceXtractor::Frame< T >::applyFilter(), and SourceXtractor::Frame< T >::applyInterpolation().

Here is the call graph for this function:

◆ Frame() [2/2]

template<typename T >
SourceXtractor::Frame< T >::Frame ( std::shared_ptr< Image< T > > detection_image,
std::shared_ptr< CoordinateSystem > coordinate_system = nullptr,
std::shared_ptr< WeightImage > variance_map = nullptr )
explicit

Member Function Documentation

◆ applyFilter()

template<typename T >
void SourceXtractor::Frame< T >::applyFilter ( )
private

Definition at line 262 of file Frame.cpp.

References std::max().

Referenced by SourceXtractor::Frame< T >::Frame(), and SourceXtractor::Frame< T >::Frame().

Here is the call graph for this function:

◆ applyInterpolation()

template<typename T >
void SourceXtractor::Frame< T >::applyInterpolation ( )
private

Definition at line 282 of file Frame.cpp.

References std::make_shared().

Referenced by SourceXtractor::Frame< T >::Frame(), and SourceXtractor::Frame< T >::Frame().

Here is the call graph for this function:

◆ getBackgroundLevelMap()

template<typename T >
std::shared_ptr< Image< T > > SourceXtractor::Frame< T >::getBackgroundLevelMap ( ) const

Definition at line 212 of file Frame.cpp.

◆ getBackgroundMedianRms()

template<typename T >
SeFloat SourceXtractor::Frame< T >::getBackgroundMedianRms ( ) const
inline

Definition at line 147 of file Frame.h.

References SourceXtractor::Frame< T >::m_background_rms.

◆ getCoordinateSystem()

template<typename T >
std::shared_ptr< CoordinateSystem > SourceXtractor::Frame< T >::getCoordinateSystem ( ) const
inline

Definition at line 131 of file Frame.h.

References SourceXtractor::Frame< T >::m_coordinate_system.

◆ getDetectionThresholdMap()

template<typename T >
std::shared_ptr< Image< T > > SourceXtractor::Frame< T >::getDetectionThresholdMap ( ) const

Definition at line 164 of file Frame.cpp.

References std::sqrt().

Here is the call graph for this function:

◆ getFilteredImage()

template<typename T >
std::shared_ptr< Image< T > > SourceXtractor::Frame< T >::getFilteredImage ( ) const

Definition at line 129 of file Frame.cpp.

◆ getGain()

template<typename T >
SeFloat SourceXtractor::Frame< T >::getGain ( ) const
inline

Definition at line 139 of file Frame.h.

References SourceXtractor::Frame< T >::m_gain.

◆ getHduIndex()

template<typename T >
size_t SourceXtractor::Frame< T >::getHduIndex ( ) const
inline

Definition at line 83 of file Frame.h.

References SourceXtractor::Frame< T >::m_hdu_index.

◆ getImage()

template<typename T >
std::shared_ptr< Image< T > > SourceXtractor::Frame< T >::getImage ( FrameImageLayer layer) const

◆ getInterpolatedImage()

template<typename T >
std::shared_ptr< Image< T > > SourceXtractor::Frame< T >::getInterpolatedImage ( ) const

Definition at line 112 of file Frame.cpp.

◆ getLabel()

template<typename T >
std::string SourceXtractor::Frame< T >::getLabel ( ) const
inline

Definition at line 153 of file Frame.h.

References SourceXtractor::Frame< T >::m_label.

◆ getMetadata()

template<typename T >
const std::map< std::string, MetadataEntry > & SourceXtractor::Frame< T >::getMetadata ( ) const
inline

Definition at line 92 of file Frame.h.

References SourceXtractor::Frame< T >::m_metadata.

◆ getOriginalImage()

template<typename T >
std::shared_ptr< Image< T > > SourceXtractor::Frame< T >::getOriginalImage ( ) const
inline

Definition at line 79 of file Frame.h.

References SourceXtractor::Frame< T >::m_image.

◆ getOriginalVarianceMap()

template<typename T >
std::shared_ptr< WeightImage > SourceXtractor::Frame< T >::getOriginalVarianceMap ( ) const
inline

Definition at line 123 of file Frame.h.

References SourceXtractor::Frame< T >::m_variance_map.

◆ getSaturation()

template<typename T >
SeFloat SourceXtractor::Frame< T >::getSaturation ( ) const
inline

Definition at line 143 of file Frame.h.

References SourceXtractor::Frame< T >::m_saturation.

◆ getSnrImage()

template<typename T >
std::shared_ptr< Image< T > > SourceXtractor::Frame< T >::getSnrImage ( ) const

Definition at line 141 of file Frame.cpp.

◆ getSubtractedImage()

template<typename T >
std::shared_ptr< Image< T > > SourceXtractor::Frame< T >::getSubtractedImage ( ) const

Definition at line 123 of file Frame.cpp.

◆ getThresholdedImage()

template<typename T >
std::shared_ptr< Image< T > > SourceXtractor::Frame< T >::getThresholdedImage ( ) const

Definition at line 135 of file Frame.cpp.

◆ getUnfilteredVarianceMap()

template<typename T >
std::shared_ptr< WeightImage > SourceXtractor::Frame< T >::getUnfilteredVarianceMap ( ) const

Definition at line 153 of file Frame.cpp.

◆ getVarianceMap()

template<typename T >
std::shared_ptr< WeightImage > SourceXtractor::Frame< T >::getVarianceMap ( ) const

Definition at line 147 of file Frame.cpp.

◆ getVarianceThreshold()

template<typename T >
WeightImage::PixelType SourceXtractor::Frame< T >::getVarianceThreshold ( ) const
inline

Definition at line 135 of file Frame.h.

References SourceXtractor::Frame< T >::m_variance_threshold.

◆ setBackgroundLevel() [1/2]

template<typename T >
void SourceXtractor::Frame< T >::setBackgroundLevel ( std::shared_ptr< Image< T > > background_level_map,
T background_rms )

Definition at line 236 of file Frame.cpp.

References std::function::function().

Here is the call graph for this function:

◆ setBackgroundLevel() [2/2]

template<typename T >
void SourceXtractor::Frame< T >::setBackgroundLevel ( T background_level)

Definition at line 230 of file Frame.cpp.

◆ setDetectionThreshold()

template<typename T >
void SourceXtractor::Frame< T >::setDetectionThreshold ( T detection_threshold)

Definition at line 224 of file Frame.cpp.

References std::function::function().

Here is the call graph for this function:

◆ setFilter()

template<typename T >
void SourceXtractor::Frame< T >::setFilter ( std::shared_ptr< ImageFilter > filter)

Definition at line 247 of file Frame.cpp.

References std::function::function().

Here is the call graph for this function:

◆ setHduIndex()

template<typename T >
void SourceXtractor::Frame< T >::setHduIndex ( size_t hdu_index)
inline

Definition at line 87 of file Frame.h.

References SourceXtractor::Frame< T >::m_hdu_index.

◆ setLabel()

template<typename T >
void SourceXtractor::Frame< T >::setLabel ( const std::string & label)

Definition at line 256 of file Frame.cpp.

References std::function::function().

Here is the call graph for this function:

◆ setMetadata()

template<typename T >
void SourceXtractor::Frame< T >::setMetadata ( const std::map< std::string, MetadataEntry > & metadata)
inline

Definition at line 96 of file Frame.h.

References SourceXtractor::Frame< T >::m_metadata.

◆ setVarianceMap()

template<typename T >
void SourceXtractor::Frame< T >::setVarianceMap ( std::shared_ptr< WeightImage > variance_map)

Definition at line 175 of file Frame.cpp.

References std::function::function().

Here is the call graph for this function:

◆ setVarianceThreshold()

template<typename T >
void SourceXtractor::Frame< T >::setVarianceThreshold ( WeightImage::PixelType threshold)

Definition at line 190 of file Frame.cpp.

References std::function::function().

Here is the call graph for this function:

Member Data Documentation

◆ m_background_level_map

template<typename T >
std::shared_ptr<Image<T> > SourceXtractor::Frame< T >::m_background_level_map
private

Definition at line 184 of file Frame.h.

◆ m_background_rms

template<typename T >
SeFloat SourceXtractor::Frame< T >::m_background_rms
private

Definition at line 190 of file Frame.h.

Referenced by SourceXtractor::Frame< T >::getBackgroundMedianRms().

◆ m_coordinate_system

template<typename T >
std::shared_ptr<CoordinateSystem> SourceXtractor::Frame< T >::m_coordinate_system
private

Definition at line 186 of file Frame.h.

Referenced by SourceXtractor::Frame< T >::getCoordinateSystem().

◆ m_detection_threshold

template<typename T >
T SourceXtractor::Frame< T >::m_detection_threshold
private

Definition at line 192 of file Frame.h.

◆ m_filter

template<typename T >
std::shared_ptr<ImageFilter> SourceXtractor::Frame< T >::m_filter
private

Definition at line 197 of file Frame.h.

◆ m_filtered_image

template<typename T >
std::shared_ptr<Image<T> > SourceXtractor::Frame< T >::m_filtered_image
private

Definition at line 200 of file Frame.h.

◆ m_filtered_variance_map

template<typename T >
std::shared_ptr<Image<T> > SourceXtractor::Frame< T >::m_filtered_variance_map
private

Definition at line 201 of file Frame.h.

◆ m_gain

template<typename T >
SeFloat SourceXtractor::Frame< T >::m_gain
private

Definition at line 188 of file Frame.h.

Referenced by SourceXtractor::Frame< T >::getGain().

◆ m_hdu_index

template<typename T >
size_t SourceXtractor::Frame< T >::m_hdu_index = 0
private

◆ m_image

template<typename T >
std::shared_ptr<Image<T> > SourceXtractor::Frame< T >::m_image
private

Definition at line 182 of file Frame.h.

Referenced by SourceXtractor::Frame< T >::getOriginalImage().

◆ m_interpolated_image

template<typename T >
std::shared_ptr<Image<T> > SourceXtractor::Frame< T >::m_interpolated_image
private

Definition at line 198 of file Frame.h.

◆ m_interpolated_variance

template<typename T >
std::shared_ptr<Image<WeightImage::PixelType> > SourceXtractor::Frame< T >::m_interpolated_variance
private

Definition at line 199 of file Frame.h.

◆ m_interpolation_gap

template<typename T >
int SourceXtractor::Frame< T >::m_interpolation_gap
private

Definition at line 195 of file Frame.h.

◆ m_label

template<typename T >
std::string SourceXtractor::Frame< T >::m_label
private

Definition at line 203 of file Frame.h.

Referenced by SourceXtractor::Frame< T >::getLabel().

◆ m_metadata

template<typename T >
std::map<std::string, MetadataEntry> SourceXtractor::Frame< T >::m_metadata {}
private

◆ m_saturation

template<typename T >
SeFloat SourceXtractor::Frame< T >::m_saturation
private

Definition at line 189 of file Frame.h.

Referenced by SourceXtractor::Frame< T >::getSaturation().

◆ m_variance_map

template<typename T >
std::shared_ptr<WeightImage> SourceXtractor::Frame< T >::m_variance_map
private

◆ m_variance_threshold

template<typename T >
WeightImage::PixelType SourceXtractor::Frame< T >::m_variance_threshold
private

Definition at line 193 of file Frame.h.

Referenced by SourceXtractor::Frame< T >::getVarianceThreshold().


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