I would like to know the number of bits in a grayscale picture? How do I find this?

2 次查看(过去 30 天)
I have a grayscale image that is 256x256 pixels.
How do I compute the number of bits in the image?
  2 个评论
Jan
Jan 2018-11-26
It depends on what "number of bits" mean. What exactly does "I have a greayscale image" means - as file, as matrix, and in the later case, in which data type? Please explain, what your inputs are.
Victor Fletcher
Victor Fletcher 2018-11-26
Bits as in 2^N possible intensities that a pixel can possibly take.
It is a .tif file.
I used the max function to calculate the maximum intensity value.
Then I used log function to convert it to N.

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Get Started with Image Processing Toolbox 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by