Function: getImageDataMetadata()
getImageDataMetadata(
image
):ReturnImageDataMetadata
Calculates image metadata based on the image object. It calculates normal axis for the images, and output image metadata
Parameters
• image: IImage
stack image containing cornerstone image
Returns
ReturnImageDataMetadata
image metadata: bitsAllocated, number of components, origin, direction, dimensions, spacing, number of voxels.