/// <summary> /// Creates a horizontal 1D box filter. /// </summary> /// <param name="srcDepth">Input image depth. Only 8U type is supported for now.</param> /// <param name="srcChannels">Input image channel. Only single channel type is supported for now.</param> /// <param name="dstDepth">Output image depth. Only 32F type is supported for now.</param> /// <param name="dstChannels">Output image channel. Only single channel type is supported for now.</param> /// <param name="ksize">Kernel size.</param> /// <param name="anchor">Anchor point. The default value (-1) means that the anchor is at the kernel center.</param> /// <param name="borderType">Pixel extrapolation method.</param> /// <param name="borderValue">Default border value.</param> public RowSumFilter(DepthType srcDepth, int srcChannels, DepthType dstDepth, int dstChannels, int ksize, int anchor = -1, CvEnum.BorderType borderType = BorderType.Default, MCvScalar borderValue = new MCvScalar()) { _ptr = CudaInvoke.cudaCreateRowSumFilter(CvInvoke.MakeType(srcDepth, srcChannels), CvInvoke.MakeType(dstDepth, dstChannels), ksize, anchor, borderType, ref borderValue); }