DSPRelated.com
Forums

Image Overlay

Started by michael_fivey March 19, 2002
Alright,

Does anyone have any idea on how to overlay two images in MATLAB so
that they are able to be registered. i.e. so that a histogram can be
taken of the image content of the two images when combined as opposed
to a histogram being taken of the two images seperately.
Thanks.



--- michael_fivey <> wrote:
> Alright,
>
> Does anyone have any idea on how to overlay two
> images in MATLAB so
> that they are able to be registered. i.e. so that a
> histogram can be
> taken of the image content of the two images when
> combined as opposed
> to a histogram being taken of the two images
> seperately. >
> Thanks. >
Hi,
Convert your images to RGB if it is not (use ind2rgb).
Than do the operations on the matrices.
Finally use imagesc to display it.
For example if you just want to add the images up
then:
Mtot=double(M1)+duoble(M2); % the double is needed in
case you get uint8 matrices.

Joe
BSTEX - Equation viewer for Matlab
http://www.geocities.com/bstex2001