Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
static_min, static_max

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

Functions

template<typename P >
element_const_reference_type
< P >::type 
boost::gil::static_max (const P &p)
 
template<typename P >
element_reference_type< P >::type boost::gil::static_max (P &p)
 
template<typename P >
element_const_reference_type
< P >::type 
boost::gil::static_min (const P &p)
 
template<typename P >
element_reference_type< P >::type boost::gil::static_min (P &p)
 

Detailed Description

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

Example:

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

Function Documentation

template<typename P >
element_const_reference_type<P>::type boost::gil::static_max ( const P &  p)
inline
template<typename P >
element_reference_type<P>::type boost::gil::static_max ( P &  p)
inline
template<typename P >
element_const_reference_type<P>::type boost::gil::static_min ( const P &  p)
inline
template<typename P >
element_reference_type<P>::type boost::gil::static_min ( P &  p)
inline