lsst.meas.algorithms ge9008a0c34+425a3f5e02
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
lsst::meas::algorithms::CloughTocher2DInterpolatorUtils Class Reference

This class contains static utility methods that are used by the CloughTocher2DInterpolatorTask and exists solely to provide a namespace. More...

#include <CloughTocher2DInterpolatorUtils.h>

Static Public Member Functions

static std::pair< ndarray::Array< float, 2, 2 >, ndarray::Array< float, 2, 2 > > findGoodPixelsAroundBadPixels (afw::image::MaskedImage< PixelT, afw::image::MaskPixel, afw::image::VariancePixel > const &mimage, std::vector< std::string > const &maskPlanes, int const buffer)
 Find the positions of bad pixels as defined by the masks, and also find the location and pixel value of good pixels around the bad pixels.
 
static void updateArrayFromImage (ndarray::Array< float, 2, 2 > const &pixelArray, afw::image::Image< PixelT > const &image)
 Update the values (third column) of the pixelArray from the image.
 
static void updateImageFromArray (afw::image::Image< PixelT > &image, ndarray::Array< float const, 2, 2 > const &pixelArray)
 Update the pixel values of the image from the pixelArray.
 

Detailed Description

This class contains static utility methods that are used by the CloughTocher2DInterpolatorTask and exists solely to provide a namespace.

Definition at line 44 of file CloughTocher2DInterpolatorUtils.h.

Member Function Documentation

◆ findGoodPixelsAroundBadPixels()

std::pair< ndarray::Array< float, 2, 2 >, ndarray::Array< float, 2, 2 > > lsst::meas::algorithms::CloughTocher2DInterpolatorUtils::findGoodPixelsAroundBadPixels ( afw::image::MaskedImage< PixelT, afw::image::MaskPixel, afw::image::VariancePixel > const & mimage,
std::vector< std::string > const & maskPlanes,
int const buffer )
static

Find the positions of bad pixels as defined by the masks, and also find the location and pixel value of good pixels around the bad pixels.

Parameters
[in]mimageMaskedImage to find the pixels from.
[in]maskPlanesList of mask planes to consider as bad pixels.
[in]bufferNumber of pixels to dilate the bad pixels by.
Returns
A pair of arrays, the first containing the bad pixels and the second containing the good pixels.
Note
The bad pixels array has shape (N, 3) where N is the number of bad pixels. The first column is the x coordinate, the second column is the y coordinate, and the third column is the pixel value. The good pixels array has shape (M, 3) where M is the number of good pixels and has the same format as the previous one.

Definition at line 43 of file CloughTocher2DInterpolatorUtils.cc.

◆ updateArrayFromImage()

void lsst::meas::algorithms::CloughTocher2DInterpolatorUtils::updateArrayFromImage ( ndarray::Array< float, 2, 2 > const & pixelArray,
afw::image::Image< PixelT > const & image )
static

Update the values (third column) of the pixelArray from the image.

Parameters
[out]pixelArrayThe three-column array to update.
[in]imageThe image to update the pixel values from.
Note
The pixelArray is typically one of the arrays returned by findGoodPixelsAroundBadPixels.
See also
updateImageFromArray

Definition at line 86 of file CloughTocher2DInterpolatorUtils.cc.

◆ updateImageFromArray()

void lsst::meas::algorithms::CloughTocher2DInterpolatorUtils::updateImageFromArray ( afw::image::Image< PixelT > & image,
ndarray::Array< float const, 2, 2 > const & pixelArray )
static

Update the pixel values of the image from the pixelArray.

Parameters
[out]imageThe image to update.
[in]pixelArrayThe three-column array to update the pixel values from.
Note
The pixelArray is typically one of the arrays returned by findGoodPixelsAroundBadPixels.
See also
updateArrayFromImage

Definition at line 98 of file CloughTocher2DInterpolatorUtils.cc.


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