Bsoft function

img_color_red

Source:

src/img/img_colour.c

Description:

Converts a gray-scale image to red.

Algorithm:

	A grayscale image is converted to red between the given minimum and maximum.

Arguments:

Bimage* pimage.
float cminlower grayscale boundary.
float cmaxupper grayscale boundary.
int gray_extremeskeep the ranges beyond the minimum and maximum as gray.

Returns:

int 0.

Prototype:

int img_color_red(Bimage* p, float cmin, float cmax, int gray_extremes)

Functions used:

balloc
bfree

Other objects included:

struct Bimage


Generated by bdoc.pl on Mon Jun 15 11:47:27 2009


Back to the Bsoft home