8 #ifndef BOOST_GIL_CONCEPTS_PIXEL_BASED_HPP
9 #define BOOST_GIL_CONCEPTS_PIXEL_BASED_HPP
11 #include <boost/gil/concepts/basic.hpp>
12 #include <boost/gil/concepts/channel.hpp>
13 #include <boost/gil/concepts/color.hpp>
14 #include <boost/gil/concepts/concept_check.hpp>
15 #include <boost/gil/concepts/fwd.hpp>
19 #if defined(BOOST_CLANG)
20 #pragma clang diagnostic push
21 #pragma clang diagnostic ignored "-Wunknown-pragmas"
22 #pragma clang diagnostic ignored "-Wunused-local-typedefs"
25 #if defined(BOOST_GCC) && (BOOST_GCC >= 40900)
26 #pragma GCC diagnostic push
27 #pragma GCC diagnostic ignored "-Wunused-local-typedefs"
30 namespace boost {
namespace gil {
57 using color_space_t =
typename color_space_type<P>::type;
58 gil_function_requires<ColorSpaceConcept<color_space_t>>();
60 using channel_mapping_t =
typename channel_mapping_type<P>::type ;
61 gil_function_requires<ChannelMappingConcept<channel_mapping_t>>();
63 static const bool planar = is_planar<P>::value;
64 ignore_unused_variable_warning(planar);
68 ignore_unused_variable_warning(nc);
87 gil_function_requires<PixelBasedConcept<P>>();
90 gil_function_requires<ChannelConcept<channel_t>>();
96 #if defined(BOOST_CLANG)
97 #pragma clang diagnostic pop
100 #if defined(BOOST_GCC) && (BOOST_GCC >= 40900)
101 #pragma GCC diagnostic pop
defined(BOOST_NO_CXX17_HDR_MEMORY_RESOURCE)
Definition: algorithm.hpp:36
Concept for homogeneous pixel-based GIL constructs.
Definition: pixel_based.hpp:84
Concept for all pixel-based GIL constructs.
Definition: pixel_based.hpp:54
Definition: color_convert.hpp:31
Returns the number of channels of a pixel-based GIL construct.
Definition: pixel.hpp:54