VistaIOSetPixel(3) get and set pixel values

Other Alias

VistaIOGetPixel

SYNOPSIS

#include <vistaio.h>
VistaIODouble VistaIOGetPixel (image, band, row, column)

VistaIOImage image; int band, row, column;
void VistaIOSetPixel (image, band, row, column, value)
VistaIOImage image; int band, row, column; VistaIODouble value;

ARGUMENTS

image
Specifies the image containing the pixel.
band, row, column
Specify the band, row, and column of the pixel.
value
Specifies the pixel's new value.

DESCRIPTION

VistaIOGetPixel fetches the value of the specified pixel and returns it as a VistaIODouble, casting it from the image's actual pixel representation if necessary.

VistaIOSetPixel sets the specified pixel to value, casting it to the image's actual pixel representation if necessary.

RETURN VALUES

VistaIOGetPixel returns the value of the specified pixel.

NOTES

If the image is known to have a particular pixel representation then the VistaIOPixel macro (see VistaIOImage(3)) can be used, instead, yielding greater efficiency.

AUTHOR

Art Pope <[email protected]>

Adaption to vistaio: Gert Wollny <[email protected]>