/// <summary> /// Copies scalar value to every selected element of the destination GpuMat: /// GpuMat(I)=value if mask(I)!=0 /// </summary> /// <param name="value">Fill value</param> /// <param name="mask">Operation mask, 8-bit single channel GpuMat; specifies elements of destination array to be changed. Can be null if not used.</param> /// <param name="stream">Use a Stream to call the function asynchronously (non-blocking) or null to call the function synchronously (blocking).</param> public void SetTo(MCvScalar value, GpuMat <Byte> mask, Stream stream) { GpuInvoke.GpuMatSetTo(_ptr, value, mask, stream); }