How to prevent conflict between imwrite and Windows file browser?

1 view (last 30 days)
I'm writing very long tiff image sequence using imwrite in for loop, and everything is fine if no file browser window is opened in Windows. However, when it is, every second time I'm getting writing error, "do not have permission" to write. It seems that Windows is grabbing this file to gather information, while temporary making it "read only". Is there any way around? Maybe, to write whole sequence with one function, and not image by image? It would also solve writing time problem, which is in about a minute for a few thousands of slices.

Accepted Answer

Walter Roberson
Walter Roberson on 12 Nov 2015
If you are creating a non-trivial tiff file then I recommend using the Tiff class instead of imwrite()

More Answers (0)

Categories

Find more on Image Processing Toolbox in Help Center and File Exchange

Tags

Products

Community Treasure Hunt

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

Start Hunting!