Table of Contents

Constructor MatSafeHandle

Namespace
OpenCvSharp
Assembly
OpenCvSharp.dll

MatSafeHandle()

Initializes a new owning instance (used by P/Invoke out parameters).

public MatSafeHandle()

MatSafeHandle(nint, bool)

Wraps an existing native cv::Mat* pointer.

public MatSafeHandle(nint existingHandle, bool ownsHandle)

Parameters

existingHandle nint

The pre-existing native pointer.

ownsHandle bool

true if this instance should call core_Mat_delete on disposal; false for borrowed pointers that are owned by another object.