フィルターのクリア

how to overlay two plot of image to be one image only. But display both plot on that image.

1 回表示 (過去 30 日間)
this is my code.
true
%point location
row=find(sum(maxxImage,2)==0,1,'last')+1;
col=find(maxxImage(row,:)~=0);
row=row(ones(size(col)));
Points=[row(:) col(:)];
imshow(maxxImage);
title('Highest Point Location')
hold on
plot(Points(:,2),Points(:,1),'rp','MarkerSize',10)
a=text(Points(1,2),Points(1,1),['This is (',num2str(Points(1,2)),',',num2str(Points(1,1)),')']);
set(a, 'FontName', 'Arial' ,'FontWeight', 'bold', 'FontSize', 12,'Color', 'green');
%highest distance
% Compute the distance.
[rows columns]=size(maxxImage);
Distance=text(240-Points(1,2),Points(1,1)-Points(1,1),strcat('Distance:',num2str(round(sqrt(((240-Points(1,2)).^2)+((Points(1,1)-Points(1,1)).^2))))));
set(Distance, 'FontName', 'Arial' ,'FontWeight', 'bold', 'FontSize', 12, 'Color', 'yellow');

回答 (1 件)

Purushottama Rao
Purushottama Rao 2015 年 5 月 5 日
Probably subplot may help you. subplot(2,1,1) plot(x1,y1) subplot(2,1,2) plot(x2,y2)
this creates two plots side by side
  3 件のコメント
Nurul Najmah
Nurul Najmah 2015 年 5 月 5 日
seem maybe something like this,but im not clear how to combine three of them.
true
A= imfuse(input_resize,Sobel_Output,'blend','Scaling','joint');
imwrite(A,'my_blend_overlay.png');
B= imread('my_blend_overlay.png');
Purushottama Rao
Purushottama Rao 2015 年 5 月 5 日
subplot(3,1,1) subplot(3,1,2) subplot(3,1,3)

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeAnnotations についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by