简体   繁体   English

在MATLAB中创建特征向量

[英]Creating a feature vector in MATLAB

I have calculated texture, color and shape features on an image.But those just add up to 12 features. 我已经在图像上计算了纹理,颜色和形状特征。但这些功能只能添加12个功能。 I read that people extract 1000 features and such. 我读到人们提取1000个功能等。 Could someone please explain to me how do i increase the number of features? 有人可以向我解释如何增加功能的数量? And then how do i save them to form a feature vector? 然后我如何保存它们以形成特征向量?

Features are the most significant or interest points of an image.In general lets say I am interested in the edges information of an image.As we know edges are found by laplacian filter in spatial domain so the only points that will remain in the image will be edges point.Each edge point will have its x,y co-ordinate followed by intensity value.These three information of all the interest points would probably lead to multi-dimension feature vector in this case which would be depend on the type of image you are taking.These three multidimensional information will be called my feature vector. 特征是图像的最重要或兴趣点。通常可以说我对图像的边缘信息感兴趣。我们知道边缘是由拉普拉斯滤波器在空间域中找到的,因此将保留在图像中的唯一点将是每个边缘点的x,y坐标后跟强度值。所有兴趣点的这三个信息可能会导致多维特征向量在这种情况下取​​决于图像的类型。你正在服用。这三个多维信息将被称为我的特征向量。

Similarly histogram of an image can also be your feature which will range from 0 to 255 value for an gray scale image.So in that case you can store for every image this 255 values as features. 类似地,图像的直方图也可以是您的特征,对于灰度图像,其值将在0到255之间。因此,在这种情况下,您可以为每个图像存储此255个值作为要素。

Hope you got the idea.Image is an subjective thing so depending on any application and given data set we will extract features and form feature vectors. 希望你有这个想法。图像是一个主观的东西,因此根据任何应用程序和给定的数据集,我们将提取特征和形成特征向量。

Apart from color,texture and shape you can even work on the signatures,edges,histogram and so on properties of an image. 除了颜色,纹理和形状,您甚至可以处理图像的特征,边缘,直方图等属性。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM