|
Boost : |
Subject: Dimensionality of image_view<Locator>::axis_iterator
From: Mateusz Loskot (mateusz_at_[hidden])
Date: 2018-08-23 13:26:05
Hi,
I'd like to clarify dimensionality of the axis_iterator.
Could you verify my reasoning below, please?
1. In spirit, axis iterator is N-dimensional iterator
2. image_view<Locator> is 2-dimensional view due to the Locator
requirement "Models 2D Pixel Locator" as per this comment
https://github.com/boostorg/gil/blob/f3f25f6ef5e80e8ae866b516157dd31e12ad1457/include/boost/gil/image_view.hpp#L67
3. Thus, image_view<Locator>::axis_iterator is 2-dimensional iterator
That is also why it sits in the section named "2-D navigation" here
https://github.com/boostorg/gil/blob/f3f25f6ef5e80e8ae866b516157dd31e12ad1457/include/boost/gil/image_view.hpp#L139
Is this correct?
Best regards,
-- Mateusz Loskot, http://mateusz.loskot.net
Boost list run by Boost-Gil-Owners