Info

この質問は閉じられています。 編集または回答するには再度開いてください。

I am working on aproject of multiband image processing and I need to ask pixel value from user ,so that operations (correlation and etc.) can be performed easily fro an multiband image processing in matlab(creating gui)

3 ビュー (過去 30 日間)
deepika
deepika 2018 年 6 月 25 日
閉鎖済み: Guillaume 2018 年 7 月 6 日
u=multibandread('paris.lan',[512,512,7],'uint8=>uint8',128,'bil','ieee-le');
Nof_bands=7;
for k=1:Nof_bands
t_value=u(:,:,k);
x(k)=double(t_value(38,333));
y(k)=double(t_value(38,334));
z(k)=double(t_value(39,333));
b(k)=double(t_value(39,334));
x1(k)=double(t_value(486,115));
y1(k)=double(t_value(486,116));
z1(k)=double(t_value(487,115));
b1(k)=double(t_value(487,116));
avg(k)=double(x(k)+y(k)+z(k)+b(k))/4;
avg1(k)=double(x1(k)+y1(k)+z1(k)+b1(k))/4;
end
d=[1:1:7];
figure(1)
plot(d,avg,'r',d,avg1,'g');
%%%correlation between avg and avg1
z=xcorr2(double(avg),double(avg1));
figure(2), plot(z)
title('correlation of 2 signals');
%%%%error
mm=double(avg)- double(avg1);
figure(3), plot(d,mm)
title('error of 2 signals'); % error
deltaSignal = (abs(mm));
percentageDifference = double(deltaSignal./ double(avg)); % Percent by element.
figure(4), plot(percentageDifference,'r')
title('% difference of 2 signals');
  2 件のコメント
Aarti Dwivedi
Aarti Dwivedi 2018 年 7 月 6 日
What is the question that you have?
deepika
deepika 2018 年 7 月 6 日
Thank you so much. but i did this task

回答 (0 件)

この質問は閉じられています。

Community Treasure Hunt

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

Start Hunting!

Translated by