25 #if !defined(LSST_AFW_IMAGE_SLICE_H) 26 #define LSST_AFW_IMAGE_SLICE_H 45 template <
typename PixelT>
72 template <
typename PixelT>
76 template <
typename PixelT>
80 template <
typename PixelT>
84 template <
typename PixelT>
93 template <
typename OperatorT,
typename PixelT>
102 pImg !=
end; ++pImg, ++pSlc) {
103 *pImg = op(*pImg, *pSlc);
110 pImg !=
end; ++pImg) {
111 *pImg = op(*pImg, *pSlc);
128 template <
typename PixelT>
139 template <
typename PixelT>
150 template <
typename PixelT>
163 template <
typename PixelT>
174 template <
typename PixelT>
187 template <
typename PixelT>
198 template <
typename PixelT>
209 template <
typename PixelT>
222 template <
typename PixelT>
233 template <
typename PixelT>
std::shared_ptr< Image< PixelT > > operator/(Image< PixelT > const &img, ImageSlice< PixelT > const &slc)
Overload operator/()
Image & operator*=(PixelT const rhs)
Multiply lhs by scalar rhs.
ImageSliceType getImageSliceType() const
ImageSlice(Image< PixelT > const &img)
Constructor for ImageSlice.
int getHeight() const
Return the number of rows in the image.
std::shared_ptr< Image< PixelT > > operator*(Image< PixelT > const &img, ImageSlice< PixelT > const &slc)
Overload operator*()
Image & operator/=(PixelT const rhs)
Divide lhs by scalar rhs.
std::shared_ptr< Image< PixelT > > operator+(Image< PixelT > const &img, ImageSlice< PixelT > const &slc)
Overload operator+()
_view_t::x_iterator x_iterator
An iterator for traversing the pixels in a row.
x_iterator row_begin(int y) const
Return an x_iterator to the start of the y'th row.
PixelT operator()(PixelT const imgPix, PixelT const slcPix)
iterator end() const
Return an STL compliant iterator to the end of the image.
Image & operator-=(PixelT const rhs)
Subtract scalar rhs from lhs.
y_iterator col_begin(int x) const
Return an y_iterator to the start of the y'th row.
A base class for image defects.
void operate(Image< PixelT > &img, ImageSlice< PixelT > const &slc, typename ImageSlice< PixelT >::ImageSliceType sliceType)
A function to loop over pixels and perform the requested operation.
_view_t::y_iterator y_iterator
An iterator for traversing the pixels in a column.
Image & operator+=(PixelT const rhs)
Add scalar rhs to lhs.
PixelT operator()(PixelT const imgPix, PixelT const slcPix)
std::shared_ptr< Image< PixelT > > operator-(Image< PixelT > const &img, ImageSlice< PixelT > const &slc)
Overload operator-()
PixelT operator()(PixelT const imgPix, PixelT const slcPix)
x_iterator row_end(int y) const
Return an x_iterator to the end of the y'th row.
Backwards-compatibility support for depersisting the old Calib (FluxMag0/FluxMag0Err) objects...
A class to represent a 2-dimensional array of pixels.
PixelT operator()(PixelT const imgPix, PixelT const slcPix)
A class to specify a slice of an image.