Horus Doc ||
Global Function Guide ||
General documentation |
Function documentation
HxMakeFromShortData
Synopsis
HxImageRep HxMakeFromShortData (int pixelDimensionality, int dimensions, HxSizes sizes, short *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.
short *data
- The array of shorts that you want to create the image from.
Return value
HxImageRep
- The image created from the array `data'.
Description
This function creates a short 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 shorts 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 shorts equal to the number of pixels in the (proposed) image times the proposed pixel dimensionality.
See also
HxMakeFromByteData, HxMakeFromIntData, HxExportShortData,
Keywords
Generation,
Generated on Mon Jan 27 15:45:01 2003 for GlobalFunctionGuide by
1.2.12 written by Dimitri van Heesch,
© 1997-2001