Image Formation and Representation
Computer vision starts with understanding how images are formed and represented. This sub-module delves into the fundamental principles of image formation and representation, laying the groundwork for subsequent modules.
Camera and Imaging System
A camera is a complex system that converts light from the scene into an electrical signal. The imaging process involves several stages:
- Optics: Light enters the camera through the lens, which focuses it onto an image sensor.
- Image Sensor: The focused light is converted into electrical signals by the image sensor (CCD or CMOS). These signals represent the intensity of light at each pixel location.
- Analog-to-Digital Conversion: The analog signals from the image sensor are converted to digital values, which are then stored in memory.
Image Representation
Digital images are represented as a 2D matrix of pixels, where each pixel has an RGB (Red, Green, Blue) or grayscale value. The size and resolution of the image depend on the camera's megapixel rating and the desired level of detail.
- Pixels: A pixel is the smallest unit of an image, comprising three color channels: red, green, and blue. In grayscale images, each pixel has a single intensity value.
- Bit Depth: The number of bits used to represent each pixel value determines the dynamic range (range of brightness levels). Common bit depths are 8-bit (256 values) and 16-bit (65,536 values).
- Color Spaces: RGB is the most common color space. Other popular color spaces include sRGB, Adobe RGB, and CMYK (used in printing).
Image Formats
Digital images can be stored in various formats, each with its strengths and limitations:
- JPEG (Joint Photographic Experts Group): Lossy compression, ideal for photographic images. Supports 8-bit or 16-bit color depth.
- PNG (Portable Network Graphics): Lossless compression, suitable for images requiring transparency or precise color representation.
- TIFF (Tagged Image File Format): Uncompressed format for professional photography and graphics applications.
Real-World Examples
1. Digital Photography: A photographer takes a picture of a sunset using a DSLR camera. The camera's sensor captures the scene, and the resulting image is stored in a JPEG file.
2. Computer Displays: A computer screen displays an image in RGB color space with 24-bit color depth (16,777,216 colors). The image data is stored as a PNG or TIFF file.
Theoretical Concepts
1. Sampling Theorem: When capturing an image, the sampling rate (number of pixels) determines the level of detail and resolution.
2. Aliasing: When the sampling rate is too low, aliasing occurs, causing jagged edges or "staircasing" in the image.
3. Quantization Error: When converting analog signals to digital values, quantization error can result in lost information or noise in the image.
Understanding how images are formed and represented lays the groundwork for computer vision tasks like image processing, feature extraction, and object recognition. By grasping these fundamental concepts, you'll be better equipped to tackle more advanced topics in subsequent modules.