Store each block as image file in folder
images.blocked.GenericImageBlocks class is an adapter for use with
Use this adapter to store results on disk for any format. The adapter saves an image in a
folder with individual files for each block. The adapter stores the image in a folder which
contains a MAT-file with information about the image (including image size, blocksize, type).
This top-level folder has one subfolder per resolution level (L1, L2..LN). These subfolders
contain image format files for each block. The file format used must be one that is supported
imwrite. The default file format is
Restricted to the format chosen. See section for chosen format in
|Use parallel processing||Yes|
images.blocked.GenericImageBlocks class is a
For information on class attributes, see Class Attributes.
adapter = images.blocked.GenericImageBlocks() creates an instance
images.blocked.GenericImageBlocks adapter for use with
Create blocked image.
bim = blockedImage('tumor_091R.tif');
Write image data to files. Specify the
wa = images.blocked.GenericImageBlocks(); wa.BlockFormat = "tif"; write(bim, "dirOfTIFFs", "Adapter", wa);
Create a blocked image from the folder of images. The
blockedImage object automatically picks the appropriate adapter.
bt = blockedImage("dirOfTIFFs"); disp(bt.Adapter)
GenericImageBlocks with properties: BlockFormat: "tif"