Posted by
CARL Philippe (LBP) on
URL: http://imagej.273.s1.nabble.com/extract-dimension-information-tp5022804p5022806.html
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:
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html