LSSTApplications
10.0-2-g4f67435,11.0.rc2+1,11.0.rc2+12,11.0.rc2+3,11.0.rc2+4,11.0.rc2+5,11.0.rc2+6,11.0.rc2+7,11.0.rc2+8
LSSTDataManagementBasePackage
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
home
lsstsw
stack
Linux64
meas_base
11.0.rc2+12
include
lsst
meas
base
PixelFlags.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_BASE_PixelFlags_h_INCLUDED
25
#define LSST_MEAS_BASE_PixelFlags_h_INCLUDED
26
32
#include "
lsst/pex/config.h
"
33
#include "
lsst/afw/image/Exposure.h
"
34
#include "
lsst/meas/base/Algorithm.h
"
35
#include "
lsst/meas/base/FlagHandler.h
"
36
#include "
lsst/meas/base/InputUtilities.h
"
37
38
namespace
lsst {
namespace
meas {
namespace
base {
39
43
class
PixelFlagsControl
{
44
public
:
45
51
PixelFlagsControl
() {}
52
};
53
54
59
class
PixelFlagsAlgorithm
:
public
SimpleAlgorithm
{
60
public
:
61
67
enum
{
68
FAILURE
=
FlagHandler::FAILURE
,
69
EDGE
,
70
INTERPOLATED
,
71
INTERPOLATED_CENTER
,
72
SATURATED
,
73
SATURATED_CENTER
,
74
CR
,
75
CR_CENTER
,
76
BAD
,
77
N_FLAGS
78
};
79
82
typedef
PixelFlagsControl
Control
;
83
84
PixelFlagsAlgorithm
(
Control
const
& ctrl, std::string
const
&
name
,
afw::table::Schema
&
schema
);
85
86
virtual
void
measure
(
87
afw::table::SourceRecord
& measRecord,
88
afw::image::Exposure<float>
const
& exposure
89
)
const
;
90
91
virtual
void
fail
(
92
afw::table::SourceRecord
& measRecord,
93
MeasurementError
*
error
=NULL
94
)
const
;
95
96
private
:
97
98
Control
_ctrl
;
99
FlagHandler
_flagHandler
;
100
SafeCentroidExtractor
_centroidExtractor
;
101
};
102
103
}}}
// namespace lsst::meas::base
104
105
#endif // !LSST_MEAS_BASE_PixelFlags_h_INCLUDED
lsst.afw.table::Schema
Defines the fields and offsets for a table.
Definition:
Schema.h:46
lsst::meas::base::PixelFlagsAlgorithm::INTERPOLATED
Definition:
PixelFlags.h:70
name
table::Key< std::string > name
Definition:
ApCorrMap.cc:71
lsst::meas::base::FlagHandler::FAILURE
Definition:
FlagHandler.h:49
lsst.afw.image::Exposure< float >
lsst::meas::base::PixelFlagsAlgorithm::SATURATED
Definition:
PixelFlags.h:72
FlagHandler.h
config.h
lsst::meas::base::PixelFlagsControl::PixelFlagsControl
PixelFlagsControl()
Default constructor.
Definition:
PixelFlags.h:51
lsst::meas::base::SafeCentroidExtractor
Definition:
InputUtilities.h:37
lsst::meas::base::MeasurementError
Exception to be thrown when a measurement algorithm experiences a known failure mode.
Definition:
exceptions.h:48
lsst::meas::base::PixelFlagsAlgorithm::_ctrl
Control _ctrl
Definition:
PixelFlags.h:98
lsst::meas::base::PixelFlagsAlgorithm::N_FLAGS
Definition:
PixelFlags.h:77
lsst::meas::base::PixelFlagsAlgorithm
A measurement algorithm that gets mask bits from the exposure and sets flag bits to summarize which b...
Definition:
PixelFlags.h:59
lsst::meas::base::PixelFlagsAlgorithm::measure
virtual void measure(afw::table::SourceRecord &measRecord, afw::image::Exposure< float > const &exposure) const
Definition:
PixelFlags.cc:82
lsst.log.log.error
def error
Definition:
log.py:108
InputUtilities.h
lsst::meas::base::FlagHandler
Definition:
FlagHandler.h:46
lsst::meas::base::PixelFlagsAlgorithm::CR
Definition:
PixelFlags.h:74
lsst::meas::base::PixelFlagsAlgorithm::fail
virtual void fail(afw::table::SourceRecord &measRecord, MeasurementError *error=NULL) const
Definition:
PixelFlags.cc:139
Algorithm.h
lsst::meas::base::PixelFlagsAlgorithm::_flagHandler
FlagHandler _flagHandler
Definition:
PixelFlags.h:99
lsst::meas::base::PixelFlagsAlgorithm::PixelFlagsAlgorithm
PixelFlagsAlgorithm(Control const &ctrl, std::string const &name, afw::table::Schema &schema)
Definition:
PixelFlags.cc:61
lsst::meas::base::PixelFlagsAlgorithm::BAD
Definition:
PixelFlags.h:76
lsst::meas::base::PixelFlagsAlgorithm::FAILURE
Definition:
PixelFlags.h:68
schema
tbl::Schema schema
Definition:
CoaddBoundedField.cc:98
lsst::meas::base::PixelFlagsAlgorithm::INTERPOLATED_CENTER
Definition:
PixelFlags.h:71
lsst::meas::base::PixelFlagsControl
A C++ control class to handle PixelFlagsAlgorithm's configuration.
Definition:
PixelFlags.h:43
lsst::meas::base::SimpleAlgorithm
Definition:
Algorithm.h:177
lsst::meas::base::PixelFlagsAlgorithm::SATURATED_CENTER
Definition:
PixelFlags.h:73
lsst::meas::base::PixelFlagsAlgorithm::EDGE
Definition:
PixelFlags.h:69
lsst.afw.table::SourceRecord
Record class that contains measurements made on a single exposure.
Definition:
Source.h:81
lsst::meas::base::PixelFlagsAlgorithm::Control
PixelFlagsControl Control
Definition:
PixelFlags.h:82
Exposure.h
lsst::meas::base::PixelFlagsAlgorithm::CR_CENTER
Definition:
PixelFlags.h:75
lsst::meas::base::PixelFlagsAlgorithm::_centroidExtractor
SafeCentroidExtractor _centroidExtractor
Definition:
PixelFlags.h:100
Generated on Wed Sep 16 2015 13:35:32 for LSSTApplications by
1.8.5