Searched refs:labelImage (Results 1 – 2 of 2) sorted by relevance
/external/opencv3/modules/imgproc/test/ |
D | test_connectedcomponents.cpp | 74 Mat labelImage; in run() local 75 int nLabels = connectedComponents(bw, labelImage, 8, CV_32S); in run() 77 for(int r = 0; r < labelImage.rows; ++r){ in run() 78 for(int c = 0; c < labelImage.cols; ++c){ in run() 79 int l = labelImage.at<int>(r, c); in run() 90 imwrite(exp_path, labelImage); in run() 91 exp = labelImage; in run() 94 if (0 != cvtest::norm(labelImage > 0, exp > 0, NORM_INF)) in run() 99 if (nLabels != cvtest::norm(labelImage, NORM_INF)+1) in run()
|
/external/opencv3/samples/cpp/ |
D | connected_components.cpp | 16 Mat labelImage(img.size(), CV_32S); in on_trackbar() local 17 int nLabels = connectedComponents(bw, labelImage, 8); in on_trackbar() 26 int label = labelImage.at<int>(r, c); in on_trackbar()
|