aleator / CV

Haskell wrappers and utilities for OpenCV machine vision library
http://hackage.haskell.org/package/CV
BSD 3-Clause "New" or "Revised" License
51 stars 13 forks source link

getSURF bug #18

Closed nothingbout closed 12 years ago

nothingbout commented 12 years ago

getSURF returns 128 element features when it should return 64 element features and vice versa. Because of this the returned features are incorrect and the function could even crash.

The bug is on this line:

b <- if c'CvSURFParams'extended params /= 1

Should be:

b <- if c'CvSURFParams'extended params == 1

aleator commented 12 years ago

Fixed in d855c78. Thank you for reporting.