countNonZero 1006 modules/calib3d/src/fisheye.cpp int a = cv::countNonZero(intrinsicLeft.isEstimate); countNonZero 1007 modules/calib3d/src/fisheye.cpp int b = cv::countNonZero(intrinsicRight.isEstimate); countNonZero 1059 modules/calib3d/src/fisheye.cpp int nonzeros_cols = cv::countNonZero(cols); countNonZero 1070 modules/calib3d/src/fisheye.cpp int nonzeros_rows = cv::countNonZero(rows); countNonZero 556 modules/calib3d/src/five-point.cpp int good1 = countNonZero(mask1); countNonZero 557 modules/calib3d/src/five-point.cpp int good2 = countNonZero(mask2); countNonZero 558 modules/calib3d/src/five-point.cpp int good3 = countNonZero(mask3); countNonZero 559 modules/calib3d/src/five-point.cpp int good4 = countNonZero(mask4); countNonZero 129 modules/calib3d/test/test_homography.cpp if (countNonZero(mask) < mask.rows) return 2; countNonZero 623 modules/calib3d/test/test_homography.cpp int ninliers = countNonZero(mask); countNonZero 688 modules/calib3d/test/test_homography.cpp int ninliers0 = countNonZero(inliers0); countNonZero 696 modules/calib3d/test/test_homography.cpp int ninliers1 = countNonZero(inliers1); countNonZero 280 modules/calib3d/test/test_stereomatching.cpp pointsCount = countNonZero(mask); countNonZero 304 modules/calib3d/test/test_stereomatching.cpp pointsCount = countNonZero(mask); countNonZero 306 modules/calib3d/test/test_stereomatching.cpp return 1.f/pointsCount * countNonZero(badPxlsMap); countNonZero 548 modules/core/include/opencv2/core.hpp CV_EXPORTS_W int countNonZero( InputArray src ); countNonZero 226 modules/core/misc/java/test/CoreTest.java int expected = (int) (grayRnd.total() - Core.countNonZero(grayRnd)); countNonZero 227 modules/core/misc/java/test/CoreTest.java assertEquals(expected, Core.countNonZero(dst)); countNonZero 263 modules/core/misc/java/test/CoreTest.java assertEquals(0, Core.countNonZero(gray0)); countNonZero 268 modules/core/misc/java/test/CoreTest.java assertEquals(2, Core.countNonZero(gray0)); countNonZero 448 modules/core/misc/java/test/CoreTest.java assertTrue(0 < Core.countNonZero(gray0)); countNonZero 449 modules/core/misc/java/test/CoreTest.java assertTrue(gray0.total() > Core.countNonZero(gray0)); countNonZero 461 modules/core/misc/java/test/CoreTest.java assertTrue(0 < Core.countNonZero(gray0)); countNonZero 462 modules/core/misc/java/test/CoreTest.java assertTrue(gray0.total() > Core.countNonZero(gray0)); countNonZero 466 modules/core/misc/java/test/CoreTest.java assertEquals("see http://code.opencv.org/issues/1284", 0, Core.countNonZero(gray0)); countNonZero 509 modules/core/misc/java/test/CoreTest.java assertTrue(0 < Core.countNonZero(gray0)); countNonZero 513 modules/core/misc/java/test/CoreTest.java assertEquals(0, Core.countNonZero(gray0)); countNonZero 748 modules/core/misc/java/test/CoreTest.java assertEquals(1, Core.countNonZero(dst)); countNonZero 861 modules/core/misc/java/test/CoreTest.java assertTrue(nPoints == Core.countNonZero(gray0)); countNonZero 871 modules/core/misc/java/test/CoreTest.java assertTrue(nPoints == Core.countNonZero(gray0)); countNonZero 883 modules/core/misc/java/test/CoreTest.java assertFalse(0 == Core.countNonZero(gray0)); countNonZero 887 modules/core/misc/java/test/CoreTest.java assertEquals(0, Core.countNonZero(gray0)); countNonZero 1601 modules/core/misc/java/test/CoreTest.java assertTrue(0 != Core.countNonZero(gray0)); countNonZero 1612 modules/core/misc/java/test/CoreTest.java assertTrue(0 != Core.countNonZero(gray0)); countNonZero 1623 modules/core/misc/java/test/CoreTest.java assertTrue(0 != Core.countNonZero(gray0)); countNonZero 1634 modules/core/misc/java/test/CoreTest.java assertTrue(0 != Core.countNonZero(gray0)); countNonZero 1638 modules/core/misc/java/test/CoreTest.java assertEquals(0, Core.countNonZero(gray0)); countNonZero 1815 modules/core/misc/java/test/CoreTest.java assertTrue(submat.total() == Core.countNonZero(submat)); countNonZero 1821 modules/core/misc/java/test/CoreTest.java assertTrue(submat.total() == Core.countNonZero(submat)); countNonZero 1970 modules/core/misc/java/test/CoreTest.java assertTrue(subdst.total() == Core.countNonZero(subdst)); countNonZero 272 modules/core/misc/java/test/MatTest.java assertEquals(5, Core.countNonZero(eye)); countNonZero 893 modules/core/misc/java/test/MatTest.java assertEquals(3, Core.countNonZero(gray0)); countNonZero 895 modules/core/misc/java/test/MatTest.java assertEquals(0, Core.countNonZero(gray0)); countNonZero 440 modules/core/perf/opencl/perf_arithm.cpp OCL_TEST_CYCLE() result = cv::countNonZero(src); countNonZero 78 modules/core/perf/opencl/perf_bufferpool.cpp countNonZero(u); countNonZero 90 modules/core/perf/perf_stat.cpp PERF_TEST_P(Size_MatType, countNonZero, testing::Combine( testing::Values( TYPICAL_MAT_SIZES ), testing::Values( CV_8UC1, CV_8SC1, CV_16UC1, CV_16SC1, CV_32SC1, CV_32FC1, CV_64FC1 ) )) countNonZero 101 modules/core/perf/perf_stat.cpp TEST_CYCLE_MULTIRUN(runs) cnt = countNonZero(src); countNonZero 3763 modules/core/src/stat.cpp int n = countNonZero(src); countNonZero 3813 modules/core/src/stat.cpp return countNonZero(img); countNonZero 946 modules/core/test/ocl/test_arithm.cpp OCL_OFF(cpures = cv::countNonZero(src1_roi)); countNonZero 947 modules/core/test/ocl/test_arithm.cpp OCL_ON(gpures = cv::countNonZero(usrc1_roi)); countNonZero 1167 modules/core/test/test_arithm.cpp dst.at<int>(0,0) = cv::countNonZero(temp); countNonZero 1540 modules/core/test/test_arithm.cpp ASSERT_EQ(0, countNonZero(m1 - m2)); countNonZero 1550 modules/core/test/test_arithm.cpp ASSERT_EQ(0, countNonZero(m1 - m2)); countNonZero 1621 modules/core/test/test_arithm.cpp ASSERT_EQ(0, cv::countNonZero(dst.reshape(1))); countNonZero 1647 modules/core/test/test_arithm.cpp ASSERT_EQ(0, cv::countNonZero(dst.reshape(1))); countNonZero 1660 modules/core/test/test_arithm.cpp ASSERT_EQ(0, cv::countNonZero(dst.reshape(1))); countNonZero 1684 modules/core/test/test_arithm.cpp ASSERT_EQ(0, cv::countNonZero(dst.reshape(1))); countNonZero 1709 modules/core/test/test_arithm.cpp ASSERT_EQ(0, cv::countNonZero(dst.reshape(1))); countNonZero 1733 modules/core/test/test_arithm.cpp ASSERT_EQ(0, cv::countNonZero(dst.reshape(1))); countNonZero 1758 modules/core/test/test_arithm.cpp ASSERT_EQ(0, cv::countNonZero(dst.reshape(1))); countNonZero 1786 modules/core/test/test_arithm.cpp ASSERT_EQ(0, cv::countNonZero(dst.reshape(1))); countNonZero 1816 modules/core/test/test_arithm.cpp ASSERT_EQ( nz, countNonZero(test) ); countNonZero 138 modules/core/test/test_concatenation.cpp && countNonZero(m1 != m2) == 0; countNonZero 202 modules/core/test/test_countnonzero.cpp int right = get_count_non_zero(), result = countNonZero(src); countNonZero 218 modules/core/test/test_countnonzero.cpp int result = countNonZero(src); countNonZero 234 modules/core/test/test_countnonzero.cpp int right = get_count_non_zero(), result = countNonZero(src); countNonZero 142 modules/core/test/test_mat.cpp check = countNonZero(diff>eps*dst) > 0; countNonZero 144 modules/core/test/test_mat.cpp check = countNonZero(diff>eps) > 0; countNonZero 2416 modules/core/test/test_math.cpp int outOfRangeCount = countNonZero((resInDeg > 360) | (resInDeg < 0)); countNonZero 2425 modules/core/test/test_math.cpp size_t errDegCount = diff.total() - countNonZero((diff < maxAngleDiff) | ((360 - diff) < maxAngleDiff)); countNonZero 788 modules/core/test/test_umat.cpp countNonZero(um1); countNonZero 789 modules/core/test/test_umat.cpp countNonZero(um2); countNonZero 799 modules/core/test/test_umat.cpp countNonZero(um1); countNonZero 800 modules/core/test/test_umat.cpp countNonZero(um2); countNonZero 617 modules/cudaarithm/include/opencv2/cudaarithm.hpp CV_EXPORTS int countNonZero(InputArray src); countNonZero 619 modules/cudaarithm/include/opencv2/cudaarithm.hpp CV_EXPORTS void countNonZero(InputArray src, OutputArray dst, Stream& stream = Stream::Null()); countNonZero 322 modules/cudaarithm/perf/perf_reductions.cpp TEST_CYCLE() gpu_dst = cv::cuda::countNonZero(d_src); countNonZero 330 modules/cudaarithm/perf/perf_reductions.cpp TEST_CYCLE() cpu_dst = cv::countNonZero(src); countNonZero 778 modules/cudaarithm/test/test_reductions.cpp cv::cuda::countNonZero(loadMat(src)); countNonZero 787 modules/cudaarithm/test/test_reductions.cpp int val = cv::cuda::countNonZero(loadMat(src, useRoi)); countNonZero 789 modules/cudaarithm/test/test_reductions.cpp int val_gold = cv::countNonZero(src); countNonZero 800 modules/cudaarithm/test/test_reductions.cpp cv::cuda::countNonZero(loadMat(src, useRoi), dst, stream); countNonZero 808 modules/cudaarithm/test/test_reductions.cpp int val_gold = cv::countNonZero(src); countNonZero 545 modules/cudafilters/src/filtering.cpp else if (iters_ > 1 && cv::countNonZero(kernel) == (int) kernel.total()) countNonZero 301 modules/cudalegacy/src/fgd.cpp int count = cuda::countNonZero(foreground); countNonZero 668 modules/features2d/src/matchers.cpp if( !masks[i].empty() && (countNonZero(masks[i].row(queryIdx)) == 0) ) countNonZero 441 modules/imgcodecs/test/test_drawing.cpp int nz1 = countNonZero(gray0); countNonZero 444 modules/imgcodecs/test/test_drawing.cpp int nz2 = countNonZero(gray0)/255; countNonZero 145 modules/imgproc/misc/java/test/ImgprocTest.java assertEquals(src.rows(), Core.countNonZero(dst)); countNonZero 250 modules/imgproc/misc/java/test/ImgprocTest.java assertFalse(0 == Core.countNonZero(dst)); countNonZero 652 modules/imgproc/misc/java/test/ImgprocTest.java assertEquals(0, Core.countNonZero(gray0)); countNonZero 662 modules/imgproc/misc/java/test/ImgprocTest.java assertEquals(0, Core.countNonZero(gray0)); countNonZero 824 modules/imgproc/misc/java/test/ImgprocTest.java assertEquals(Core.countNonZero(img), retval); countNonZero 826 modules/imgproc/misc/java/test/ImgprocTest.java assertEquals(retval + 4 * (matSize + 1), Core.countNonZero(mask)); countNonZero 838 modules/imgproc/misc/java/test/ImgprocTest.java assertEquals(Core.countNonZero(img), retval); countNonZero 898 modules/imgproc/misc/java/test/ImgprocTest.java assertEquals(0, Core.countNonZero(mtx)); countNonZero 905 modules/imgproc/misc/java/test/ImgprocTest.java assertFalse(0 == Core.countNonZero(mtx)); countNonZero 1956 modules/imgproc/misc/java/test/ImgprocTest.java assertTrue(0 != Core.countNonZero(gray0)); countNonZero 1966 modules/imgproc/misc/java/test/ImgprocTest.java assertTrue(0 != Core.countNonZero(gray0)); countNonZero 1982 modules/imgproc/misc/java/test/ImgprocTest.java assertFalse(0 == Core.countNonZero(gray0)); countNonZero 1986 modules/imgproc/misc/java/test/ImgprocTest.java assertTrue(0 == Core.countNonZero(gray0)); countNonZero 2037 modules/imgproc/misc/java/test/ImgprocTest.java assertTrue(0 != Core.countNonZero(gray0)); countNonZero 2047 modules/imgproc/misc/java/test/ImgprocTest.java assertTrue(0 != Core.countNonZero(gray0)); countNonZero 2059 modules/imgproc/misc/java/test/ImgprocTest.java assertTrue(0 != Core.countNonZero(gray0)); countNonZero 2063 modules/imgproc/misc/java/test/ImgprocTest.java assertEquals(0, Core.countNonZero(gray0)); countNonZero 2102 modules/imgproc/misc/java/test/ImgprocTest.java assertTrue(0 < Core.countNonZero(gray0)); countNonZero 2113 modules/imgproc/misc/java/test/ImgprocTest.java assertTrue(0 < Core.countNonZero(gray0)); countNonZero 2123 modules/imgproc/misc/java/test/ImgprocTest.java assertEquals(22, Core.countNonZero(img)); countNonZero 2127 modules/imgproc/misc/java/test/ImgprocTest.java assertEquals(4, Core.countNonZero(img)); countNonZero 2137 modules/imgproc/misc/java/test/ImgprocTest.java assertEquals(62, Core.countNonZero(img)); countNonZero 2149 modules/imgproc/misc/java/test/ImgprocTest.java assertTrue(Core.countNonZero(img) > 0); countNonZero 2153 modules/imgproc/misc/java/test/ImgprocTest.java assertEquals(0, Core.countNonZero(img)); countNonZero 2164 modules/imgproc/misc/java/test/ImgprocTest.java assertTrue(Core.countNonZero(img) > 0); countNonZero 2167 modules/imgproc/misc/java/test/ImgprocTest.java assertEquals(0, Core.countNonZero(img)); countNonZero 2178 modules/imgproc/misc/java/test/ImgprocTest.java assertTrue(Core.countNonZero(img) > 0); countNonZero 2181 modules/imgproc/misc/java/test/ImgprocTest.java assertEquals(0, Core.countNonZero(img)); countNonZero 2193 modules/imgproc/misc/java/test/ImgprocTest.java assertTrue(Core.countNonZero(img) > 0); countNonZero 2196 modules/imgproc/misc/java/test/ImgprocTest.java assertEquals(0, Core.countNonZero(img)); countNonZero 3850 modules/imgproc/src/filter.cpp int i, j, k, nz = countNonZero(kernel), ktype = kernel.type(); countNonZero 106 modules/imgproc/src/hough.cpp int nz = countNonZero(img); countNonZero 1225 modules/imgproc/src/lsd.cpp int N = countNonZero(Ixor); countNonZero 995 modules/imgproc/src/morph.cpp if( countNonZero(kernel) == kernel.rows*kernel.cols ) countNonZero 1320 modules/imgproc/src/morph.cpp else if( iterations >= 1 && countNonZero(kernel) == kernel.rows*kernel.cols ) countNonZero 1521 modules/imgproc/src/morph.cpp else if( iterations > 1 && countNonZero(kernel) == kernel.rows*kernel.cols ) countNonZero 1704 modules/imgproc/src/morph.cpp else if( iterations > 1 && countNonZero(kernel) == kernel.rows*kernel.cols ) countNonZero 1707 modules/imgproc/test/test_color.cpp EXPECT_EQ(0, countNonZero(diff.reshape(1) > 1)); countNonZero 1734 modules/imgproc/test/test_color.cpp EXPECT_EQ(0, countNonZero(diff.reshape(1) > 1)); countNonZero 1857 modules/imgproc/test/test_color.cpp int nonZero = countNonZero(diff.reshape(1) > 1); countNonZero 2078 modules/imgproc/test/test_color.cpp EXPECT_EQ(countNonZero(diff.reshape(1) > 1), 0); countNonZero 2185 modules/imgproc/test/test_color.cpp EXPECT_EQ(countNonZero(diff.reshape(1) > 1), 0); countNonZero 410 modules/imgproc/test/test_contours.cpp int pixelsDrawn = rows*cols - countNonZero(img); countNonZero 419 modules/imgproc/test/test_contours.cpp int cnt = countNonZero(img); countNonZero 430 modules/imgproc/test/test_contours.cpp int cnt = countNonZero(img); countNonZero 16 modules/imgproc/test/test_cvtyuv.cpp return countNonZero(diff.reshape(1) > maxAllowedDifference); countNonZero 67 modules/imgproc/test/test_grabcut.cpp int expArea = countNonZero( exp ); countNonZero 68 modules/imgproc/test/test_grabcut.cpp int nonIntersectArea = countNonZero( mask != exp ); countNonZero 169 modules/imgproc/test/test_grabcut.cpp EXPECT_EQ(0, countNonZero(mask_1 != mask_2)); countNonZero 170 modules/imgproc/test/test_grabcut.cpp EXPECT_EQ(0, countNonZero(mask_1 != mask_3)); countNonZero 171 modules/imgproc/test/test_grabcut.cpp EXPECT_EQ(0, countNonZero(mask_2 != mask_3)); countNonZero 400 modules/java/android_test/src/org/opencv/test/OpenCVTestCase.java int mistakes = Core.countNonZero(reshaped); countNonZero 168 modules/java/android_test/src/org/opencv/test/android/UtilsTest.java int numDiff = Core.countNonZero(diff.reshape(1)); countNonZero 430 modules/java/pure_test/src/org/opencv/test/OpenCVTestCase.java int mistakes = Core.countNonZero(reshaped); countNonZero 408 modules/ml/src/data.cpp int i, j, nz = countNonZero(mask), n = mask.cols + mask.rows - 1; countNonZero 77 modules/ml/test/test_lr.cpp accuracy = (float)countNonZero(_p_labels_temp == _o_labels_temp)/_p_labels_temp.rows; countNonZero 205 modules/ml/test/test_lr.cpp errorCount += 1 - (float)countNonZero(responses1 == responses2)/responses1.rows; countNonZero 149 modules/photo/src/align.cpp int err = countNonZero(diff); countNonZero 155 modules/photo/test/test_denoising.cpp int nonWhitePixelsCount = (int)img.total() - cv::countNonZero(filtered == img); countNonZero 103 modules/stitching/src/exposure_compensate.cpp N(i, j) = N(j, i) = std::max(1, countNonZero(intersect)); countNonZero 122 modules/ts/include/opencv2/ts/ocl_test.hpp EXPECT_LE(countNonZero(diff.reshape(1)), num) \ countNonZero 276 modules/ts/src/ocl_test.cpp int cpu_area = cv::countNonZero(cpu_result > 0); countNonZero 289 modules/ts/src/ocl_test.cpp int result = cv::countNonZero(result_ > 0); countNonZero 307 modules/ts/src/ocl_test.cpp if (alwaysShow || cv::countNonZero(diff_thresh.reshape(1)) > 0) countNonZero 437 modules/ts/src/ts_perf.cpp int v = cv::countNonZero(mask); countNonZero 65 modules/video/misc/java/test/VideoTest.java assertEquals(3, Core.countNonZero(status)); countNonZero 71 modules/video/misc/java/test/VideoTest.java assertEquals(0, Core.countNonZero(status)); countNonZero 489 modules/video/src/ecc.cpp const double tmpNorm = std::sqrt(countNonZero(imageMask)*(tmpStd.val[0])*(tmpStd.val[0])); countNonZero 490 modules/video/src/ecc.cpp const double imgNorm = std::sqrt(countNonZero(imageMask)*(imgStd.val[0])*(imgStd.val[0])); countNonZero 382 modules/videoio/test/test_ffmpeg.cpp EXPECT_EQ(countNonZero(diff.reshape(1) > 1), 0); countNonZero 81 samples/cpp/logistic_regression.cpp return 100 * (float)countNonZero(original == predicted) / predicted.rows;