semantic_at_c: Semantic channel accessors More...
Classes | |
struct | boost::gil::kth_semantic_element_type< ColorBase, K > |
Specifies the type of the K-th semantic element of a color base. More... | |
struct | boost::gil::kth_semantic_element_reference_type< ColorBase, K > |
Specifies the return type of the mutable semantic_at_c<K>(color_base);. More... | |
struct | boost::gil::kth_semantic_element_const_reference_type< ColorBase, K > |
Specifies the return type of the constant semantic_at_c<K>(color_base);. More... | |
Functions | |
template<int K, typename ColorBase > | |
disable_if< is_const < ColorBase >, typename kth_semantic_element_reference_type < ColorBase, K >::type >::type | boost::gil::semantic_at_c (ColorBase &p) |
A mutable accessor to the K-th semantic element of a color base. More... | |
template<int K, typename ColorBase > | |
kth_semantic_element_const_reference_type < ColorBase, K >::type | boost::gil::semantic_at_c (const ColorBase &p) |
A constant accessor to the K-th semantic element of a color base. More... | |
semantic_at_c: Semantic channel accessors
Support for accessing the elements of a color base by semantic index
The semantic index of an element is the index of its color in the color space. Semantic indexing allows for proper pairing of elements of color bases independent on their layout. For example, red is the first semantic element of a color base regardless of whether it has an RGB layout or a BGR layout. All GIL color base algorithms taking multiple color bases use semantic indexing to access their elements.
Example:
|
inline |
#include <boost_1_57_0/boost/gil/color_base.hpp>
A mutable accessor to the K-th semantic element of a color base.
References boost::gil::kth_semantic_element_reference_type< ColorBase, K >::get().
Referenced by boost::gil::ColorBaseConcept< ColorBase >::constraints(), boost::gil::detail::element_recursion< N >::static_copy(), boost::gil::detail::element_recursion< N >::static_equal(), boost::gil::detail::element_recursion< N >::static_fill(), boost::gil::detail::element_recursion< N >::static_generate(), and boost::gil::detail::element_recursion< N >::static_transform().
|
inline |
#include <boost_1_57_0/boost/gil/color_base.hpp>
A constant accessor to the K-th semantic element of a color base.
References boost::gil::kth_semantic_element_const_reference_type< ColorBase, K >::get().