How do I scale the data to overlap on the image?
2 ビュー (過去 30 日間)
古いコメントを表示
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?
0 件のコメント
回答 (1 件)
Image Analyst
2014 年 5 月 21 日
How about just multiplying all the coordinates by 1024/127?
2 件のコメント
Image Analyst
2014 年 5 月 22 日
編集済み: Image Analyst
2014 年 5 月 22 日
coordsScaled = coordinates * 1024/127;
参考
カテゴリ
Help Center および File Exchange で Contour Plots についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!