Published online by Cambridge University Press: 21 August 2009
This chapter is a crash course in the principles of digital image processing. For more about most of these concepts, see Astrophotography for the Amateur (1999), Chapter 12.
What is a digital image?
A digital image is fundamentally an array of numbers that represent levels of brightness (Figure 13.1).
Bit depth
Depending on the bit depth of the image, the numbers may range from 0 to 255 (8 bits), 0 to 65 535 (16 bits), or some other range.
The eye cannot distinguish even 256 levels, so 8-bit graphics are sufficient for finished pictures. The reason for wanting more levels during manipulation is that we may not be using the full range at all stages of processing. For instance, a badly underexposed 16-bit image might use only levels 0 to 1000, which are still enough distinct levels to provide smooth tones. An 8-bit image underexposed to the same degree would be unusable.
For greatest versatility, some software supports floating-point data, so that levels can be scaled with no loss of precision; in a floating-point system, you can divide 65 535 by 100 and get 655.35. You can also use large numbers without going out of range; if you do something that produces a value greater than 65 535, it will not be clipped to maximum white.
Note that Photoshop always reports brightness levels on a scale of 0 to 255, regardless of the actual bit depth of the image. This is to help artists match colors.
To save this book to your Kindle, first ensure no-reply@cambridge.org is added to your Approved Personal Document E-mail List under your Personal Document Settings on the Manage Your Content and Devices page of your Amazon account. Then enter the ‘name’ part of your Kindle email address below. Find out more about saving to your Kindle.
Note you can select to save to either the @free.kindle.com or @kindle.com variations. ‘@free.kindle.com’ emails are free but can only be saved to your device when it is connected to wi-fi. ‘@kindle.com’ emails can be delivered even when you are not connected to wi-fi, but note that service fees apply.
Find out more about the Kindle Personal Document Service.
To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Dropbox.
To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Google Drive.