feature vectorsf or histogram
2 次查看(过去 30 天)
显示 更早的评论
I want to classify normal and abnormal images..I m having histogram as a features for normal and abnormal images.. How can i compute the feature vectors for these histograms... please anyone help me ..
thanks in advance
0 个评论
回答(3 个)
Image Analyst
2012-10-29
编辑:Image Analyst
2012-10-29
This is somewhat unclear. First you say that the histograms are the features. Then you ask how to compute features for histograms. Are the histograms the features, or do you want to start with the histograms and derive features from them (such as [mean, stddev, skew, kurtosis])?
Anyway, once you've answered that, how about using imhist() to compute the histograms? Then you're either done (if the histograms themselves are the features) or you need additional steps to derive features from the histograms.
1 个评论
Image Analyst
2012-10-30
If they say the whole entire histogram is one feature, then just use it as such. Normally a feature vector is something more meaningful, like a list of histogram moments like I said above: [mean, stddev, skew, kurtosis]. That would be a 4 element feature vector. It has 4 features, which are the 1st, 2nd, 3rd, and 4th moments of the histogram. A feature vector is just a list of various measurements that you make and they could be anything, like number of regions, mean intensity of the regions, mean area of the regions or all the areas of all the regions. It could be anything you want because you are the one who is going to be processing them in some what that makes sense for you. You should know what to do with them - there is not one overall way to manipulate a feature vector, it depends on what you want to do with the numbers.
jenifer
2012-10-30
1 个评论
Image Analyst
2012-10-30
I'll respond under my answer, where you should have placed this - since it's a comment, not an answer to your question.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Histograms 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!