MatToImageTColor, TDepth Method |
http://www.emgu.com
Convert this Mat to Image
Namespace:
Emgu.CV
Assembly:
Emgu.CV.World (in Emgu.CV.World.dll) Version: 4.1.1.3497 (4.1.1.3497)
Syntaxpublic Image<TColor, TDepth> ToImage<TColor, TDepth>(
bool tryShareData = false
)
where TColor : struct, new(), IColor
where TDepth : new()
Public Function ToImage(Of TColor As {Structure, New, IColor}, TDepth As New) (
Optional tryShareData As Boolean = false
) As Image(Of TColor, TDepth)
public:
generic<typename TColor, typename TDepth>
where TColor : value class, gcnew(), IColor
where TDepth : gcnew()
Image<TColor, TDepth>^ ToImage(
bool tryShareData = false
)
member ToImage :
?tryShareData : bool
(* Defaults:
let _tryShareData = defaultArg tryShareData false
*)
-> Image<'TColor, 'TDepth> when 'TColor : struct, new() and IColor when 'TDepth : new()
Parameters
- tryShareData (Optional)
- Type: SystemBoolean
If true, we will try to see if we can create an Image object that shared the pixel memory with this Mat.
Type Parameters
- TColor
- The type of Color
- TDepth
- The type of Depth
Return Value
Type:
ImageTColor,
TDepthThe image
See Also