Common base class for access traits, providing typed Value access to planes. More...
#include <cvb/vpat.hpp>
Public Member Functions | |
template<class Type > | |
const Type & | Value (int x, int y) const noexcept |
Gets a pixel value at a given position. More... | |
template<class Type > | |
Type & | Value (int x, int y) noexcept |
Gets a settable pixel value at a given position. More... | |
template<class Type > | |
const Type & | Value (Point2D< int > position) const noexcept |
Gets a pixel value at a given position. More... | |
template<class Type > | |
Type & | Value (Point2D< int > position) noexcept |
Gets a settable pixel value at a given position. More... | |
Common base class for access traits, providing typed Value access to planes.
DERIVED | The derived class type following the CRTP pattern The DERIVED type must implement at least a const call operator with {const} void *operator(int x, int y) , returning a pointer to the value at the requested position. |
|
inlinenoexcept |
Gets a pixel value at a given position.
[in] | x | Horizontal pixel position. |
[in] | y | Vertical pixel position. |
Does | not throw any exception. |
This method is for convenience not for performance.
|
inlinenoexcept |
Gets a settable pixel value at a given position.
[in] | x | Horizontal pixel position. |
[in] | y | Vertical pixel position. |
Does | not throw any exception. |
This method is for convenience not for performance.
|
inlinenoexcept |
Gets a pixel value at a given position.
[in] | position | Pixel position. |
Does | not throw any exception. |
This method is for convenience not for performance.
|
inlinenoexcept |
Gets a settable pixel value at a given position.
[in] | position | Pixel position. |
Does | not throw any exception. |
This method is for convenience not for performance.