boost::gil::static_max

Equivalents to std::min_element and std::max_element for homogeneous color bases

Synopsis

template<typename P>
[[__always_inline__]]
element_const_reference_type<P>::type
static_max(P const& p);

Description

Example:

rgb8_pixel_t pixel(10,20,30);
assert(pixel[2] == 30);
static_max(pixel) = static_min(pixel);
assert(pixel[2] == 10);

{

Created with MrDocs