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
SizeMagnitudeStarSelector.h
Go to the documentation of this file.
1
// -*- LSST-C++ -*-
2
#ifndef LSST_COADD_ALGORITHMS_SIZEMAGNITUDESTARFINDER_H
3
#define LSST_COADD_ALGORITHMS_SIZEMAGNITUDESTARFINDER_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 "boost/shared_ptr.hpp"
35
36
#include "
lsst/afw/table/Source.h
"
37
#include "
lsst/afw/table/Match.h
"
// because we can't forward-declare a typedef
38
#include "
lsst/afw/image/Exposure.h
"
39
#include "
lsst/afw/geom/Point.h
"
40
#include "
lsst/meas/algorithms/PsfCandidate.h
"
41
#include "
lsst/pex/policy/Policy.h
"
42
43
namespace
lsst {
44
namespace
meas {
45
namespace
algorithms {
46
47
class
SizeMagnitudeStarSelectorImpl;
48
49
class
SizeMagnitudeStarSelector
50
{
51
public
:
52
typedef
float
PixelT
;
53
typedef
lsst::afw::image::Exposure<PixelT>
Exposure
;
54
typedef
lsst::afw::geom::PointD
PointD
;
55
typedef
lsst::pex::policy::Policy
Policy
;
56
typedef
lsst::afw::table::SourceRecord
SourceRecord
;
57
typedef
lsst::afw::table::SourceTable
SourceTable
;
58
typedef
lsst::afw::table::SourceCatalog
SourceCatalog
;
59
typedef
lsst::meas::algorithms::PsfCandidate<PixelT>
PsfCandidateT
;
60
61
typedef
PsfCandidateT::PtrList
PsfCandidateList
;
62
68
SizeMagnitudeStarSelector
(
const
Policy
& policy);
69
73
~SizeMagnitudeStarSelector
() {};
74
86
PsfCandidateList
selectStars
(
87
const
Exposure
& exposure,
88
const
SourceCatalog
& sourceList,
89
CONST_PTR
(
afw::table::ReferenceMatchVector
) matches
90
=
CONST_PTR
(
afw::table::ReferenceMatchVector
)()
91
)
const
;
92
93
private
:
94
115
double
calculateSourceSize
(
116
const
SourceRecord
& source,
117
const
Exposure
& exposure
118
)
const
;
119
123
SizeMagnitudeStarSelector
(
const
SizeMagnitudeStarSelector
& rhs);
124
void
operator=
(
const
SizeMagnitudeStarSelector
& rhs);
125
126
boost::shared_ptr<SizeMagnitudeStarSelectorImpl>
pImpl
;
127
};
128
129
}}}
130
131
#endif
Point.h
A coordinate class intended to represent absolute positions.
lsst::meas::algorithms::SizeMagnitudeStarSelector::Policy
lsst::pex::policy::Policy Policy
Definition:
SizeMagnitudeStarSelector.h:55
lsst::meas::algorithms::SizeMagnitudeStarSelector::pImpl
boost::shared_ptr< SizeMagnitudeStarSelectorImpl > pImpl
Definition:
SizeMagnitudeStarSelector.h:126
lsst::meas::algorithms::SizeMagnitudeStarSelector::SourceRecord
lsst::afw::table::SourceRecord SourceRecord
Definition:
SizeMagnitudeStarSelector.h:56
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
lsst::meas::algorithms::SizeMagnitudeStarSelector::~SizeMagnitudeStarSelector
~SizeMagnitudeStarSelector()
Destructor.
Definition:
SizeMagnitudeStarSelector.h:73
lsst::meas::algorithms::SizeMagnitudeStarSelector::SourceTable
lsst::afw::table::SourceTable SourceTable
Definition:
SizeMagnitudeStarSelector.h:57
lsst::afw::table::ReferenceMatchVector
std::vector< ReferenceMatch > ReferenceMatchVector
Definition:
fwd.h:97
Source.h
lsst::meas::algorithms::SizeMagnitudeStarSelector::selectStars
PsfCandidateList selectStars(const Exposure &exposure, const SourceCatalog &sourceList, boost::shared_ptr< afw::table::ReferenceMatchVector const > matches=boost::shared_ptr< afw::table::ReferenceMatchVector const >()) const
Find a set of stars from an input list of Sources.
Definition:
SizeMagnitudeStarSelector.cc:133
lsst::afw::geom::Point< double, 2 >
lsst::meas::algorithms::SizeMagnitudeStarSelector::SourceCatalog
lsst::afw::table::SourceCatalog SourceCatalog
Definition:
SizeMagnitudeStarSelector.h:58
lsst::meas::algorithms::SizeMagnitudeStarSelector::PixelT
float PixelT
Definition:
SizeMagnitudeStarSelector.h:52
lsst::meas::algorithms::SizeMagnitudeStarSelector::Exposure
lsst::afw::image::Exposure< PixelT > Exposure
Definition:
SizeMagnitudeStarSelector.h:53
PsfCandidate.h
Class used by SpatialCell for spatial PSF fittig.
lsst::afw::table::SortedCatalogT
Custom catalog class for record/table subclasses that are guaranteed to have an ID, and should generally be sorted by that ID.
Definition:
fwd.h:55
lsst::meas::algorithms::SizeMagnitudeStarSelector::PsfCandidateList
PsfCandidateT::PtrList PsfCandidateList
Definition:
SizeMagnitudeStarSelector.h:61
lsst::meas::algorithms::SizeMagnitudeStarSelector::PointD
lsst::afw::geom::PointD PointD
Definition:
SizeMagnitudeStarSelector.h:54
lsst::meas::algorithms::SizeMagnitudeStarSelector::SizeMagnitudeStarSelector
SizeMagnitudeStarSelector(const Policy &policy)
Create a size-magnitude star selector from a policy.
Definition:
SizeMagnitudeStarSelector.cc:58
lsst::meas::algorithms::SizeMagnitudeStarSelector::operator=
void operator=(const SizeMagnitudeStarSelector &rhs)
lsst::meas::algorithms::SizeMagnitudeStarSelector::PsfCandidateT
lsst::meas::algorithms::PsfCandidate< PixelT > PsfCandidateT
Definition:
SizeMagnitudeStarSelector.h:59
lsst::afw::table::SourceTable
Table class that contains measurements made on a single exposure.
Definition:
Source.h:203
Match.h
lsst::meas::algorithms::SizeMagnitudeStarSelector::calculateSourceSize
double calculateSourceSize(const SourceRecord &source, const Exposure &exposure) const
Calculates a robust size measurement for a source.
Definition:
SizeMagnitudeStarSelector.cc:99
Policy.h
CONST_PTR
#define CONST_PTR(...)
Definition:
base.h:47
lsst::afw::table::SourceRecord
Record class that contains measurements made on a single exposure.
Definition:
Source.h:81
lsst::meas::algorithms::SizeMagnitudeStarSelector
Definition:
SizeMagnitudeStarSelector.h:49
lsst::meas::algorithms::PsfCandidate::PtrList
std::vector< Ptr > PtrList
Definition:
PsfCandidate.h:67
lsst::meas::algorithms::PsfCandidate
Class stored in SpatialCells for spatial Psf fitting.
Definition:
PsfCandidate.h:57
Exposure.h
Generated on Thu Sep 24 2015 02:29:20 for LSSTApplications by
1.8.5