public static double Kmeans( IInputArray data, int k, IOutputArray bestLabels, MCvTermCriteria termcrit, int attempts, KMeansInitType flags, IOutputArray centers = null )
Quote:Unlike the Image<,> class, where you will need to pre-allocate memory with the correct size before passing it as an IOutputArray, when an empty Mat is passed as an IOutputArray, Open CV will automatically allocate memory for the Mat. You can also load an image from file using the CvInvoke.Imread function:
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)