How do I scale the data to overlap on the image?

조회 수: 2 (최근 30일)
Seungyong
Seungyong 2014년 5월 21일
편집: Image Analyst 2014년 5월 22일
I calculated data from some processes.
the data is 127 X 127
using that data I drew the plot
Then the plot has 127 X 127
But I want to overlap the data plot with picture that is 1024x1024 resolution
So I tried to make a code
figure(1);
imshow('1.jpg') % 1.jpg is 1024 X 1024
hold on;
[c, h]=contour(z,'k') % z is 127X127 data
when I tried that code
the result is far from what I want
the contour plot is located on the left-top occupying 127X127
remaining region is not affected by contour plot.
I want to magnify contour plot to cover 1024 X 1024 image.
How do I do to solve my problem?

답변 (1개)

Image Analyst
Image Analyst 2014년 5월 21일
How about just multiplying all the coordinates by 1024/127?
  댓글 수: 2
Seungyong
Seungyong 2014년 5월 22일
multiplying all the coordinates?
how do I multiplying all the coordinate by 1024/127?
I don't know how to multiply that
Image Analyst
Image Analyst 2014년 5월 22일
편집: Image Analyst 2014년 5월 22일
coordsScaled = coordinates * 1024/127;

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

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by