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

HxMakeFromMatlab

Synopsis

HxImageRep HxMakeFromMatlab (const HxImageSignature & signature, HxSizes sizes, double *pixels)

Input

const HxImageSignature & signature
The signature of the image you want to construct from the matlab data.

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

double *pixels
The array of doubles from which you create your image.

Return value

HxImageRep
The image created from the array `pixels'.

Description

This function creates an image with the given signature and sizes from an array of doubles, i.e. the way Matlab stores its images. The type of the image is given by the signature, see the section on image Image signatures. The size of the image is given by `sizes'. The array `pixels' should contain at least a number of doubles equal to the number of pixels in the image (determined by the sizes and the dimensionality from the signature) times the pixel dimensionality (from the signature).

Remarks

Valid input parameters
The image signature should be one of the existing image signatures (see the section on image Image signatures). Sizes should have a dimensionality equal to the dimension as mentioned in the signature. The size in every dimension should be at least 1.

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

See also

HxMakeFromDoubleData, HxExportMatlabPixels,

Keywords

Generation, Conversion,


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