How to Apply PSF to obtain the difference between two method?

조회 수: 1 (최근 30일)
Amjad Iqbal
Amjad Iqbal 2022년 10월 1일
댓글: Image Analyst 2022년 10월 2일
Dear MATLAB Experts,
I have output of two methods, qualitatively both perform near similar, however to represent difference I would like to present their difference after performing PSF.
I have attached a result from a paper they use PSF for two methods and then subtaction to show the quantitative difference.
I have attached .mat files with output of two methods having x, y vectors, Amplitude (Image).
Could you please guide me how can I obtain results of psf like given in attach figure and then simply differecne to show quantitative performance.
Thank you!
load('Method_VV.mat'); % method-1
load('Method_VH.mat'); % method-2
Method1 = Method_VH;
Method2 = Method_VV;
x_vect = (-5:0.08:5);
y_vect = (-5:0.08:5);
subplot(121)
imagesc(x_vect, y_vect,20*log10(abs(Method1)/max(max(abs(Method1)))),[-35 0]),...
axis('tight'),axis('square'),xlabel('X/m'), ylabel('Y/m'),title('Method1'),set(gca,'FontSize',16),...
b = colorbar;colormap jet;
ylabel(b,'Amplitude[dB]','FontSize',16);
subplot(122)
imagesc(x_vect, y_vect,20*log10(abs(Method2)/max(max(abs(Method2)))),[-35 0]),...
axis('tight'),axis('square'),xlabel('X/m'), ylabel('Y/m'),title('Method2'),set(gca,'FontSize',16),...
b = colorbar; colormap jet;
ylabel(b,'Amplitude [dB]','FontSize',16);

채택된 답변

Image Analyst
Image Analyst 2022년 10월 1일
Use surf and either imshow or image or imagesc.
  댓글 수: 2
Amjad Iqbal
Amjad Iqbal 2022년 10월 2일
I guess before using surf it needs some processing, I tried all these you mentoined.
In the attached image they use x, y vectors and amplitude, which I do have also, however for psf they use some necessary processing.
PSF is mostly used in image processing, if you may recommend somthing that I may produce meaningful output to express the result. thank you!
Image Analyst
Image Analyst 2022년 10월 2일
I don't know what preprocessing they did. Below I display the magnitude. And it looks like the resolution of what you attached is far, far less than the data they used.
s = load('Method_VH.mat')
vh = abs(s.Method_VH);
subplot(2, 1, 1);
imshow(vh, [], 'InitialMagnification', 1000)
colormap("turbo")
colorbar
subplot(2, 1, 2);
surf(vh, 'EdgeColor','none')

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

추가 답변 (0개)

카테고리

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

제품


릴리스

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by