In this tutorial, we will learn about the basics of images. We’ll learn about what is an image, what is a digital image, color spaces, pixels, channels, Grayscale, B/W image, and many more things.
What is an image?
An image is a two-dimensional representation of a visual scene. It is made up of pixels arranged in a grid. it can be captured in a variety of ways such as on film, paint, or sketch.
What is a digital image?
A digital image is a specific type of image that is created and stored electronically, as opposed to being captured. In deep learning, digital images are often used as input data for training and evaluating neural networks.
What is a pixel?
A pixel is the smallest unit of a digital image or graphic that can be processed individually. It is the basic building block of digital images. Pixels are arranged in a matrix structure to form an image, and the resolution of the image depends on the number of pixels.
What is Color Spaces?
Color Spaces is a way to represent the color channels present in a particular image. RGB (Red, Green, Blue) and CMYK (Cyan, Magenta, Yellow, Black) are two examples of color spaces used in digital images.
What is RGB Color Model?
The RGB color model is a way of representing colors electronically. RGB stands for Red, Green, and Blue. In this, each color is represented by a value between 0 and 255. It is a three-channel model. These values represent the intensity of each color. We can form a broad range of colors using RGB Color Model.
RED: #FF0000 or rgb(255,0,0)
GREEN: #00FF00 or rgb(0,255,0)
BLUE: #0000FF or rgb(0,0,255)
What is Grayscale Image?
Grayscale images do not contain any rgb color values i.e, these type of images only contain gray values. There is only a single channel in this type of image. These are not Black & White images because B/W images can either contain 0 or 255 as pixel value but, a grayscale image can contain a total of 256 shades of gray, where 0 is black and 255 is white.