Main Content

images.blocked.GenericImageBlocks class

Package: images.blocked

Store each block as image file in folder

Description

The images.blocked.GenericImageBlocks class is an adapter for use with blocked images.

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 by imwrite. The default file format is "png".

CapabilitiesSupport
Data Types

Restricted to the format chosen. See section for chosen format in imwrite for more detail.

Multiresolution levelsYes
Use parallel processingYes
Resume processingYes

The images.blocked.GenericImageBlocks class is a handle class.

Class Attributes

HandleCompatible
true

For information on class attributes, see Class Attributes.

Creation

Description

example

adapter = images.blocked.GenericImageBlocks() creates an instance of an images.blocked.GenericImageBlocks adapter for use with blockedImage functions.

Properties

expand all

Image file format for each block of data, specified as a string scalar identifying one of the formats supported by imwrite.

Data Types: string

Examples

collapse all

Create blocked image.

bim = blockedImage('tumor_091R.tif');

Write image data to files. Specify the images.blocked.GenericImageBlocks adapter.

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"
Introduced in R2021a