[ImageJ-devel] Stitching - CompositeImage forces stack slices to channel if < 7
Rasband, Wayne (NIH/NIMH) [E]
rasbandw at mail.nih.gov
Wed Jan 22 11:25:32 CST 2014
On Jan 22, 2014, at 11:07 AM, Mark Hiner wrote:
> Hi all,
>
> I noticed today that on line 60 of CompositeImage, if the stack size is less than 7, the stack is converted to channels (coupled with lines 68-69).
>
> This causes bizarre & inconsistent behavior (especially to scientist users), e.g. when stitching if there are more than 7 slices everything looks great, and less than 7 all of a sudden you get back a colored channel stack.
>
> It's not clear to me why this code is necessary.. perhaps it should only be executed if the mode is set to COMPOSITE?
>
> If this behavior is truly intended and necessary, then I think it is erroneous to use CompositeImage in the Stitching plugin.
In the latest ImageJ daily build (1.48q13), the CompositeImage constructor no longer converts
stacks to channels when the number of slices is less than 8 if the mode is GRAYSCALE.
-wayne
More information about the ImageJ-devel
mailing list