First, vehicles image will be taken using different camera with different image
resolution and transformed from original colour (RGB) to gray-colour. An original colour
(RGB) image consists of three different layers (3D) of image containing same
information, which are in red, green, and blue value. But, RGB image will consume
much time for processing if compared with gray-scale image. Therefore, gray-scale
transformation (2D) is carried out to eliminate the hue and saturation in the images while
remaining the luminance. Figure 3.3 shows the colour image is transformed into grayscale
image.