Re: Converting a stack to a montage
Posted by
Wayne Rasband on
Jan 18, 2006; 8:48pm
URL: http://imagej.273.s1.nabble.com/Converting-a-stack-to-a-montage-tp3704011p3704015.html
> I am attempting to convert a group of 5 image stacks into a
> 2-column, 3-row montages. I have the border set to 3 as
> well. I am encountering a bit of inconsistency in how the
> montage is made with regard to the empty spot in the lower
> right corner. At times, the montage has a white lower right
> corner and the borders are black. This is the way I would
> like it. At other times the lower right corner is black and
> the borders are white. Is there a way to force some kind of
> consistent behavior? I have a plugin that I have written to
> assemble about 150 of these montages but if they are not
> consistent it will still create a lot of hand work.
>
> What determines the border and blank space behavior as far
> as color choices made by the program?
With 16 and 32 bit images, Image>Stacks>Make Montage always draws white
borders and labels and fills unused areas with black. With 8 bit and
RGB images, it draws in white and fills with black if the median pixel
value of the first slice is less than 200, otherwise it draws in black
and fills with white. With ImageJ 1.35m and later, there is an option
to draw in the foreground color and fill with the background color.
-wayne