GenericImage
Description
A GenericImage object is an adapter that reads and writes 2-D
single-resolution blocked image data as a single image file.
When writing to disk, if the blocked image has any additional metadata in the
UserData property, then the GenericImage object writes
the data to a separate MAT file with the same file name.
By default, the object saves image data as a PNG file. To use a different file format,
create the object and then change the file format using the BlockFormat
property. For example, to write a blocked image as a JPG file, use this code.
adapter = images.blocked.GenericImage;
adapter.Extension = "jpg";When reading from disk, the object reads all image data into memory as a single block. To
access smaller blocks of image data, create a blockedImage object from the
image file and specify a block size that is smaller than the full size of the image.
The table lists the support that the GenericImage object has for various
blockedImage
capabilities.
| Capabilities | Support |
|---|---|
| Data types | This object supports 2-D images only:
|
| Multiple resolution levels | No |
Process blocks in parallel using the apply
function | No |
Resume block processing using the apply
function | Limited. Only useful when processing an array of blockedImage
objects. |
Creation
Description
adapter = images.blocked.GenericImage creates a
GenericImage object that reads and writes blocked image data as a
single image file.