Main Content


Read and write blocks of blocked image data as binary files

Since R2021a


The BINBlocks object is an adapter that reads and writes blocked image data as binary files.

When writing to disk, the object creates an individual binary file with simple header information for each block. The object saves the binary files in a folder. For multiresolution images, the object creates one subfolder for each resolution level. The object also creates and saves a MAT file with information about the blocked image, including the image size, block size, and data type.

The table lists the support that the BINBlocks object has for various blockedImage capabilities.

Data types

All numeric and logical data types of any dimension

Multiple resolution levelsYes
Process blocks in parallel using the apply functionYes
Resume block processing using the apply functionYes



adapter = images.blocked.BINBlocks creates a BINBlocks object that reads and writes blocked image data as binary files, with one binary file for each block.

Version History

Introduced in R2021a

See Also