How to combine features

조회 수: 4 (최근 30일)
hajer jon
hajer jon 2019년 7월 2일
댓글: Sai Bhargav Avula 2019년 7월 29일
I write a code that detect people in crowed and I tray to use SURF , MSERF and HOG Features my quistion how can i combine this features ???
points1 = detectSURFFeatures(grayI)
[feature, valid_points] = extractFeatures(grayI, points1);
[regions,dd] = detectMSERFeatures(grayI);
[features2, valid_points] = extractFeatures(grayI,regions);
[featureVector,hogVisualization] = extractHOGFeatures(grayI);

채택된 답변

Sai Bhargav Avula
Sai Bhargav Avula 2019년 7월 17일
To get the combined feature vector use
combinedVector = [feature( : ), features2 ( : ), featureVector( : )];
  댓글 수: 2
hajer jon
hajer jon 2019년 7월 28일
I have got this error
"Dimensions of arrays being concatenated are not consistent"
Sai Bhargav Avula
Sai Bhargav Avula 2019년 7월 29일
It is because features extracted are of different length. Check for the lengths of each feature vector and pad accordingly to combine them. I would suggest you to go through the following link that combines matrices of different sizes.
Hope this helps.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by