From: ImageAnalyst on 28 Jun 2010 12:14 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 28 Jun 2010 13:06 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 ;-)
First
|
Prev
|
Pages: 1 2 Prev: Index containers.map by vector Next: Call for volunteers: GlobalText Image Processing Book |