Image.getNumPalettes

hssize_t getNumPalettes(hid_t locId, string imageName)

Gets the number of palettes associated with an image.

Parameters

locIdLocation identifier (file or group handle)
imageNameName of the image dataset

Returns

Number of palettes

Throws

HDF5Exception if getting palette count fails