| MatFromImageData Method |
Creates the Mat instance from image data (using cv::decode)
Namespace:
OpenCvSharp
Assembly:
OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0
Syntax public static Mat FromImageData(
byte[] imageBytes,
ImreadModes mode = ImreadModes.Color
)
Public Shared Function FromImageData (
imageBytes As Byte(),
Optional mode As ImreadModes = ImreadModes.Color
) As Mat
public:
static Mat^ FromImageData(
array<unsigned char>^ imageBytes,
ImreadModes mode = ImreadModes::Color
)
static member FromImageData :
imageBytes : byte[] *
?mode : ImreadModes
(* Defaults:
let _mode = defaultArg mode ImreadModes.Color
*)
-> Mat
Parameters
- imageBytes
- Type: SystemByte
[Missing <param name="imageBytes"/> documentation for "M:OpenCvSharp.Mat.FromImageData(System.Byte[],OpenCvSharp.ImreadModes)"]
- mode (Optional)
- Type: OpenCvSharpImreadModes
[Missing <param name="mode"/> documentation for "M:OpenCvSharp.Mat.FromImageData(System.Byte[],OpenCvSharp.ImreadModes)"]
Return Value
Type:
Mat[Missing <returns> documentation for "M:OpenCvSharp.Mat.FromImageData(System.Byte[],OpenCvSharp.ImreadModes)"]
See Also