フィルターのクリア

how to acess decimal values of grayscale image?

2 ビュー (過去 30 日間)
aswathy pavithran
aswathy pavithran 2019 年 10 月 17 日
回答済み: aswathy pavithran 2019 年 10 月 17 日
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 2019 年 10 月 17 日
Try to divide by 255. Color can be stored or (0..1) or (0 .. 255)
aswathy pavithran
aswathy pavithran 2019 年 10 月 17 日
it is not giving exact value sir. thank you for the reply

サインインしてコメントする。

回答 (1 件)

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

Community Treasure Hunt

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

Start Hunting!

Translated by