Login  Register

Re: File formats and pixel size

Posted by CARL Philippe (LBP) on Jun 04, 2021; 7:42pm
URL: http://imagej.273.s1.nabble.com/File-formats-and-pixel-size-tp5024686p5024702.html

Dear Aleksandr,
You will find the advertised file under the following link:
http://punias.free.fr/ImageJ/StartupMacros.txt
As you will see this code will be doing a little bit more than what you requested.
It had been written in order to open iMIC data (a microscope that was manufactured by the company Till Photonics) and thus will add an iMIC icon to the ImageJ window for which you could define different opening options by making a mouse right click on the icon.
And the file reformatting (following a "regular ImageJ Drag&Drop opening") is done either through a mouse left click on the icon of just using the F8 key.
So please enjoy and feel free to contact me in the case you have further questions.
My best regards,
Philippe

----- Mail original -----
De: "Aleksandr Mironov" <[hidden email]>
À: "imagej" <[hidden email]>, "CARL Philippe, LBP" <[hidden email]>
Envoyé: Vendredi 4 Juin 2021 15:49:34
Objet: Re: File formats and pixel size

Dear Philippe,

I already have working macro converting tiff/mrc that I call using windows batch file. I was just hoping that I am missing something in standard drag/drop file opening.
However, I will still appreciate your code as it may teach me couple of things.

Best regards,
Alex



From: Herbie <[hidden email]>
Sent: 04 June 2021 14:41
To: [hidden email] <[hidden email]>
Subject: Re: File formats and pixel size
Sent on behalf of Philippe CARL @ Université de Strasbourg
__________________________

Dear Aleksandr,
Similarly to you I don't like to use the Bioformats importer not only
due to its displayed selection window but also and especially the needed
(incredibly huge) time just for opening a simple pictures stack.
As such "heavy duty" workflow may be acceptable in the case you just
need to open a couple of such files, it becomes way to heavy when you
need to work with a lot of such files.
Thus what I did was to follow exactly the recommandation of Herbie of
writing a macro that allows to perform an ad hoc formatting of files
"wrongly read by ImageJ" through a Drag&Drop opening.
And I added this reformatting code within the StartupMacros.txt and call
it through a Shortcut.
So if you wish I could make this code available for you to have a
starting point in order to create your own solution.
My best regards,
Philippe

Philippe CARL
Laboratoire de Bioimagerie et Pathologies
UMR 7021 CNRS - Université de Strasbourg
Faculté de Pharmacie
74 route du Rhin
67401 ILLKIRCH
Tel : +33(0)3 68 85 42 89

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html