Function object that returns a grayscale reference of the N-th channel of a given reference. Models: PixelDereferenceAdaptorConcept.
More...
#include <image_view_factory.hpp>
|
| nth_channel_deref_fn (int n=0) |
|
template<typename P > |
| nth_channel_deref_fn (const nth_channel_deref_fn< P > &d) |
|
auto | operator() (argument_type srcP) const -> result_type |
|
|
static constexpr bool | is_mutable |
|
template<typename SrcP>
struct boost::gil::detail::nth_channel_deref_fn< SrcP >
Function object that returns a grayscale reference of the N-th channel of a given reference. Models: PixelDereferenceAdaptorConcept.
If the input is a pixel value or constant reference, the function object is immutable. Otherwise it is mutable (and returns non-const reference to the n-th channel)
◆ is_mutable
constexpr bool is_mutable |
|
staticconstexpr |
Initial value:=
pixel_is_reference<SrcP>::value && pixel_reference_is_mutable<SrcP>::value
The documentation for this struct was generated from the following file: