From: ImageAnalyst on
You're confusing me. You said you want to "change the dimension of
the image without losing the color". First of all changing the
dimension using resize does not change the color. Neither does
stitching. I've looked at stitch.m and it will convert a monochrome
image to color because that's what you must do if you're going to
stitch them together. You can't have a NxM array with the left half
of it having a third dimension (for the 3 color planes) and the right
half of it being a single plane -- the whole array must be a three
dimensional (color) array. So when it converts the monochrome image
to color, it changes it TO COLOR, it does not change THE color. If
you want to APPLY the "jet" colormap to your monochrome image before
stitching, then you must use ind2rgb() before stitching. In that
case, the stitched image will have the "jet" appearance to it instead
of the grayscale appearance because you've converted it to color with
the ind2rgb function.
From: Raphael J on
ImageAnalyst <imageanalyst(a)mailinator.com> wrote in message <0da09e6c-0397-4062-94ba-3dbe2edd59e9(a)d16g2000yqb.googlegroups.com>...
> You're confusing me. You said you want to "change the dimension of
> the image without losing the color". First of all changing the
> dimension using resize does not change the color. Neither does
> stitching. I've looked at stitch.m and it will convert a monochrome
> image to color because that's what you must do if you're going to
> stitch them together. You can't have a NxM array with the left half
> of it having a third dimension (for the 3 color planes) and the right
> half of it being a single plane -- the whole array must be a three
> dimensional (color) array. So when it converts the monochrome image
> to color, it changes it TO COLOR, it does not change THE color. If
> you want to APPLY the "jet" colormap to your monochrome image before
> stitching, then you must use ind2rgb() before stitching. In that
> case, the stitched image will have the "jet" appearance to it instead
> of the grayscale appearance because you've converted it to color with
> the ind2rgb function.

Thanks for your explanation ImageAnalyst, now I got it ;-)