I think we need to clarify some points:
- Are you only going for color? So, take the RGB values โโfor the pixels and apply your metric function (minimize the amount of square error or just calculate the SAD - Sum of Absolute Differences).
- ( )? , , . 2D- ... 3D, (. ).
- 3D- ? (2D- + 1D-) . , , . , 3D- 2D 1D, PCA . , - / .
, , , , .