/usr/include/boost/gil/extension/toolbox/metafunctions
NameSizeModeActions
channel_type.hpp34190644editdlrm
channel_view.hpp15780644editdlrm
get_num_bits.hpp18650644editdlrm
get_pixel_type.hpp11460644editdlrm
is_bit_aligned.hpp12140644editdlrm
is_homogeneous.hpp28390644editdlrm
is_similar.hpp9100644editdlrm
pixel_bit_size.hpp17560644editdlrm
Edit: /usr/include/boost/gil/extension/toolbox/metafunctions/channel_view.hpp (1578B)
// // Copyright 2010 Fabien Castan, Christian Henning // // Distributed under the Boost Software License, Version 1.0 // See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt // #ifndef BOOST_GIL_EXTENSION_TOOLBOX_CHANNEL_VIEW_HPP #define BOOST_GIL_EXTENSION_TOOLBOX_CHANNEL_VIEW_HPP #include namespace boost { namespace gil { template struct channel_type_to_index { static constexpr int value = detail::type_to_index < typename color_space_type::type, // color (Boost.MP11-compatible list) Channel // channel type >::value; // index of the channel in the color (Boost.MP11-compatible list) }; template struct channel_view_type : kth_channel_view_type < channel_type_to_index::value, View > { static constexpr int index = channel_type_to_index < Channel, View >::value; using parent_t = kth_channel_view_type; using type = typename parent_t::type; static type make( const View& src ) { return parent_t::make( src ); } }; /// \ingroup ImageViewTransformationsKthChannel template auto channel_view(View const& src) -> typename channel_view_type::type { return channel_view_type::make(src); } }} // namespace boost::gil #endif