MATLAB Answers

how to acess decimal values of grayscale image?

조회 수: 5(최근 30일)
aswathy pavithran
aswathy pavithran 17 Oct 2019
i got figure of grayscale images. i found from the figure that RGB values of all pixels are in decimals.When i tried to access these decimal values, it is showing R value as 3 digit number,not decimal.How to acess decimal value?

  댓글 수: 2

darova
darova 17 Oct 2019
Try to divide by 255. Color can be stored or (0..1) or (0 .. 255)
aswathy pavithran
aswathy pavithran 17 Oct 2019
it is not giving exact value sir. thank you for the reply

로그인 to comment.

답변 수 (1)

aswathy pavithran
aswathy pavithran 17 Oct 2019
In gray scale image it is returning index value not the intensity.To get intensity value use code mat2gray();

  댓글 수: 0

로그인 to comment.

이 질문에 답변하려면 로그인을(를) 수행하십시오.


Translated by