From: - - on
Can anyone here provide the way for converting 3D image to 2D image?
3D image detail: size =432 x 518 x 3

10q~~~
From: Rob Campbell on
"- -" <wai_khee(a)hotamil.com> wrote in message <hpnbc9$c2o$1(a)fred.mathworks.com>...
> Can anyone here provide the way for converting 3D image to 2D image?
> 3D image detail: size =432 x 518 x 3

The 3rd dimension represents intensity in the red, green, and blue domains. In converting to 2D you will remove this information and so the image will contain only intensity information and no colour. The easiest thing you could do is take the mean intensity over the three channels:
mean(myImage,3)
From: Walter Roberson on
Rob Campbell wrote:
> "- -" <wai_khee(a)hotamil.com> wrote in message
> <hpnbc9$c2o$1(a)fred.mathworks.com>...
>> Can anyone here provide the way for converting 3D image to 2D image?
>> 3D image detail: size =432 x 518 x 3
>
> The 3rd dimension represents intensity in the red, green, and blue
> domains. In converting to 2D you will remove this information and so the
> image will contain only intensity information and no colour. The easiest
> thing you could do is take the mean intensity over the three channels:
> mean(myImage,3)

mean intensity over the three color channels does not have any
particular physical significance, because human eyes respond differently
to intensity changes in the three colors. If you wish to convert an
image to the luminance (brightness) that would be perceived by a human,
then the rgb2gray function will apply the appropriate weights.