Hi, i am working on GUI project.I wan that the below given code should take the pixel range (here: 38,333,334,etc.) from user and the display it.
Mostrar comentarios más antiguos
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');
2 comentarios
Aarti Dwivedi
el 5 de Jul. de 2018
Do you want the user to give input by clicking at a particular point, or using an input field?
deepika
el 5 de Jul. de 2018
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Display 2-D Images en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!