Horus Doc ||
Global Function Guide ||
General documentation |
Function documentation
HxMakeFromFloatData
Synopsis
HxImageRep HxMakeFromFloatData (int pixelDimensionality, int dimensions, HxSizes sizes, float *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.
float *data
- The array of floats that you want to create the image from.
Return value
HxImageRep
- The image created from the array `data'.
Description
This function creates a float image from an array of floats. 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 floats 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 floats equal to the number of pixels in the (proposed) image times the proposed pixel dimensionality.
See also
HxMakeFromDoubleData, HxMakeFromByteData, HxExportFloatData,
Keywords
Generation,
Generated on Tue Feb 3 14:20:27 2004 for GlobalFunctionGuide by
1.2.12 written by Dimitri van Heesch,
© 1997-2001