src/cinder/ip/Grayscale.cpp File Reference

Namespaces

namespace  cinder
namespace  cinder::ip

Functions

template<typename T >
void cinder::ip::grayscale (const SurfaceT< T > &srcSurface, SurfaceT< T > *dstSurface)
 Converts Surface srcSurface to grayscale and stores the result in Surface dstSurface. Uses primary weights dictated by the Rec. 709 Video Standard.
template<typename T >
void cinder::ip::grayscale (const SurfaceT< T > &srcSurface, ChannelT< T > *dstChannel)
 Converts Surface srcSurface to grayscale and stores the result in Channel dstChannel. Uses primary weights dictated by the Rec. 709 Video Standard.
template<>
void cinder::ip::grayscale (const Surface8u &srcSurface, Channel8u *dstChannel)
template void cinder::ip::grayscale (const SurfaceT< float > &srcSurface, ChannelT< float > *dstChannel)