Store each block as HDF5 file in folder
images.blocked.H5Blocks class is an adapter for use with blocked
images. Use this adapter to archive data as a chunked, single HDF5 file with lossless
compression enabled. The adapter stores additional information in
if any exists, alongside in a MAT-file with the same file name.
All numeric and logical data types of any dimensions. Logical data is
|Use parallel processing||Yes|
images.blocked.H5Blocks class is a
For information on class attributes, see Class Attributes.
adapter = images.blocked.H5Blocked() creates an instance of an
images.blocked.H5Blocked adapter for use with
GZIPLevel— GZIP compression level
1(default) | numeric scalar between 0-9
GZIP compression level, specified as a numeric scalar between 0-9. This value controls the level of GZIP (loss-less) compression. 0 turns off compression. Higher values attempt to increase the level of compression (reduced file sizes) at the cost of higher runtimes.
Create a blocked image.
bim = blockedImage('tumor_091R.tif');
Write image data to files. Specify the
wa = images.blocked.H5Blocks(); wa.GZIPLevel = 5; write(bim, "H5sFolder", "Adapter", wa);
Create a blocked image from the folder of images. The
blockedImage object automatically picks the appropriate adapter.
bh5 = blockedImage("H5sFolder");