NAME
CVIPluminance - a fast RGB to luminance calculation
SYNOPSIS
#include <math.h>
#include <stdio.h>
#include "CVIPimage.h"
#include "CVIPluminance.h"
Image *CVIPluminance(Image *cvip_Image, int maxval,
CVIP_BOOLEAN retain_image, CVIP_BOOLEAN verbose)
<cvip_Image> - pointer to valid CVIP Image structure
<maxval> - maximum range of the input image (usually 255)
<retain_image> - retain image after writing (CVIP_YES or
CVIP_NO)?
<verbose> - shall I be verbose (CVIP_YES or CVIP_NO)?
PATH
$CVIPHOME/CONVERSION/luminance.c
DESCRIPTION
Uses a lookup table to perform a fast RGB to luminance cal-
culation. Approximates 0.299 r + 0.587 g + 0.114 b.
TYPES AND CONSTANTS
RETURN VALUES
Pointer to luminance transformed image
HISTORY
History information recorded: None
SEE ALSO
libconverter
AUTHOR
Copyright (C) 1996 SIUE - by Scott E. Umbaugh and Greg
Hance.