Login  Register

How to get stack base path

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options Options
Embed post
Permalink
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

How to get stack base path

Eddie Iannuccelli
24 posts
Hello,
Is it possible to get the base directory from which IJ has imported an image
stack using import image sequence menu ?
I have already try to use ImagePlus.GetFileInfo.directory which return empty
string and ImagePlus.GetImageStack.GetProcessor which do not provide any
method or property to get path ?
Regards

----------------------------------------
Eddie Iannuccelli
Laboratoire de génétique cellulaire
INRA - Castanet Tolosan
Tel: 05 61 28 54 44 / Fax: 05 61 28 53 08
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Re: How to get stack base path

Wayne Rasband
1011 posts
> Is it possible to get the base directory from which IJ has imported
> an image stack using import image sequence menu ?
> I have already try to use ImagePlus.GetFileInfo.directory which
> return empty string and ImagePlus.GetImageStack.GetProcessor
> which do not provide any method or property to get path ?

Use ImagePlus.getOriginalFileInfo().directory. ImageJ 1.37c fixes a bug
that could cause getOriginalFileInfo() to return null for stacks
created using File>Import>Image Sequence.

-wayne
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Re: How to get stack base path

Eddie Iannuccelli
24 posts
Problem solved !
many thanks to wayne for my 'first ij problem' resolution, this is
psychologically important for newbies like me ...
regards


> -----Message d'origine-----
> De : ImageJ Interest Group [mailto:[hidden email]] De la
> part de Wayne Rasband
> Envoyé : samedi 1 avril 2006 00:11
> À : [hidden email]
> Objet : Re: How to get stack base path
>
> > Is it possible to get the base directory from which IJ has
> imported an
> > image stack using import image sequence menu ?
> > I have already try to use ImagePlus.GetFileInfo.directory
> which return
> > empty string and ImagePlus.GetImageStack.GetProcessor
> > which do not provide any method or property to get path ?
>
> Use ImagePlus.getOriginalFileInfo().directory. ImageJ 1.37c
> fixes a bug that could cause getOriginalFileInfo() to return
> null for stacks created using File>Import>Image Sequence.
>
> -wayne
>