overlay plot on imgage

조회 수: 110 (최근 30일)
Don
Don 2017년 10월 2일
댓글: Cedric 2017년 10월 7일
I have images of artwork and plots of data from an eye tracker. I want to overlay the data plots on the images. A complication: artwork images come in different sizes. I think the subplot function will do some of this be I don't know how. Any help is greatly appreciated

채택된 답변

Cedric
Cedric 2017년 10월 2일
편집: Cedric 2017년 10월 2일
hold on
for overlays, for example:
imshow( myImage ) ;
hold on ;
plot( x, y, 'rx' ) ;
and you will see the plot over the image. You can have more control by creating axes by yourself, but it is more complicated. For this, if you really have the time to learn, look at my answer here.
  댓글 수: 13
Don
Don 2017년 10월 7일
YAY! I think I got it -- imgLocator = fullfile(filepath, filename) ;, xPoints = xaxis; yPoints = yaxis;
This seems to work! You are a genius. Thank you Thank you Thank you
Cedric
Cedric 2017년 10월 7일
My pleasure!

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

추가 답변 (0개)

카테고리

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

제품

Community Treasure Hunt

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

Start Hunting!

Translated by