boost::gil::pixels_are_compatible

Returns whether two pixels are compatible Pixels are compatible if their channels and color space types are compatible. Compatible pixels can be assigned and copy constructed from one another.

Synopsis

template<
    typename P1,
    typename P2>
struct pixels_are_compatible
    : mp11::mp_and<color_spaces_are_compatible<color_space_type<P1>::type, color_space_type<P2>::type>::type, detail::channels_are_pairwise_compatible<P1, P2, num_channels<P1>::value ‐ 1>>

Base Classes

Name

Description

mp11::mp_and<color_spaces_are_compatible<color_space_type<P1>::type, color_space_type<P2>::type>::type, detail::channels_are_pairwise_compatible<P1, P2, num_channels<P1>::value ‐ 1>>

Derived Classes

Name

Description

views_are_compatible

Returns whether two views are compatible

Template Parameters

Name

Description

P1

Models PixelConcept

P2

Models PixelConcept

Created with MrDocs