Display Disparity Map in GUI Axes

조회 수: 1 (최근 30일)
Pankaja Tanjore
Pankaja Tanjore 2015년 7월 4일
댓글: Walter Roberson 2015년 7월 6일
Hello ,
I have the color disparity map.I am able to display this color disparity map from .m file. I have displayed it using the following code.
figure
imshow(disparityMap, [224,352]);
title('Disparity Map filtered');
colormap jet colorbar
Now i need to display this in GUI axes.It should be the same as displayed in figure.
I am sending here the image which i have displayed as figure.
Please let me know how this has to displayed in the axes. Color bar also has to be displayed in the axes.
Looking forward to hear from you at the earliest.
Thanks Pankaja
  댓글 수: 2
B.k Sumedha
B.k Sumedha 2015년 7월 4일
Did you try anything?
Just posting questions without trying anything is waste of time for both of us.:(
Walter Roberson
Walter Roberson 2015년 7월 4일
imagesc(data) is not the same thing as imshow(data, [224,352]). They are closely related but in the imshow case you are saying to focus in on the range 224 to 352, but in the imagesc case you are saying to scale over the entire range of data.
Note also that you do not necessarily have colormap jet in effect for the axes in the second case.

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

채택된 답변

Geoff Hayes
Geoff Hayes 2015년 7월 4일
Pankaja - if you are using this code to display the image correctly in a figure,
figure
imshow(disparityMap, [224,352]);
title('Disparity Map filtered');
colormap jet
colorbar
then why not just modify the code to indicate where (i.e. which axes) to plot the data
imshow(disparityMap, [224,352], 'Parent', handles.axes8);
title(handles.axes8, 'Disparity Map filtered');
colormap(handles.axes8,jet);
colorbar(handles.axes8);
  댓글 수: 1
Walter Roberson
Walter Roberson 2015년 7월 6일
The screen shot did not make it here.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Blue에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by