how to acess decimal values of grayscale image?

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 comentarios

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

Iniciar sesión para comentar.

Respuestas (1)

aswathy pavithran
aswathy pavithran el 17 de Oct. de 2019

0 votos

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

Categorías

Más información sobre Images en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 17 de Oct. de 2019

Respondida:

el 17 de Oct. de 2019

Community Treasure Hunt

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

Start Hunting!

Translated by