I want to reduce the dimensions of 2D-Images. I have image patches of size 100x50
and I want to reduce the dimension of these patches.
Do I need to first convert the patch(100x50)
into a vector(5000x1)
and then apply PCA to reduce the dimension or can I directly apply PCA for dimension reduction on the patch(100x50)
and reduce the dimension to let's say 2x50
?