[Algorithms and Utility Functions]

Detailed Description

Returns the inverse of a channel. result = max_value - x + min_value.


// bits8 == uint8_t == unsigned char
bits8 x=255;
bits8 inv = channel_invert(x);
assert(inv == 0);


template<typename Channel>
channel_traits< Channel
boost::gil::channel_invert (Channel x)
 Default implementation. Provide overloads for performance.

Copyright © 2006-2007 Adobe Systems Incorporated.

Use of this website signifies your agreement to the Terms of Use and Online Privacy Policy.

Search powered by Google