Hello,
I need to overlay two images in Matlab to get a similar picture (as attached), generated using Petrel.
I have two data sets: x1,y1,z1 and x2,y2,z2 with regular 2D grid. How to use pcolor or similar functions to overlay two images? Note that the colormap for two images should be different.
Thanks, Alexander

 채택된 답변

Walter Roberson
Walter Roberson 2015년 7월 2일

0 개 추천

Starting from R2014b you can use different colormaps for different images. Before that you can use the File Exchange contribution freezeColors to get the truecolor version of a pseudocolor image. If you have suitable data you can also use ind2rgb() .
Once you have multiple image data arrays, you can image() them, possibly specifying XData and YData if they are not to exactly overlay each other. You can set the AlphaData property of the image() objects in order to blend the two together.

댓글 수: 1

Alexander Rozhko
Alexander Rozhko 2015년 7월 2일
Thank you for the comment. I found already other solution for Matlab 2012b version. I am using freezeColors.m function, which I uploaded from this website.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Blue에 대해 자세히 알아보기

제품

태그

Community Treasure Hunt

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

Start Hunting!

Translated by