Adobe Systems, Inc.

Pixel
[GIL Models]

Pixel and pixel-related functions. More...

Modules

 Channel Accessor
 Color Bases

Classes

struct  detail::channel_recursion< N >
 compile-time recursion for per-channel operations of pixels More...
struct  detail::channel_recursion< 0 >
 termination condition of the compile-time recursion for channel operations on a pixel More...
struct  detail::min_max_recur< N >
 compile-time recursion for min/max channel More...
struct  detail::min_max_recur< 1 >
 termination condition of the compile-time recursion for min/max channel More...
class  pixel< T, C >
 Represents a pixel value (a container of channels). More...
struct  planar_ref< TR, C >
 Represents a reference to a planar pixel. More...

Pixel Global Functions

Functions defined for any class that models PixelConcept

template<typename P>
P::channel_t alpha (const P &p)
template<typename P, typename V>
void fill_channels (P &p, const V &v)
template<typename P1, typename OP>
OP for_each_channel (const P1 &p1, OP op)
template<typename P1, typename P2, typename OP>
OP for_each_channel (const P1 &p1, const P2 &p2, OP op)
template<typename P1, typename P2, typename P3, typename OP>
OP for_each_channel (const P1 &p1, const P2 &p2, const P3 &p3, OP op)
template<typename P>
P::channel_t max_channel (const P &p)
template<typename P>
P::channel_t min_channel (const P &p)
template<typename P1, typename OP>
OP transform_channels (P1 &dst, OP op)
template<typename P1, typename P2, typename OP>
OP transform_channels (const P2 &p2, P1 &dst, OP op)
template<typename P1, typename P2, typename P3, typename OP>
OP transform_channels (const P2 &p2, const P3 &p3, P1 &dst, OP op)

Detailed Description


Function Documentation

template<typename P>
P::channel_t alpha const P &  p  ) 
 

returns the alpha channel value for a pixel. Default returns 100% opaque. Overload for color spaces containing alpha

Definition at line 163 of file pixel_algorithm.hpp.

Copyright © 2006 Adobe Systems Incorporated.

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

Search powered by Google