Home
last modified time | relevance | path

Searched refs:new_center (Results 1 – 3 of 3) sorted by relevance

/external/opencv3/3rdparty/libwebp/enc/
Danalysis.c196 const int new_center = (dist_accum[n] + accum[n] / 2) / accum[n]; in AssignSegments() local
197 displaced += abs(centers[n] - new_center); in AssignSegments()
198 centers[n] = new_center; in AssignSegments()
199 weighted_average += new_center * accum[n]; in AssignSegments()
/external/webp/src/enc/
Danalysis.c201 const int new_center = (dist_accum[n] + accum[n] / 2) / accum[n]; in AssignSegments() local
202 displaced += abs(centers[n] - new_center); in AssignSegments()
203 centers[n] = new_center; in AssignSegments()
204 weighted_average += new_center * accum[n]; in AssignSegments()
/external/opencv3/modules/core/src/
Dkmeans.cpp375 float* new_center = centers.ptr<float>(k); in kmeans() local
404 new_center[j] += sample[j]; in kmeans()