LSSTApplications
20.0.0
LSSTDataManagementBasePackage
|
Go to the documentation of this file.
12 #ifndef LSST_IP_DIFFIM_KERNELSOLUTION_H
13 #define LSST_IP_DIFFIM_KERNELSOLUTION_H
52 bool fitForBackground);
58 virtual void solve(Eigen::MatrixXd
const& mMat,
59 Eigen::VectorXd
const& bVec);
64 inline Eigen::MatrixXd
const&
getM() {
return _mMat;}
65 inline Eigen::VectorXd
const&
getB() {
return _bVec;}
82 template <
typename InputT>
88 bool fitForBackground);
118 template <
typename InputT>
124 bool fitForBackground);
129 const &varianceEstimate,
135 const &varianceEstimate,
141 const &varianceEstimate,
147 template <
typename InputT>
153 bool fitForBackground,
154 Eigen::MatrixXd
const& hMat,
163 Eigen::MatrixXd
getM(
bool includeHmat =
true);
166 Eigen::MatrixXd
const _hMat;
188 Eigen::MatrixXd
const& qMat,
189 Eigen::VectorXd
const& wVec);
198 bool _constantFirstTerm;
211 void _setKernelUncertainty();
std::shared_ptr< lsst::afw::image::Image< lsst::afw::math::Kernel::Pixel > > makeKernelImage(lsst::geom::Point2D const &pos)
virtual std::shared_ptr< lsst::afw::math::Kernel > getKernel()
std::shared_ptr< MaskedKernelSolution< InputT > > Ptr
Eigen::VectorXd const & getB()
virtual double getBackground()
StaticKernelSolution(lsst::afw::math::KernelList const &basisList, bool fitForBackground)
virtual ~SpatialKernelSolution()
std::shared_ptr< lsst::afw::math::Kernel > _kernel
Derived single-object convolution kernel.
Eigen::MatrixXd const & getM()
lsst::afw::image::Image< lsst::afw::math::Kernel::Pixel > ImageT
std::pair< std::shared_ptr< lsst::afw::math::LinearCombinationKernel >, lsst::afw::math::Kernel::SpatialFunctionPtr > getSolutionPair()
double estimateRisk(double maxCond)
Eigen::VectorXd _bVec
Derived least squares B vector.
lsst::afw::math::Kernel::Pixel PixelT
static int _SolutionId
Unique identifier for solution.
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)
bool _fitForBackground
Background terms included in fit.
virtual ~StaticKernelSolution()
virtual void buildSingleMaskOrig(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::geom::Box2I maskBox)
double _background
Derived differential background estimate.
KernelSolvedBy _solvedBy
Type of algorithm used to make solution.
Eigen::MatrixXd _mMat
Derived least squares M matrix.
KernelSolvedBy getSolvedBy()
virtual double getConditionNumber(ConditionNumberType conditionType)
virtual ~RegularizedKernelSolution()
virtual ~KernelSolution()
void _setKernelUncertainty()
Not implemented.
RegularizedKernelSolution(lsst::afw::math::KernelList const &basisList, bool fitForBackground, Eigen::MatrixXd const &hMat, lsst::daf::base::PropertySet const &ps)
int _id
Unique ID for object.
Eigen::VectorXd _ivVec
Inverse variance.
virtual void buildWithMask(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 > const &pixelMask)
A base class for image defects.
Eigen::VectorXd _iVec
Vectorized I.
void _setKernel()
Set kernel after solution.
MaskedKernelSolution(lsst::afw::math::KernelList const &basisList, bool fitForBackground)
void addConstraint(float xCenter, float yCenter, Eigen::MatrixXd const &qMat, Eigen::VectorXd const &wVec)
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)
Class for storing generic metadata.
Eigen::MatrixXd _cMat
K_i x R.
An integer coordinate rectangle.
virtual std::shared_ptr< lsst::afw::image::Image< lsst::afw::math::Kernel::Pixel > > makeKernelImage()
std::shared_ptr< SpatialKernelSolution > Ptr
std::shared_ptr< StaticKernelSolution< InputT > > Ptr
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)
std::shared_ptr< KernelSolution > Ptr
std::shared_ptr< RegularizedKernelSolution< InputT > > Ptr
Eigen::VectorXd _aVec
Derived least squares solution matrix.
virtual std::pair< std::shared_ptr< lsst::afw::math::Kernel >, double > getSolutionPair()
double _kSum
Derived kernel sum.