LSSTApplications
10.0+286,10.0+36,10.0+46,10.0-2-g4f67435,10.1+152,10.1+37,11.0,11.0+1,11.0-1-g47edd16,11.0-1-g60db491,11.0-1-g7418c06,11.0-2-g04d2804,11.0-2-g68503cd,11.0-2-g818369d,11.0-2-gb8b8ce7
LSSTDataManagementBasePackage
|
Classes | |
class | MinimizeDipoleChi2 |
class | DipoleCentroidControl |
class | DipoleFluxControl |
class | PsfDipoleFluxControl |
C++ control object for PSF dipole fluxes. More... | |
class | DipoleCentroidAlgorithm |
Intermediate base class for algorithms that compute a centroid. More... | |
class | DipoleFluxAlgorithm |
Intermediate base class for algorithms that compute a flux. More... | |
class | NaiveDipoleFlux |
class | NaiveDipoleCentroid |
Intermediate base class for algorithms that compute a centroid. More... | |
class | PsfDipoleFlux |
class | FindSetBits |
Class to accumulate Mask bits. More... | |
class | ImageStatistics |
Class to calculate difference image statistics. More... | |
class | KernelCandidate |
Class stored in SpatialCells for spatial Kernel fitting. More... | |
class | KernelCandidateDetection |
Search through images for Footprints with no masked pixels. More... | |
class | KernelSolution |
class | StaticKernelSolution |
class | MaskedKernelSolution |
class | RegularizedKernelSolution |
class | SpatialKernelSolution |
Typedefs | |
typedef float | PixelT |
typedef float | InputT |
Functions | |
lsst::afw::math::KernelList | makeDeltaFunctionBasisList (int width, int height) |
Generate a basis set of delta function Kernels. More... | |
lsst::afw::math::KernelList | makeAlardLuptonBasisList (int halfWidth, int nGauss, std::vector< double > const &sigGauss, std::vector< int > const °Gauss) |
Generate an Alard-Lupton basis set of Kernels. More... | |
boost::shared_ptr < Eigen::MatrixXd > | makeRegularizationMatrix (lsst::pex::policy::Policy policy) |
Build a regularization matrix for Delta function kernels. More... | |
boost::shared_ptr < Eigen::MatrixXd > | makeCentralDifferenceMatrix (int width, int height, int stencil, float borderPenalty, bool fitForBackground) |
Generate regularization matrix for delta function kernels. More... | |
boost::shared_ptr < Eigen::MatrixXd > | makeForwardDifferenceMatrix (int width, int height, std::vector< int > const &orders, float borderPenalty, bool fitForBackground) |
Generate regularization matrix for delta function kernels. More... | |
lsst::afw::math::KernelList | renormalizeKernelList (lsst::afw::math::KernelList const &kernelListIn) |
Rescale an input set of kernels. More... | |
boost::shared_ptr < Eigen::MatrixXd > | makeFiniteDifferenceRegularizationDeprecated (unsigned int width, unsigned int height, unsigned int order, unsigned int boundary_style, unsigned int difference_style, bool printB) |
Generate regularization matrix for delta function kernels. More... | |
int const | NEGCENTXPAR (0) |
int const | NEGCENTYPAR (1) |
int const | NEGFLUXPAR (2) |
int const | POSCENTXPAR (3) |
int const | POSCENTYPAR (4) |
int const | POSFLUXPAR (5) |
template<typename PixelT > | |
Eigen::MatrixXd | imageToEigenMatrix (lsst::afw::image::Image< PixelT > const &img) |
Turns Image into a 2-D Eigen Matrix. More... | |
Eigen::MatrixXi | maskToEigenMatrix (lsst::afw::image::Mask< lsst::afw::image::MaskPixel > const &mask) |
template<typename PixelT , typename BackgroundT > | |
afwImage::MaskedImage< PixelT > | convolveAndSubtract (lsst::afw::image::MaskedImage< PixelT > const &templateImage, lsst::afw::image::MaskedImage< PixelT > const &scienceMaskedImage, lsst::afw::math::Kernel const &convolutionKernel, BackgroundT background, bool invert) |
Implement fundamental difference imaging step of convolution and subtraction : D = I - (K*T + bg) where * denotes convolution. More... | |
template<typename PixelT , typename BackgroundT > | |
afwImage::MaskedImage< PixelT > | convolveAndSubtract (lsst::afw::image::Image< PixelT > const &templateImage, lsst::afw::image::MaskedImage< PixelT > const &scienceMaskedImage, lsst::afw::math::Kernel const &convolutionKernel, BackgroundT background, bool invert) |
Implement fundamental difference imaging step of convolution and subtraction : D = I - (K.x.T + bg) More... | |
template Eigen::MatrixXd | imageToEigenMatrix (lsst::afw::image::Image< double > const &) |
template lsst::afw::image::MaskedImage < float > | convolveAndSubtract (lsst::afw::image::Image< float > const &templateImage, lsst::afw::image::MaskedImage< float > const &scienceMaskedImage, lsst::afw::math::Kernel const &convolutionKernel, double background, bool invert) |
template afwImage::MaskedImage < float > | convolveAndSubtract (lsst::afw::image::Image< float > const &templateImage, lsst::afw::image::MaskedImage< float > const &scienceMaskedImage, lsst::afw::math::Kernel const &convolutionKernel, lsst::afw::math::Function2< double > const &backgroundFunction, bool invert) |
template lsst::afw::image::MaskedImage < float > | convolveAndSubtract (lsst::afw::image::MaskedImage< float > const &templateImage, lsst::afw::image::MaskedImage< float > const &scienceMaskedImage, lsst::afw::math::Kernel const &convolutionKernel, double background, bool invert) |
template afwImage::MaskedImage < float > | convolveAndSubtract (lsst::afw::image::MaskedImage< float > const &templateImage, lsst::afw::image::MaskedImage< float > const &scienceMaskedImage, lsst::afw::math::Kernel const &convolutionKernel, lsst::afw::math::Function2< double > const &backgroundFunction, bool invert) |
template lsst::afw::image::MaskedImage < double > | convolveAndSubtract (lsst::afw::image::Image< double > const &templateImage, lsst::afw::image::MaskedImage< double > const &scienceMaskedImage, lsst::afw::math::Kernel const &convolutionKernel, double background, bool invert) |
template afwImage::MaskedImage < double > | convolveAndSubtract (lsst::afw::image::Image< double > const &templateImage, lsst::afw::image::MaskedImage< double > const &scienceMaskedImage, lsst::afw::math::Kernel const &convolutionKernel, lsst::afw::math::Function2< double > const &backgroundFunction, bool invert) |
template lsst::afw::image::MaskedImage < double > | convolveAndSubtract (lsst::afw::image::MaskedImage< double > const &templateImage, lsst::afw::image::MaskedImage< double > const &scienceMaskedImage, lsst::afw::math::Kernel const &convolutionKernel, double background, bool invert) |
template afwImage::MaskedImage < double > | convolveAndSubtract (lsst::afw::image::MaskedImage< double > const &templateImage, lsst::afw::image::MaskedImage< double > const &scienceMaskedImage, lsst::afw::math::Kernel const &convolutionKernel, lsst::afw::math::Function2< double > const &backgroundFunction, bool invert) |
template<typename PixelT , typename BackgroundT > | |
lsst::afw::image::MaskedImage < PixelT > | convolveAndSubtract (lsst::afw::image::MaskedImage< PixelT > const &templateImage, lsst::afw::image::MaskedImage< PixelT > const &scienceMaskedImage, lsst::afw::math::Kernel const &convolutionKernel, BackgroundT background, bool invert=true) |
Execute fundamental task of convolving template and subtracting it from science image. More... | |
template<typename PixelT , typename BackgroundT > | |
lsst::afw::image::MaskedImage < PixelT > | convolveAndSubtract (lsst::afw::image::Image< PixelT > const &templateImage, lsst::afw::image::MaskedImage< PixelT > const &scienceMaskedImage, lsst::afw::math::Kernel const &convolutionKernel, BackgroundT background, bool invert=true) |
Execute fundamental task of convolving template and subtracting it from science image. More... | |
template<typename PixelT > | |
boost::shared_ptr < KernelCandidate< PixelT > > | makeKernelCandidate (float const xCenter, float const yCenter, boost::shared_ptr< afw::image::MaskedImage< PixelT > > const &templateMaskedImage, boost::shared_ptr< afw::image::MaskedImage< PixelT > > const &scienceMaskedImage, pex::policy::Policy const &policy) |
Return a KernelCandidate pointer of the right sort. More... | |
template<typename PixelT > | |
boost::shared_ptr < KernelCandidate< PixelT > > | makeKernelCandidate (boost::shared_ptr< afw::table::SourceRecord > const &source, boost::shared_ptr< afw::image::MaskedImage< PixelT > > const &templateMaskedImage, boost::shared_ptr< afw::image::MaskedImage< PixelT > > const &scienceMaskedImage, pex::policy::Policy const &policy) |
Return a KernelCandidate pointer of the right sort. More... | |
typedef float lsst::ip::diffim::InputT |
Definition at line 1623 of file KernelSolution.cc.
typedef float lsst::ip::diffim::PixelT |
Definition at line 450 of file KernelCandidate.cc.
lsst::afw::image::MaskedImage<PixelT> lsst::ip::diffim::convolveAndSubtract | ( | lsst::afw::image::MaskedImage< PixelT > const & | templateImage, |
lsst::afw::image::MaskedImage< PixelT > const & | scienceMaskedImage, | ||
lsst::afw::math::Kernel const & | convolutionKernel, | ||
BackgroundT | background, | ||
bool | invert | ||
) |
Execute fundamental task of convolving template and subtracting it from science image.
templateImage | MaskedImage to apply convolutionKernel to |
scienceMaskedImage | MaskedImage from which convolved templateImage is subtracted |
convolutionKernel | Kernel to apply to templateImage |
background | Background scalar or function to subtract after convolution |
invert | Invert the output difference image |
Execute fundamental task of convolving template and subtracting it from science image.
templateImage | Image T to convolve with Kernel |
scienceMaskedImage | Image I to subtract T from |
convolutionKernel | PSF-matching Kernel used |
background | Differential background |
invert | Invert the output difference image |
Definition at line 121 of file ImageSubtract.cc.
lsst::afw::image::MaskedImage<PixelT> lsst::ip::diffim::convolveAndSubtract | ( | lsst::afw::image::Image< PixelT > const & | templateImage, |
lsst::afw::image::MaskedImage< PixelT > const & | scienceMaskedImage, | ||
lsst::afw::math::Kernel const & | convolutionKernel, | ||
BackgroundT | background, | ||
bool | invert | ||
) |
Execute fundamental task of convolving template and subtracting it from science image.
templateImage | Image to apply convolutionKernel to |
scienceMaskedImage | MaskedImage from which convolved templateImage is subtracted |
convolutionKernel | Kernel to apply to templateImage |
background | Background scalar or function to subtract after convolution |
invert | Invert the output difference image |
Execute fundamental task of convolving template and subtracting it from science image.
templateImage | Image T to convolve with Kernel |
scienceMaskedImage | Image I to subtract T from |
convolutionKernel | PSF-matching Kernel used |
background | Differential background |
invert | Invert the output difference image |
Definition at line 172 of file ImageSubtract.cc.
afwImage::MaskedImage<PixelT> lsst::ip::diffim::convolveAndSubtract | ( | lsst::afw::image::MaskedImage< PixelT > const & | templateImage, |
lsst::afw::image::MaskedImage< PixelT > const & | scienceMaskedImage, | ||
lsst::afw::math::Kernel const & | convolutionKernel, | ||
BackgroundT | background, | ||
bool | invert | ||
) |
Implement fundamental difference imaging step of convolution and subtraction : D = I - (K*T + bg) where * denotes convolution.
Execute fundamental task of convolving template and subtracting it from science image.
templateImage | Image T to convolve with Kernel |
scienceMaskedImage | Image I to subtract T from |
convolutionKernel | PSF-matching Kernel used |
background | Differential background |
invert | Invert the output difference image |
Definition at line 121 of file ImageSubtract.cc.
afwImage::MaskedImage<PixelT> lsst::ip::diffim::convolveAndSubtract | ( | lsst::afw::image::Image< PixelT > const & | templateImage, |
lsst::afw::image::MaskedImage< PixelT > const & | scienceMaskedImage, | ||
lsst::afw::math::Kernel const & | convolutionKernel, | ||
BackgroundT | background, | ||
bool | invert | ||
) |
Implement fundamental difference imaging step of convolution and subtraction : D = I - (K.x.T + bg)
Execute fundamental task of convolving template and subtracting it from science image.
templateImage | Image T to convolve with Kernel |
scienceMaskedImage | Image I to subtract T from |
convolutionKernel | PSF-matching Kernel used |
background | Differential background |
invert | Invert the output difference image |
Definition at line 172 of file ImageSubtract.cc.
template lsst::afw::image::MaskedImage< float > lsst::ip::diffim::convolveAndSubtract | ( | lsst::afw::image::Image< float > const & | templateImage, |
lsst::afw::image::MaskedImage< float > const & | scienceMaskedImage, | ||
lsst::afw::math::Kernel const & | convolutionKernel, | ||
double | background, | ||
bool | invert | ||
) |
template afwImage::MaskedImage< float > lsst::ip::diffim::convolveAndSubtract | ( | lsst::afw::image::Image< float > const & | templateImage, |
lsst::afw::image::MaskedImage< float > const & | scienceMaskedImage, | ||
lsst::afw::math::Kernel const & | convolutionKernel, | ||
lsst::afw::math::Function2< double > const & | backgroundFunction, | ||
bool | invert | ||
) |
template lsst::afw::image::MaskedImage< float > lsst::ip::diffim::convolveAndSubtract | ( | lsst::afw::image::MaskedImage< float > const & | templateImage, |
lsst::afw::image::MaskedImage< float > const & | scienceMaskedImage, | ||
lsst::afw::math::Kernel const & | convolutionKernel, | ||
double | background, | ||
bool | invert | ||
) |
template afwImage::MaskedImage< float > lsst::ip::diffim::convolveAndSubtract | ( | lsst::afw::image::MaskedImage< float > const & | templateImage, |
lsst::afw::image::MaskedImage< float > const & | scienceMaskedImage, | ||
lsst::afw::math::Kernel const & | convolutionKernel, | ||
lsst::afw::math::Function2< double > const & | backgroundFunction, | ||
bool | invert | ||
) |
template lsst::afw::image::MaskedImage< double > lsst::ip::diffim::convolveAndSubtract | ( | lsst::afw::image::Image< double > const & | templateImage, |
lsst::afw::image::MaskedImage< double > const & | scienceMaskedImage, | ||
lsst::afw::math::Kernel const & | convolutionKernel, | ||
double | background, | ||
bool | invert | ||
) |
template afwImage::MaskedImage< double > lsst::ip::diffim::convolveAndSubtract | ( | lsst::afw::image::Image< double > const & | templateImage, |
lsst::afw::image::MaskedImage< double > const & | scienceMaskedImage, | ||
lsst::afw::math::Kernel const & | convolutionKernel, | ||
lsst::afw::math::Function2< double > const & | backgroundFunction, | ||
bool | invert | ||
) |
template lsst::afw::image::MaskedImage< double > lsst::ip::diffim::convolveAndSubtract | ( | lsst::afw::image::MaskedImage< double > const & | templateImage, |
lsst::afw::image::MaskedImage< double > const & | scienceMaskedImage, | ||
lsst::afw::math::Kernel const & | convolutionKernel, | ||
double | background, | ||
bool | invert | ||
) |
template afwImage::MaskedImage< double > lsst::ip::diffim::convolveAndSubtract | ( | lsst::afw::image::MaskedImage< double > const & | templateImage, |
lsst::afw::image::MaskedImage< double > const & | scienceMaskedImage, | ||
lsst::afw::math::Kernel const & | convolutionKernel, | ||
lsst::afw::math::Function2< double > const & | backgroundFunction, | ||
bool | invert | ||
) |
Eigen::MatrixXd lsst::ip::diffim::imageToEigenMatrix | ( | lsst::afw::image::Image< PixelT > const & | img | ) |
Turns Image into a 2-D Eigen Matrix.
Turns a 2-d Image into a 2-d Eigen Matrix.
img | Image whose pixel values are read into an Eigen::MatrixXd |
Definition at line 68 of file ImageSubtract.cc.
template Eigen::MatrixXd lsst::ip::diffim::imageToEigenMatrix | ( | lsst::afw::image::Image< double > const & | ) |
lsst::afw::math::KernelList lsst::ip::diffim::makeAlardLuptonBasisList | ( | int | halfWidth, |
int | nGauss, | ||
std::vector< double > const & | sigGauss, | ||
std::vector< int > const & | degGauss | ||
) |
Generate an Alard-Lupton basis set of Kernels.
Build a set of Alard/Lupton basis kernels.
halfWidth | size is 2*N + 1 |
nGauss | number of gaussians |
sigGauss | Widths of the Gaussian Kernels |
degGauss | Local spatial variation of bases |
halfWidth | size is 2*N + 1 |
nGauss | number of gaussians |
sigGauss | width of the gaussians |
degGauss | local spatial variation of gaussians |
Definition at line 79 of file BasisLists.cc.
boost::shared_ptr< Eigen::MatrixXd > lsst::ip::diffim::makeCentralDifferenceMatrix | ( | int | width, |
int | height, | ||
int | stencil, | ||
float | borderPenalty, | ||
bool | fitForBackground | ||
) |
Generate regularization matrix for delta function kernels.
Build a central difference Laplacian regularization matrix for Delta function kernels.
width | Width of basis set you want to regularize |
height | Height of basis set you want to regularize |
stencil | Which type of Laplacian approximation to use |
borderPenalty | Amount of penalty (if any) to apply to border pixels; > 0 |
fitForBackground | Fit for differential background? |
Definition at line 212 of file BasisLists.cc.
lsst::afw::math::KernelList lsst::ip::diffim::makeDeltaFunctionBasisList | ( | int | width, |
int | height | ||
) |
Generate a basis set of delta function Kernels.
Build a set of Delta Function basis kernels.
Generates a vector of Kernels sized nCols * nRows, where each Kernel has a unique pixel set to value 1.0 with the other pixels valued 0.0. This is the "delta function" basis set.
lsst::pex::exceptions::DomainError | if nRows or nCols not positive |
width | Width of basis set (cols) |
height | Height of basis set (rows) |
width | number of columns in the set |
height | number of rows in the set |
Definition at line 48 of file BasisLists.cc.
boost::shared_ptr<Eigen::MatrixXd> lsst::ip::diffim::makeFiniteDifferenceRegularizationDeprecated | ( | unsigned int | width, |
unsigned int | height, | ||
unsigned int | order, | ||
unsigned int | boundary_style, | ||
unsigned int | difference_style, | ||
bool | printB | ||
) |
Generate regularization matrix for delta function kernels.
Definition at line 516 of file BasisLists.cc.
boost::shared_ptr< Eigen::MatrixXd > lsst::ip::diffim::makeForwardDifferenceMatrix | ( | int | width, |
int | height, | ||
std::vector< int > const & | orders, | ||
float | borderPenalty, | ||
bool | fitForBackground | ||
) |
Generate regularization matrix for delta function kernels.
Build a forward difference regularization matrix for Delta function kernels.
width | Width of basis set you want to regularize |
height | Height of basis set you want to regularize |
orders | Which derivatives to penalize (1,2,3) |
borderPenalty | Amount of penalty (if any) to apply to border pixels; > 0 |
fitForBackground | Fit for differential background? |
Definition at line 316 of file BasisLists.cc.
boost::shared_ptr<KernelCandidate<PixelT> > lsst::ip::diffim::makeKernelCandidate | ( | float const | xCenter, |
float const | yCenter, | ||
boost::shared_ptr< afw::image::MaskedImage< PixelT > > const & | templateMaskedImage, | ||
boost::shared_ptr< afw::image::MaskedImage< PixelT > > const & | scienceMaskedImage, | ||
pex::policy::Policy const & | policy | ||
) |
Return a KernelCandidate pointer of the right sort.
xCenter | X-center of candidate |
yCenter | Y-center of candidate |
templateMaskedImage | Template subimage |
scienceMaskedImage | Science image subimage |
policy | Policy file for creation of rating |
Definition at line 224 of file KernelCandidate.h.
boost::shared_ptr<KernelCandidate<PixelT> > lsst::ip::diffim::makeKernelCandidate | ( | boost::shared_ptr< afw::table::SourceRecord > const & | source, |
boost::shared_ptr< afw::image::MaskedImage< PixelT > > const & | templateMaskedImage, | ||
boost::shared_ptr< afw::image::MaskedImage< PixelT > > const & | scienceMaskedImage, | ||
pex::policy::Policy const & | policy | ||
) |
Return a KernelCandidate pointer of the right sort.
source | afw::table::SourceRecord used to construct the KernelCandidate |
templateMaskedImage | Template subimage |
scienceMaskedImage | Science image subimage |
policy | Policy file for creation of rating |
Definition at line 249 of file KernelCandidate.h.
boost::shared_ptr< Eigen::MatrixXd > lsst::ip::diffim::makeRegularizationMatrix | ( | lsst::pex::policy::Policy | policy | ) |
Build a regularization matrix for Delta function kernels.
policy | Policy file dictating which type of matrix to make |
Definition at line 151 of file BasisLists.cc.
Eigen::MatrixXi lsst::ip::diffim::maskToEigenMatrix | ( | lsst::afw::image::Mask< lsst::afw::image::MaskPixel > const & | mask | ) |
Definition at line 86 of file ImageSubtract.cc.
int const lsst::ip::diffim::NEGCENTXPAR | ( | 0 | ) |
int const lsst::ip::diffim::NEGCENTYPAR | ( | 1 | ) |
int const lsst::ip::diffim::NEGFLUXPAR | ( | 2 | ) |
int const lsst::ip::diffim::POSCENTXPAR | ( | 3 | ) |
int const lsst::ip::diffim::POSCENTYPAR | ( | 4 | ) |
int const lsst::ip::diffim::POSFLUXPAR | ( | 5 | ) |
lsst::afw::math::KernelList lsst::ip::diffim::renormalizeKernelList | ( | lsst::afw::math::KernelList const & | kernelListIn | ) |
Rescale an input set of kernels.
Renormalize a list of basis kernels.
kernelListIn | input list of basis kernels |
kernelListIn | Input list to be renormalized |
Definition at line 420 of file BasisLists.cc.