Re: extract dimension information

Posted by Herbie on
URL: http://imagej.273.s1.nabble.com/extract-dimension-information-tp5022804p5022807.html

Salut Philippe,

thanks for your very economical solution!

Happy holidays, une bonne fête, schöne Feiertage

for all of you, à tous, für alle

Herbie

:::::::::::::::::::::::::::::::::::::::::::::::::
Am 23.12.19 um 17:51 schrieb CARL Philippe (LBP):

> Grüss Gott Herbie,
> You could as well write (i.e. by using only one line):
> newImage("Empty image", bitDepth() + "-bit black", getWidth, getHeight, nSlices);
> Frohe Weihnachten und einen guten Rutsch ins neue Jahr 2020!!!
> Kindest regards,
> Philippe
>
> PS: Dear Patricia, besides the recommandations of Herbie about the list of macro functions, don't as well forget the use of the Plugins>Macros>Record... which will already be doing most of your needed work
>
> 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 41 84
>
> ----- Le 23 Déc 19, à 10:08, Herbie [hidden email] a écrit :
>
> Bonjour Patricia,
>
> these three macro code lines should do what you want:
>
> //////////////
> getDimensions(width, height, channels, slices, frames);
> b = bitDepth();
> newImage("Empty image", b+"-bit black", width, height, slices);
> //////////////
>
> Please consult the commented list of macro functions for further details:
> <https://imagej.nih.gov/ij/developer/macro/functions.html>
>
> Joyeux Noël
>
> Herbie
>
> :::::::::::::::::::::::::::::::::::::::::::::::::::
> Am 23.12.19 um 07:46 schrieb OBEID Patricia 154904:
>> Hello,
>> I'm looking to retrieve the dimensions of an image to be able to open a black image of the same dimensions.
>> Can you help me write the macro please?
>> thank you so much
>> Patricia
>>
>> _______________________________________
>> [http://www.cea.fr/var/cea/signatures/cea_logo.jpg]<http://www.cea.fr/>
>>
>> Patricia OBEÏD
>> Ingénieur de Recherche /Animateur Informatique Biomics
>> Institut de Recherche Interdisciplinaire de Grenoble
>> DRF / IRIG / DS /BGE U1038/ Biomics / Bât 4020
>> Commissariat à l'énergie atomique et aux énergies alternatives
>> Email : [hidden email]<mailto:[hidden email]>
>> Tél : (+33)4 38 78 47 12         Fax : (+33)4 38 78 59 17
>>
>> Toute notre actualité sur www.cea.fr et sur http://www.bge-lab.fr/Pages/Biomics/Presentation.aspx <http://www.cea.fr/drf/big/bge/biomics>
>>
>> <http://www.cea.fr/>Suivez-nous également sur Twitter : @CEA_Recherche<https://twitter.com/#!/CEA_Recherche> et sur https://twitter.com/BiomicsLab
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>

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