matlab-将图像像素值连接到一行或一列数据中 [英] matlab - concatenate image pixel value into one row or one column of data
本文介绍了matlab-将图像像素值连接到一行或一列数据中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
解决方案
如果您的矩阵称为image
,请使用:
运算符
image(:)
i am doing an image recognition project and would like to use the pixel values as the medium to differentiate 2 different images via matlab nprtool. To prepare the training and testing data set, the data has to be in either a column or a row form. So how can I concatenate pixel values of an image (for example 100x100) into 1 column or 1 row of data? What is the most appropriate way to do it?
解决方案
if your matrix is called image
, use the :
operator
image(:)
这篇关于matlab-将图像像素值连接到一行或一列数据中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文