Click or drag to resize

MatCheckVector Method

[Missing <summary> documentation for "M:OpenCvSharp.Mat.CheckVector(System.Int32,System.Int32,System.Boolean)"]

Namespace:  OpenCvSharp
Assembly:  OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0
Syntax
public int CheckVector(
	int elemChannels,
	int depth = -1,
	bool requireContinuous = true
)

Parameters

elemChannels
Type: SystemInt32
Number of channels or number of columns the matrix should have. For a 2-D matrix, when the matrix has only 1 column, then it should have elemChannels channels; When the matrix has only 1 channel, then it should have elemChannels columns. For a 3-D matrix, it should have only one channel. Furthermore, if the number of planes is not one, then the number of rows within every plane has to be 1; if the number of rows within every plane is not 1, then the number of planes has to be 1.
depth (Optional)
Type: SystemInt32
The depth the matrix should have. Set it to -1 when any depth is fine.
requireContinuous (Optional)
Type: SystemBoolean
Set it to true to require the matrix to be continuous

Return Value

Type: Int32
-1 if the requirement is not satisfied. Otherwise, it returns the number of elements in the matrix. Note that an element may have multiple channels.
See Also