Get and set pixel values
#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;
Specifies the image containing the pixel.
Specify the band, row, and column of the pixel.
Specifies the pixel's new value.
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.
VistaIOGetPixel returns the value of the specified pixel.
VistaIOImage(3),
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.
Art Pope <[email protected]>
Adaption to vistaio: Gert Wollny <[email protected]>