Why does my TIF or TIFF image created by BLOCKPROC not open correctly outside of MATLAB in Image Processing Toolbox 7.0 (R2010a)?

2 views (last 30 days)
I am using BLOCKPROC to perform "file to file" image processing on large TIF images.
fun = @(block_struct) imresize(block_struct.data,.5);
I = imread('penguin.tif');
%create and write with blockproc directly
blockproc(I,[20 20],fun,'Destination','TEST_blockproc.tif');
%create with blockproc and write with imwrite
I2=blockproc(I,[20 20],fun);
imwrite(I2,'TEST_imwrite.tif','tif')
%The image displays ok in MATLAB
imshow(I2) %just fine
%But if I open the file outside of MATLAB it may not open correctly
winopen('TEST_blockproc.tif') %fails
winopen('TEST_imwrite.tif') %works
%Behavior may be different depending on your default TIF viewer that opens the image.

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 28 Jul 2010
This may be expected behavior in Image Processing Toolbox 7.0 (R2010a) depending on your external TIF viewer.
BLOCKPROC, when used with the 'Destination' argument may create tiled TIF images. This is one of the advantages that allows large image file-to-file processing. If you wish to use an external application to view the TIF file, it must support tiled-tif images.

More Answers (0)

Categories

Find more on Image Processing and Computer Vision in Help Center and File Exchange

Products


Release

R2010a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!