#include <photometryKron.h>
Definition at line 160 of file photometryKron.h.
◆ KronAperture() [1/3]
◆ KronAperture() [2/3]
◆ KronAperture() [3/3]
Definition at line 175 of file photometryKron.h.
177 _center(refToMeas(reference.getCentroid())),
179 _radiusForRadius(radiusForRadius)
◆ determineRadius()
template<typename ImageT >
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
-
image | Image to measure |
axes | Shape of aperture |
center | Centre of source |
ctrl | control the algorithm |
Definition at line 234 of file KronPhotometry.cc.
244 double const sigma = ctrl.smoothingSigma;
245 bool const smoothImage =
sigma > 0;
246 int kSize = smoothImage ? 2*int(2*
sigma) + 1 : 1;
247 afw::math::GaussianFunction1<afw::math::Kernel::Pixel> gaussFunc(smoothImage ?
sigma : 100);
248 afw::math::SeparableKernel kernel(kSize, kSize, gaussFunc, gaussFunc);
249 bool const doNormalize =
true, doCopyEdge =
false;
250 afw::math::ConvolutionControl convCtrl(doNormalize, doCopyEdge);
251 double radius0 = axes.getDeterminantRadius();
254 for (
int i = 0; i < ctrl.nIterForRadius; ++i) {
255 axes.scale(ctrl.nSigmaForRadius);
256 radiusForRadius = axes.getDeterminantRadius();
261 afw::geom::ellipses::Ellipse(axes, center)));
264 kernel.growBBox(foot.getBBox());
273 FootprintFindMoment<ImageT, afw::detection::Psf::Image> iRFunctor(
274 subImage, center, axes.getA()/axes.getB(), axes.getTheta()
278 foot.getSpans()->applyFunctor(
279 iRFunctor, *(subImage.getImage()));
287 if (!iRFunctor.getGood()) {
288 throw LSST_EXCEPT(BadKronException,
"Bad integral defining Kron radius");
291 radius = iRFunctor.getIr()*
sqrt(axes.getB()/axes.getA());
297 axes.scale(
radius/axes.getDeterminantRadius());
301 return std::make_shared<KronAperture>(center, axes, radiusForRadius);
◆ getAxes() [1/2]
◆ getAxes() [2/2]
◆ getCenter()
geom::Point2D const& lsst::meas::extensions::photometryKron::KronAperture::getCenter |
( |
| ) |
const |
|
inline |
◆ getKronAxes()
Determine Kron axes from a reference image.
Definition at line 222 of file KronPhotometry.cc.
228 afw::geom::ellipses::Axes axes(shape);
229 axes.scale(
radius/axes.getDeterminantRadius());
230 return axes.transform(transformation);
◆ getRadiusForRadius()
float lsst::meas::extensions::photometryKron::KronAperture::getRadiusForRadius |
( |
| ) |
const |
|
inline |
◆ getX()
double lsst::meas::extensions::photometryKron::KronAperture::getX |
( |
| ) |
const |
|
inline |
◆ getY()
double lsst::meas::extensions::photometryKron::KronAperture::getY |
( |
| ) |
const |
|
inline |
◆ 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
-
image | Image to measure |
nRadiusForFlux | Kron radius multiplier |
maxSincRadius | largest radius that we use sinc apertyres |
Definition at line 346 of file KronPhotometry.cc.
352 afw::geom::ellipses::Axes axes(
getAxes());
353 axes.scale(nRadiusForFlux);
354 afw::geom::ellipses::Ellipse
const ellip(axes,
getCenter());
◆ transform()
Transform a Kron Aperture to a different frame.
Definition at line 215 of file photometryKron.h.
217 afw::geom::ellipses::Axes
const axes(*
getAxes().
transform(trans.getLinear()).copy());
218 return std::make_shared<KronAperture>(center, axes);
The documentation for this class was generated from the following files:
- /j/snowflake/release/lsstsw/stack/1a1d771/Linux64/meas_extensions_photometryKron/20.0.0/include/lsst/meas/extensions/photometryKron.h
- /j/snowflake/release/lsstsw/stack/1a1d771/Linux64/meas_extensions_photometryKron/20.0.0/src/KronPhotometry.cc
void convolve(OutImageT &convolvedImage, InImageT const &inImage, KernelT const &kernel, ConvolutionControl const &convolutionControl=ConvolutionControl())
Convolve an Image or MaskedImage with a Kernel, setting pixels of an existing output image.
static std::shared_ptr< geom::SpanSet > fromShape(int r, Stencil s=Stencil::CIRCLE, lsst::geom::Point2I offset=lsst::geom::Point2I())
Factory function for creating SpanSets from a Stencil.