类 Mat
- java.lang.Object
-
- org.opencv.core.Mat
-
- 直接已知子类
MatOfByte,MatOfDMatch,MatOfDouble,MatOfFloat,MatOfFloat4,MatOfFloat6,MatOfInt,MatOfInt4,MatOfKeyPoint,MatOfPoint,MatOfPoint2f,MatOfPoint3,MatOfPoint3f,MatOfRect,MatOfRect2d,MatOfRotatedRect
public class Mat extends java.lang.Object
-
-
嵌套类摘要
嵌套类 修饰符和类型 Class 描述 静态接口Mat.Atable<T>static classMat.Tuple2<T>static classMat.Tuple3<T>static classMat.Tuple4<T>
-
字段摘要
字段 修饰符和类型 字段 描述 longnativeObj
-
构造函数摘要
构造函数 构造函数 描述 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, java.nio.ByteBuffer data)Mat(int rows, int cols, int type, java.nio.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)
-
方法摘要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 描述 MatadjustROI(int dtop, int dbottom, int dleft, int dright)voidassignTo(Mat m)voidassignTo(Mat m, int type)<T> Mat.Atable<T>at(java.lang.Class<T> clazz, int[] idx)<T> Mat.Atable<T>at(java.lang.Class<T> clazz, int row, int col)intchannels()intcheckVector(int elemChannels)intcheckVector(int elemChannels, int depth)intcheckVector(int elemChannels, int depth, boolean requireContinuous)Matclone()Matcol(int x)MatcolRange(int startcol, int endcol)MatcolRange(Range r)intcols()voidconvertTo(Mat m, int rtype)voidconvertTo(Mat m, int rtype, double alpha)voidconvertTo(Mat m, int rtype, double alpha, double beta)voidcopySize(Mat m)voidcopyTo(Mat m)voidcopyTo(Mat m, Mat mask)voidcreate(int[] sizes, int type)voidcreate(int rows, int cols, int type)voidcreate(Size size, int type)Matcross(Mat m)longdataAddr()int深度()Matdiag()Matdiag(int d)静态 Matdiag(Mat d)intdims()doubledot(Mat m)java.lang.Stringdump()longelemSize()longelemSize1()booleanempty()静态 Mateye(int rows, int cols, int type)静态 Mateye(Size size, int type)protected voidfinalize()double[]get(int[] idx)intget(int[] idx, byte[] data)intget(int[] idx, double[] data)intget(int[] idx, float[] data)intget(int[] idx, int[] data)intget(int[] idx, short[] data)double[]get(int row, int col)intget(int row, int col, byte[] data)intget(int row, int col, double[] data)intget(int row, int col, float[] data)intget(int row, int col, int[] data)intget(int row, int col, short[] data)longgetNativeObjAddr()intheight()Matinv()Matinv(int method)booleanisContinuous()booleanisSubmatrix()voidlocateROI(Size wholeSize, Point ofs)MatmatMul(Mat m)矩阵乘法Matmul(Mat m)按元素乘法Matmul(Mat m, double scale)按比例因子进行按元素乘法静态 Matones(int[] sizes, int type)静态 Matones(int rows, int cols, int type)静态 Matones(Size size, int type)voidpush_back(Mat m)intput(int[] idx, byte[] data)intput(int[] idx, byte[] data, int offset, int length)intput(int[] idx, double... data)intput(int[] idx, float[] data)intput(int[] idx, int[] data)intput(int[] idx, short[] data)intput(int row, int col, byte[] data)intput(int row, int col, byte[] data, int offset, int length)intput(int row, int col, double... data)intput(int row, int col, float[] data)intput(int row, int col, int[] data)intput(int row, int col, short[] data)voidrelease()Matreshape(int cn)Matreshape(int cn, int rows)Matreshape(int cn, int[] newshape)Matrow(int y)MatrowRange(int startrow, int endrow)MatrowRange(Range r)introws()MatsetTo(Mat value)MatsetTo(Mat value, Mat mask)MatsetTo(Scalar s)MatsetTo(Scalar value, Mat mask)Sizesize()intsize(int i)longstep1()longstep1(int i)Matsubmat(int rowStart, int rowEnd, int colStart, int colEnd)Matsubmat(Range[] ranges)Matsubmat(Range rowRange, Range colRange)Matsubmat(Rect roi)Matt()java.lang.StringtoString()longtotal()inttype()intwidth()静态 Matzeros(int[] sizes, int type)静态 Matzeros(int rows, int cols, int type)静态 Matzeros(Size size, int type)
-
-
-
构造函数详细信息
-
Mat
public Mat(long addr)
-
Mat
public Mat()
-
Mat
public Mat(int rows, int cols, int type)
-
Mat
public Mat(int rows, int cols, int type, java.nio.ByteBuffer data)
-
Mat
public Mat(int rows, int cols, int type, java.nio.ByteBuffer data, long step)
-
Mat
public Mat(Size size, int type)
-
Mat
public Mat(int[] sizes, int type)
-
Mat
public Mat(int rows, int cols, int type, Scalar s)
-
Mat
public Mat(int[] sizes, int type, Scalar s)
-
-
方法详细信息
-
adjustROI
public Mat adjustROI(int dtop, int dbottom, int dleft, int dright)
-
assignTo
public void assignTo(Mat m, int type)
-
assignTo
public void assignTo(Mat m)
-
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
public Mat clone()
- 重写
clone在类中java.lang.Object
-
col
public Mat col(int x)
-
colRange
public Mat colRange(int startcol, int endcol)
-
dims
public int dims()
-
cols
public int cols()
-
convertTo
public void convertTo(Mat m, int rtype, double alpha, double beta)
-
convertTo
public void convertTo(Mat m, int rtype, double alpha)
-
convertTo
public void convertTo(Mat m, int rtype)
-
copyTo
public void copyTo(Mat m)
-
create
public void create(int rows, int cols, int type)
-
create
public void create(Size size, int type)
-
create
public void create(int[] sizes, int type)
-
copySize
public void copySize(Mat m)
-
dataAddr
public long dataAddr()
-
深度
public int depth()
-
diag
public Mat diag(int d)
-
diag
public Mat diag()
-
点积
public double dot(Mat m)
-
elemSize
public long elemSize()
-
elemSize1
public long elemSize1()
-
empty
public boolean empty()
-
eye
public static Mat eye(int rows, int cols, int type)
-
inv
public Mat inv(int method)
-
inv
public Mat inv()
-
isContinuous
public boolean isContinuous()
-
isSubmatrix
public boolean isSubmatrix()
-
mul
public Mat mul(Mat m, double scale)
按比例因子进行按元素乘法- 参数
m- 用于执行按元素乘法的操作数scale- 比例因子- 返回
- 指向新 Mat 对象的引用
-
matMul
public Mat matMul(Mat m)
矩阵乘法- 参数
m- 用于执行矩阵乘法的操作数- 返回
- 指向新 Mat 对象的引用
- 参见
Core.gemm(Mat, Mat, double, Mat, double, Mat, int)
-
ones
public static Mat ones(int rows, int cols, int type)
-
ones
public static Mat ones(int[] sizes, int type)
-
push_back
public void push_back(Mat m)
-
release
public void release()
-
reshape
public Mat reshape(int cn, int rows)
-
reshape
public Mat reshape(int cn)
-
reshape
public Mat reshape(int cn, int[] newshape)
-
row
public Mat row(int y)
-
rowRange
public Mat rowRange(int startrow, int endrow)
-
rows
public int rows()
-
size
public Size size()
-
size
public int size(int i)
-
step1
public long step1(int i)
-
step1
public long step1()
-
submat
public Mat submat(int rowStart, int rowEnd, int colStart, int colEnd)
-
t
public Mat t()
-
total
public long total()
-
type
public int type()
-
zeros
public static Mat zeros(int rows, int cols, int type)
-
zeros
public static Mat zeros(int[] sizes, int type)
-
finalize
protected void finalize() throws java.lang.Throwable- 重写
finalize在类中java.lang.Object- 抛出
java.lang.Throwable
-
toString
public java.lang.String toString()
- 重写
toString在类中java.lang.Object
-
dump
public java.lang.String 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
public <T> Mat.Atable<T> at(java.lang.Class<T> clazz, int row, int col)
-
at
public <T> Mat.Atable<T> at(java.lang.Class<T> clazz, int[] idx)
-
getNativeObjAddr
public long getNativeObjAddr()
-
-