Can I explicitly define the size of "points" matrix returned by detectSURFFeatures function?

I am using ORL dataset for face recognition. For feature extraction I am using inbuilt function detectSURFFeatures. But the function returns different size of points matrix for different image. Is there any way I can explicitly restrict the size of points matrix it returns.
points = detectSURFFeatures(I);
% The points matrix is different for different image.

 採用された回答

Dima Lisin
Dima Lisin 2015 年 3 月 12 日

1 投票

Hi Sai,
No, there is no way to explicitly restrict the number of points in the detectSURFFeatures function itself. The number of points it returns depends on the content of the image and the parameters, such as 'MetricThreshold'. However, you can limit the number of points after the fact. For example, you can use the selectStrongest method of the returned SURFPoints object to get the n strongest features.

2 件のコメント

Sai Kumar Dwivedi
Sai Kumar Dwivedi 2015 年 3 月 12 日
Thank you so much for your answer.
Dima Lisin
Dima Lisin 2015 年 3 月 12 日
You are most welcome.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeComputer Vision Toolbox についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by