Bit depth of an image |
Lilley, a film school grad, has been here before, usually trying to answer HDTV questions (and getting it half-right at best). This time he's ducked into the world of mathematics, with a little computerese mixed in. Unfortunately, he was out of his depth in both cases. He started off OK – clumsy, but essentially correct – by telling his readers,
"When a person talks about converting 'pixels' to 'bytes,' he is not talking about a literal conversion. What he is referring to is a mathematical calculation that determines how large an image file will be based on its resolution."Unfortunately, Steve didn't publish his references, so we're not certain where to lay the blame for his misinterpretation. Yes, he's right about what the conversion means, but he's only half right about the "resolution" part. Resolution is, essentially, pixels per inch; so we really need to know the image dimensions in pixels, not its resolution. And that's not just being pedantic.
Steve did OK up to a point in outlining the necessary calculations, with the exception of a glaring error due to his (and his copy editor's) likely innumeracy:
"As a rule, there are 16 bits of file size per pixel. This means that there are 8 bits per byte of file size, as 2 bits equals 1 byte [bolding ours]. In keeping with things that are equal, this then means that there are 2 bytes of file information per pixel contained in the image."Wrong, Steve: what you meant to say is that there are 2 bytes per pixel, as 8 bits equals one byte. Proofread next time... and maybe stick with topics you understand! Lilley continued to tell his readers that, "The second piece of information needed is the number of colors per pixel in the image. This is called the image 'depth.'" |
# pixels horizontal * # pixels vertical * pixel depth
8 (bits per byte) * 1024 (bytes per kilobyte)
¹ That's a generalization. In fact, pixel depth can range from one to (at this time) 48: it's not just eight.
copyright © 2019-2022 scmrak
MM - PHOTOGRAPHY
No comments:
Post a Comment