Horus Doc || Global Function Guide || General documentation   | Function documentation  

HxMakeFromByteData

Synopsis

HxImageRep HxMakeFromByteData (int pixelDimensionality, int dimensions, HxSizes sizes, HxByte *data)

Input

int pixelDimensionality
The dimensionality of the pixels of the image you want to create.

int dimensions
The number of dimensions of the image you want to create.

HxSizes sizes
The size of every dimension of the image you want to create.

HxByte *data
The array of HxByte that you want to create the image from.

Return value

HxImageRep
The image created from the array `data'.

Description

This function creates a byte image from an array of HxBytes. The size of the image is given by `sizes', the dimensionality of the pixels by pixelDimensionality and the dimensionality of the image is given by `dimensions'. The array `data' should contain at least a number of bytes equal to the number of pixels in the image (determined by the sizes and the dimensionality) times the pixel dimensionality.

Remarks

Valid input parameters
pixelDimensionality should be 1, 2 or 3. `dimensions' should be 2 or 3. `sizes' should have a dimensionality equal to `dimensions'.

Valid arrays
The array should contain at least a number of bytes equal to the number of pixels in the (proposed) image times the proposed pixel dimensionality.

See also

HxMakeFromDoubleData, HxMakeFromFloatData, HxExportByteData,

Keywords

Generation,


Generated on Mon Jan 27 15:45:01 2003 for GlobalFunctionGuide by doxygen1.2.12 written by Dimitri van Heesch, © 1997-2001