ImageTColor, TDepthConvertTDepth2, TDepth3 Method (ImageTColor, TDepth2, FuncTDepth, TDepth2, TDepth3) |
http://www.emgu.com Compute the element of the new image based on the elements of the two image
Namespace:
Emgu.CV
Assembly:
Emgu.CV.Platform.NetStandard (in Emgu.CV.Platform.NetStandard.dll) Version: 4.3.0.3890
Syntaxpublic Image<TColor, TDepth3> Convert<TDepth2, TDepth3>(
Image<TColor, TDepth2> img2,
Func<TDepth, TDepth2, TDepth3> converter
)
where TDepth2 : new()
where TDepth3 : new()
Public Function Convert(Of TDepth2 As New, TDepth3 As New) (
img2 As Image(Of TColor, TDepth2),
converter As Func(Of TDepth, TDepth2, TDepth3)
) As Image(Of TColor, TDepth3)
public:
generic<typename TDepth2, typename TDepth3>
where TDepth2 : gcnew()
where TDepth3 : gcnew()
Image<TColor, TDepth3>^ Convert(
Image<TColor, TDepth2>^ img2,
Func<TDepth, TDepth2, TDepth3>^ converter
)
member Convert :
img2 : Image<'TColor, 'TDepth2> *
converter : Func<'TDepth, 'TDepth2, 'TDepth3> -> Image<'TColor, 'TDepth3> when 'TDepth2 : new() when 'TDepth3 : new()
Parameters
- img2
- Type: Emgu.CVImageTColor, TDepth2
The second image - converter
- Type: SystemFuncTDepth, TDepth2, TDepth3
The function to be applied to the image pixels
Type Parameters
- TDepth2
- The depth type of img2
- TDepth3
- The depth type of the result image
Return Value
Type:
ImageTColor,
TDepth3The result image
See Also