有多少颜色组合在24位图像 [英] how many color combinations in a 24 bit image

查看:191
本文介绍了有多少颜色组合在24位图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在读一本书,我不知道如果有误,或者我误解了报价。它读取...

I am reading a book and I am not sure if its a mistake or I am misunderstanding the quote. It reads...

现在,你可以买到所有的PC有
  可以渲染图像硬件
  至少有1670万个人
  颜色。而不是具有以与阵列
  上千种颜色的条目,图像
  而是包含明确的颜色值
  对于每一个象素。 24位显示屏,
  当然,采用24位或每3个字节
  像素,对于彩色信息。这个
  给1字节,或256个不同的值
  每个,对红色,绿色和蓝色。这个
  一般被称为真彩色
  因为256 ^ 3(1670万)

Nowadays every PC you can buy has hardware that can render images with at least 16.7 million individual colors. Rather than have an array with thousands of color entries, the images instead contain explicit color values for each pixel. A 24-bit display, of course, uses 24 bits, or 3 bytes per pixel, for color information. This gives 1 byte, or 256 distinct values each, for red, green, and blue. This is generally called true color, because 256^3 (16.7 million)

他说1字节等于256个不同的值。 1字节= 8位。 8 ^ 2位=颜色右侧64种组合?这不是加起来我的权利。我知道这可能是一些简单的理解,但我不明白。

He says 1 byte is equal to 256 distinct values. 1 byte = 8 bits. 8^2 bits = 64 combinations of colors right ?? It's not adding up right to me. I know it might be something simple to understand, but I don't understand.

推荐答案

8位的组合是不是8 2 (64),但2 8 (256)。这是因为每8位的可以具有2个不同的值。为1位,将得到你2(2 1 )的可能性,对2位2 * 2(2 2 ),3位为2 * 2 * 2(2 < SUP> 3 )...等3个字节= 24位=> 2 24 = 16.7M种可能的组合。

The combinations of 8 bits is not 82 (64) but 28 (256). This is because each of the 8 bits can have 2 distinct values. For 1 bit that would give you 2 (21) possibilities, for 2 bits 2*2 (22), for 3 bits 2*2*2 (23)... etc. 3 bytes = 24 bits => 224 = 16.7M possible combinations.

这篇关于有多少颜色组合在24位图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆