Table of Contents

Method GetGenericIndexer

Namespace
OpenCvSharp
Assembly
OpenCvSharp.dll

GetGenericIndexer<T>()

Gets a type-specific indexer. The indexer has getters/setters to access each matrix element.

[Obsolete("Use At<T>(row, col) for occasional access, or AsRows<T>() for high-performance loops. GetGenericIndexer uses Marshal.PtrToStructure which is slower than both alternatives.")]
public Mat.Indexer<T> GetGenericIndexer<T>() where T : struct

Returns

Mat.Indexer<T>

Type Parameters

T