Modules | Alphabetical List | Class List | Directories | File List | GIL Home Page

# Algorithms and Utility Functions
[PixelBased]

## Detailed Description

PixelBased algorithms, metafunctions and utility functions.

Example:

    BOOST_STATIC_ASSERT((num_channels<rgb8_view_t>::value==3));
    BOOST_STATIC_ASSERT((num_channels<cmyk16_planar_ptr_t>::value==4));

    BOOST_STATIC_ASSERT((is_planar<rgb16_planar_image_t>::value));
    BOOST_STATIC_ASSERT((is_same<color_space_type<rgb8_planar_ref_t>::type, rgb_t>::value));
    BOOST_STATIC_ASSERT((is_same<channel_mapping_type<cmyk8_pixel_t>::type,
                                 channel_mapping_type<rgba8_pixel_t>::type>::value));
    BOOST_STATIC_ASSERT((is_same<channel_type<bgr8_pixel_t>::type, bits8>::value));

## Classes

struct | num_channels
| Returns the number of channels of a pixel-based GIL construct. More...