How can I open a TIF image stack, so that I can use each of the images separatly?

1 Kommentar

I remeber using bfOpen3DVolume function from Bio-format matlab tools to open TIFF Image stack,
Download bfmatlab.zip from openmicroscopy.org website, here is the link
Extract the folder and add it to matlab path,
fileName = 'C:\fullPath\Filename.tif'; %Path to tiff file containing image stack
Data = bfOpen3DVolume(fileName);
imgStack=Data{1,1}{1,1};
figure; montage(imgStack,[])

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Image Analyst
Image Analyst am 5 Sep. 2012

0 Stimmen

Did you use the Tiff class, introduced within the last few versions?

8 Kommentare

Bernoulli Lizard
Bernoulli Lizard am 5 Sep. 2012
What? No, I haven't done anything yet, because I don't know how. I could not find any helpful instructions or examples anywhere.
Image Analyst
Image Analyst am 5 Sep. 2012
Here's a snippet from the help:
Tiff class
MATLAB Gateway to LibTIFF library routines
Description
The Tiff class represents a connection to a Tagged Image File Format (TIFF) file and provides access to many of the capabilities of the LibTIFF library. Use the methods of the Tiff object to call routines in the LibTIFF library. While you can use the imread and imwrite functions to read and write TIFF files, the Tiff class offers capabilities that these functions don't provide, such as reading subimages, writing tiles and strips of image data, and modifying individual TIFF tags.
Bernoulli Lizard
Bernoulli Lizard am 5 Sep. 2012
not even a little bit helpful
Sean de Wolski
Sean de Wolski am 5 Sep. 2012
doc tiff
It even has an example...
Bernoulli Lizard
Bernoulli Lizard am 6 Sep. 2012
I looked in help before I asked this question, but I don't know what I should be looking for. I used 'find' and still cab not find any mention whatsoever of stacks.
Walter Roberson
Walter Roberson am 6 Sep. 2012
What is an "image stack" in this context? Is it a series of TIFF files, or is it a single TIFF file that stores several images? If it is a single TIFF file, then you use the facilities for reading "subimages"
Bernoulli Lizard
Bernoulli Lizard am 6 Sep. 2012
I'm not really sure. It looks like one file, but when it is opened [in ImagaeJ] it has several separate images that you can scroll through.
I can open the file using [FileName1, PathName1] = uigetfile({'*.tif', 'Image Files (*.tif)'}, 'Choose the image to open.'); % Open Image File
but I do not know how I can call and handle the individual images in it.

Melden Sie sich an, um zu kommentieren.

Community Treasure Hunt

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

Start Hunting!

Translated by