I want to use detectSURFFeatures function and get the result in the form of coordinates x,y ?
2 次查看(过去 30 天)
显示 更早的评论
How can I get the result of detectSURFFeatures in the form of (x1,Y1, x2,y2,.......),ie in coordinates form. can any one help me thank you in advance
0 个评论
采纳的回答
Walter Roberson
2017-5-7
points = detectSURFFeatures(I);
xxyy = points.Location;
xyxy = reshape( xxyy.', 1, []);
That is, xxyy is an M x 2 array in which the x are the first column and the y are the second column. But you want a row vector in which the x and y alternate, so it is necessary to transform the 2D array to get the vector you want. (Personally I think the 2D array is a lot easier to work with...)
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Lighting, Transparency, and Shading 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!