Package org.opencv.core
Class Mat
java.lang.Object
org.opencv.core.Mat
- Direct Known Subclasses:
MatOfByte
,MatOfDMatch
,MatOfDouble
,MatOfFloat
,MatOfFloat4
,MatOfFloat6
,MatOfInt
,MatOfInt4
,MatOfKeyPoint
,MatOfPoint
,MatOfPoint2f
,MatOfPoint3
,MatOfPoint3f
,MatOfRect
,MatOfRect2d
,MatOfRotatedRect
public class Mat extends Object
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
Mat.Atable<T>
static class
Mat.Tuple2<T>
static class
Mat.Tuple3<T>
static class
Mat.Tuple4<T>
-
Field Summary
Fields Modifier and Type Field Description long
nativeObj
-
Constructor Summary
Constructors Constructor Description Mat()
Mat(int[] sizes, int type)
Mat(int[] sizes, int type, Scalar s)
Mat(int rows, int cols, int type)
Mat(int rows, int cols, int type, ByteBuffer data)
Mat(int rows, int cols, int type, ByteBuffer data, long step)
Mat(int rows, int cols, int type, Scalar s)
Mat(long addr)
Mat(Mat m, Range rowRange)
Mat(Mat m, Range[] ranges)
Mat(Mat m, Range rowRange, Range colRange)
Mat(Mat m, Rect roi)
Mat(Size size, int type)
Mat(Size size, int type, Scalar s)
-
Method Summary
Modifier and Type Method Description Mat
adjustROI(int dtop, int dbottom, int dleft, int dright)
void
assignTo(Mat m)
void
assignTo(Mat m, int type)
<T> Mat.Atable<T>
at(Class<T> clazz, int[] idx)
<T> Mat.Atable<T>
at(Class<T> clazz, int row, int col)
int
channels()
int
checkVector(int elemChannels)
int
checkVector(int elemChannels, int depth)
int
checkVector(int elemChannels, int depth, boolean requireContinuous)
Mat
clone()
Mat
col(int x)
Mat
colRange(int startcol, int endcol)
Mat
colRange(Range r)
int
cols()
void
convertTo(Mat m, int rtype)
void
convertTo(Mat m, int rtype, double alpha)
void
convertTo(Mat m, int rtype, double alpha, double beta)
void
copySize(Mat m)
void
copyTo(Mat m)
void
copyTo(Mat m, Mat mask)
void
create(int[] sizes, int type)
void
create(int rows, int cols, int type)
void
create(Size size, int type)
Mat
cross(Mat m)
long
dataAddr()
int
depth()
Mat
diag()
Mat
diag(int d)
static Mat
diag(Mat d)
int
dims()
double
dot(Mat m)
String
dump()
long
elemSize()
long
elemSize1()
boolean
empty()
static Mat
eye(int rows, int cols, int type)
static Mat
eye(Size size, int type)
protected void
finalize()
double[]
get(int[] idx)
int
get(int[] idx, byte[] data)
int
get(int[] idx, double[] data)
int
get(int[] idx, float[] data)
int
get(int[] idx, int[] data)
int
get(int[] idx, short[] data)
double[]
get(int row, int col)
int
get(int row, int col, byte[] data)
int
get(int row, int col, double[] data)
int
get(int row, int col, float[] data)
int
get(int row, int col, int[] data)
int
get(int row, int col, short[] data)
long
getNativeObjAddr()
int
height()
Mat
inv()
Mat
inv(int method)
boolean
isContinuous()
boolean
isSubmatrix()
void
locateROI(Size wholeSize, Point ofs)
Mat
matMul(Mat m)
Matrix multiplicationMat
mul(Mat m)
Element-wise multiplicationMat
mul(Mat m, double scale)
Element-wise multiplication with scale factorstatic Mat
ones(int[] sizes, int type)
static Mat
ones(int rows, int cols, int type)
static Mat
ones(Size size, int type)
void
push_back(Mat m)
int
put(int[] idx, byte[] data)
int
put(int[] idx, byte[] data, int offset, int length)
int
put(int[] idx, double... data)
int
put(int[] idx, float[] data)
int
put(int[] idx, int[] data)
int
put(int[] idx, short[] data)
int
put(int row, int col, byte[] data)
int
put(int row, int col, byte[] data, int offset, int length)
int
put(int row, int col, double... data)
int
put(int row, int col, float[] data)
int
put(int row, int col, int[] data)
int
put(int row, int col, short[] data)
void
release()
Mat
reshape(int cn)
Mat
reshape(int cn, int rows)
Mat
reshape(int cn, int[] newshape)
Mat
row(int y)
Mat
rowRange(int startrow, int endrow)
Mat
rowRange(Range r)
int
rows()
Mat
setTo(Mat value)
Mat
setTo(Mat value, Mat mask)
Mat
setTo(Scalar s)
Mat
setTo(Scalar value, Mat mask)
Size
size()
int
size(int i)
long
step1()
long
step1(int i)
Mat
submat(int rowStart, int rowEnd, int colStart, int colEnd)
Mat
submat(Range[] ranges)
Mat
submat(Range rowRange, Range colRange)
Mat
submat(Rect roi)
Mat
t()
String
toString()
long
total()
int
type()
int
width()
static Mat
zeros(int[] sizes, int type)
static Mat
zeros(int rows, int cols, int type)
static Mat
zeros(Size size, int type)
-
Field Details
-
Constructor Details
-
Method Details
-
adjustROI
-
assignTo
-
assignTo
-
channels
-
checkVector
-
checkVector
-
checkVector
-
clone
-
col
-
colRange
-
colRange
-
dims
-
cols
-
convertTo
-
convertTo
-
convertTo
-
copyTo
-
copyTo
-
create
-
create
-
create
-
copySize
-
cross
-
dataAddr
-
depth
-
diag
-
diag
-
diag
-
dot
-
elemSize
-
elemSize1
-
empty
-
eye
-
eye
-
inv
-
inv
-
isContinuous
-
isSubmatrix
-
locateROI
-
mul
Element-wise multiplication with scale factor- Parameters:
m
- operand with with which to perform element-wise multiplicationscale
- scale factor- Returns:
- new Mat
-
mul
Element-wise multiplication- Parameters:
m
- operand with with which to perform element-wise multiplication- Returns:
- new Mat
-
matMul
Matrix multiplication- Parameters:
m
- operand with with which to perform matrix multiplication- Returns:
- new Mat
- See Also:
Core.gemm(Mat, Mat, double, Mat, double, Mat, int)
-
ones
-
ones
-
ones
-
push_back
-
release
-
reshape
-
reshape
-
reshape
-
row
-
rowRange
-
rowRange
-
rows
-
setTo
-
setTo
-
setTo
-
setTo
-
size
-
size
-
step1
-
step1
-
submat
-
submat
-
submat
-
submat
-
t
-
total
-
type
-
zeros
-
zeros
-
zeros
-
finalize
-
toString
-
dump
-
put
-
put
-
put
-
put
-
put
-
put
-
put
-
put
-
put
-
put
-
put
-
put
-
get
-
get
-
get
-
get
-
get
-
get
-
get
-
get
-
get
-
get
-
get
-
get
-
height
-
width
-
at
-
at
-
getNativeObjAddr
-