Lines Matching refs:kernel

948     Mat kernel = _kernel.getMat();  in getMorphologyFilter()  local
950 anchor = normalizeAnchor(anchor, kernel.size()); in getMorphologyFilter()
955 return makePtr<MorphFilter<MinOp<uchar>, ErodeVec8u> >(kernel, anchor); in getMorphologyFilter()
957 return makePtr<MorphFilter<MinOp<ushort>, ErodeVec16u> >(kernel, anchor); in getMorphologyFilter()
959 return makePtr<MorphFilter<MinOp<short>, ErodeVec16s> >(kernel, anchor); in getMorphologyFilter()
961 return makePtr<MorphFilter<MinOp<float>, ErodeVec32f> >(kernel, anchor); in getMorphologyFilter()
963 return makePtr<MorphFilter<MinOp<double>, ErodeVec64f> >(kernel, anchor); in getMorphologyFilter()
968 return makePtr<MorphFilter<MaxOp<uchar>, DilateVec8u> >(kernel, anchor); in getMorphologyFilter()
970 return makePtr<MorphFilter<MaxOp<ushort>, DilateVec16u> >(kernel, anchor); in getMorphologyFilter()
972 return makePtr<MorphFilter<MaxOp<short>, DilateVec16s> >(kernel, anchor); in getMorphologyFilter()
974 return makePtr<MorphFilter<MaxOp<float>, DilateVec32f> >(kernel, anchor); in getMorphologyFilter()
976 return makePtr<MorphFilter<MaxOp<double>, DilateVec64f> >(kernel, anchor); in getMorphologyFilter()
988 Mat kernel = _kernel.getMat(); in createMorphologyFilter() local
989 anchor = normalizeAnchor(anchor, kernel.size()); in createMorphologyFilter()
995 if( countNonZero(kernel) == kernel.rows*kernel.cols ) in createMorphologyFilter()
998 rowFilter = getMorphologyRowFilter(op, type, kernel.cols, anchor.x); in createMorphologyFilter()
999 columnFilter = getMorphologyColumnFilter(op, type, kernel.rows, anchor.y); in createMorphologyFilter()
1002 filter2D = getMorphologyFilter(op, type, kernel, anchor); in createMorphologyFilter()
1099 kernel = _kernel; in MorphologyRunner()
1117 Ptr<FilterEngine> f = createMorphologyFilter(op, src.type(), kernel, anchor, in operator ()()
1132 Mat kernel; member in cv::MorphologyRunner
1140 static bool IPPMorphReplicate(int op, const Mat &src, Mat &dst, const Mat &kernel, in IPPMorphReplicate() argument
1158 if (((kernel.cols - 1) / 2 != anchor.x) || ((kernel.rows - 1) / 2 != anchor.y)) in IPPMorphReplicate()
1168 …if (0 > ippiMorphologyBorderInit_##flavor(roiSize.width, kernel.ptr(), kernelSize, pSpec, pBuffer)… in IPPMorphReplicate()
1195 … if (0 > ippiMorphologyGetSize_##flavor( roiSize.width, kernel.ptr() kernelSize, &specSize))\ in IPPMorphReplicate()
1199 … if (ippiMorphologyInit_##flavor(roiSize.width, kernel.ptr(), kernelSize, point, pState) >= 0)\ in IPPMorphReplicate()
1267 Mat src = _src.getMat(), kernel = _kernel; in IPPMorphOp() local
1272kernel.size() == Size(3,3)) ) || !( op == MORPH_DILATE || op == MORPH_ERODE) || _src.isSubmatrix()… in IPPMorphOp()
1276 if( borderType == cv::BORDER_CONSTANT && kernel.data ) in IPPMorphOp()
1279 for( y = 0; y < kernel.rows; y++ ) in IPPMorphOp()
1281 if( kernel.at<uchar>(y, anchor.x) != 0 ) in IPPMorphOp()
1283 for( x = 0; x < kernel.cols; x++ ) in IPPMorphOp()
1285 if( kernel.at<uchar>(y,x) != 0 ) in IPPMorphOp()
1289 for( x = 0; x < kernel.cols; x++ ) in IPPMorphOp()
1291 if( kernel.at<uchar>(anchor.y, x) != 0 ) in IPPMorphOp()
1293 for( y = 0; y < kernel.rows; y++ ) in IPPMorphOp()
1295 if( kernel.at<uchar>(y,x) != 0 ) in IPPMorphOp()
1301 Size ksize = !kernel.empty() ? kernel.size() : Size(3,3); in IPPMorphOp()
1306 if( iterations == 0 || kernel.rows*kernel.cols == 1 ) in IPPMorphOp()
1313 if( kernel.empty() ) in IPPMorphOp()
1320 else if( iterations >= 1 && countNonZero(kernel) == kernel.rows*kernel.cols ) in IPPMorphOp()
1325 kernel = Mat(); in IPPMorphOp()
1334 return IPPMorphReplicate( op, src, dst, kernel, ksize, anchor, rectKernel ); in IPPMorphOp()
1452 ocl::Kernel kernel("filterSmall", cv::ocl::imgproc::filterSmall_oclsrc, opts); in ocl_morphSmall() local
1453 if (kernel.empty()) in ocl_morphSmall()
1477 int idxArg = kernel.set(0, ocl::KernelArg::PtrReadOnly(source)); in ocl_morphSmall()
1478 idxArg = kernel.set(idxArg, (int)source.step); in ocl_morphSmall()
1483 idxArg = kernel.set(idxArg, srcOffsetX); in ocl_morphSmall()
1484 idxArg = kernel.set(idxArg, srcOffsetY); in ocl_morphSmall()
1485 idxArg = kernel.set(idxArg, srcEndX); in ocl_morphSmall()
1486 idxArg = kernel.set(idxArg, srcEndY); in ocl_morphSmall()
1487 idxArg = kernel.set(idxArg, ocl::KernelArg::WriteOnly(dst)); in ocl_morphSmall()
1491 idxArg = kernel.set(idxArg, ocl::KernelArg::ReadOnlyNoSize(extraMat)); in ocl_morphSmall()
1494 return kernel.run(2, globalsize, NULL, false); in ocl_morphSmall()
1505 Mat kernel = _kernel.getMat(); in ocl_morphOp() local
1506 Size ksize = !kernel.empty() ? kernel.size() : Size(3, 3), ssize = _src.size(); in ocl_morphOp()
1515 if (kernel.empty()) in ocl_morphOp()
1517 kernel = getStructuringElement(MORPH_RECT, Size(1+iterations*2,1+iterations*2)); in ocl_morphOp()
1521 else if( iterations > 1 && countNonZero(kernel) == kernel.rows*kernel.cols ) in ocl_morphOp()
1524 kernel = getStructuringElement(MORPH_RECT, in ocl_morphOp()
1541 if (ocl_morphSmall(_src, _dst, kernel, anchor, borderType, op, actual_op, _extraMat)) in ocl_morphOp()
1545 if (iterations == 0 || kernel.rows*kernel.cols == 1) in ocl_morphOp()
1574 kernel.convertTo(kernel8u, CV_8U); in ocl_morphOp()
1682 Mat kernel = _kernel.getMat(); in morphOp() local
1683 Size ksize = !kernel.empty() ? kernel.size() : Size(3,3); in morphOp()
1690 ocl_morphOp(_src, _dst, kernel, anchor, iterations, op, borderType, borderValue) ) in morphOp()
1692 if (iterations == 0 || kernel.rows*kernel.cols == 1) in morphOp()
1698 if (kernel.empty()) in morphOp()
1700 kernel = getStructuringElement(MORPH_RECT, Size(1+iterations*2,1+iterations*2)); in morphOp()
1704 else if( iterations > 1 && countNonZero(kernel) == kernel.rows*kernel.cols ) in morphOp()
1707 kernel = getStructuringElement(MORPH_RECT, in morphOp()
1717 if( IPPMorphOp(op, _src, _dst, kernel, anchor, iterations, borderType, borderValue) ) in morphOp()
1738 …MorphologyRunner(src, dst, nStripes, iterations, op, kernel, anchor, borderType, borderType, borde… in morphOp()
1743 void cv::erode( InputArray src, OutputArray dst, InputArray kernel, in erode() argument
1747 morphOp( MORPH_ERODE, src, dst, kernel, anchor, iterations, borderType, borderValue ); in erode()
1751 void cv::dilate( InputArray src, OutputArray dst, InputArray kernel, in dilate() argument
1755 morphOp( MORPH_DILATE, src, dst, kernel, anchor, iterations, borderType, borderValue ); in dilate()
1763 InputArray kernel, Point anchor, int iterations, in ocl_morphologyEx() argument
1774 … if (!ocl_morphOp( _src, _dst, kernel, anchor, iterations, MORPH_ERODE, borderType, borderValue )) in ocl_morphologyEx()
1778 … if (!ocl_morphOp( _src, _dst, kernel, anchor, iterations, MORPH_DILATE, borderType, borderValue )) in ocl_morphologyEx()
1782 … if (!ocl_morphOp( _src, _temp, kernel, anchor, iterations, MORPH_ERODE, borderType, borderValue )) in ocl_morphologyEx()
1784 …if (!ocl_morphOp( _temp, _dst, kernel, anchor, iterations, MORPH_DILATE, borderType, borderValue )) in ocl_morphologyEx()
1788 …if (!ocl_morphOp( _src, _temp, kernel, anchor, iterations, MORPH_DILATE, borderType, borderValue )) in ocl_morphologyEx()
1790 … if (!ocl_morphOp( _temp, _dst, kernel, anchor, iterations, MORPH_ERODE, borderType, borderValue )) in ocl_morphologyEx()
1794 … if (!ocl_morphOp( _src, temp, kernel, anchor, iterations, MORPH_ERODE, borderType, borderValue )) in ocl_morphologyEx()
1796 …if (!ocl_morphOp( _src, _dst, kernel, anchor, iterations, MORPH_DILATE, borderType, borderValue, M… in ocl_morphologyEx()
1800 … if (!ocl_morphOp( _src, _temp, kernel, anchor, iterations, MORPH_ERODE, borderType, borderValue )) in ocl_morphologyEx()
1802 …if (!ocl_morphOp( _temp, _dst, kernel, anchor, iterations, MORPH_DILATE, borderType, borderValue, … in ocl_morphologyEx()
1806 …if (!ocl_morphOp( _src, _temp, kernel, anchor, iterations, MORPH_DILATE, borderType, borderValue )) in ocl_morphologyEx()
1808 …if (!ocl_morphOp( _temp, _dst, kernel, anchor, iterations, MORPH_ERODE, borderType, borderValue, M… in ocl_morphologyEx()
1826 Mat kernel = _kernel.getMat(); in morphologyEx() local
1827 if (kernel.empty()) in morphologyEx()
1829 kernel = getStructuringElement(MORPH_RECT, Size(3,3), Point(1,1)); in morphologyEx()
1832 Size ksize = kernel.size(); in morphologyEx()
1838 ocl_morphologyEx(_src, _dst, op, kernel, anchor, iterations, borderType, borderValue)) in morphologyEx()
1848 erode( src, dst, kernel, anchor, iterations, borderType, borderValue ); in morphologyEx()
1851 dilate( src, dst, kernel, anchor, iterations, borderType, borderValue ); in morphologyEx()
1854 erode( src, dst, kernel, anchor, iterations, borderType, borderValue ); in morphologyEx()
1855 dilate( dst, dst, kernel, anchor, iterations, borderType, borderValue ); in morphologyEx()
1858 dilate( src, dst, kernel, anchor, iterations, borderType, borderValue ); in morphologyEx()
1859 erode( dst, dst, kernel, anchor, iterations, borderType, borderValue ); in morphologyEx()
1862 erode( src, temp, kernel, anchor, iterations, borderType, borderValue ); in morphologyEx()
1863 dilate( src, dst, kernel, anchor, iterations, borderType, borderValue ); in morphologyEx()
1869 erode( src, temp, kernel, anchor, iterations, borderType, borderValue ); in morphologyEx()
1870 dilate( temp, temp, kernel, anchor, iterations, borderType, borderValue ); in morphologyEx()
1876 dilate( src, temp, kernel, anchor, iterations, borderType, borderValue ); in morphologyEx()
1877 erode( temp, temp, kernel, anchor, iterations, borderType, borderValue ); in morphologyEx()
1951 cv::Mat src = cv::cvarrToMat(srcarr), dst = cv::cvarrToMat(dstarr), kernel; in cvErode() local
1954 convertConvKernel( element, kernel, anchor ); in cvErode()
1955 cv::erode( src, dst, kernel, anchor, iterations, cv::BORDER_REPLICATE ); in cvErode()
1962 cv::Mat src = cv::cvarrToMat(srcarr), dst = cv::cvarrToMat(dstarr), kernel; in cvDilate() local
1965 convertConvKernel( element, kernel, anchor ); in cvDilate()
1966 cv::dilate( src, dst, kernel, anchor, iterations, cv::BORDER_REPLICATE ); in cvDilate()
1974 cv::Mat src = cv::cvarrToMat(srcarr), dst = cv::cvarrToMat(dstarr), kernel; in cvMorphologyEx() local
1984 convertConvKernel( temp_element, kernel, anchor ); in cvMorphologyEx()
1989 cv::morphologyEx( src, dst, op, kernel, anchor, iterations, cv::BORDER_REPLICATE ); in cvMorphologyEx()