lsst.meas.extensions.photometryKron  22.0.1-1-g7d6de66+d20ad40d48
Public Member Functions | Static Public Member Functions | List of all members
lsst::meas::extensions::photometryKron::KronAperture Class Reference

#include <photometryKron.h>

Public Member Functions

 KronAperture (geom::Point2D const &center, afw::geom::ellipses::BaseCore const &core, float radiusForRadius=std::nanf(""))
 
 KronAperture (afw::table::SourceRecord const &source, float radiusForRadius=std::nanf(""))
 
 KronAperture (afw::table::SourceRecord const &reference, geom::AffineTransform const &refToMeas, double radius, float radiusForRadius=std::nanf(""))
 
double getX () const
 Accessors. More...
 
double getY () const
 
float getRadiusForRadius () const
 
geom::Point2D const & getCenter () const
 
afw::geom::ellipses::AxesgetAxes ()
 
afw::geom::ellipses::Axes const & getAxes () const
 
template<typename ImageT >
std::pair< double, double > measureFlux (ImageT const &image, double const nRadiusForFlux, double const maxSincRadius) const
 Photometer within the Kron Aperture on an image. More...
 
std::shared_ptr< KronAperturetransform (geom::AffineTransform const &trans) const
 Transform a Kron Aperture to a different frame. More...
 

Static Public Member Functions

template<typename ImageT >
static std::shared_ptr< KronAperturedetermineRadius (ImageT const &image, afw::geom::ellipses::Axes axes, geom::Point2D const &center, KronFluxControl const &ctrl)
 Determine the Kron Aperture from an image. More...
 
static afw::geom::ellipses::Axes getKronAxes (afw::geom::ellipses::Axes const &shape, geom::LinearTransform const &transformation, double const radius)
 Determine Kron axes from a reference image. More...
 

Detailed Description

Definition at line 160 of file photometryKron.h.

Constructor & Destructor Documentation

◆ KronAperture() [1/3]

lsst::meas::extensions::photometryKron::KronAperture::KronAperture ( geom::Point2D const &  center,
afw::geom::ellipses::BaseCore const &  core,
float  radiusForRadius = std::nanf("") 
)
inline

Definition at line 162 of file photometryKron.h.

◆ KronAperture() [2/3]

lsst::meas::extensions::photometryKron::KronAperture::KronAperture ( afw::table::SourceRecord const &  source,
float  radiusForRadius = std::nanf("") 
)
inlineexplicit

Definition at line 169 of file photometryKron.h.

◆ KronAperture() [3/3]

lsst::meas::extensions::photometryKron::KronAperture::KronAperture ( afw::table::SourceRecord const &  reference,
geom::AffineTransform const &  refToMeas,
double  radius,
float  radiusForRadius = std::nanf("") 
)
inline

Definition at line 175 of file photometryKron.h.

Member Function Documentation

◆ determineRadius()

template<typename ImageT >
std::shared_ptr< KronAperture > lsst::meas::extensions::photometryKron::KronAperture::determineRadius ( ImageT const &  image,
afw::geom::ellipses::Axes  axes,
geom::Point2D const &  center,
KronFluxControl const &  ctrl 
)
static

Determine the Kron Aperture from an image.

Determines the object Kron aperture, using the shape from source.getShape() (e.g. SDSS's adaptive moments)

Parameters
imageImage to measure
axesShape of aperture
centerCentre of source
ctrlcontrol the algorithm

Definition at line 234 of file KronPhotometry.cc.

◆ getAxes() [1/2]

afw::geom::ellipses::Axes& lsst::meas::extensions::photometryKron::KronAperture::getAxes ( )
inline

Definition at line 189 of file photometryKron.h.

◆ getAxes() [2/2]

afw::geom::ellipses::Axes const& lsst::meas::extensions::photometryKron::KronAperture::getAxes ( ) const
inline

Definition at line 191 of file photometryKron.h.

◆ getCenter()

geom::Point2D const& lsst::meas::extensions::photometryKron::KronAperture::getCenter ( ) const
inline

Definition at line 187 of file photometryKron.h.

◆ getKronAxes()

afw::geom::ellipses::Axes lsst::meas::extensions::photometryKron::KronAperture::getKronAxes ( afw::geom::ellipses::Axes const &  shape,
geom::LinearTransform const &  transformation,
double const  radius 
)
static

Determine Kron axes from a reference image.

Definition at line 222 of file KronPhotometry.cc.

◆ getRadiusForRadius()

float lsst::meas::extensions::photometryKron::KronAperture::getRadiusForRadius ( ) const
inline

Definition at line 185 of file photometryKron.h.

◆ getX()

double lsst::meas::extensions::photometryKron::KronAperture::getX ( ) const
inline

Accessors.

Definition at line 183 of file photometryKron.h.

◆ getY()

double lsst::meas::extensions::photometryKron::KronAperture::getY ( ) const
inline

Definition at line 184 of file photometryKron.h.

◆ measureFlux()

template<typename ImageT >
std::pair< double, double > lsst::meas::extensions::photometryKron::KronAperture::measureFlux ( ImageT const &  image,
double const  nRadiusForFlux,
double const  maxSincRadius 
) const

Photometer within the Kron Aperture on an image.

Parameters
imageImage to measure
nRadiusForFluxKron radius multiplier
maxSincRadiuslargest radius that we use sinc apertyres

Definition at line 346 of file KronPhotometry.cc.

◆ transform()

std::shared_ptr<KronAperture> lsst::meas::extensions::photometryKron::KronAperture::transform ( geom::AffineTransform const &  trans) const
inline

Transform a Kron Aperture to a different frame.

Definition at line 215 of file photometryKron.h.


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