SourceXtractorPlusPlus  0.19
SourceXtractor++, the next generation SExtractor
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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,
MetadataEntry
m_metadata {}
 

Detailed Description

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

Definition at line 50 of file Frame.h.

Constructor & Destructor Documentation

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:

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

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

Definition at line 262 of file Frame.cpp.

References SourceXtractor::FunctionalImage< T, I >::create(), and std::max().

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

Here is the call graph for this function:

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

Definition at line 282 of file Frame.cpp.

References SourceXtractor::BufferedImage< T >::create(), and std::make_shared().

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

Here is the call graph for this function:

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

Definition at line 212 of file Frame.cpp.

References SourceXtractor::ConstantImage< T >::create().

Here is the call graph for this function:

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.

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.

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:

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

Definition at line 129 of file Frame.cpp.

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

Definition at line 139 of file Frame.h.

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

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.

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

Definition at line 112 of file Frame.cpp.

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.

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.

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.

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.

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

Definition at line 143 of file Frame.h.

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

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

Definition at line 141 of file Frame.cpp.

References SourceXtractor::ProcessedImage< T, P >::create().

Here is the call graph for this function:

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

Definition at line 123 of file Frame.cpp.

References SourceXtractor::ProcessedImage< T, P >::create().

Here is the call graph for this function:

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

Definition at line 135 of file Frame.cpp.

References SourceXtractor::ThresholdedImage< T >::create().

Here is the call graph for this function:

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

Definition at line 153 of file Frame.cpp.

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

Definition at line 147 of file Frame.cpp.

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.

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

Definition at line 230 of file Frame.cpp.

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

Definition at line 236 of file Frame.cpp.

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

Definition at line 224 of file Frame.cpp.

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

Definition at line 247 of file Frame.cpp.

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.

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

Definition at line 256 of file Frame.cpp.

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.

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

Definition at line 175 of file Frame.cpp.

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

Definition at line 190 of file Frame.cpp.

Member Data Documentation

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

Definition at line 184 of file Frame.h.

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().

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().

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

Definition at line 192 of file Frame.h.

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

Definition at line 197 of file Frame.h.

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

Definition at line 200 of file Frame.h.

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

Definition at line 201 of file Frame.h.

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

Definition at line 188 of file Frame.h.

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

template<typename T >
size_t SourceXtractor::Frame< T >::m_hdu_index = 0
private
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().

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

Definition at line 198 of file Frame.h.

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

Definition at line 199 of file Frame.h.

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

Definition at line 195 of file Frame.h.

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().

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

Definition at line 189 of file Frame.h.

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

template<typename T >
std::shared_ptr<WeightImage> SourceXtractor::Frame< T >::m_variance_map
private
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: