Distinct block processing for image
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.
blockproc(___,
uses name-value pair arguments to control various aspects of the block
behavior.Name,Value
)
Choosing an appropriate block size can significantly improve performance. For more information, see Block Size and Performance.
If the output matrix B
is too large to fit into memory,
then omit the output argument and instead use the
Destination
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, then
blockproc
automatically selects the file type according
to the size of the file. If the image is less than or equal to 4.0 Gb, then
blockproc
saves the image as a standard TIFF image. If
the size of the file is larger than 4.0 Gb, then blockproc
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 the adapter
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.
bigimage
| colfilt
| ImageAdapter
| nlfilter