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 Details

  • Constructor Details

    • 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​(Size size, int type, Scalar s)
    • Mat

      public Mat​(int[] sizes, int type, Scalar s)
    • Mat

      public Mat​(Mat m, Range rowRange, Range colRange)
    • Mat

      public Mat​(Mat m, Range rowRange)
    • Mat

      public Mat​(Mat m, Range[] ranges)
    • Mat

      public Mat​(Mat m, Rect roi)
  • Method Details

    • 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()
      Overrides:
      clone in class Object
    • col

      public Mat col​(int x)
    • colRange

      public Mat colRange​(int startcol, int endcol)
    • colRange

      public Mat colRange​(Range r)
    • 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)
    • copyTo

      public void copyTo​(Mat m, Mat mask)
    • 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)
    • cross

      public Mat cross​(Mat m)
    • dataAddr

      public long dataAddr()
    • depth

      public int depth()
    • diag

      public Mat diag​(int d)
    • diag

      public Mat diag()
    • diag

      public static Mat diag​(Mat d)
    • 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)
    • eye

      public static Mat eye​(Size size, int type)
    • inv

      public Mat inv​(int method)
    • inv

      public Mat inv()
    • isContinuous

      public boolean isContinuous()
    • isSubmatrix

      public boolean isSubmatrix()
    • locateROI

      public void locateROI​(Size wholeSize, Point ofs)
    • mul

      public Mat mul​(Mat m, double scale)
    • mul

      public Mat mul​(Mat m)
    • ones

      public static Mat ones​(int rows, int cols, int type)
    • ones

      public static Mat ones​(Size size, 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)
    • rowRange

      public Mat rowRange​(Range r)
    • rows

      public int rows()
    • setTo

      public Mat setTo​(Scalar s)
    • setTo

      public Mat setTo​(Scalar value, Mat mask)
    • setTo

      public Mat setTo​(Mat value, Mat mask)
    • setTo

      public Mat setTo​(Mat value)
    • 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)
    • submat

      public Mat submat​(Range rowRange, Range colRange)
    • submat

      public Mat submat​(Range[] ranges)
    • submat

      public Mat submat​(Rect roi)
    • 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​(Size size, int type)
    • zeros

      public static Mat zeros​(int[] sizes, int type)
    • finalize

      protected void finalize() throws Throwable
      Overrides:
      finalize in class Object
      Throws:
      Throwable
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • 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()