Login  Register

Tiff and roi files

Posted by Girault France on Nov 29, 2006; 2:05pm
URL: http://imagej.273.s1.nabble.com/Tiff-and-roi-files-tp3700924.html

Dear all,

 

I'm having some troubles trying to open tif and roi files...

Basically I have a folder with tiff images and another one with roi
files (the roi file is supposed to be the selected particle of the
corresponding image).

I would like to open all the tiff images and their roi by running a
macro, everytime I try, I get the message that the roi file is not found
although the path is correct.

Does anybody know another way to do so?

 

Here is a part of the macro that I'm trying to use:

(...)

            open(path);

            i=getTitle();

            if(endsWith(i, ".tif")==true)
i=substring(i,0,lengthOf(i)-4);

            t=getDirectory("image");

            t=File.getParent(t);

            open(t+"\\Measured_D\\"+i+".roi");

(...)

 

I've also tried to open the complete folder of roi files, but  even if
the folder has more than 1 hundred files and all of them are selected to
be opened, I cannot open them all together... only just few of them. I
open these files by dragging and dropping the selection on ImageJ. It
works well with tiff images where the complete folder can be open but I
don't know how to do so for roi files.

Any ideas of how to do ?

 

Many thanks,

 

France