Data type problem during requantizing the Image

1 回表示 (過去 30 日間)
Roopak Tamboli
Roopak Tamboli 2012 年 8 月 23 日
As part of course project I am reducing number of bits per pixel from 8 to 1 step by step. I converted image to double which solved my problems. But if I keep it uint8 I am observing following facts. Please explain why is so?
uint8(215)/128 = 2
215/128 = 1.6797 (data type double) .

回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by