I have converted the image from RGB color space to Lab color space using rgb2lab function.
Now I need to represent each pixel via its Lab color values. Construct a feature matrix X where rows correspond to pixels and columns correspond to features.
Which function I need to use? How can I do that?