Represents a run-time specified image view. Models HasDynamicXStepTypeConcept, HasDynamicYStepTypeConcept, Note that this class does NOT model ImageViewConcept. More...
#include <any_image_view.hpp>
Inherits type< ImageViewTypes >.
Public Types | |
using | const_t = any_image_view< typename detail::views_get_const_t< ImageViewTypes >::type > |
using | x_coord_t = std::ptrdiff_t |
using | y_coord_t = std::ptrdiff_t |
using | point_t = point< std::ptrdiff_t > |
Public Member Functions | |
template<typename T > | |
any_image_view (const T &obj) | |
any_image_view (const any_image_view &v) | |
template<typename Types > | |
any_image_view (const any_image_view< Types > &v) | |
template<typename T > | |
any_image_view & | operator= (const T &obj) |
any_image_view & | operator= (const any_image_view &v) |
template<typename Types > | |
any_image_view & | operator= (const any_image_view< Types > &v) |
std::size_t | num_channels () const |
point_t | dimensions () const |
x_coord_t | width () const |
y_coord_t | height () const |
Represents a run-time specified image view. Models HasDynamicXStepTypeConcept, HasDynamicYStepTypeConcept, Note that this class does NOT model ImageViewConcept.
CLASS any_image_view
Represents a view whose type (color space, layout, planar/interleaved organization, etc) can be specified at run time. It is the runtime equivalent of image_view
. Some of the requirements of ImageViewConcept, such as the value_type
alias cannot be fulfilled, since the language does not allow runtime type specification. Other requirements, such as access to the pixels, would be inefficient to provide. Thus any_image_view
does not fully model ImageViewConcept. However, many algorithms provide overloads taking runtime specified views and thus in many cases any_image_view
can be used in places taking a view.
To perform an algorithm on any_image_view, put the algorithm in a function object and invoke it by calling apply_operation(runtime_view, algorithm_fn)
;