http://www.emgu.com
This function has several different purposes and thus has several synonyms. It copies one GpuMat to another with optional scaling, which is performed first, and/or optional type conversion, performed after: dst(I)=src(I)*scale + (shift,shift,...) All the channels of multi-channel GpuMats are processed independently. The type conversion is done with rounding and saturation, that is if a result of scaling + conversion can not be represented exactly by a value of destination GpuMat element type, it is set to the nearest representable value on the real axis. In case of scale=1, shift=0 no prescaling is done. This is a specially optimized case and it has the appropriate convertTo synonym.

Namespace: Emgu.CV.GPU
Assembly: Emgu.CV.GPU (in Emgu.CV.GPU.dll) Version: 2.4.10.1935 (2.4.10.1935)

Syntax

C#
public static void ConvertTo(
	IntPtr src,
	IntPtr dst,
	double scale,
	double shift
)
Visual Basic
Public Shared Sub ConvertTo ( 
	src As IntPtr,
	dst As IntPtr,
	scale As Double,
	shift As Double
)
Visual C++
public:
static void ConvertTo(
	IntPtr src, 
	IntPtr dst, 
	double scale, 
	double shift
)
F#
static member ConvertTo : 
        src : IntPtr * 
        dst : IntPtr * 
        scale : float * 
        shift : float -> unit 

Parameters

src
Type: System..::..IntPtr
Source GpuMat
dst
Type: System..::..IntPtr
Destination GpuMat
scale
Type: System..::..Double
Scale factor
shift
Type: System..::..Double
Value added to the scaled source GpuMat elements

See Also