필터 지우기
필터 지우기

How to display pixel values within the image while display image from array

조회 수: 6 (최근 30일)
Parag
Parag 2016년 12월 6일
답변: Parag 2016년 12월 7일
Hi, I am trying to display the image from the array with color coding. I am able to display the image as shown as follow
</matlabcentral/answers/uploaded_files/64893/color_img.JPG> my code image(Rms,'CdataMapping','scaled') colorbar I am attaching data file here. How to diaply value inside the each pixel location rather than along the axis.for ex showing in the figure
I will appreciate your help and helpful comments.
Thanks

채택된 답변

Parag
Parag 2016년 12월 7일
Nevermind i found the way. Thanks
if true
% code
[m n]=size(Rms);
image(Rms,'CdataMapping','scaled');
hold on;
for i = 1:m
for j = 1:n
nu = Rms(i,j);
val = num2str(round(nu,2));
text(j,i,val)
end
end
hold off;
end

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by