File KernelSolution.h¶
Declaration of classes to store the solution for convolution kernels.
- Author
Andrew Becker, University of Washington
-
namespace
lsst
Class for a simple mapping implementing a generic AstrometryTransform.
Remove all non-astronomical counts from the Chunk Exposure’s pixels.
Forward declarations for lsst::utils::Cache
For details on the Cache class, see the Cache.h file.
It uses a template rather than a pointer so that the derived classes can use the specifics of the transform. The class simplePolyMapping overloads a few routines.
A base class for image defects
Numeric constants used by the Integrate.h integrator routines.
Compute Image Statistics
- Note
Gauss-Kronrod-Patterson quadrature coefficients for use in quadpack routine qng. These coefficients were calculated with 101 decimal digit arithmetic by L. W. Fullerton, Bell Labs, Nov 1981.
- Note
The Statistics class itself can only handle lsst::afw::image::MaskedImage() types. The philosophy has been to handle other types by making them look like lsst::afw::image::MaskedImage() and reusing that code. Users should have no need to instantiate a Statistics object directly, but should use the overloaded makeStatistics() factory functions.
-
namespace
ip
-
namespace
diffim
-
class
KernelSolution
Subclassed by lsst::ip::diffim::SpatialKernelSolution, lsst::ip::diffim::StaticKernelSolution< InputT >
Public Types
-
enum
KernelSolvedBy
¶ Values:
-
NONE
= 0¶
-
CHOLESKY_LDLT
= 1¶
-
CHOLESKY_LLT
= 2¶
-
LU
= 3¶
-
EIGENVECTOR
= 4¶
-
-
typedef std::shared_ptr<KernelSolution>
Ptr
Public Functions
-
KernelSolution
(Eigen::MatrixXd mMat, Eigen::VectorXd bVec, bool fitForBackground)
-
KernelSolution
(bool fitForBackground)
-
KernelSolution
()
-
virtual
~KernelSolution
()
-
virtual void
solve
()
-
virtual void
solve
(Eigen::MatrixXd const &mMat, Eigen::VectorXd const &bVec)
-
KernelSolvedBy
getSolvedBy
()
-
virtual double
getConditionNumber
(ConditionNumberType conditionType)
-
virtual double
getConditionNumber
(Eigen::MatrixXd const &mMat, ConditionNumberType conditionType)
-
Eigen::MatrixXd const &
getM
()
-
Eigen::VectorXd const &
getB
()
-
void
printM
()
-
void
printB
()
-
void
printA
()
-
int
getId
() const
Protected Attributes
-
int
_id
Unique ID for object.
-
Eigen::MatrixXd
_mMat
Derived least squares M matrix.
-
Eigen::VectorXd
_bVec
Derived least squares B vector.
-
Eigen::VectorXd
_aVec
Derived least squares solution matrix.
-
KernelSolvedBy
_solvedBy
Type of algorithm used to make solution.
-
bool
_fitForBackground
Background terms included in fit.
Protected Static Attributes
-
int
_SolutionId
Unique identifier for solution.
-
enum
-
template<typename
InputT
>
classMaskedKernelSolution
: public lsst::ip::diffim::StaticKernelSolution<InputT> Public Types
-
typedef std::shared_ptr<MaskedKernelSolution<InputT>>
Ptr
Public Functions
-
MaskedKernelSolution
(lsst::afw::math::KernelList const &basisList, bool fitForBackground)
-
virtual
~MaskedKernelSolution
()
-
virtual void
buildOrig
(lsst::afw::image::Image<InputT> const &templateImage, lsst::afw::image::Image<InputT> const &scienceImage, lsst::afw::image::Image<lsst::afw::image::VariancePixel> const &varianceEstimate, lsst::afw::image::Mask<lsst::afw::image::MaskPixel> pixelMask)
-
typedef std::shared_ptr<MaskedKernelSolution<InputT>>
-
template<typename
InputT
>
classRegularizedKernelSolution
: public lsst::ip::diffim::StaticKernelSolution<InputT> Public Types
-
typedef std::shared_ptr<RegularizedKernelSolution<InputT>>
Ptr
Public Functions
-
RegularizedKernelSolution
(lsst::afw::math::KernelList const &basisList, bool fitForBackground, Eigen::MatrixXd const &hMat, lsst::daf::base::PropertySet const &ps)
-
virtual
~RegularizedKernelSolution
()
-
void
solve
()
-
double
getLambda
()
-
double
estimateRisk
(double maxCond)
-
Eigen::MatrixXd
getM
(bool includeHmat = true)
-
typedef std::shared_ptr<RegularizedKernelSolution<InputT>>
-
class
SpatialKernelSolution
: public lsst::ip::diffim::KernelSolution Public Types
-
typedef std::shared_ptr<SpatialKernelSolution>
Ptr
Public Functions
-
SpatialKernelSolution
(lsst::afw::math::KernelList const &basisList, lsst::afw::math::Kernel::SpatialFunctionPtr spatialKernelFunction, lsst::afw::math::Kernel::SpatialFunctionPtr background, lsst::daf::base::PropertySet const &ps)
-
virtual
~SpatialKernelSolution
()
-
void
addConstraint
(float xCenter, float yCenter, Eigen::MatrixXd const &qMat, Eigen::VectorXd const &wVec)
-
void
solve
()
Private Functions
-
void
_setKernel
()¶ Set kernel after solution.
-
void
_setKernelUncertainty
()¶ Not implemented.
-
typedef std::shared_ptr<SpatialKernelSolution>
-
template<typename
InputT
>
classStaticKernelSolution
: public lsst::ip::diffim::KernelSolution Subclassed by lsst::ip::diffim::MaskedKernelSolution< InputT >, lsst::ip::diffim::RegularizedKernelSolution< InputT >
Public Types
-
typedef std::shared_ptr<StaticKernelSolution<InputT>>
Ptr
Public Functions
-
StaticKernelSolution
(lsst::afw::math::KernelList const &basisList, bool fitForBackground)
-
virtual
~StaticKernelSolution
()
-
void
solve
()
-
virtual void
build
(lsst::afw::image::Image<InputT> const &templateImage, lsst::afw::image::Image<InputT> const &scienceImage, lsst::afw::image::Image<lsst::afw::image::VariancePixel> const &varianceEstimate)
-
virtual double
getBackground
()
-
virtual double
getKsum
()
Protected Functions
-
void
_setKernel
() Set kernel after solution.
-
void
_setKernelUncertainty
() Not implemented.
Protected Attributes
-
Eigen::MatrixXd
_cMat
K_i x R.
-
Eigen::VectorXd
_iVec
Vectorized I.
-
Eigen::VectorXd
_ivVec
Inverse variance.
-
double
_background
Derived differential background estimate.
-
double
_kSum
Derived kernel sum.
-
typedef std::shared_ptr<StaticKernelSolution<InputT>>
-
class
-
namespace