Remove SURF points according to scales

7 ビュー (過去 30 日間)
muhammad faiz
muhammad faiz 2016 年 12 月 30 日
コメント済み: Priodyuti Pradhan 2020 年 11 月 2 日
Hai,
I would like to remove any SURF points that having scales less than 2. how can i do that?
please help.
  2 件のコメント
muhammad faiz
muhammad faiz 2016 年 12 月 30 日
i'm sorry...its a SURF points from the computer vision toolbox. (SURF detector). Basically, i have lot of SURF points generated by the SURF detector from the image that i have. However, i only needs points that have Scales highers than 0.5. therefore, i want remove any points lower than that scale.

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

回答 (2 件)

KSSV
KSSV 2016 年 12 月 30 日
[x,y,z] = peaks(100) ;
figure(1)
surf(x,y,z)
% remove less then 2
z(z<2) = NaN ;
figure(2)
surf(x,y,z)
  3 件のコメント
Priodyuti Pradhan
Priodyuti Pradhan 2020 年 11 月 2 日
It's really helpful for me! Thanks for sharing!

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


Anand
Anand 2016 年 12 月 30 日
% Read an image
I = imread('cameraman.tif');
% Compute SURF features
points = detectSURFFeatures(I);
% Filter out points with scale less than 2
newPoints = points( points.Scale<2 );
% Plot points
imshow(I);
hold on;
plot(newPoints);

Community Treasure Hunt

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

Start Hunting!

Translated by