Function object that returns a grayscale reference of the K-th channel (specified as a template parameter) 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 k-th channel)  
 More...
#include <image_view_factory.hpp>
|  | 
| template<typename P > | 
|  | kth_channel_deref_fn (const kth_channel_deref_fn< K, P > &) | 
|  | 
| result_type | operator() (argument_type srcP) const | 
|  | 
|  | 
| static constexpr bool | is_mutable | 
|  | 
template<int K, typename SrcP>
struct boost::gil::detail::kth_channel_deref_fn< K, SrcP >
Function object that returns a grayscale reference of the K-th channel (specified as a template parameter) 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 k-th channel) 
- Template Parameters
- 
  
    | SrcP | reference to PixelConcept (could be pixel value or const/non-const reference) Examples: pixel<T,L>, pixel<T,L>&, const pixel<T,L>&, planar_pixel_reference<T&,L>, planar_pixel_reference<const T&,L> |  
 
◆ is_mutable
  
  | 
        
          | constexpr bool is_mutable |  | static | 
 
Initial value:=
            pixel_is_reference<SrcP>::value && pixel_reference_is_mutable<SrcP>::value
 
 
The documentation for this struct was generated from the following file: