[ImageJ-bugs] [Bug 1000] "images to stack" does not work
bugzilla at fiji.sc
bugzilla at fiji.sc
Thu Feb 5 23:29:00 CST 2015
http://fiji.sc/bugzilla/show_bug.cgi?id=1000
--- Comment #15 from Wayne Rasband <wsr at nih.gov> ---
Run the following macro before using the Concatenate command. It zero pads all
open images so that they have the same dimensions.
maxWidth = 0;
maxHeight = 0;
for (i=1; i<=nImages; i++) {
selectImage(i);
if (getWidth>maxWidth) maxWidth=getWidth;
if (getHeight>maxHeight) maxHeight=getHeight;
}
for (i=1; i<=nImages; i++) {
selectImage(i);
if (getWidth!=maxWidth || getHeight!=maxHeight)
run("Canvas Size...", "width=&maxWidth height=&maxHeight
position=Center zero");
}
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://imagej.net/pipermail/imagej-bugs/attachments/20150206/fcdeab98/attachment.html>
More information about the Imagej-bugs
mailing list