Re: extract dimension information

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

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