blockedImage
Description
A blockedImage
object is an image made from discrete blocks. You
can use a blocked image to:
Process multiresolution (also known as multilevel or pyramidal) images
Process images, volumes, or multidimensional images that are too large to fit into memory
Process volumes or multidimensional images as 3-D or higher-dimensional blocks
Perform block processing on images in nonstandard image formats
Creation
Syntax
Description
Create Read-only Blocked Image
bim = blockedImage(
creates a Source
)blockedImage
object from an in-memory array, an image file,
or a folder containing blocked image data. A folder must contain only data written by a
previous call to the write
function. Specify the Source
property as the
variable name, the filename, or the folder name.
[bim1,bim2,...] = blockedImage(
creates an array of sources
)blockedImage
objects from multiple sources. The
sources can be a collection of files or folders with blocked image data. The number of
blocked images is equal to the number of sources.
[___] = blockedImage(___,Name=Value)
creates a blockedImage
object and sets one or more of these properties
by using name-value arguments: Adapter
, AlternateFileSystemRoots
,
BlockSize
,
UserData
,
WorldStart
,
and WorldEnd
.
For example, bim = blockedImage(Source,BlockSize=[64 128])
specifies a block size of 64-by-128 pixels.
Create Writable Blocked Image
bim = blockedImage(
creates a writeable destination
,Size
,BlockSize
,InitialValue
,Mode="w")blockedImage
object with one or multiple resolution
levels. The destination
argument specifies the location of the
writable data. Specify the Size
and BlockSize
properties as the image size and block size at each resolution level, respectively.
Specify the InitialValue
property as
the initial value for each array element.
bim = blockedImage(
also sets one or more of these properties by using name-value arguments: destination
,Size
,BlockSize
,InitialValue
,Mode="w",Name=Value)Adapter
, AlternateFileSystemRoots
,
UserData
,
WorldStart
,
and WorldEnd
.
For example, bim =
blockedImage(destination,Size,BlockSize,InitialValue,Mode="w",Adapter=images.blocked.JPEGBlocks)
specifies that the blockedImage
object write each block as a JPEG file
in a folder.
Input Arguments
Properties
Object Functions
apply | Process blocks of blocked image |
concatenateLevels | Concatenate levels from multiple blocked images |
crop | Create cropped version of blocked image |
blocksub2sub | Convert block subscripts to pixel subscripts |
gather | Collect blocks into current workspace |
getBlock | Read specific block of blocked image |
getRegion | Read arbitrary region of blocked image |
setBlock | Put data in specific block of blocked image |
makeMultiLevel2D | 2-D multilevel blocked image |
makeMultiLevel3D | 3-D multilevel blocked image |
sub2blocksub | Convert pixel subscripts to block subscripts |
sub2world | Convert pixel subscripts to world coordinates |
world2sub | Convert world coordinates to pixel subscripts |
write | Write blocked image data to new destination |
Examples
Tips
The
blockproc
function is an alternative toblockedImage
for processing 2-D blocks of single-resolution in-memory images.