Table of Contents

Class MatMemoryManager<T>

Namespace
OpenCvSharp
Assembly
OpenCvSharp.dll

A MemoryManager over an OpenCvSharpMat

public sealed class MatMemoryManager<T> : MemoryManager<T>, IMemoryOwner<T>, IDisposable, IPinnable where T : unmanaged

Type Parameters

T
Inheritance
MatMemoryManager<T>
Implements
Inherited Members

Remarks

The pointer is assumed to be fully unmanaged, or externally pinned - no attempt will be made to pin this data

Constructors

MatMemoryManager(Mat, bool)

Create a new UnmanagedMemoryManager instance at the given pointer and size

Methods

Dispose(bool)

Releases all resources associated with this object

GetSpan()

Returns a memory span that wraps the underlying memory buffer.

Pin(int)

Provides access to a pointer that represents the data (note: no actual pin occurs)

Unpin()

Has no effect