Why does extractFeatures on SIFTPoints returns duplicate points?
이전 댓글 표시
I'm using detectSIFTFeatures followed by extractFeatures to get features points with their descriptor vectors:
points = detectSIFTFeatures(image);
[features, validPoints] = extractFeatures(image, points);
but became suspicious when the validPoints object contained more points than points. Looking closer, I found that validPoints was containing duplictaed points that differed only in orientation, and for each unique point, one of them had an orientation of 2*pi.
채택된 답변
추가 답변 (1개)
yanqi liu
2021년 11월 10일
0 개 추천
sir,may be set some parameter,such as
detectSIFTFeatures(image,'NumScaleLevels',2);
댓글 수: 4
Rik
2021년 11월 10일
'NumScaleLevels' is not even a valid parameter for detectSIFTFeataures.
yanqi liu
2021년 11월 11일
sorry,sir,sift can ref:https://ww2.mathworks.cn/help/vision/ref/detectsiftfeatures.html
may be use
detectSIFTFeatures(image,'ContrastThreshold ',0.4)
Tae Lim Kook
2021년 11월 11일
image = imread('cameraman.tif');
points = detectSIFTFeatures(image);
[features, validPoints] = extractFeatures(image, points);
points
validPoints
pts = validPoints.Location;
[~,ia,ic] = unique(pts,'rows');
validPoints2 = validPoints(ia)
카테고리
도움말 센터 및 File Exchange에서 Detect, Extract, and Match Features에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!