Basic explanations of colorspaces in image processing (RGB and grayscale, HSV, YCbCr, XYZ, and L*a*b*) and formulas for conversion among them are shown in this video as well as a MATLAB code.
Code for this video can be downloaded from the following link:
https://drive.google.com/drive/folder...