| MatTElem Constructor (MatTElem, Range, NullableRange) |
creates a matrix header for a part of the bigger matrix
Namespace:
OpenCvSharp
Assembly:
OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0
Syntax public Mat(
Mat<TElem> m,
Range rowRange,
Nullable<Range> colRange = null
)
Public Sub New (
m As Mat(Of TElem),
rowRange As Range,
Optional colRange As Nullable(Of Range) = Nothing
)
public:
Mat(
Mat<TElem>^ m,
Range rowRange,
Nullable<Range> colRange = nullptr
)
new :
m : Mat<'TElem> *
rowRange : Range *
?colRange : Nullable<Range>
(* Defaults:
let _colRange = defaultArg colRange null
*)
-> Mat
Parameters
- m
- Type: OpenCvSharpMatTElem
Array that (as a whole or partly) is assigned to the constructed matrix.
No data is copied by these constructors. Instead, the header pointing to m data or its sub-array
is constructed and associated with it. The reference counter, if any, is incremented.
So, when you modify the matrix formed using such a constructor, you also modify the corresponding elements of m .
If you want to have an independent copy of the sub-array, use Mat::clone() . - rowRange
- Type: OpenCvSharpRange
Range of the m rows to take. As usual, the range start is inclusive and the range end is exclusive.
Use Range.All to take all the rows. - colRange (Optional)
- Type: SystemNullableRange
Range of the m columns to take. Use Range.All to take all the columns.
See Also