The "cf" Package

These routines are meant to provide a VERY primitive mechanism to generate simple colourmaps. Although these routines are made public, their use is NOT recommended. The kcmap_ package is the suggested means to create and manipulate colourmaps.

Library: karma
Link With: -lkarma

Functions

cf_mandelbrotCompute a mandelbrot colourmap.
cf_greyscale1Compute a greyscale colourmap.
cf_greyscale2Compute a greyscale colourmap.
cf_greyscale3Compute a greyscale colourmap.
cf_rainbow1Compute a rainbow colourmap.
cf_rainbow2Compute a rainbow colourmap.
cf_rainbow3Compute a rainbow colourmap.
cf_cyclic1Compute a rainbow colourmap.
cf_stripchartCompute a rainbow colourmap.
cf_random_greyCompute a random grey colourmap.
cf_random_pseudocolourCompute a random pseudocolour colourmap.
cf_velocity_compensating_tonesCompute a Velocity (compensating tones) colourmap.
cf_compressed_colourmap_3r2g2bCompute a compressed colourmap.
cf_ronekersCompute a Ron Ekers colourmap.
cf_backgroundCompute a background colourmap.
cf_heatCompute a heat colourmap.
cf_isophotCompute an isophot colourmap.
cf_monoCompute a greyscale colourmap.
cf_mousseCompute a mousse colourmap.
cf_rainbowCompute a rainbow colourmap.
cf_randomCompute a rainbow colourmap.
cf_rgbCompute an rainbow colourmap.
cf_smoothCompute a rainbow colourmap.
cf_staircaseCompute a staircase colourmap.
cf_mirpCompute a MIRP colourmap.


Functions


void cf_mandelbrot (unsigned int num_cells, unsigned short *reds, unsigned short *greens, unsigned short *blues, unsigned int stride, double x, double y, void *var_param)

Compute a mandelbrot colourmap.

Parameters:

Returns: Nothing.
Multithreading Level: Unsafe


void cf_greyscale1 (unsigned int num_cells, unsigned short *reds, unsigned short *greens, unsigned short *blues, unsigned int stride, double x, double y, void *var_param)

Compute a greyscale colourmap.

Parameters:

Returns: Nothing.
Multithreading Level: Unsafe


void cf_greyscale2 (unsigned int num_cells, unsigned short *reds, unsigned short *greens, unsigned short *blues, unsigned int stride, double x, double y, void *var_param)

Compute a greyscale colourmap.

Parameters:

Returns: Nothing.
Multithreading Level: Unsafe


void cf_greyscale3 (unsigned int num_cells, unsigned short *reds, unsigned short *greens, unsigned short *blues, unsigned int stride, double x, double y, void *var_param)

This routine will compute a greyscale colourmap using the Glynn Rogers curvature function.

Parameters:

Returns: Nothing.
Multithreading Level: Unsafe


void cf_rainbow1 (unsigned int num_cells, unsigned short *reds, unsigned short *greens, unsigned short *blues, unsigned int stride, double x, double y, void *var_param)

This routine will compute a colourmap using the Glynn Rogers curvature function. This map goes: blue-cyan-green-yellow-red-magenta.

Parameters:

Returns: Nothing.
Multithreading Level: Unsafe


void cf_rainbow2 (unsigned int num_cells, unsigned short *reds, unsigned short *greens, unsigned short *blues, unsigned int stride, double x, double y, void *var_param)

This routine will compute a colourmap using the Glynn Rogers curvature function. This map goes: black-blue-cyan-green-yellow-red.

Parameters:

Returns: Nothing.
Multithreading Level: Unsafe


void cf_rainbow3 (unsigned int num_cells, unsigned short *reds, unsigned short *greens, unsigned short *blues, unsigned int stride, double x, double y, void *var_param)

This routine will compute a colourmap using the Glynn Rogers curvature function. This map goes: black-blue-cyan-green-yellow-white.

Parameters:

Returns: Nothing.
Multithreading Level: Unsafe


void cf_cyclic1 (unsigned int num_cells, unsigned short *reds, unsigned short *greens, unsigned short *blues, unsigned int stride, double x, double y, void *var_param)

This routine will compute a colourmap using the Glynn Rogers curvature function. This map goes: blue-cyan-green-yellow-white.

Parameters:

Returns: Nothing.
Multithreading Level: Unsafe


void cf_stripchart (unsigned int num_cells, unsigned short *reds, unsigned short *greens, unsigned short *blues, unsigned int stride, double x, double y, void *chart)

This routine will compute a colourmap using the Glynn Rogers curvature function and a strip chart.

Parameters:

Returns: Nothing.
Multithreading Level: Unsafe


void cf_random_grey (unsigned int num_cells, unsigned short *reds, unsigned short *greens, unsigned short *blues, unsigned int stride, double x, double y, void *var_param)

Compute a random grey colourmap.

Parameters:

Returns: Nothing.
Multithreading Level: Unsafe


void cf_random_pseudocolour (unsigned int num_cells, unsigned short *reds, unsigned short *greens, unsigned short *blues, unsigned int stride, double x, double y, void *var_param)

Compute a random pseudocolour colourmap.

Parameters:

Returns: Nothing.
Multithreading Level: Unsafe


void cf_velocity_compensating_tones (unsigned int num_cells, unsigned short *reds, unsigned short *greens, unsigned short *blues, unsigned int stride, double x, double y, void *var_param)

Compute a Velocity (compensating tones) colourmap.

Parameters:

Returns: Nothing.
Multithreading Level: Unsafe


void cf_compressed_colourmap_3r2g2b (unsigned int num_cells, unsigned short *reds, unsigned short *greens, unsigned short *blues, unsigned int stride, double x, double y, void *var_param)

Compute a compressed colourmap.

Parameters:

Returns: Nothing.
Multithreading Level: Unsafe


void cf_ronekers (unsigned int num_cells, unsigned short *reds, unsigned short *greens, unsigned short *blues, unsigned int stride, double x, double y, void *var_param)

Compute a Ron Ekers colourmap.

Parameters:

Returns: Nothing.
Multithreading Level: Unsafe


void cf_background (unsigned int num_cells, unsigned short *reds, unsigned short *greens, unsigned short *blues, unsigned int stride, double x, double y, void *var_param)

Compute a background colourmap.

Parameters:

Returns: Nothing.
Multithreading Level: Unsafe


void cf_heat (unsigned int num_cells, unsigned short *reds, unsigned short *greens, unsigned short *blues, unsigned int stride, double x, double y, void *var_param)

Compute a heat colourmap.

Parameters:

Returns: Nothing.
Multithreading Level: Unsafe


void cf_isophot (unsigned int num_cells, unsigned short *reds, unsigned short *greens, unsigned short *blues, unsigned int stride, double x, double y, void *var_param)

Compute an isophot colourmap.

Parameters:

Returns: Nothing.
Multithreading Level: Unsafe


void cf_mono (unsigned int num_cells, unsigned short *reds, unsigned short *greens, unsigned short *blues, unsigned int stride, double x, double y, void *var_param)

Compute a greyscale colourmap.

Parameters:

Returns: Nothing.
Multithreading Level: Unsafe


void cf_mousse (unsigned int num_cells, unsigned short *reds, unsigned short *greens, unsigned short *blues, unsigned int stride, double x, double y, void *var_param)

Compute a mousse colourmap.

Parameters:

Returns: Nothing.
Multithreading Level: Unsafe


void cf_rainbow (unsigned int num_cells, unsigned short *reds, unsigned short *greens, unsigned short *blues, unsigned int stride, double x, double y, void *var_param)

Compute a rainbow colourmap.

Parameters:

Returns: Nothing.
Multithreading Level: Unsafe


void cf_random (unsigned int num_cells, unsigned short *reds, unsigned short *greens, unsigned short *blues, unsigned int stride, double x, double y, void *var_param)

Compute a rainbow colourmap.

Parameters:

Returns: Nothing.
Multithreading Level: Unsafe


void cf_rgb (unsigned int num_cells, unsigned short *reds, unsigned short *greens, unsigned short *blues, unsigned int stride, double x, double y, void *var_param)

Compute an rainbow colourmap.

Parameters:

Returns: Nothing.
Multithreading Level: Unsafe


void cf_smooth (unsigned int num_cells, unsigned short *reds, unsigned short *greens, unsigned short *blues, unsigned int stride, double x, double y, void *var_param)

Compute a rainbow colourmap.

Parameters:

Returns: Nothing.
Multithreading Level: Unsafe


void cf_staircase (unsigned int num_cells, unsigned short *reds, unsigned short *greens, unsigned short *blues, unsigned int stride, double x, double y, void *var_param)

Compute a staircase colourmap.

Parameters:

Returns: Nothing.
Multithreading Level: Unsafe


void cf_mirp (unsigned int num_cells, unsigned short *reds, unsigned short *greens, unsigned short *blues, unsigned int stride, double x, double y, void *var_param)

Compute a MIRP colourmap.

Parameters:

Returns: Nothing.
Multithreading Level: Unsafe


Contact: Richard Gooch
Web Development: Ariel Internet Services