PCL
|
Mutable region-of-interest pixel sample iterator. More...
#include <Image.h>
Inherits pcl::GenericImage< P >::roi_sample_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 | |
roi_sample_iterator ()=default | |
roi_sample_iterator (const roi_sample_iterator &)=default | |
roi_sample_iterator (image_type &image, const Rect &rect=Rect(0), int channel=-1) | |
roi_sample_iterator (image_type &image, sample *i, sample *j) | |
image_type & | Image () const noexcept |
bool | IsValid () const noexcept |
roi_sample_iterator & | MoveBy (int dx, int dy) noexcept |
operator bool () const noexcept | |
sample & | operator* () const noexcept |
roi_sample_iterator & | operator++ () noexcept |
roi_sample_iterator | operator++ (int) noexcept |
roi_sample_iterator & | operator+= (distance_type delta) noexcept |
roi_sample_iterator & | operator-- () noexcept |
roi_sample_iterator | operator-- (int) noexcept |
roi_sample_iterator & | operator-= (distance_type delta) noexcept |
roi_sample_iterator & | operator= (const roi_sample_iterator &)=default |
sample * | Position () const noexcept |
Friends | |
roi_sample_iterator | operator+ (const roi_sample_iterator &i, distance_type delta) noexcept |
roi_sample_iterator | operator+ (distance_type delta, const roi_sample_iterator &i) noexcept |
roi_sample_iterator | operator- (const roi_sample_iterator &i, distance_type delta) noexcept |
bool | operator< (const roi_sample_iterator &i, const roi_sample_iterator &j) noexcept |
bool | operator< (const roi_sample_iterator &i, const sample *j) noexcept |
bool | operator< (const sample *i, const roi_sample_iterator &j) noexcept |
bool | operator== (const roi_sample_iterator &i, const roi_sample_iterator &j) noexcept |
bool | operator== (const roi_sample_iterator &i, const sample *j) noexcept |
bool | operator== (const sample *i, const roi_sample_iterator &j) noexcept |
A mutable, region-of-interest (ROI) pixel sample iterator provides read/write, random access to pixel samples within a rectangular subset of a single channel of an image.
using pcl::GenericImage< P >::roi_sample_iterator::image_type = GenericImage<P> |
using pcl::GenericImage< P >::roi_sample_iterator::pixel_traits = typename image_type::pixel_traits |
using pcl::GenericImage< P >::roi_sample_iterator::sample = typename image_type::sample |
|
default |
Default constructor. Initializes an invalid iterator.
|
inline |
Constructs a mutable, region-of-interest (ROI) pixel sample iterator for one channel of an image.
image | The 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. |
channel | Channel index. If this parameter is a negative integer, then this object will be initialized to iterate on the currently selected channel of the image. If an invalid (i.e., nonexistent) channel index is specified, then the resulting iterator will also be invalid, with an empty iteration range. The default value is -1. |
|
inline |
Constructs a mutable, region-of-interest (ROI) pixel sample iterator for a range of pixel samples of an image.
image | The image to iterate. |
i | Pointer to the first pixel sample in the iteration range. The iterator will be initialized to access this pixel sample just after construction. |
j | End of the iteration range. The iterator will be invalid when it reaches (or surpasses) this point. |
|
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 |
|
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 |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |