How to make two images of similar visual size the same scale and coordinate system.
2 ビュー (過去 30 日間)
古いコメントを表示
I have two uint8 image arrays, one with size 15x212x3 and one with size 227x3392x3. Both are visually the same size. I am trying to get them both on the same coordinate system. This is what I have tried so far:
handles.Temp = (Mario_Structure.Stage1_1.statMapInd);
handles.Temp2 = (handles.Temp) .* 16;
Stage = Stage_UC(1:1:227,:,:);
Stage is the larger array and handles.Temp is the smaller one. I am piecewise multiplying by 16 because that is the ratio of the size of the stage array to the handles.Temp array. When I used this method, I am still getting the 15x212x3 size. Can anyone help me?
0 件のコメント
回答 (1 件)
Chad Greene
2017 年 7 月 25 日
If you have x and y data corresponding to the rows and columns of each image, you can simply do
image(x,y,I)
for each image I. And you can set the xlim and ylim of each axis to be the same.
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!