Class InputArray
Proxy data type for passing Mat's and vector<>'s as input parameters
Inheritance
System.Object
InputArray
Assembly: OpenCvSharp.dll
public class InputArray : DisposableCvObject, ICvPtrHolder
Fields
|
Improve this Doc
View Source
Declaration
public const int KIND_MASK = 1073676288
Field Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
Declaration
public const int KIND_SHIFT = 16
Field Value
Type |
Description |
System.Int32 |
|
Methods
|
Improve this Doc
View Source
Declaration
public int Channels(int i = -1)
Parameters
Type |
Name |
Description |
System.Int32 |
i |
|
Returns
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
Declaration
public int Cols(int i = -1)
Parameters
Type |
Name |
Description |
System.Int32 |
i |
|
Returns
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
Declaration
public void CopyTo(OutputArray arr)
Parameters
|
Improve this Doc
View Source
Declaration
public void CopyTo(OutputArray arr, InputArray mask)
Parameters
|
Improve this Doc
View Source
Creates a proxy class of the specified array of Mat
Declaration
public static InputArray Create(IEnumerable<Mat> matVector)
Parameters
Type |
Name |
Description |
IEnumerable<Mat> |
matVector |
|
Returns
|
Improve this Doc
View Source
Creates a proxy class of the specified Vec*b
Declaration
public static InputArray Create(IVec vec)
Parameters
Type |
Name |
Description |
IVec |
vec |
|
Returns
|
Improve this Doc
View Source
Creates a proxy class of the specified Mat
Declaration
public static InputArray Create(Mat mat)
Parameters
Type |
Name |
Description |
Mat |
mat |
|
Returns
|
Improve this Doc
View Source
Creates a proxy class of the specified MatExpr
Declaration
public static InputArray Create(MatExpr expr)
Parameters
Returns
|
Improve this Doc
View Source
Creates a proxy class of the specified Scalar
Declaration
public static InputArray Create(Scalar val)
Parameters
Type |
Name |
Description |
OpenCvSharp.Scalar |
val |
|
Returns
|
Improve this Doc
View Source
Creates a proxy class of the specified Mat
Declaration
public static InputArray Create(UMat mat)
Parameters
Type |
Name |
Description |
UMat |
mat |
|
Returns
|
Improve this Doc
View Source
Creates a proxy class of the specified double
Declaration
public static InputArray Create(double val)
Parameters
Type |
Name |
Description |
System.Double |
val |
|
Returns
|
Improve this Doc
View Source
Creates a proxy class of the specified list
Declaration
public static InputArray Create<T>(T[] array)
where T : struct
Parameters
Type |
Name |
Description |
T[] |
array |
Array object
|
Returns
Type Parameters
|
Improve this Doc
View Source
Creates a proxy class of the specified list
Declaration
public static InputArray Create<T>(T[] array, MatType type)
where T : struct
Parameters
Type |
Name |
Description |
T[] |
array |
Array object
|
OpenCvSharp.MatType |
type |
Matrix depth and channels for converting array to cv::Mat
|
Returns
Type Parameters
|
Improve this Doc
View Source
Creates a proxy class of the specified list
Declaration
public static InputArray Create<T>(T[, ] array)
where T : struct
Parameters
Type |
Name |
Description |
T[,] |
array |
Array object
|
Returns
Type Parameters
|
Improve this Doc
View Source
Creates a proxy class of the specified list
Declaration
public static InputArray Create<T>(T[, ] array, MatType type)
where T : struct
Parameters
Type |
Name |
Description |
T[,] |
array |
Array object
|
OpenCvSharp.MatType |
type |
Matrix depth and channels for converting array to cv::Mat
|
Returns
Type Parameters
|
Improve this Doc
View Source
Creates a proxy class of the specified list
Declaration
public static InputArray Create<T>(IEnumerable<T> enumerable)
where T : struct
Parameters
Type |
Name |
Description |
IEnumerable<T> |
enumerable |
Array object
|
Returns
Type Parameters
|
Improve this Doc
View Source
Creates a proxy class of the specified list
Declaration
public static InputArray Create<T>(IEnumerable<T> enumerable, MatType type)
where T : struct
Parameters
Type |
Name |
Description |
IEnumerable<T> |
enumerable |
Array object
|
OpenCvSharp.MatType |
type |
Matrix depth and channels for converting array to cv::Mat
|
Returns
Type Parameters
|
Improve this Doc
View Source
Declaration
public int Depth(int i = -1)
Parameters
Type |
Name |
Description |
System.Int32 |
i |
|
Returns
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
Declaration
public int Dims(int i = -1)
Parameters
Type |
Name |
Description |
System.Int32 |
i |
|
Returns
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
Releases managed resources
Declaration
protected override void DisposeManaged()
Overrides
|
Improve this Doc
View Source
Releases unmanaged resources
Declaration
protected override void DisposeUnmanaged()
Overrides
|
Improve this Doc
View Source
Declaration
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Declaration
Returns
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
Declaration
public Mat GetMat(int i = -1)
Parameters
Type |
Name |
Description |
System.Int32 |
i |
|
Returns
|
Improve this Doc
View Source
Declaration
public Mat[] GetMatVector()
Returns
|
Improve this Doc
View Source
Declaration
Returns
|
Improve this Doc
View Source
Declaration
Returns
Type |
Description |
OpenCvSharp.Size |
|
|
Improve this Doc
View Source
Declaration
public UMat GetUMat(int i = -1)
Parameters
Type |
Name |
Description |
System.Int32 |
i |
|
Returns
|
Improve this Doc
View Source
Declaration
public bool IsContinuous(int i = -1)
Parameters
Type |
Name |
Description |
System.Int32 |
i |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Declaration
public bool IsGpuMatVector()
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Declaration
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Declaration
public bool IsMatVector()
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Declaration
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Declaration
public bool IsSubmatrix(int i = -1)
Parameters
Type |
Name |
Description |
System.Int32 |
i |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Declaration
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Declaration
public bool IsUMatVector()
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Declaration
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Declaration
public InOutArrayKind Kind()
Returns
|
Improve this Doc
View Source
Declaration
public long Offset(int i = -1)
Parameters
Type |
Name |
Description |
System.Int32 |
i |
|
Returns
Type |
Description |
System.Int64 |
|
|
Improve this Doc
View Source
Declaration
public int Rows(int i = -1)
Parameters
Type |
Name |
Description |
System.Int32 |
i |
|
Returns
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
Declaration
public bool SameSize(InputArray arr)
Parameters
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Declaration
public Size Size(int i = -1)
Parameters
Type |
Name |
Description |
System.Int32 |
i |
|
Returns
Type |
Description |
OpenCvSharp.Size |
|
|
Improve this Doc
View Source
Declaration
public int SizeND(int[] sz, int i = -1)
Parameters
Type |
Name |
Description |
System.Int32[] |
sz |
|
System.Int32 |
i |
|
Returns
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
Declaration
public long Step(int i = -1)
Parameters
Type |
Name |
Description |
System.Int32 |
i |
|
Returns
Type |
Description |
System.Int64 |
|
|
Improve this Doc
View Source
Declaration
public long Total(int i = -1)
Parameters
Type |
Name |
Description |
System.Int32 |
i |
|
Returns
Type |
Description |
System.Int64 |
|
|
Improve this Doc
View Source
Declaration
public int Type(int i = -1)
Parameters
Type |
Name |
Description |
System.Int32 |
i |
|
Returns
Type |
Description |
System.Int32 |
|
Operators
|
Improve this Doc
View Source
Declaration
public static explicit operator InputArray(List<Mat> mats)
Parameters
Type |
Name |
Description |
List<Mat> |
mats |
|
Returns
|
Improve this Doc
View Source
Declaration
public static explicit operator InputArray(Mat[] mats)
Parameters
Type |
Name |
Description |
Mat[] |
mats |
|
Returns
|
Improve this Doc
View Source
Declaration
public static implicit operator InputArray(Mat mat)
Parameters
Type |
Name |
Description |
Mat |
mat |
|
Returns
|
Improve this Doc
View Source
Declaration
public static implicit operator InputArray(MatExpr expr)
Parameters
Returns
|
Improve this Doc
View Source
Declaration
public static implicit operator InputArray(Scalar val)
Parameters
Type |
Name |
Description |
OpenCvSharp.Scalar |
val |
|
Returns
|
Improve this Doc
View Source
Declaration
public static implicit operator InputArray(UMat mat)
Parameters
Type |
Name |
Description |
UMat |
mat |
|
Returns
|
Improve this Doc
View Source
Declaration
public static implicit operator InputArray(Vec2b vec)
Parameters
Type |
Name |
Description |
Vec2b |
vec |
|
Returns
|
Improve this Doc
View Source
Declaration
public static implicit operator InputArray(Vec2d vec)
Parameters
Type |
Name |
Description |
Vec2d |
vec |
|
Returns
|
Improve this Doc
View Source
Declaration
public static implicit operator InputArray(Vec2f vec)
Parameters
Type |
Name |
Description |
Vec2f |
vec |
|
Returns
|
Improve this Doc
View Source
Declaration
public static implicit operator InputArray(Vec2i vec)
Parameters
Type |
Name |
Description |
Vec2i |
vec |
|
Returns
|
Improve this Doc
View Source
Declaration
public static implicit operator InputArray(Vec2s vec)
Parameters
Type |
Name |
Description |
Vec2s |
vec |
|
Returns
|
Improve this Doc
View Source
Declaration
public static implicit operator InputArray(Vec2w vec)
Parameters
Type |
Name |
Description |
Vec2w |
vec |
|
Returns
|
Improve this Doc
View Source
Declaration
public static implicit operator InputArray(Vec3b vec)
Parameters
Type |
Name |
Description |
Vec3b |
vec |
|
Returns
|
Improve this Doc
View Source
Declaration
public static implicit operator InputArray(Vec3d vec)
Parameters
Type |
Name |
Description |
Vec3d |
vec |
|
Returns
|
Improve this Doc
View Source
Declaration
public static implicit operator InputArray(Vec3f vec)
Parameters
Type |
Name |
Description |
Vec3f |
vec |
|
Returns
|
Improve this Doc
View Source
Declaration
public static implicit operator InputArray(Vec3i vec)
Parameters
Type |
Name |
Description |
Vec3i |
vec |
|
Returns
|
Improve this Doc
View Source
Declaration
public static implicit operator InputArray(Vec3s vec)
Parameters
Type |
Name |
Description |
Vec3s |
vec |
|
Returns
|
Improve this Doc
View Source
Declaration
public static implicit operator InputArray(Vec3w vec)
Parameters
Type |
Name |
Description |
Vec3w |
vec |
|
Returns
|
Improve this Doc
View Source
Declaration
public static implicit operator InputArray(Vec4b vec)
Parameters
Type |
Name |
Description |
Vec4b |
vec |
|
Returns
|
Improve this Doc
View Source
Declaration
public static implicit operator InputArray(Vec4d vec)
Parameters
Type |
Name |
Description |
Vec4d |
vec |
|
Returns
|
Improve this Doc
View Source
Declaration
public static implicit operator InputArray(Vec4f vec)
Parameters
Type |
Name |
Description |
Vec4f |
vec |
|
Returns
|
Improve this Doc
View Source
Declaration
public static implicit operator InputArray(Vec4i vec)
Parameters
Type |
Name |
Description |
Vec4i |
vec |
|
Returns
|
Improve this Doc
View Source
Declaration
public static implicit operator InputArray(Vec4s vec)
Parameters
Type |
Name |
Description |
Vec4s |
vec |
|
Returns
|
Improve this Doc
View Source
Declaration
public static implicit operator InputArray(Vec4w vec)
Parameters
Type |
Name |
Description |
Vec4w |
vec |
|
Returns
|
Improve this Doc
View Source
Declaration
public static implicit operator InputArray(Vec6b vec)
Parameters
Type |
Name |
Description |
Vec6b |
vec |
|
Returns
|
Improve this Doc
View Source
Declaration
public static implicit operator InputArray(Vec6d vec)
Parameters
Type |
Name |
Description |
Vec6d |
vec |
|
Returns
|
Improve this Doc
View Source
Declaration
public static implicit operator InputArray(Vec6f vec)
Parameters
Type |
Name |
Description |
Vec6f |
vec |
|
Returns
|
Improve this Doc
View Source
Declaration
public static implicit operator InputArray(Vec6i vec)
Parameters
Type |
Name |
Description |
Vec6i |
vec |
|
Returns
|
Improve this Doc
View Source
Declaration
public static implicit operator InputArray(Vec6s vec)
Parameters
Type |
Name |
Description |
Vec6s |
vec |
|
Returns
|
Improve this Doc
View Source
Declaration
public static implicit operator InputArray(Vec6w vec)
Parameters
Type |
Name |
Description |
Vec6w |
vec |
|
Returns
|
Improve this Doc
View Source
Declaration
public static implicit operator InputArray(double val)
Parameters
Type |
Name |
Description |
System.Double |
val |
|
Returns
Implements