Posted by
Joachim Wesner on
Aug 12, 2009; 11:06am
URL: http://imagej.273.s1.nabble.com/Getting-file-info-from-ImagePlus-objects-tp3691500p3691502.html
Hi Simon,
what about getOriginalFileInfo? Thsi should work!?
There is some entry in the archive that any problem with stacks was fixed
already in version 1.37c
(Thanx for asking this, up till now, I was not aware of these methods!)
Mit freundlichen Grüßen / Best regards
Joachim Wesner
Simon Andrews
<simon.andrews@BB
SRC.AC.UK> An
Gesendet von:
[hidden email]
ImageJ Interest Kopie
Group
<
[hidden email]. Thema
GOV> Getting file info from ImagePlus
objects
12.08.2009 12:44
Bitte antworten
an
ImageJ Interest
Group
<
[hidden email].
GOV>
In a plugin I'm writing I'm trying to extract the full path to the
original image which is being processed. The images are TIFF stacks.
I've tried a few different methods, the most promising of which seemed
to be getFileInfo - but when I call this the object which is returned
has no value in its directory field, and a file name of Untitled.
The only place I've found any file information was in the getTitle()
method of ImagePlus which gets me the window title (which happens to
be the file name), but this doesn't get me the directory the image
came from and the pwd doesn't match this either.
How can I get this information?
Thanks
Simon.
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit
http://www.messagelabs.com/email
______________________________________________________________________