LSSTApplications  21.0.0+1b62c9342b,21.0.0+45a059f35e,21.0.0-1-ga51b5d4+ceb9cf20a3,21.0.0-2-g103fe59+4d13aff7ba,21.0.0-2-g1367e85+571a348718,21.0.0-2-g2909d54+45a059f35e,21.0.0-2-g45278ab+1b62c9342b,21.0.0-2-g4bc9b9f+ebfe466dad,21.0.0-2-g5242d73+571a348718,21.0.0-2-g54e2caa+07cebfb09d,21.0.0-2-g66bcc37+0b2c5d3971,21.0.0-2-g7f82c8f+08f1f55c36,21.0.0-2-g8dde007+5d1b9cb3f5,21.0.0-2-g8f08a60+73884b2cf5,21.0.0-2-ga326454+08f1f55c36,21.0.0-2-ga63a54e+458e82fbcd,21.0.0-2-gc738bc1+8c4731df06,21.0.0-2-gde069b7+5a8f2956b8,21.0.0-2-ge17e5af+571a348718,21.0.0-2-ge712728+cfa36ee5f9,21.0.0-2-gecfae73+e597808034,21.0.0-2-gfc62afb+571a348718,21.0.0-20-g4449a12+6d1341e0f3,21.0.0-22-gf0532904+1cd928f0c5,21.0.0-3-g4c5b185+c3794955c6,21.0.0-3-g6d51c4a+0b2c5d3971,21.0.0-3-g8076721+5adeb471db,21.0.0-3-gaa929c8+01f4b7cfca,21.0.0-3-gd222c45+afc8332dbe,21.0.0-4-g1383c07+0b2c5d3971,21.0.0-4-g3300ddd+1b62c9342b,21.0.0-4-g5873dc9+9a92674037,21.0.0-4-g8a80011+bd904b6426,21.0.0-5-gcff38f6+844b7f7b93,21.0.0-6-g463d161+18af5fb57b,21.0.0-6-gd3283ba+01f4b7cfca,21.0.0-8-g19111d86+8234efb485,21.0.0-9-g7bed000b9+c7d3cce47e,w.2021.04
LSSTDataManagementBasePackage
ImageBase.h
Go to the documentation of this file.
1 // -*- lsst-c++ -*-
2 
3 /*
4  * LSST Data Management System
5  * Copyright 2008, 2009, 2010 LSST Corporation.
6  *
7  * This product includes software developed by the
8  * LSST Project (http://www.lsst.org/).
9  *
10  * This program is free software: you can redistribute it and/or modify
11  * it under the terms of the GNU General Public License as published by
12  * the Free Software Foundation, either version 3 of the License, or
13  * (at your option) any later version.
14  *
15  * This program is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18  * GNU General Public License for more details.
19  *
20  * You should have received a copy of the LSST License Statement and
21  * the GNU General Public License along with this program. If not,
22  * see <http://www.lsstcorp.org/LegalNotices/>.
23  */
24 
25 /*
26  * Support for 2-D images
27  *
28  * This file contains the basic 2-d image support for LSST
29  */
30 #ifndef LSST_AFW_IMAGE_IMAGEBASE_H
31 #define LSST_AFW_IMAGE_IMAGEBASE_H
32 
33 #include <string>
34 #include <utility>
35 #include <functional>
36 
37 #include <memory>
38 
39 #include "lsst/geom.h"
40 #include "lsst/afw/image/lsstGil.h"
42 #include "lsst/afw/math/Function.h"
43 #include "lsst/pex/exceptions.h"
44 #include "ndarray.h"
45 
46 namespace lsst {
47 namespace afw {
48 
49 namespace fits {
50 class Fits;
51 class MemFileManager;
52 struct ImageWriteOptions;
53 } // namespace fits
54 
55 namespace image {
56 namespace detail {
57 //
58 // Traits for image types
59 //
61 struct basic_tag {};
63 struct Image_tag : public basic_tag {};
65 template <typename ImageT>
66 struct image_traits {
67  typedef typename ImageT::image_category image_category;
68 };
69 //
70 std::string const wcsNameForXY0 = "A"; // the name of the WCS to use to save (X0, Y0) to FITS files; e.g. "A"
71 } // namespace detail
72 
74 class CheckIndices {
75 public:
76  explicit CheckIndices(bool check = true) : _check(check) {}
77  operator bool() const { return _check; }
78 
79 private:
80  bool _check;
81 };
82 
84 template <typename PixelT>
85 struct Reference {
86  typedef typename boost::gil::channel_traits<PixelT>::reference type;
87 };
89 template <typename PixelT>
91  typedef typename boost::gil::channel_traits<PixelT>::const_reference type;
92 };
93 
95 
97 //
98 // You are not expected to use this class directly in your own code; use one of the
99 // specialised subclasses
100 //
101 template <typename PixelT>
102 class ImageBase {
103 private:
104  typedef typename lsst::afw::image::detail::types_traits<PixelT>::view_t _view_t;
105  typedef typename lsst::afw::image::detail::types_traits<PixelT>::const_view_t _const_view_t;
106 
107  typedef ndarray::Manager Manager;
108 
109 public:
111 
115  typedef PixelT Pixel;
121  typedef typename _view_t::xy_locator xy_locator;
123  typedef typename _view_t::xy_locator::const_t const_xy_locator;
125  typedef typename _view_t::iterator iterator;
127  typedef typename _const_view_t::iterator const_iterator;
129  typedef typename _view_t::reverse_iterator reverse_iterator;
131  typedef typename _const_view_t::reverse_iterator const_reverse_iterator;
133  typedef typename _view_t::x_iterator x_iterator;
139  typedef typename _view_t::x_iterator xy_x_iterator;
141  typedef typename _const_view_t::x_iterator const_x_iterator;
143  typedef typename _view_t::y_iterator y_iterator;
145  typedef typename _view_t::y_iterator xy_y_iterator;
147  typedef typename _const_view_t::y_iterator const_y_iterator;
149  typedef typename ndarray::Array<PixelT, 2, 1> Array;
151  typedef typename ndarray::Array<PixelT const, 2, 1> ConstArray;
152 
153  template <typename OtherPixelT>
154  friend class ImageBase; // needed by generalised copy constructors
155 
157  template <typename SinglePixelT>
158  static SinglePixel PixelCast(SinglePixelT rhs) {
159  return SinglePixel(rhs);
160  }
161  //
162  // DecoratedImage needs enough access to ImageBase to read data from disk; we might be able to design
163  // around this
164  //
165  template <typename>
166  friend class DecoratedImage;
167  template <typename, typename, typename>
168  friend class MaskedImage;
181  explicit ImageBase(const lsst::geom::Box2I& bbox);
192  ImageBase(const ImageBase& src, const bool deep = false);
208  explicit ImageBase(const ImageBase& src, const lsst::geom::Box2I& bbox, const ImageOrigin origin = PARENT,
209  const bool deep = false);
216  template <typename OtherPixelT>
217  ImageBase(const ImageBase<OtherPixelT>& rhs, const bool deep) {
218  if (!deep) {
220  "Only deep copies are permitted for ImageBases with different pixel types");
221  }
222 
223  ImageBase<PixelT> tmp(rhs.getBBox());
224  copy_and_convert_pixels(rhs._gilView, tmp._gilView); // from boost::gil
225 
226  using std::swap; // See Meyers, Effective C++, Item 25
227  ImageBase<PixelT>::swap(tmp); // See Meyers, Effective C++, Items 11 and 43
228  }
229 
239  explicit ImageBase(Array const& array, bool deep = false,
241 
242  virtual ~ImageBase() = default;
251  ImageBase& operator=(const ImageBase& rhs);
252  ImageBase& operator=(ImageBase&& rhs);
254  ImageBase& operator=(const PixelT rhs);
255 
267  void assign(ImageBase const& rhs, lsst::geom::Box2I const& bbox = lsst::geom::Box2I(),
268  ImageOrigin origin = PARENT);
269 
270  // TODO: should deprecate these, but the replacement should take two ints
271  // rather than a Point2I, to keep C++ loops simple
273  PixelReference operator()(int x, int y);
275  PixelReference operator()(int x, int y, CheckIndices const&);
277  PixelConstReference operator()(int x, int y) const;
279  PixelConstReference operator()(int x, int y, CheckIndices const&) const;
280 
282  PixelReference get(lsst::geom::Point2I const& index, ImageOrigin origin);
283 
285  PixelConstReference get(lsst::geom::Point2I const& index, ImageOrigin origin) const;
286 
288  PixelReference operator[](lsst::geom::Point2I const& index) { return get(index, PARENT); }
289 
291  PixelConstReference operator[](lsst::geom::Point2I const& index) const { return get(index, PARENT); }
292 
294  int getWidth() const { return _gilView.width(); }
296  int getHeight() const { return _gilView.height(); }
304  int getX0() const { return _origin.getX(); }
312  int getY0() const { return _origin.getY(); }
313 
321  lsst::geom::Point2I getXY0() const { return _origin; }
322 
329  double const pos,
330  lsst::afw::image::xOrY const xy
331  ) const {
332  double const fullIndex = pos - PixelZeroPos - (xy == X ? getX0() : getY0());
333  int const roundedIndex = static_cast<int>(fullIndex + 0.5);
334  double const residual = fullIndex - roundedIndex;
335  return std::pair<int, double>(roundedIndex, residual);
336  }
337 
347  inline double indexToPosition(double ind,
348  lsst::afw::image::xOrY const xy
349  ) const {
350  return ind + PixelZeroPos + (xy == X ? getX0() : getY0());
351  }
352 
355 
356  void swap(ImageBase& rhs);
357 
360  //
361  // Iterators and Locators
362  //
368  iterator begin() const;
370  iterator end() const;
372  reverse_iterator rbegin() const;
374  reverse_iterator rend() const;
376  iterator at(int x, int y) const;
377 
385  fast_iterator begin(bool contiguous) const;
393  fast_iterator end(bool contiguous) const;
394 
399  x_iterator row_begin(int y) const { return _gilView.row_begin(y); }
400 
402  x_iterator row_end(int y) const { return _gilView.row_end(y); }
403 
405  x_iterator x_at(int x, int y) const { return _gilView.x_at(x, y); }
406 
411  y_iterator col_begin(int x) const { return _gilView.col_begin(x); }
412 
414  y_iterator col_end(int x) const { return _gilView.col_end(x); }
415 
417  y_iterator y_at(int x, int y) const { return _gilView.y_at(x, y); }
418 
423  xy_locator xy_at(int x, int y) const { return xy_locator(_gilView.xy_at(x, y)); }
432  void setXY0(lsst::geom::Point2I const origin) { _origin = origin; }
441  void setXY0(int const x0, int const y0) { setXY0(lsst::geom::Point2I(x0, y0)); }
442 
444  if (origin == PARENT) {
445  return lsst::geom::Box2I(_origin, getDimensions());
446  } else
448  }
449 
450 private:
451  lsst::geom::Point2I _origin;
452  Manager::Ptr _manager;
453  _view_t _gilView;
454 
455  // oring of ImageBase in some larger image as returned to and manipulated
456  // by the user
457 
458 protected:
459  static _view_t _allocateView(lsst::geom::Extent2I const& dimensions, Manager::Ptr& manager);
460  static _view_t _makeSubView(lsst::geom::Extent2I const& dimensions, lsst::geom::Extent2I const& offset,
461  const _view_t& view);
462 
463  _view_t _getRawView() const { return _gilView; }
464 
465  inline bool isContiguous() const { return begin() + getWidth() * getHeight() == end(); }
466 };
467 
468 template <typename PixelT>
469 void swap(ImageBase<PixelT>& a, ImageBase<PixelT>& b);
470 
471 // Inline template definitions
472 
473 template <typename PixelT>
475  int rowStride = reinterpret_cast<PixelT*>(row_begin(1)) - reinterpret_cast<PixelT*>(row_begin(0));
476  return ndarray::external(reinterpret_cast<PixelT*>(row_begin(0)),
477  ndarray::makeVector(getHeight(), getWidth()), ndarray::makeVector(rowStride, 1),
478  this->_manager);
479 }
480 
481 template <typename PixelT>
483  int rowStride = reinterpret_cast<PixelT*>(row_begin(1)) - reinterpret_cast<PixelT*>(row_begin(0));
484  return ndarray::external(reinterpret_cast<PixelT*>(row_begin(0)),
485  ndarray::makeVector(getHeight(), getWidth()), ndarray::makeVector(rowStride, 1),
486  this->_manager);
487 }
488 
489 } // namespace image
490 } // namespace afw
491 } // namespace lsst
492 
493 #endif
y
int y
Definition: SpanSet.cc:49
lsst::afw::image
Backwards-compatibility support for depersisting the old Calib (FluxMag0/FluxMag0Err) objects.
Definition: imageAlgorithm.dox:1
exceptions.h
lsst::afw::image::ImageBase::col_begin
y_iterator col_begin(int x) const
Return an y_iterator to the start of the y'th row.
Definition: ImageBase.h:411
lsst::afw::image::ImageBase::_allocateView
static _view_t _allocateView(lsst::geom::Extent2I const &dimensions, Manager::Ptr &manager)
Definition: Image.cc:58
lsst::afw::image::LOCAL
@ LOCAL
Definition: ImageBase.h:94
lsst::afw::image::DecoratedImage
A container for an Image and its associated metadata.
Definition: Image.h:404
lsst::afw::image::ImageBase::Array
ndarray::Array< PixelT, 2, 1 > Array
A mutable ndarray representation of the image.
Definition: ImageBase.h:149
lsst::afw::image::ImageBase::assign
void assign(ImageBase const &rhs, lsst::geom::Box2I const &bbox=lsst::geom::Box2I(), ImageOrigin origin=PARENT)
Copy pixels from another image to a specified subregion of this image.
Definition: Image.cc:160
std::string
STL class.
lsst::afw::image::ImageBase::rbegin
reverse_iterator rbegin() const
Return an STL compliant reverse iterator to the start of the image.
Definition: Image.cc:267
lsst::afw::image::ImageBase::ConstArray
ndarray::Array< PixelT const, 2, 1 > ConstArray
An immutable ndarray representation of the image.
Definition: ImageBase.h:151
lsst::afw::image::ImageBase::ImageBase
ImageBase(const ImageBase< OtherPixelT > &rhs, const bool deep)
generalised copy constructor
Definition: ImageBase.h:217
std::pair
lsst::afw::image::ImageBase::isContiguous
bool isContiguous() const
Definition: ImageBase.h:465
lsst::afw::image::ImageBase::xy_y_iterator
_view_t::y_iterator xy_y_iterator
An iterator for traversing the pixels in a row, created from an xy_locator.
Definition: ImageBase.h:145
lsst::afw::image::PixelZeroPos
const double PixelZeroPos
position of center of pixel 0
Definition: ImageUtils.h:44
lsst::afw::image::ImageBase::const_reverse_iterator
_const_view_t::reverse_iterator const_reverse_iterator
An STL compliant const reverse iterator.
Definition: ImageBase.h:131
lsst::afw::image::ImageBase::y_at
y_iterator y_at(int x, int y) const
Return an y_iterator to the point (x, y) in the image.
Definition: ImageBase.h:417
lsst::afw::image::ImageBase::rend
reverse_iterator rend() const
Return an STL compliant reverse iterator to the end of the image.
Definition: Image.cc:272
lsst::afw::image::ImageBase::at
iterator at(int x, int y) const
Return an STL compliant iterator at the point (x, y)
Definition: Image.cc:277
lsst::afw::image::ImageBase::end
iterator end() const
Return an STL compliant iterator to the end of the image.
Definition: Image.cc:262
lsst::afw::image::ImageBase::row_begin
x_iterator row_begin(int y) const
Return an x_iterator to the start of the y'th row.
Definition: ImageBase.h:399
lsst::ip::diffim::detail::PixelT
float PixelT
Definition: AssessSpatialKernelVisitor.cc:208
lsst::afw
Definition: imageAlgorithm.dox:1
lsst::afw::image::ImageBase::reverse_iterator
_view_t::reverse_iterator reverse_iterator
An STL compliant reverse iterator.
Definition: ImageBase.h:129
geom.h
lsst::afw::image::ImageBase::const_iterator
_const_view_t::iterator const_iterator
An STL compliant const iterator.
Definition: ImageBase.h:127
lsst::afw::image::ImageBase::_getRawView
_view_t _getRawView() const
Definition: ImageBase.h:463
lsst::afw::image::ImageBase::indexToPosition
double indexToPosition(double ind, lsst::afw::image::xOrY const xy) const
Convert image index to image position.
Definition: ImageBase.h:347
lsst::afw::image::ImageBase::y_iterator
_view_t::y_iterator y_iterator
An iterator for traversing the pixels in a column.
Definition: ImageBase.h:143
lsst::afw::image::ImageBase::getArray
ConstArray getArray() const
Definition: ImageBase.h:482
lsst::afw::image::ImageBase::xy_locator
_view_t::xy_locator xy_locator
An xy_locator.
Definition: ImageBase.h:121
lsst::afw::image::ImageBase::positionToIndex
std::pair< int, double > positionToIndex(double const pos, lsst::afw::image::xOrY const xy) const
Convert image position to index (nearest integer and fractional parts)
Definition: ImageBase.h:328
lsst::afw::image::ImageBase::operator=
ImageBase & operator=(const ImageBase &rhs)
Shallow assignment operator.
Definition: Image.cc:147
lsst::afw::image::X
@ X
Definition: ImageUtils.h:36
lsst::afw::image::ImageBase::~ImageBase
virtual ~ImageBase()=default
lsst::afw::image::ImageBase::operator[]
PixelConstReference operator[](lsst::geom::Point2I const &index) const
Return a reference to a single pixel in PARENT coordinates (with no bounds check).
Definition: ImageBase.h:291
lsst::afw::image::ImageBase::getHeight
int getHeight() const
Return the number of rows in the image.
Definition: ImageBase.h:296
lsst::afw::image::detail::image_traits::image_category
ImageT::image_category image_category
Definition: ImageBase.h:67
lsst::afw::image::ImageBase::operator()
PixelReference operator()(int x, int y)
Return a reference to the pixel (x, y) in LOCAL coordinates.
Definition: Image.cc:178
src
std::shared_ptr< RecordT > src
Definition: Match.cc:48
lsst::afw::image::ImageBase::x_at
x_iterator x_at(int x, int y) const
Return an x_iterator to the point (x, y) in the image.
Definition: ImageBase.h:405
lsst::afw::image::ConstReference
metafunction to extract const reference type from PixelT
Definition: ImageBase.h:90
lsst::afw::image::Reference
metafunction to extract reference type from PixelT
Definition: ImageBase.h:85
fits
Fits * fits
Definition: FitsWriter.cc:90
lsst::afw::image::ImageBase::operator[]
PixelReference operator[](lsst::geom::Point2I const &index)
Return a reference to a single pixel in PARENT coordinates (with no bounds check).
Definition: ImageBase.h:288
lsst::afw::image::MaskedImage
A class to manipulate images, masks, and variance as a single object.
Definition: MaskedImage.h:73
lsst::afw::image::ImageBase::begin
iterator begin() const
Return an STL compliant iterator to the start of the image.
Definition: Image.cc:257
lsst::afw::image::ImageBase::PixelReference
Reference< PixelT >::type PixelReference
A Reference to a PixelT.
Definition: ImageBase.h:117
lsst::afw::image::ImageBase::xy_at
xy_locator xy_at(int x, int y) const
Return an xy_locator at the point (x, y) in the image.
Definition: ImageBase.h:423
lsst::afw::image::ImageBase::row_end
x_iterator row_end(int y) const
Return an x_iterator to the end of the y'th row.
Definition: ImageBase.h:402
x
double x
Definition: ChebyshevBoundedField.cc:277
lsst::afw::image::ImageBase::_makeSubView
static _view_t _makeSubView(lsst::geom::Extent2I const &dimensions, lsst::geom::Extent2I const &offset, const _view_t &view)
Definition: Image.cc:78
lsst::afw::image::ImageBase::const_y_iterator
_const_view_t::y_iterator const_y_iterator
A const iterator for traversing the pixels in a column.
Definition: ImageBase.h:147
lsst::afw::image::ImageBase::getArray
Array getArray()
Definition: ImageBase.h:474
dimensions
afw::table::PointKey< int > dimensions
Definition: GaussianPsf.cc:49
lsst::afw::image::CheckIndices
A class used to request that array accesses be checked.
Definition: ImageBase.h:74
lsst::afw::image::ImageBase::x_iterator
_view_t::x_iterator x_iterator
An iterator for traversing the pixels in a row.
Definition: ImageBase.h:133
b
table::Key< int > b
Definition: TransmissionCurve.cc:467
lsst
A base class for image defects.
Definition: imageAlgorithm.dox:1
lsst::afw::image::detail::wcsNameForXY0
std::string const wcsNameForXY0
Definition: ImageBase.h:70
LSST_EXCEPT
#define LSST_EXCEPT(type,...)
Create an exception with a given type.
Definition: Exception.h:48
lsst::afw::image::detail::Image_tag
tag for an Image
Definition: ImageBase.h:63
std::swap
T swap(T... args)
lsst::afw::image::ImageBase::getX0
int getX0() const
Return the image's column-origin.
Definition: ImageBase.h:304
lsst::afw::image::ImageBase::SinglePixel
PixelT SinglePixel
A single Pixel of the same type as those in the ImageBase.
Definition: ImageBase.h:113
lsst::afw::image::ImageBase::getDimensions
lsst::geom::Extent2I getDimensions() const
Return the image's size; useful for passing to constructors.
Definition: ImageBase.h:354
lsst::afw::image::ImageBase::fast_iterator
x_iterator fast_iterator
A fast STL compliant iterator for contiguous images N.b.
Definition: ImageBase.h:137
lsst.pex::exceptions::InvalidParameterError
Reports invalid arguments.
Definition: Runtime.h:66
lsst::afw::image::ImageBase::xy_x_iterator
_view_t::x_iterator xy_x_iterator
An iterator for traversing the pixels in a row, created from an xy_locator.
Definition: ImageBase.h:139
a
table::Key< int > a
Definition: TransmissionCurve.cc:466
lsst::geom::Extent2I
Extent< int, 2 > Extent2I
Definition: Extent.h:397
lsst::geom::Point< int, 2 >
lsst::afw::image::ImageBase::iterator
_view_t::iterator iterator
An STL compliant iterator.
Definition: ImageBase.h:125
lsst::geom::Box2I
An integer coordinate rectangle.
Definition: Box.h:55
lsst::afw::image::PARENT
@ PARENT
Definition: ImageBase.h:94
lsst::afw::image::ImageBase::setXY0
void setXY0(int const x0, int const y0)
Set the ImageBase's origin.
Definition: ImageBase.h:441
lsst::afw::image::ImageBase::getXY0
lsst::geom::Point2I getXY0() const
Return the image's origin.
Definition: ImageBase.h:321
lsst::afw::image::swap
void swap(Image< PixelT > &a, Image< PixelT > &b)
Definition: Image.cc:450
lsst::afw::image::ImageBase::setXY0
void setXY0(lsst::geom::Point2I const origin)
Set the ImageBase's origin.
Definition: ImageBase.h:432
ImageUtils.h
lsst::afw::image::ImageBase::getY0
int getY0() const
Return the image's row-origin.
Definition: ImageBase.h:312
lsst::afw::image::ImageOrigin
ImageOrigin
Definition: ImageBase.h:94
lsst::afw::image::Reference::type
boost::gil::channel_traits< PixelT >::reference type
reference type
Definition: ImageBase.h:86
lsst::afw::image::CheckIndices::CheckIndices
CheckIndices(bool check=true)
Definition: ImageBase.h:76
lsst::afw::image::ImageBase::Pixel
PixelT Pixel
A pixel in this ImageBase.
Definition: ImageBase.h:115
lsst::afw::image::xOrY
xOrY
Definition: ImageUtils.h:36
lsst::afw::image::ImageBase::getBBox
lsst::geom::Box2I getBBox(ImageOrigin origin=PARENT) const
Definition: ImageBase.h:443
lsst::afw::image::ImageBase::const_x_iterator
_const_view_t::x_iterator const_x_iterator
A const iterator for traversing the pixels in a row.
Definition: ImageBase.h:141
lsst::afw::image::ImageBase::col_end
y_iterator col_end(int x) const
Return an y_iterator to the start of the y'th row.
Definition: ImageBase.h:414
lsst::afw::image::detail::image_traits
traits class for image categories
Definition: ImageBase.h:66
lsst::afw::image::ImageBase::swap
void swap(ImageBase &rhs)
Definition: Image.cc:240
lsst::afw::image::ImageBase::PixelConstReference
ConstReference< PixelT >::type PixelConstReference
A ConstReference to a PixelT.
Definition: ImageBase.h:119
lsst::afw::image::detail::basic_tag
Base image tag.
Definition: ImageBase.h:61
Function.h
lsst::afw::image::ImageBase
The base class for all image classed (Image, Mask, MaskedImage, ...)
Definition: ImageBase.h:102
lsst::geom::Extent< int, 2 >
lsst::afw::image::ImageBase::image_category
detail::basic_tag image_category
trait class to identify type of image
Definition: ImageBase.h:110
lsst::afw::image::ImageBase::get
PixelReference get(lsst::geom::Point2I const &index, ImageOrigin origin)
Return a reference to a single pixel (with no bounds check).
Definition: Image.cc:216
lsst::afw::image::ImageBase::ImageBase
friend class ImageBase
Definition: ImageBase.h:154
lsst::afw::image::ImageBase::getWidth
int getWidth() const
Return the number of columns in the image.
Definition: ImageBase.h:294
lsst::afw::image::ImageBase::PixelCast
static SinglePixel PixelCast(SinglePixelT rhs)
Convert a type to our SinglePixel type.
Definition: ImageBase.h:158
bbox
AmpInfoBoxKey bbox
Definition: Amplifier.cc:117
lsst::afw::image::ConstReference::type
boost::gil::channel_traits< PixelT >::const_reference type
const reference type
Definition: ImageBase.h:91
lsst::afw::image::ImageBase::const_xy_locator
_view_t::xy_locator::const_t const_xy_locator
A const_xy_locator.
Definition: ImageBase.h:123
lsstGil.h