Specify display range in imoverlay

Hello,
I am working on image analysis and I am trying to superimpose images by using imoverlay. My base image is a double image, so if I use imshow(image1, [ ]) the image can be displayed correctly. However when I use imoverlay(image1, image2), image1 is completely white because this command does not restrict display range like imshow does. Anyone can help me with this?
Thanks.

 Respuesta aceptada

Ameer Hamza
Ameer Hamza el 9 de Abr. de 2020
imshow(image1, [ ]) merely normalized the input image of double type to the range 0 to 1. You can do a similar thing when you pass it to overlay
imoverlay(normalize(image, 'range'), image2)

2 comentarios

Chuan Zhang
Chuan Zhang el 9 de Abr. de 2020
That solves my problem, thank you so much.
Ameer Hamza
Ameer Hamza el 9 de Abr. de 2020
Glad to be of help.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Images en Centro de ayuda y File Exchange.

Preguntada:

el 9 de Abr. de 2020

Comentada:

el 9 de Abr. de 2020

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by