blockproc
Distinct block processing for image
Syntax
Description
processes the image with file name B
= blockproc(src_filename
,[m n]
,fun
)src_filename
, reading and
processing one block at a time. This syntax is useful for processing large
images.
uses name-value pair arguments to control various aspects of the block
behavior.B
= blockproc(___,Name,Value
)
Examples
Input Arguments
Output Arguments
More About
Tips
Choosing an appropriate block size can significantly improve performance. For more information, see Block Size and Performance.
If the output image
B
is too large to fit into memory, then omit the output argument and instead use theDestination
name-value pair argument to write the output to a file.blockproc
can read BigTIFF images but has limited support for writing BigTIFF images to file. If you write an image to file, thenblockproc
automatically selects the file type according to the size of the file. If the image is less than or equal to 4.0 Gb, thenblockproc
saves the image as a standard TIFF image. If the size of the file is larger than 4.0 Gb, thenblockproc
saves the image as a BigTIFF image.blockproc
does not provide an argument that enables you to specify the file type as BigTIFF when the file size is less than or equal to 4.0 Gb. If you want to write a small image as a BigTIFF file, then specify a custom image adapter using theadapter
argument. For more information, see TIFF, BigTIFF, and blockproc.To determine whether a written TIFF file is standard TIFF or BigTIFF, query the image format signature using the
imfinfo
function:tiffinfo = imfinfo(Destination); tiffformat = tiffinfo.FormatSignature
If the last nonzero value of
tiffformat
is 42, then the file is in the standard TIFF format. If the last nonzero value is 43, then the file is in the BigTIFF format.
Extended Capabilities
Version History
Introduced in R2009b