1 | initial version |
No, you cannot use another method for kmeans without OpenCV library modification. kmeans function calls normL2Sqr_ function from stat.cpp for distance calculation. You can change this call on your function with the same signature.
PS: Willowgarage pages with OpenCV documentation is outdated. Use official OpenCV documentation at http://docs.opencv.org/