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.CudaAssembly: Emgu.CV.Cuda (in Emgu.CV.Cuda.dll) Version: 3.0.0.2161 (3.0.0.2161)
Syntaxpublic void ConvertTo(
IOutputArray dst,
DepthType rtype,
double scale = 1,
double shift = 0,
Stream stream = null
)
Public Sub ConvertTo (
dst As IOutputArray,
rtype As DepthType,
Optional scale As Double = 1,
Optional shift As Double = 0,
Optional stream As Stream = Nothing
)
public:
void ConvertTo(
IOutputArray^ dst,
DepthType rtype,
double scale = 1,
double shift = 0,
Stream^ stream = nullptr
)
member ConvertTo :
dst : IOutputArray *
rtype : DepthType *
?scale : float *
?shift : float *
?stream : Stream
(* Defaults:
let _scale = defaultArg scale 1
let _shift = defaultArg shift 0
let _stream = defaultArg stream null
*)
-> unit
Parameters
- dst
- Type: Emgu.CVIOutputArray
Destination GpuMat - rtype
- Type: Emgu.CV.CvEnumDepthType
[Missing <param name="rtype"/> documentation for "M:Emgu.CV.Cuda.GpuMat.ConvertTo(Emgu.CV.IOutputArray,Emgu.CV.CvEnum.DepthType,System.Double,System.Double,Emgu.CV.Cuda.Stream)"]
- scale (Optional)
- Type: SystemDouble
Scale factor - shift (Optional)
- Type: SystemDouble
Value added to the scaled source GpuMat elements - stream (Optional)
- Type: Emgu.CV.CudaStream
Use a Stream to call the function asynchronously (non-blocking) or IntPtr.Zero to call the function synchronously (blocking).
See Also