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
-
-
Field Summary
Fields Modifier and Type Field Description longnativeObj
-
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, 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
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MatadjustROI(int dtop, int dbottom, int dleft, int dright)voidassignTo(Mat m)voidassignTo(Mat m, int type)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()intdepth()Matdiag()Matdiag(int d)static Matdiag(Mat d)intdims()doubledot(Mat m)Stringdump()longelemSize()longelemSize1()booleanempty()static Mateye(int rows, int cols, int type)static 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)Matmul(Mat m)Matmul(Mat m, double scale)static Matones(int[] sizes, int type)static Matones(int rows, int cols, int type)static 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()StringtoString()longtotal()inttype()intwidth()static Matzeros(int[] sizes, int type)static Matzeros(int rows, int cols, int type)static Matzeros(Size size, int type)
-
-
-
Constructor Detail
-
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, ByteBuffer data)
-
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)
-
-
Method Detail
-
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)
-
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()
-
depth
public int depth()
-
diag
public Mat diag(int d)
-
diag
public Mat diag()
-
dot
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()
-
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 Throwable
-
dump
public 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()
-
getNativeObjAddr
public long getNativeObjAddr()
-
-