Previous | Next --- Slide 43 of 65
Back to Lecture Thumbnails
jimingli

As I was using OPENCV, I saw there's color models named both RGB and BGR, and there are HSV and HSB. Photoshop is using HSB and Unity3D is using HSV, is there specific pros and cons for these similar channels or they are just in different color sequence?

motoole2

@jimingli The difference between RGB and BGR is that the red and blue color channels are swapped. In theory, both RGB and BGR are equivalent, since they reproduce the same set of colors. However, one might choose to use one or the other for computational reasons, e.g., if your image is stored in BGR, there might be a small cost of switching this over to RGB.