Struct InputArray
- Namespace
- OpenCvSharp
- Assembly
- OpenCvSharp.dll
Stack-only input proxy (see file header). Carries a native handle or an inline value; building one allocates nothing on the managed heap.
public readonly ref struct InputArray
- Inherited Members
Methods
Create(IVec)
Wraps a fixed-length IVec value (no allocation; travels inline).
public static InputArray Create(IVec vec)
Parameters
vecIVec
Returns
Create(Mat?)
Wraps a Mat (no allocation).
public static InputArray Create(Mat? mat)
Parameters
matMat
Returns
Create(MatExpr)
Wraps a MatExpr (materializes it to a native cv::MatExpr).
public static InputArray Create(MatExpr node)
Parameters
nodeMatExpr
Returns
Create(Scalar)
Wraps a Scalar value (no allocation; travels inline).
public static InputArray Create(Scalar val)
Parameters
valScalar
Returns
Create(UMat)
Wraps a UMat (no allocation).
public static InputArray Create(UMat mat)
Parameters
matUMat
Returns
Create(double)
Wraps a double value (no allocation; travels inline).
public static InputArray Create(double val)
Parameters
valdouble
Returns
Create<T>(IEnumerable<T>)
Wraps a sequence, inferring the MatType from T.
public static InputArray Create<T>(IEnumerable<T> enumerable) where T : unmanaged
Parameters
enumerableIEnumerable<T>
Returns
Type Parameters
T
Create<T>(IEnumerable<T>, MatType)
Wraps a sequence by copying it into a freshly-created Mat of the given
type.
public static InputArray Create<T>(IEnumerable<T> enumerable, MatType type) where T : unmanaged
Parameters
enumerableIEnumerable<T>typeMatType
Returns
Type Parameters
T
Create<T>(T[,])
Wraps a 2-D array, inferring the MatType from T.
public static InputArray Create<T>(T[,] array) where T : unmanaged
Parameters
arrayT[,]
Returns
Type Parameters
T
Create<T>(T[,], MatType)
Wraps a 2-D array by copying it into a freshly-created Mat of the given
type.
public static InputArray Create<T>(T[,] array, MatType type) where T : unmanaged
Parameters
arrayT[,]typeMatType
Returns
Type Parameters
T
Create<T>(T[])
Wraps a 1-D array, inferring the MatType from T.
public static InputArray Create<T>(T[] array) where T : unmanaged
Parameters
arrayT[]
Returns
Type Parameters
T
Create<T>(T[], MatType)
Wraps a 1-D array by copying it into a freshly-created Mat of the given
type (not allocation-free: this materializes a real Mat, same as the
class-based InputArray.Create<T> it replaces).
public static InputArray Create<T>(T[] array, MatType type) where T : unmanaged
Parameters
arrayT[]typeMatType
Returns
Type Parameters
T
Operators
implicit operator InputArray(Mat)
Wraps a Mat (no allocation).
public static implicit operator InputArray(Mat mat)
Parameters
matMat
Returns
implicit operator InputArray(MatExpr)
Wraps a MatExpr. The expression is materialized into a native cv::MatExpr (kept alive via OpenCvSharp.InputArray.Source), so this path is not allocation-free — matching the inherent cost of feeding a lazy expression into an OpenCV call.
public static implicit operator InputArray(MatExpr expr)
Parameters
exprMatExpr
Returns
implicit operator InputArray(Scalar)
Wraps a Scalar value (no allocation; travels inline).
public static implicit operator InputArray(Scalar s)
Parameters
sScalar
Returns
implicit operator InputArray(UMat)
Wraps a UMat (no allocation).
public static implicit operator InputArray(UMat mat)
Parameters
matUMat
Returns
implicit operator InputArray(Vec2b)
Wraps a Vec2b value (no allocation; travels inline).
public static implicit operator InputArray(Vec2b v)
Parameters
vVec2b
Returns
implicit operator InputArray(Vec2d)
Wraps a Vec2d value (no allocation; travels inline).
public static implicit operator InputArray(Vec2d v)
Parameters
vVec2d
Returns
implicit operator InputArray(Vec2f)
Wraps a Vec2f value (no allocation; travels inline).
public static implicit operator InputArray(Vec2f v)
Parameters
vVec2f
Returns
implicit operator InputArray(Vec2i)
Wraps a Vec2i value (no allocation; travels inline).
public static implicit operator InputArray(Vec2i v)
Parameters
vVec2i
Returns
implicit operator InputArray(Vec2s)
Wraps a Vec2s value (no allocation; travels inline).
public static implicit operator InputArray(Vec2s v)
Parameters
vVec2s
Returns
implicit operator InputArray(Vec2w)
Wraps a Vec2w value (no allocation; travels inline).
public static implicit operator InputArray(Vec2w v)
Parameters
vVec2w
Returns
implicit operator InputArray(Vec3b)
Wraps a Vec3b value (no allocation; travels inline).
public static implicit operator InputArray(Vec3b v)
Parameters
vVec3b
Returns
implicit operator InputArray(Vec3d)
Wraps a Vec3d value (no allocation; travels inline).
public static implicit operator InputArray(Vec3d v)
Parameters
vVec3d
Returns
implicit operator InputArray(Vec3f)
Wraps a Vec3f value (no allocation; travels inline).
public static implicit operator InputArray(Vec3f v)
Parameters
vVec3f
Returns
implicit operator InputArray(Vec3i)
Wraps a Vec3i value (no allocation; travels inline).
public static implicit operator InputArray(Vec3i v)
Parameters
vVec3i
Returns
implicit operator InputArray(Vec3s)
Wraps a Vec3s value (no allocation; travels inline).
public static implicit operator InputArray(Vec3s v)
Parameters
vVec3s
Returns
implicit operator InputArray(Vec3w)
Wraps a Vec3w value (no allocation; travels inline).
public static implicit operator InputArray(Vec3w v)
Parameters
vVec3w
Returns
implicit operator InputArray(Vec4b)
Wraps a Vec4b value (no allocation; travels inline).
public static implicit operator InputArray(Vec4b v)
Parameters
vVec4b
Returns
implicit operator InputArray(Vec4d)
Wraps a Vec4d value (no allocation; travels inline).
public static implicit operator InputArray(Vec4d v)
Parameters
vVec4d
Returns
implicit operator InputArray(Vec4f)
Wraps a Vec4f value (no allocation; travels inline).
public static implicit operator InputArray(Vec4f v)
Parameters
vVec4f
Returns
implicit operator InputArray(Vec4i)
Wraps a Vec4i value (no allocation; travels inline).
public static implicit operator InputArray(Vec4i v)
Parameters
vVec4i
Returns
implicit operator InputArray(Vec4s)
Wraps a Vec4s value (no allocation; travels inline).
public static implicit operator InputArray(Vec4s v)
Parameters
vVec4s
Returns
implicit operator InputArray(Vec4w)
Wraps a Vec4w value (no allocation; travels inline).
public static implicit operator InputArray(Vec4w v)
Parameters
vVec4w
Returns
implicit operator InputArray(Vec6b)
Wraps a Vec6b value (no allocation; travels inline).
public static implicit operator InputArray(Vec6b v)
Parameters
vVec6b
Returns
implicit operator InputArray(Vec6d)
Wraps a Vec6d value (no allocation; travels inline).
public static implicit operator InputArray(Vec6d v)
Parameters
vVec6d
Returns
implicit operator InputArray(Vec6f)
Wraps a Vec6f value (no allocation; travels inline).
public static implicit operator InputArray(Vec6f v)
Parameters
vVec6f
Returns
implicit operator InputArray(Vec6i)
Wraps a Vec6i value (no allocation; travels inline).
public static implicit operator InputArray(Vec6i v)
Parameters
vVec6i
Returns
implicit operator InputArray(Vec6s)
Wraps a Vec6s value (no allocation; travels inline).
public static implicit operator InputArray(Vec6s v)
Parameters
vVec6s
Returns
implicit operator InputArray(Vec6w)
Wraps a Vec6w value (no allocation; travels inline).
public static implicit operator InputArray(Vec6w v)
Parameters
vVec6w
Returns
implicit operator InputArray(double)
Wraps a double value (no allocation; travels inline as Scalar(d,0,0,0)).
public static implicit operator InputArray(double d)
Parameters
ddouble