Common base class for access traits, providing typed Value access to planes.
More...
#include <cvb/vpat.hpp>
|
template<class Type> |
const Type & | Value (int x, int y) const noexcept |
| Gets a pixel value at a given position.
|
|
template<class Type> |
Type & | Value (int x, int y) noexcept |
| Gets a settable pixel value at a given position.
|
|
template<class Type> |
const Type & | Value (Point2D< int > position) const noexcept |
| Gets a pixel value at a given position.
|
|
template<class Type> |
Type & | Value (Point2D< int > position) noexcept |
| Gets a settable pixel value at a given position.
|
|
template<class DERIVED>
class Cvb::ValueAccessBase< DERIVED >
Common base class for access traits, providing typed Value access to planes.
- Template Parameters
-
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. |
◆ Value() [1/4]
template<class DERIVED>
template<class Type>
const Type & Value |
( |
int | x, |
|
|
int | y ) const |
|
inlinenoexcept |
Gets a pixel value at a given position.
- Parameters
-
[in] | x | Horizontal pixel position. |
[in] | y | Vertical pixel position. |
- Returns
- Typed readonly reference to the image buffer.
- Exceptions
-
Does | not throw any exception. |
This method is for convenience not for performance.
◆ Value() [2/4]
template<class DERIVED>
template<class Type>
Type & Value |
( |
int | x, |
|
|
int | y ) |
|
inlinenoexcept |
Gets a settable pixel value at a given position.
- Parameters
-
[in] | x | Horizontal pixel position. |
[in] | y | Vertical pixel position. |
- Returns
- Typed writable reference to the image buffer.
- Exceptions
-
Does | not throw any exception. |
This method is for convenience not for performance.
◆ Value() [3/4]
template<class DERIVED>
template<class Type>
const Type & Value |
( |
Point2D< int > | position | ) |
const |
|
inlinenoexcept |
Gets a pixel value at a given position.
- Parameters
-
[in] | position | Pixel position. |
- Returns
- Typed read only reference to the image buffer.
- Exceptions
-
Does | not throw any exception. |
This method is for convenience not for performance.
◆ Value() [4/4]
template<class DERIVED>
template<class Type>
Type & Value |
( |
Point2D< int > | position | ) |
|
|
inlinenoexcept |
Gets a settable pixel value at a given position.
- Parameters
-
[in] | position | Pixel position. |
- Returns
- Typed writable reference to the image buffer.
- Exceptions
-
Does | not throw any exception. |
This method is for convenience not for performance.