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
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
static class
static class
static class
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionMat()
Mat
(int[] sizes, int type) 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
(long addr) -
Method Summary
Modifier and TypeMethodDescriptionadjustROI
(int dtop, int dbottom, int dleft, int dright) void
void
<T> Mat.Atable
<T> <T> Mat.Atable
<T> int
channels()
int
checkVector
(int elemChannels) int
checkVector
(int elemChannels, int depth) int
checkVector
(int elemChannels, int depth, boolean requireContinuous) clone()
col
(int x) colRange
(int startcol, int endcol) int
cols()
void
void
void
void
void
void
void
create
(int[] sizes, int type) void
create
(int rows, int cols, int type) void
long
dataAddr()
int
depth()
diag()
diag
(int d) static Mat
int
dims()
double
dump()
long
elemSize()
long
boolean
empty()
static Mat
eye
(int rows, int cols, int type) static Mat
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
int
height()
inv()
inv
(int method) boolean
boolean
void
Matrix multiplicationElement-wise multiplicationElement-wise multiplication with scale factorstatic Mat
ones
(int[] sizes, int type) static Mat
ones
(int rows, int cols, int type) static Mat
void
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()
reshape
(int cn) reshape
(int cn, int rows) reshape
(int cn, int[] newshape) row
(int y) rowRange
(int startrow, int endrow) int
rows()
size()
int
size
(int i) long
step1()
long
step1
(int i) submat
(int rowStart, int rowEnd, int colStart, int colEnd) t()
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
-
Field Details
-
nativeObj
public final long nativeObj
-
-
Constructor Details
-
Mat
public Mat(long addr) -
Mat
public Mat() -
Mat
public Mat(int rows, int cols, int type) -
Mat
-
Mat
-
Mat
-
Mat
public Mat(int[] sizes, int type) -
Mat
-
Mat
-
Mat
-
Mat
-
Mat
-
Mat
-
Mat
-
-
Method Details
-
adjustROI
-
assignTo
-
assignTo
-
channels
public int channels() -
checkVector
public int checkVector(int elemChannels, int depth, boolean requireContinuous) -
checkVector
public int checkVector(int elemChannels, int depth) -
checkVector
public int checkVector(int elemChannels) -
clone
-
col
-
colRange
-
colRange
-
dims
public int dims() -
cols
public int cols() -
convertTo
-
convertTo
-
convertTo
-
copyTo
-
copyTo
-
create
public void create(int rows, int cols, int type) -
create
-
create
public void create(int[] sizes, int type) -
copySize
-
cross
-
dataAddr
public long dataAddr() -
depth
public int depth() -
diag
-
diag
-
diag
-
dot
-
elemSize
public long elemSize() -
elemSize1
public long elemSize1() -
empty
public boolean empty() -
eye
-
eye
-
inv
-
inv
-
isContinuous
public boolean isContinuous() -
isSubmatrix
public boolean isSubmatrix() -
locateROI
-
mul
Element-wise multiplication with scale factor- Parameters:
m
- operand with with which to perform element-wise multiplicationscale
- scale factor
-
mul
Element-wise multiplication- Parameters:
m
- operand with with which to perform element-wise multiplication
-
matMul
Matrix multiplication- Parameters:
m
- operand with with which to perform matrix multiplication- See Also:
-
ones
-
ones
-
ones
-
push_back
-
release
public void release() -
reshape
-
reshape
-
reshape
-
row
-
rowRange
-
rowRange
-
rows
public int rows() -
setTo
-
setTo
-
setTo
-
setTo
-
size
-
size
public int size(int i) -
step1
public long step1(int i) -
step1
public long step1() -
submat
-
submat
-
submat
-
submat
-
t
-
total
public long total() -
type
public int type() -
zeros
-
zeros
-
zeros
-
finalize
-
toString
-
dump
-
put
public int put(int row, int col, double... data) -
put
public int put(int[] idx, double... data) -
put
public int put(int row, int col, float[] data) -
put
public int put(int[] idx, float[] data) -
put
public int put(int row, int col, int[] data) -
put
public int put(int[] idx, int[] data) -
put
public int put(int row, int col, short[] data) -
put
public int put(int[] idx, short[] data) -
put
public int put(int row, int col, byte[] data) -
put
public int put(int[] idx, byte[] data) -
put
public int put(int row, int col, byte[] data, int offset, int length) -
put
public int put(int[] idx, byte[] data, int offset, int length) -
get
public int get(int row, int col, byte[] data) -
get
public int get(int[] idx, byte[] data) -
get
public int get(int row, int col, short[] data) -
get
public int get(int[] idx, short[] data) -
get
public int get(int row, int col, int[] data) -
get
public int get(int[] idx, int[] data) -
get
public int get(int row, int col, float[] data) -
get
public int get(int[] idx, float[] data) -
get
public int get(int row, int col, double[] data) -
get
public int get(int[] idx, double[] data) -
get
public double[] get(int row, int col) -
get
public double[] get(int[] idx) -
height
public int height() -
width
public int width() -
at
-
at
-
getNativeObjAddr
public long getNativeObjAddr()
-