lsst.meas.modelfit
g9a9c865167+311602a9c2
Toggle main menu visibility
Loading...
Searching...
No Matches
include
lsst
meas
modelfit
UnitTransformedLikelihood.h
Go to the documentation of this file.
1
// -*- lsst-c++ -*-
2
/*
3
* LSST Data Management System
4
* Copyright 2008-2013 LSST Corporation.
5
*
6
* This product includes software developed by the
7
* LSST Project (http://www.lsst.org/).
8
*
9
* This program is free software: you can redistribute it and/or modify
10
* it under the terms of the GNU General Public License as published by
11
* the Free Software Foundation, either version 3 of the License, or
12
* (at your option) any later version.
13
*
14
* This program is distributed in the hope that it will be useful,
15
* but WITHOUT ANY WARRANTY; without even the implied warranty of
16
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
* GNU General Public License for more details.
18
*
19
* You should have received a copy of the LSST License Statement and
20
* the GNU General Public License along with this program. If not,
21
* see <http://www.lsstcorp.org/LegalNotices/>.
22
*/
23
24
#ifndef LSST_MEAS_MODELFIT_UnitTransformedLikelihood_h_INCLUDED
25
#define LSST_MEAS_MODELFIT_UnitTransformedLikelihood_h_INCLUDED
26
27
#include <vector>
28
#include <memory>
29
30
#include "ndarray.h"
31
32
#include "lsst/pex/config.h"
33
#include "
lsst/geom/SpherePoint.h
"
34
#include "
lsst/afw/geom/ellipses/Ellipse.h
"
35
#include "
lsst/afw/image/Exposure.h
"
36
#include "
lsst/afw/detection/Footprint.h
"
37
38
#include "
lsst/meas/modelfit/common.h
"
39
#include "
lsst/meas/modelfit/Model.h
"
40
#include "
lsst/meas/modelfit/Likelihood.h
"
41
#include "
lsst/meas/modelfit/UnitSystem.h
"
42
43
namespace
lsst
{
namespace
meas
{
namespace
modelfit
{
44
51
class
UnitTransformedLikelihoodControl
{
52
public
:
53
54
LSST_CONTROL_FIELD(
usePixelWeights
,
bool
,
55
"whether to individually weigh pixels using the variance image."
);
56
57
LSST_CONTROL_FIELD(
weightsMultiplier
,
double
,
58
"Scaling factor to apply to weights."
);
59
60
explicit
UnitTransformedLikelihoodControl
(
bool
usePixelWeights_=
false
,
double
weightsMultiplier_=1.0)
61
:
usePixelWeights
(usePixelWeights_),
weightsMultiplier
(weightsMultiplier_) {}
62
63
};
64
70
class
EpochFootprint
{
71
public
:
79
explicit
EpochFootprint
(
80
afw::detection::Footprint
const
&
footprint
,
81
afw::image::Exposure<Pixel>
const
&
exposure
,
82
shapelet::MultiShapeletFunction
const
&
psf
83
);
84
85
afw::detection::Footprint
const
footprint
;
86
afw::image::Exposure<Pixel>
const
exposure
;
87
shapelet::MultiShapeletFunction
const
psf
;
88
};
89
102
class
UnitTransformedLikelihood
:
public
Likelihood
{
103
public
:
104
106
void
computeModelMatrix
(
107
ndarray::Array<Pixel,2,-1>
const
& modelMatrix,
108
ndarray::Array<Scalar const,1,1>
const
& nonlinear,
109
bool
doApplyWeights=
true
110
)
const override
;
111
122
explicit
UnitTransformedLikelihood
(
123
std::shared_ptr<Model>
model,
124
ndarray::Array<Scalar const,1,1>
const
& fixed,
125
UnitSystem
const
& fitSys,
126
geom::SpherePoint
const
& position,
127
std::vector
<
std::shared_ptr<EpochFootprint>
>
const
& epochFootprintList,
128
UnitTransformedLikelihoodControl
const
& ctrl
129
);
130
143
explicit
UnitTransformedLikelihood
(
144
std::shared_ptr<Model>
model,
145
ndarray::Array<Scalar const,1,1>
const
& fixed,
146
UnitSystem
const
& fitSys,
147
geom::SpherePoint
const
& position,
148
afw::image::Exposure<Pixel>
const
& exposure,
149
afw::detection::Footprint
const
& footprint,
150
shapelet::MultiShapeletFunction
const
&
psf
,
151
UnitTransformedLikelihoodControl
const
& ctrl
152
);
153
154
virtual
~UnitTransformedLikelihood
();
155
156
private
:
157
class
Impl;
158
std::unique_ptr<Impl>
_impl;
159
};
160
161
}}}
// namespace lsst::meas::modelfit
162
163
#endif
// !LSST_MEAS_MODELFIT_UnitTransformedLikelihood_h_INCLUDED
Ellipse.h
Footprint.h
Likelihood.h
Model.h
SpherePoint.h
UnitSystem.h
lsst::afw::detection::Footprint
lsst::afw::image::Exposure
lsst::geom::SpherePoint
lsst::meas::modelfit::EpochFootprint::exposure
afw::image::Exposure< Pixel > const exposure
subregion of exposure that includes footprint
Definition
UnitTransformedLikelihood.h:86
lsst::meas::modelfit::EpochFootprint::psf
shapelet::MultiShapeletFunction const psf
multi-shapelet model of exposure PSF
Definition
UnitTransformedLikelihood.h:87
lsst::meas::modelfit::EpochFootprint::footprint
afw::detection::Footprint const footprint
footprint of source (galaxy)
Definition
UnitTransformedLikelihood.h:85
lsst::meas::modelfit::EpochFootprint::EpochFootprint
EpochFootprint(afw::detection::Footprint const &footprint, afw::image::Exposure< Pixel > const &exposure, shapelet::MultiShapeletFunction const &psf)
Construct a EpochFootprint.
lsst::meas::modelfit::Likelihood::Likelihood
Likelihood(const Likelihood &)=delete
lsst::meas::modelfit::UnitTransformedLikelihoodControl
Control object used to initialize a UnitTransformedLikelihood.
Definition
UnitTransformedLikelihood.h:51
lsst::meas::modelfit::UnitTransformedLikelihoodControl::weightsMultiplier
double weightsMultiplier
"Scaling factor to apply to weights." ;
Definition
UnitTransformedLikelihood.h:58
lsst::meas::modelfit::UnitTransformedLikelihoodControl::usePixelWeights
bool usePixelWeights
"whether to individually weigh pixels using the variance image." ;
Definition
UnitTransformedLikelihood.h:55
lsst::meas::modelfit::UnitTransformedLikelihoodControl::UnitTransformedLikelihoodControl
UnitTransformedLikelihoodControl(bool usePixelWeights_=false, double weightsMultiplier_=1.0)
Definition
UnitTransformedLikelihood.h:60
lsst::meas::modelfit::UnitTransformedLikelihood::UnitTransformedLikelihood
UnitTransformedLikelihood(std::shared_ptr< Model > model, ndarray::Array< Scalar const, 1, 1 > const &fixed, UnitSystem const &fitSys, geom::SpherePoint const &position, afw::image::Exposure< Pixel > const &exposure, afw::detection::Footprint const &footprint, shapelet::MultiShapeletFunction const &psf, UnitTransformedLikelihoodControl const &ctrl)
Initialize a UnitTransformedLikelihood with data from multiple exposures.
lsst::meas::modelfit::UnitTransformedLikelihood::computeModelMatrix
void computeModelMatrix(ndarray::Array< Pixel, 2,-1 > const &modelMatrix, ndarray::Array< Scalar const, 1, 1 > const &nonlinear, bool doApplyWeights=true) const override
Evaluate the model for the given vector of nonlinear parameters.
lsst::meas::modelfit::UnitTransformedLikelihood::UnitTransformedLikelihood
UnitTransformedLikelihood(std::shared_ptr< Model > model, ndarray::Array< Scalar const, 1, 1 > const &fixed, UnitSystem const &fitSys, geom::SpherePoint const &position, std::vector< std::shared_ptr< EpochFootprint > > const &epochFootprintList, UnitTransformedLikelihoodControl const &ctrl)
Initialize a UnitTransformedLikelihood with data from multiple exposures.
lsst::meas::modelfit::UnitTransformedLikelihood::~UnitTransformedLikelihood
virtual ~UnitTransformedLikelihood()
lsst::shapelet::MultiShapeletFunction
common.h
Exposure.h
lsst::meas::modelfit.psf
Definition
__init__.py:1
lsst::meas::modelfit
Definition
overview.dox:3
lsst::meas
lsst
std::shared_ptr
lsst::meas::modelfit::UnitSystem
A simple struct that combines a Wcs and a PhotoCalib.
Definition
UnitSystem.h:42
std::unique_ptr
std::vector
Generated on
for lsst.meas.modelfit by
1.17.0