| LSSTApplications
    20.0.0
    LSSTDataManagementBasePackage | 
 
 
 
Go to the documentation of this file.
   32 template <
typename MatchT>
 
   35     if (matchList.
empty()) {
 
   41     for (
auto const& match : matchList) {
 
   42         val.push_back(match.distance);
 
   47 template <
typename MatchT>
 
   51     if (matchList.
empty()) {
 
   57     for (
auto const& match : matchList) {
 
   58         auto refPtr = match.first;
 
   59         auto srcPtr = match.second;
 
   60         auto srcX = srcPtr->getX();
 
   61         auto srcY = srcPtr->getY();
 
   62         auto refPos = 
wcs.skyToPixel(refPtr->getCoord());
 
   63         auto refX = refPos[0];
 
   64         auto refY = refPos[1];
 
   65         val.push_back(::hypot(srcX - refX, srcY - refY));
 
   70 template <
typename MatchT>
 
   74     if (matchList.
empty()) {
 
   80     for (
auto const& match : matchList) {
 
   81         auto refPtr = match.first;
 
   82         auto srcPtr = match.second;
 
   83         auto refCoord = refPtr->getCoord();
 
   84         auto srcCoord = 
wcs.pixelToSky(srcPtr->getCentroid());
 
   85         auto angSep = refCoord.separation(srcCoord);
 
   86         val.push_back(angSep.asRadians());
 
   91 #define INSTANTIATE(MATCH)                                                                                \ 
   92     template afw::math::Statistics makeMatchStatistics<MATCH>(std::vector<MATCH> const& matchList,        \ 
   94                                                               afw::math::StatisticsControl const& sctrl); \ 
   95     template afw::math::Statistics makeMatchStatisticsInPixels<MATCH>(                                    \ 
   96             afw::geom::SkyWcs const& wcs, std::vector<MATCH> const& matchList, int const flags,           \ 
   97             afw::math::StatisticsControl const& sctrl);                                                   \ 
   98     template afw::math::Statistics makeMatchStatisticsInRadians<MATCH>(                                   \ 
   99             afw::geom::SkyWcs const& wcs, std::vector<MATCH> const& matchList, int const flags,           \ 
  100             afw::math::StatisticsControl const& sctrl); 
  
table::Key< table::Array< std::uint8_t > > wcs
A 2-dimensional celestial WCS that transform pixels to ICRS RA/Dec, using the LSST standard for pixel...
afw::math::Statistics makeMatchStatistics(std::vector< MatchT > const &matchList, int const flags, afw::math::StatisticsControl const &sctrl=afw::math::StatisticsControl())
Compute statistics of the distance field of a match list.
afw::math::Statistics makeMatchStatisticsInRadians(afw::geom::SkyWcs const &wcs, std::vector< MatchT > const &matchList, int const flags, afw::math::StatisticsControl const &sctrl=afw::math::StatisticsControl())
Compute statistics of on-sky radial separation for a match list, in radians.
Statistics makeStatistics(lsst::afw::image::Image< Pixel > const &img, lsst::afw::image::Mask< image::MaskPixel > const &msk, int const flags, StatisticsControl const &sctrl=StatisticsControl())
Handle a watered-down front-end to the constructor (no variance)
afw::math::Statistics makeMatchStatisticsInPixels(afw::geom::SkyWcs const &wcs, std::vector< MatchT > const &matchList, int const flags, afw::math::StatisticsControl const &sctrl=afw::math::StatisticsControl())
Compute statistics of on-detector radial separation for a match list, in pixels.
Lightweight representation of a geometric match between two records.
A base class for image defects.
#define LSST_EXCEPT(type,...)
Create an exception with a given type.
Pass parameters to a Statistics object.
#define INSTANTIATE(MATCH)
Reports errors that are due to events beyond the control of the program.