PCA for RGB image in python
Separate three channels i.e., Red, Blue, Green and apply PCA on each. After applying PCA on each channel again join them.
I'm trying to reduce dimension of RGB images using PCA on python. But it seems to me that all codes I found only work on a greyscale image. Is there any way to do PCA on RGB image using any python library like sklearn or opencv?
Thanks