This repository had several functions and their working code for several Image Conversions as follows:
- Color to GrayScale Conversion
- Color to Binary Conversion
- Image Interpolation
Sample Images Folder - 'Image_Samples' click here
The RBG image consists of 3 bands 'Red', 'Green' and 'Blue'. This three bands can be combined to get a single grayscale band according the formula given ITU Recommendation (Rec. 601) as
- Function for RGB to Gray. click here
- Main code for RGB to Gray Conversion with 'Lena' Image. click here
Image interpolation can be used to increase the size of an image.
- Function for Image Interpolation. click here
- Code for interpolation of RGB 'Lena' Image by some factor. - Function for RGB to Gray. click here