Search, Find, View, Download : Table View
Detailed Search, Find, View, Download : List View
Return to List View
Author
Suparna Ghosh
Abstract
When working with images, it’s important to understand the difference between the RGB and BGR color spaces. Both RGB and BGR have three color channels: red, green, and blue. However, the order in which those channels are stored in the image file can be different. RGB is commonly used in image editing and display applications, where the order is assumed as red, green, and blue. On the other hand, BGR is often used in image processing applications, and the order is assumed blue, green, and red. Image data can be saved in different color spaces (RGB, BGR, Gray, etc.) and different file formats can save the image in different color spaces. It depends on the image processing library and software which color space they use while saving(or opening) an image. However, when saving an image to a file format, it is common practice to save it in the RGB color space. It’s worth noting that when you save an image in BGR order, it can be still read by most of the libraries and software, but they will treat it as an RGB image and will show it in RGB format. (You will see an image of the red and blue channels swapped)
Categories
Literature, Biography, Fiction, Entertainment, Finance, History
Custom HTML
Editors Notes
Not sent for publication since is not an original article