Adapter interface for
images.blocked.Adapter class specifies the interface for
block-based reading and writing of array data. Classes that inherit from this interface can be
blockedImage objects, enabling block-based stream processing of
images.blocked.Adapter class is a
To implement an adapter, you must implement methods defined in the abstract class.
Required and Optional Methods
|Description||Methods to Implement|
|To implement a read-only adapter|
|To implement an adapter that can write data||The three read-only methods and: |
|To perform clean up tasks in an adapter (e.g closing file handles)|
|(Optional) To enable an adapter to be used in parallel mode in the
|(Optional) To enable the Resume option in the
Optionally, adapters for single-file destinations can define an
'Extension' property specifying the file extension as a scalar string
(e.g. "jpg") to use when automatically creating a destination location. For adapters that
store data in a folder, this property must not exist or be set to empty.
For information on class attributes, see Class Attributes.
You cannot instantiate an object of this type directly. Instead, you subclass this interface to create other classes that can be instantiated. The toolbox includes the following adapters. All these adapters support both read and write operations.
All the adapters that work on a per-block basis, such as
images.blocked.GenericImageBlocks, can be used with the parallel mode of
apply object function.