mirror of
https://github.com/opencv/opencv.git
synced 2026-11-22 01:13:24 -06:00
adding method dims() to core.Mat
This commit is contained in:
@@ -245,6 +245,19 @@ public class Mat {
|
||||
return retVal;
|
||||
}
|
||||
|
||||
//
|
||||
// C++: int Mat::dims()
|
||||
//
|
||||
|
||||
// javadoc: Mat::dims()
|
||||
public int dims()
|
||||
{
|
||||
|
||||
int retVal = n_dims(nativeObj);
|
||||
|
||||
return retVal;
|
||||
}
|
||||
|
||||
//
|
||||
// C++: int Mat::cols()
|
||||
//
|
||||
@@ -1130,6 +1143,9 @@ public class Mat {
|
||||
// C++: Mat Mat::colRange(int startcol, int endcol)
|
||||
private static native long n_colRange(long nativeObj, int startcol, int endcol);
|
||||
|
||||
// C++: int Mat::dims()
|
||||
private static native int n_dims(long nativeObj);
|
||||
|
||||
// C++: int Mat::cols()
|
||||
private static native int n_cols(long nativeObj);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user