0

I have RGB face images of size 60x60. They are matrices of size 60x60x3 in Matlab.

I need to apply some algorithms to these data. But first I need to create training examples for the images. Given one image of size 60x60x3 I will need to create a vector of size 1x10800. I am not sure, should I interleave the R, G and B values for the pixels, should I go column by column or row by row?

Thanks

4

1 回答 1

1

通常,没关系。例如,SVM 分类器或神经网络感知器对输入的任何排列都是不变的。如果您的图像是im,只需im(:)将其转换为列。

于 2013-04-22T01:49:15.437 回答