Image.make8bit

void make8bit(hid_t locId, string imageName, hsize_t width, hsize_t height, const ubyte[] data)

Creates an 8-bit grayscale image.

Parameters

locIdLocation identifier (file or group handle)
imageNameName of the image dataset
widthWidth of the image in pixels
heightHeight of the image in pixels
dataPixel data (width * height bytes)

Throws

HDF5Exception if image creation fails