Bit Fiddling – 1

 Bits and Pieces   Over the years, I have come across interesting approaches and problems involving bit manipulations. Over this series, I will post a wide range of related solutions and algorithms.   Counting Number of Set Bits   1.     The Trivial Straightforward approach   In this approach, the number is looped through all its…

4

Digital Imaging Basics

Color Spaces The human eye is often able to detect many more colors than digital devices can reproduce. For instance, if you look at a blank, white page of paper, your eye is probably detecting at least 100 distinct shades of white. A white wall can easily have 1500 shades of white. High-quality digital cameras,…

2