PCL
|
Immutable region-of-interest pixel iterator. More...
#include <Image.h>
Inherits pcl::GenericImage< P >::roi_pixel_iterator_base< image_type, sample_pointer >.
Public Types | |
using | image_type = GenericImage< P > |
using | pixel_traits = typename image_type::pixel_traits |
using | sample = typename image_type::sample |
Public Member Functions | |
const_roi_pixel_iterator ()=default | |
const_roi_pixel_iterator (const const_roi_pixel_iterator &)=default | |
const_roi_pixel_iterator (const image_type &image, const Rect &rect=Rect(0)) | |
const image_type & | Image () const noexcept |
bool | IsValid () const noexcept |
const_roi_pixel_iterator & | MoveBy (int dx, int dy) noexcept |
operator bool () const noexcept | |
const_roi_pixel_iterator & | operator++ () noexcept |
const_roi_pixel_iterator | operator++ (int) noexcept |
const_roi_pixel_iterator & | operator+= (distance_type delta) noexcept |
const_roi_pixel_iterator & | operator-- () noexcept |
const_roi_pixel_iterator | operator-- (int) noexcept |
const_roi_pixel_iterator & | operator-= (distance_type delta) noexcept |
const_roi_pixel_iterator & | operator= (const const_roi_pixel_iterator &)=default |
const sample & | operator[] (int channel) const noexcept |
const sample * | Position (int channel) const noexcept |
Friends | |
const_roi_pixel_iterator | operator+ (const const_roi_pixel_iterator &i, distance_type delta) noexcept |
const_roi_pixel_iterator | operator+ (distance_type delta, const const_roi_pixel_iterator &i) noexcept |
const_roi_pixel_iterator | operator- (const const_roi_pixel_iterator &i, distance_type delta) noexcept |
bool | operator< (const const_roi_pixel_iterator &i, const const_roi_pixel_iterator &j) noexcept |
bool | operator== (const const_roi_pixel_iterator &i, const const_roi_pixel_iterator &j) noexcept |
An immutable, region-of-interest (ROI) pixel iterator provides read-only, random access to pixels within a rectangular subset of an image.
using pcl::GenericImage< P >::const_roi_pixel_iterator::image_type = GenericImage<P> |
using pcl::GenericImage< P >::const_roi_pixel_iterator::pixel_traits = typename image_type::pixel_traits |
using pcl::GenericImage< P >::const_roi_pixel_iterator::sample = typename image_type::sample |
|
default |
Default constructor. Initializes an invalid iterator.
|
inline |
Constructs an immutable, region-of-interest (ROI) pixel iterator.
image | The constant image to iterate. |
rect | Region of interest. If an empty rectangle is specified, the current rectangular selection in the image will be used. If the specified rectangle is not empty and extends beyond image boundaries, only the intersection with the image will be used. If that intersection does not exist, then the resulting iterator will be invalid, with an empty iteration range. The default value is an empty rectangle. |
|
default |
Copy constructor.
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
Moves this iterator within its rectangular region of interest by the specified horizontal and vertical increments in pixels, dx and dy respectively, relative to its current position. Positive (negative) dx increments move the iterator rightwards (leftwards). Positive (negative) dy increments move the iterator downwards (upwards).
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
Scalar assignment/addition operator. Increments this iterator by a distance delta from its current position, within the rectangular region of interest being iterated. Positive increments cause this iterator to move forward (rightwards and downwards) by delta pixel samples. Negative increments move this iterator backward (leftwards and upwards) by delta pixel samples. Returns a reference to this iterator.
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
Scalar assignment/subtraction operator. Decrements this iterator by a distance delta from its current position, within the rectangular region of interest being iterated. Positive increments cause this iterator to move backward (leftwards and upwards) by delta pixel samples. Negative increments move this iterator forward (rightwards and downwards) by delta pixel samples. Returns a reference to this iterator.
|
default |
Copy assignment operator. Returns a reference to this object.
|
inlinenoexcept |
|
inlinenoexcept |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |