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
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
home
lsstsw
stack
Linux64
meas_algorithms
11.0-2-gb8b8ce7
include
lsst
meas
algorithms
ShapeletInterpolation.h
Go to the documentation of this file.
1
// -*- LSST-C++ -*-
2
#ifndef LSST_MEAS_ALGORITHMS_SHAPELETINTERPOLATION_H
3
#define LSST_MEAS_ALGORITHMS_SHAPELETINTERPOLATION_H
4
5
/*
6
* LSST Data Management System
7
* Copyright 2008, 2009, 2010 LSST Corporation.
8
*
9
* This product includes software developed by the
10
* LSST Project (http://www.lsst.org/).
11
*
12
* This program is free software: you can redistribute it and/or modify
13
* it under the terms of the GNU General Public License as published by
14
* the Free Software Foundation, either version 3 of the License, or
15
* (at your option) any later version.
16
*
17
* This program is distributed in the hope that it will be useful,
18
* but WITHOUT ANY WARRANTY; without even the implied warranty of
19
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20
* GNU General Public License for more details.
21
*
22
* You should have received a copy of the LSST License Statement and
23
* the GNU General Public License along with this program. If not,
24
* see <http://www.lsstcorp.org/LegalNotices/>.
25
*/
26
34
#include <complex>
35
36
#include "boost/shared_ptr.hpp"
37
#include "Eigen/Core"
38
39
#include "
lsst/pex/policy/Policy.h
"
40
#include "
lsst/afw/image/Exposure.h
"
41
#include "
lsst/afw/geom/Point.h
"
42
#include "
lsst/afw/math/SpatialCell.h
"
43
#include "
lsst/meas/algorithms/Shapelet.h
"
44
45
namespace
lsst {
46
namespace
meas {
47
namespace
algorithms {
48
49
class
ShapeletInterpolationImpl;
50
51
class
ShapeletInterpolation
52
{
70
public
:
71
72
typedef
boost::shared_ptr<ShapeletInterpolation>
Ptr
;
73
typedef
boost::shared_ptr<const ShapeletInterpolation>
ConstPtr
;
74
75
typedef
float
PixelT
;
76
typedef
lsst::pex::policy::Policy
Policy
;
77
typedef
lsst::afw::math::SpatialCellSet
SpatialCellSet
;
78
typedef
lsst::afw::image::Exposure<PixelT>
Exposure
;
79
typedef
lsst::afw::geom::PointD
PointD
;
80
81
typedef
lsst::meas::algorithms::Shapelet
Shapelet
;
82
88
ShapeletInterpolation
(
const
Policy
& policy);
89
93
~ShapeletInterpolation
();
94
98
ShapeletInterpolation
(
const
ShapeletInterpolation
& rhs);
99
103
ShapeletInterpolation
&
operator=
(
const
ShapeletInterpolation
& rhs);
104
108
int
getOrder
()
const
;
109
113
int
getFitOrder
()
const
;
114
118
double
getSigma
()
const
;
119
123
int
getSize
()
const
;
124
128
int
getFitSize
()
const
;
129
133
void
setSigma
(
double
sigma
);
134
140
void
calculate
(
141
SpatialCellSet::Ptr
cellSet,
142
const
Exposure
& exposure
143
);
144
148
Shapelet::ConstPtr
interpolate
(
const
PointD
& pos)
const
;
149
Shapelet::ConstPtr
interpolate
(
double
x
,
double
y
)
const
;
150
154
double
interpolateSingleElement
(
const
PointD
& pos,
int
i)
const
;
155
double
interpolateSingleElement
(
double
x
,
double
y
,
int
i)
const
;
156
157
private
:
158
159
ShapeletInterpolationImpl
*
pImpl
;
160
};
161
162
}}}
163
164
#endif
y
int y
Definition:
GaussianCentroid.cc:36
lsst::meas::algorithms::ShapeletInterpolation::getFitOrder
int getFitOrder() const
get the order of the fit
Definition:
ShapeletInterpolation.cc:180
lsst::meas::algorithms::ShapeletInterpolation::setSigma
void setSigma(double sigma)
set a new value of sigma
Definition:
ShapeletInterpolation.cc:192
Point.h
A coordinate class intended to represent absolute positions.
lsst::meas::algorithms::ShapeletInterpolationImpl
Definition:
ShapeletInterpolation.cc:76
lsst::meas::algorithms::ShapeletInterpolation::getFitSize
int getFitSize() const
the number of fit coefficients
Definition:
ShapeletInterpolation.cc:189
lsst::afw::image::Exposure
A class to contain the data, WCS, and other information needed to describe an image of the sky...
Definition:
Exposure.h:48
lsst::pex::policy::Policy
a container for holding hierarchical configuration data in memory.
Definition:
Policy.h:169
Shapelet.h
Defines the Shapelet class.
lsst::meas::algorithms::ShapeletInterpolation::interpolate
Shapelet::ConstPtr interpolate(const PointD &pos) const
Perform the interpolation.
Definition:
ShapeletInterpolation.cc:200
lsst::meas::algorithms::Shapelet
Definition:
Shapelet.h:50
lsst::meas::algorithms::Shapelet::ConstPtr
boost::shared_ptr< const Shapelet > ConstPtr
Definition:
Shapelet.h:95
lsst::afw::geom::Point< double, 2 >
lsst::meas::algorithms::ShapeletInterpolation::operator=
ShapeletInterpolation & operator=(const ShapeletInterpolation &rhs)
op= does a shallow copy
Definition:
ShapeletInterpolation.cc:168
sigma
afw::table::Key< double > sigma
Definition:
GaussianPsf.cc:43
lsst::meas::algorithms::ShapeletInterpolation
Definition:
ShapeletInterpolation.h:51
lsst::afw::math::SpatialCellSet
A collection of SpatialCells covering an entire image.
Definition:
SpatialCell.h:378
lsst::meas::algorithms::ShapeletInterpolation::PointD
lsst::afw::geom::PointD PointD
Definition:
ShapeletInterpolation.h:79
lsst::meas::algorithms::ShapeletInterpolation::SpatialCellSet
lsst::afw::math::SpatialCellSet SpatialCellSet
Definition:
ShapeletInterpolation.h:77
lsst::meas::algorithms::ShapeletInterpolation::Ptr
boost::shared_ptr< ShapeletInterpolation > Ptr
This class is an interpolator to get a Shapelet at an arbitrary position.
Definition:
ShapeletInterpolation.h:72
lsst::meas::algorithms::ShapeletInterpolation::Shapelet
lsst::meas::algorithms::Shapelet Shapelet
Definition:
ShapeletInterpolation.h:81
lsst::meas::algorithms::ShapeletInterpolation::calculate
void calculate(SpatialCellSet::Ptr cellSet, const Exposure &exposure)
Calculate the interpolation parameters from a SpatialCellSet.
Definition:
ShapeletInterpolation.cc:195
lsst::meas::algorithms::ShapeletInterpolation::interpolateSingleElement
double interpolateSingleElement(const PointD &pos, int i) const
Perform the interpolation for only one shapelet coefficient.
Definition:
ShapeletInterpolation.cc:205
x
double x
Definition:
ChebyshevBoundedField.cc:305
lsst::meas::algorithms::ShapeletInterpolation::ShapeletInterpolation
ShapeletInterpolation(const Policy &policy)
Basic constructor just loads parameters from a policy file.
Definition:
ShapeletInterpolation.cc:157
lsst::meas::algorithms::ShapeletInterpolation::Exposure
lsst::afw::image::Exposure< PixelT > Exposure
Definition:
ShapeletInterpolation.h:78
lsst::meas::algorithms::ShapeletInterpolation::PixelT
float PixelT
Definition:
ShapeletInterpolation.h:75
lsst::meas::algorithms::ShapeletInterpolation::ConstPtr
boost::shared_ptr< const ShapeletInterpolation > ConstPtr
Definition:
ShapeletInterpolation.h:73
lsst::meas::algorithms::ShapeletInterpolation::getSigma
double getSigma() const
get the scale size of the shapelet
Definition:
ShapeletInterpolation.cc:183
Policy.h
lsst::meas::algorithms::ShapeletInterpolation::getOrder
int getOrder() const
get the order of the shapelet
Definition:
ShapeletInterpolation.cc:177
SpatialCell.h
Class to ensure constraints for spatial modeling.
lsst::afw::math::SpatialCellSet::Ptr
boost::shared_ptr< SpatialCellSet > Ptr
Definition:
SpatialCell.h:380
lsst::meas::algorithms::ShapeletInterpolation::~ShapeletInterpolation
~ShapeletInterpolation()
Destructor needs to delete pImpl.
Definition:
ShapeletInterpolation.cc:161
lsst::meas::algorithms::ShapeletInterpolation::getSize
int getSize() const
the size of the shapelet vector
Definition:
ShapeletInterpolation.cc:186
lsst::meas::algorithms::ShapeletInterpolation::pImpl
ShapeletInterpolationImpl * pImpl
Definition:
ShapeletInterpolation.h:159
Exposure.h
lsst::meas::algorithms::ShapeletInterpolation::Policy
lsst::pex::policy::Policy Policy
Definition:
ShapeletInterpolation.h:76
Generated on Thu Sep 24 2015 02:29:20 for LSSTApplications by
1.8.5