Home
last modified time | relevance | path

Searched refs:centroids (Results 1 – 7 of 7) sorted by relevance

/external/opencv3/doc/py_tutorials/py_ml/py_kmeans/py_kmeans_understanding/
Dpy_kmeans_understanding.markdown39 **Step : 1** - Algorithm randomly chooses two centroids, \f$C1\f$ and \f$C2\f$ (sometimes, any two …
40 taken as the centroids).
42 **Step : 2** - It calculates the distance from each point to both centroids. If a test data is more
44 (If more centroids are there, labelled as '2','3' etc).
52 will be our new centroids. That is \f$C1\f$ and \f$C2\f$ shift to newly calculated centroids. (Reme…
55 And again, perform step 2 with new centroids and label data to '0' and '1'.
61 Now **Step - 2** and **Step - 3** are iterated until both centroids are converged to fixed points.
64 and their corresponding centroids are minimum**. Or simply, sum of distances between
76 algorithm like, how to choose the initial centroids, how to speed up the iteration process etc.
/external/opencv3/doc/py_tutorials/py_feature2d/py_features_harris/
Dpy_features_harris.markdown106 an example. As usual, we need to find the harris corners first. Then we pass the centroids of these
127 # find centroids
128 ret, labels, stats, centroids = cv2.connectedComponentsWithStats(dst)
132 corners = cv2.cornerSubPix(gray,np.float32(centroids),(5,5),(-1,-1),criteria)
135 res = np.hstack((centroids,corners))
/external/opencv3/modules/imgproc/src/
Dconnectedcomponents.cpp383 OutputArray centroids, int connectivity, int ltype) in connectedComponentsWithStats() argument
388 connectedcomponents::CCStatsOp sop(statsv, centroids); in connectedComponentsWithStats()
/external/opencv3/doc/py_tutorials/py_ml/py_kmeans/py_kmeans_opencv/
Dpy_kmeans_opencv.markdown83 depending on their centroids. Now we split the data to different clusters depending on their labels.
88 Now we plot A in Red color and B in Blue color and their centroids in Yellow color.
/external/opencv3/modules/java/src/
Dimgproc+Imgproc.java2142 …public static int connectedComponentsWithStats(Mat image, Mat labels, Mat stats, Mat centroids, in… in connectedComponentsWithStats() argument
2145 …mponentsWithStats_0(image.nativeObj, labels.nativeObj, stats.nativeObj, centroids.nativeObj, conne… in connectedComponentsWithStats()
2151 public static int connectedComponentsWithStats(Mat image, Mat labels, Mat stats, Mat centroids) in connectedComponentsWithStats() argument
2154 …ctedComponentsWithStats_1(image.nativeObj, labels.nativeObj, stats.nativeObj, centroids.nativeObj); in connectedComponentsWithStats()
Dimgproc.cpp4481 Mat& centroids = *((Mat*)centroids_nativeObj); in Java_org_opencv_imgproc_Imgproc_connectedComponentsWithStats_10() local
4482 …int _retval_ = cv::connectedComponentsWithStats( image, labels, stats, centroids, (int)connectivit… in Java_org_opencv_imgproc_Imgproc_connectedComponentsWithStats_10()
4505 Mat& centroids = *((Mat*)centroids_nativeObj); in Java_org_opencv_imgproc_Imgproc_connectedComponentsWithStats_11() local
4506 int _retval_ = cv::connectedComponentsWithStats( image, labels, stats, centroids ); in Java_org_opencv_imgproc_Imgproc_connectedComponentsWithStats_11()
/external/opencv3/modules/imgproc/include/opencv2/
Dimgproc.hpp3387 OutputArray stats, OutputArray centroids,