25 #if !defined(LSST_AFW_IMAGE_SLICE_H)
26 #define LSST_AFW_IMAGE_SLICE_H
53 template<
typename PixelT>
77 template<
typename PixelT>
79 template<
typename PixelT>
81 template<
typename PixelT>
83 template<
typename PixelT>
91 template<
typename OperatorT,
typename PixelT>
101 pImg != end; ++pImg, ++pSlc) {
102 *pImg = op(*pImg, *pSlc);
110 pImg != end; ++pImg) {
111 *pImg = op(*pImg, *pSlc);
122 template<
typename PixelT>
125 template<
typename PixelT>
128 template<
typename PixelT>
129 void operator+=(Image<PixelT> &img, ImageSlice<PixelT>
const &slc);
134 template<
typename PixelT>
137 template<
typename PixelT>
138 void operator-=(Image<PixelT> &img, ImageSlice<PixelT>
const &slc);
143 template<
typename PixelT>
146 template<
typename PixelT>
149 template<
typename PixelT>
150 void operator*=(Image<PixelT> &img, ImageSlice<PixelT>
const &slc);
155 template<
typename PixelT>
158 template<
typename PixelT>
159 void operator/=(Image<PixelT> &img, ImageSlice<PixelT>
const &slc);
PixelT operator()(PixelT const imgPix, PixelT const slcPix)
x_iterator row_begin(int y) const
x_iterator row_end(int y) const
Return an x_iterator to the end of the y'th row.
_view_t::y_iterator y_iterator
An iterator for traversing the pixels in a column.
ImageSlice(Image< PixelT > const &img)
Constructor for ImageSlice.
void operator*=(Image< LhsPixelT > &lhs, Image< RhsPixelT > const &rhs)
boost::shared_ptr< Image< PixelT > > Ptr
table::Key< table::Array< Kernel::Pixel > > image
y_iterator col_begin(int x) const
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.
PixelT operator()(PixelT const imgPix, PixelT const slcPix)
PixelT operator()(PixelT const imgPix, PixelT const slcPix)
Image< PixelT >::Ptr operator/(Image< PixelT > const &img, ImageSlice< PixelT > const &slc)
Image< PixelT >::Ptr operator-(Image< PixelT > const &img, ImageSlice< PixelT > const &slc)
_view_t::x_iterator x_iterator
An iterator for traversing the pixels in a row.
void operator/=(Image< LhsPixelT > &lhs, Image< RhsPixelT > const &rhs)
PixelT operator()(PixelT const imgPix, PixelT const slcPix)
ImageSliceType _sliceType
ImageSliceType getImageSliceType() const
void operator-=(Image< LhsPixelT > &lhs, Image< RhsPixelT > const &rhs)
int getHeight() const
Return the number of rows in the image.
Image< PixelT >::Ptr operator+(Image< PixelT > const &img, ImageSlice< PixelT > const &slc)
A class to represent a 2-dimensional array of pixels.
Image< PixelT >::Ptr operator*(Image< PixelT > const &img, ImageSlice< PixelT > const &slc)
A class to specify a slice of an image.
void operator+=(Image< LhsPixelT > &lhs, Image< RhsPixelT > const &rhs)