图像的独特块处理
processes the image with file nameb
= blockproc (src_filename
,,,,[m n]
,,,,fun
)src_filename
,,,,reading and processing one block at a time. This syntax is useful for processing large images.
Choosing an appropriate block size can significantly improve performance. For more information, seeblock Size and Performance。
如果输出图像b
太大而无法适应内存,然后省略输出参数,而是使用Destination
名称值对参数将输出写入文件。
blockproc
can read BigTIFF images but has limited support for writing BigTIFF images to file. If you write an image to file, thenblockproc
根据文件的大小自动选择文件类型。如果图像小于或等于4.0 GB,则blockproc
将图像保存为标准TIFF图像。如果文件的大小大于4.0 GB,则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适配器
争论。有关更多信息,请参阅TIFF,BIGTIFF和BLOCKPROC。
要确定书面TIFF文件是标准TIFF还是BIGTIFF,请查询图像格式签名imfinfo
功能:
tiffinfo = imfinfo(Destination); tiffformat = tiffinfo.FormatSignature
如果最后一个非零值为tiffformat
为42,然后文件为标准TIFF格式。如果最后一个非零值为43,则文件为Bigtiff格式。