How can we fetch the count of the corners detected using detectMinEigenFeatures() function?

11 Ansichten (letzte 30 Tage)
I need to plot the graph based on the number corners detected in each frame. Is it possible to fetch the number of corners detected using the function detectMinEigenFeatures()??
points = detectMinEigenFeatures(rgb2gray(videoFrame));
Thanks in advance

Antworten (2)

Image Analyst
Image Analyst am 1 Mär. 2015
I don't have that function, but how about size(points)?
  2 Kommentare
athithya
athithya am 6 Mär. 2015
thanks a lot...it worked but I used length(points) since size(points) return the min and max value
Image Analyst
Image Analyst am 6 Mär. 2015
length() will produce the max of the sizes, in other words, it gives you the length of whatever dimension is longest. If you have 1 point and points is a 1 by 2 array, it will return 2 (probably not what you want. For more than 2 points, length() will return the same as size(m, 1) for an N by 2 array.

Melden Sie sich an, um zu kommentieren.


Breezy Boo
Breezy Boo am 30 Apr. 2017
When you run
points = detectMinEigenFeatures(rgb2gray(videoFrame));
points have three values Location, Metric and Count. So simply execute
points.Count
and it will return number of features detected
  2 Kommentare
Sam O.
Sam O. am 28 Sep. 2017
There will be an error saying that there is no such thing as count function in matlab. I tried this code but i've got an error
Image Analyst
Image Analyst am 28 Sep. 2017
Where did you, and others, get this function detectMinEigenFeatures()?
Anyway, count is different than count since MATLAB is case sensitive. Try Count instead of count. Anyway, count would not be a function - it would be either
  1. a "property" of a "class",
  2. a "method" of a "class", or
  3. a "field" of a structure variable.

Melden Sie sich an, um zu kommentieren.

Community Treasure Hunt

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

Start Hunting!

Translated by