Uses of Class
org.opencv.core.Mat

Packages that use Mat
  • Uses of Mat in org.opencv.core

    Subclasses of Mat in org.opencv.core
    Modifier and Type
    Class
    Description
    class 
     
    class 
     
    class 
     
    class 
     
    class 
     
    class 
     
    class 
     
    class 
     
    class 
     
    class 
     
    class 
     
    class 
     
    class 
     
    class 
     
    class 
     
    class 
     
    Methods in org.opencv.core that return Mat
    Modifier and Type
    Method
    Description
    Mat.adjustROI(int dtop, int dbottom, int dleft, int dright)
     
    Mat.clone()
     
    Mat.col(int x)
     
    Mat.colRange(int startcol, int endcol)
     
    Mat.colRange(Range r)
     
    Mat.cross(Mat m)
     
    Mat.diag()
     
    Mat.diag(int d)
     
    static Mat
    Mat.diag(Mat d)
     
    static Mat
    Mat.eye(int rows, int cols, int type)
     
    static Mat
    Mat.eye(Size size, int type)
     
    Mat.inv()
     
    Mat.inv(int method)
     
    Mat.matMul(Mat m)
    Matrix multiplication
    Mat.mul(Mat m)
    Element-wise multiplication
    Mat.mul(Mat m, double scale)
    Element-wise multiplication with scale factor
    static Mat
    Mat.ones(int[] sizes, int type)
     
    static Mat
    Mat.ones(int rows, int cols, int type)
     
    static Mat
    Mat.ones(Size size, int type)
     
    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)
     
    Mat.setTo(Mat value)
     
    Mat.setTo(Mat value, Mat mask)
     
    Mat.setTo(Scalar s)
     
    Mat.setTo(Scalar value, Mat mask)
     
    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()
     
    static Mat
    Mat.zeros(int[] sizes, int type)
     
    static Mat
    Mat.zeros(int rows, int cols, int type)
     
    static Mat
    Mat.zeros(Size size, int type)
     
    Methods in org.opencv.core with parameters of type Mat
    Modifier and Type
    Method
    Description
    static void
    Core.absdiff(Mat src1, Mat src2, Mat dst)
    Calculates the per-element absolute difference between two arrays or between an array and a scalar.
    static void
    Core.absdiff(Mat src1, Scalar src2, Mat dst)
     
    static void
    Core.add(Mat src1, Mat src2, Mat dst)
    Calculates the per-element sum of two arrays or an array and a scalar.
    static void
    Core.add(Mat src1, Mat src2, Mat dst, Mat mask)
    Calculates the per-element sum of two arrays or an array and a scalar.
    static void
    Core.add(Mat src1, Mat src2, Mat dst, Mat mask, int dtype)
    Calculates the per-element sum of two arrays or an array and a scalar.
    static void
    Core.add(Mat src1, Scalar src2, Mat dst)
     
    static void
    Core.add(Mat src1, Scalar src2, Mat dst, Mat mask)
     
    static void
    Core.add(Mat src1, Scalar src2, Mat dst, Mat mask, int dtype)
     
    static void
    Core.addWeighted(Mat src1, double alpha, Mat src2, double beta, double gamma, Mat dst)
    Calculates the weighted sum of two arrays.
    static void
    Core.addWeighted(Mat src1, double alpha, Mat src2, double beta, double gamma, Mat dst, int dtype)
    Calculates the weighted sum of two arrays.
    void
    Mat.assignTo(Mat m)
     
    void
    Mat.assignTo(Mat m, int type)
     
    static void
    Core.batchDistance(Mat src1, Mat src2, Mat dist, int dtype, Mat nidx)
    naive nearest neighbor finder see http://en.wikipedia.org/wiki/Nearest_neighbor_search TODO: document
    static void
    Core.batchDistance(Mat src1, Mat src2, Mat dist, int dtype, Mat nidx, int normType)
    naive nearest neighbor finder see http://en.wikipedia.org/wiki/Nearest_neighbor_search TODO: document
    static void
    Core.batchDistance(Mat src1, Mat src2, Mat dist, int dtype, Mat nidx, int normType, int K)
    naive nearest neighbor finder see http://en.wikipedia.org/wiki/Nearest_neighbor_search TODO: document
    static void
    Core.batchDistance(Mat src1, Mat src2, Mat dist, int dtype, Mat nidx, int normType, int K, Mat mask)
    naive nearest neighbor finder see http://en.wikipedia.org/wiki/Nearest_neighbor_search TODO: document
    static void
    Core.batchDistance(Mat src1, Mat src2, Mat dist, int dtype, Mat nidx, int normType, int K, Mat mask, int update)
    naive nearest neighbor finder see http://en.wikipedia.org/wiki/Nearest_neighbor_search TODO: document
    static void
    Core.batchDistance(Mat src1, Mat src2, Mat dist, int dtype, Mat nidx, int normType, int K, Mat mask, int update, boolean crosscheck)
    naive nearest neighbor finder see http://en.wikipedia.org/wiki/Nearest_neighbor_search TODO: document
    static void
    Core.bitwise_and(Mat src1, Mat src2, Mat dst)
    computes bitwise conjunction of the two arrays (dst = src1 & src2) Calculates the per-element bit-wise conjunction of two arrays or an array and a scalar.
    static void
    Core.bitwise_and(Mat src1, Mat src2, Mat dst, Mat mask)
    computes bitwise conjunction of the two arrays (dst = src1 & src2) Calculates the per-element bit-wise conjunction of two arrays or an array and a scalar.
    static void
    Core.bitwise_not(Mat src, Mat dst)
    Inverts every bit of an array.
    static void
    Core.bitwise_not(Mat src, Mat dst, Mat mask)
    Inverts every bit of an array.
    static void
    Core.bitwise_or(Mat src1, Mat src2, Mat dst)
    Calculates the per-element bit-wise disjunction of two arrays or an array and a scalar.
    static void
    Core.bitwise_or(Mat src1, Mat src2, Mat dst, Mat mask)
    Calculates the per-element bit-wise disjunction of two arrays or an array and a scalar.
    static void
    Core.bitwise_xor(Mat src1, Mat src2, Mat dst)
    Calculates the per-element bit-wise "exclusive or" operation on two arrays or an array and a scalar.
    static void
    Core.bitwise_xor(Mat src1, Mat src2, Mat dst, Mat mask)
    Calculates the per-element bit-wise "exclusive or" operation on two arrays or an array and a scalar.
    static void
    Core.broadcast(Mat src, Mat shape, Mat dst)
    Broadcast the given Mat to the given shape.
    static void
    Core.calcCovarMatrix(Mat samples, Mat covar, Mat mean, int flags)
    Note: use #COVAR_ROWS or #COVAR_COLS flag
    static void
    Core.calcCovarMatrix(Mat samples, Mat covar, Mat mean, int flags, int ctype)
    Note: use #COVAR_ROWS or #COVAR_COLS flag
    static void
    Core.cartToPolar(Mat x, Mat y, Mat magnitude, Mat angle)
    Calculates the magnitude and angle of 2D vectors.
    static void
    Core.cartToPolar(Mat x, Mat y, Mat magnitude, Mat angle, boolean angleInDegrees)
    Calculates the magnitude and angle of 2D vectors.
    static boolean
    Core.checkRange(Mat a)
    Checks every element of an input array for invalid values.
    static boolean
    Core.checkRange(Mat a, boolean quiet)
    Checks every element of an input array for invalid values.
    static boolean
    Core.checkRange(Mat a, boolean quiet, double minVal)
    Checks every element of an input array for invalid values.
    static boolean
    Core.checkRange(Mat a, boolean quiet, double minVal, double maxVal)
    Checks every element of an input array for invalid values.
    static void
    Core.compare(Mat src1, Mat src2, Mat dst, int cmpop)
    Performs the per-element comparison of two arrays or an array and scalar value.
    static void
    Core.compare(Mat src1, Scalar src2, Mat dst, int cmpop)
     
    static void
    Core.completeSymm(Mat m)
    Copies the lower or the upper half of a square matrix to its another half.
    static void
    Core.completeSymm(Mat m, boolean lowerToUpper)
    Copies the lower or the upper half of a square matrix to its another half.
    static void
    Core.convertFp16(Mat src, Mat dst)
    Converts an array to half precision floating number.
    static void
    Core.convertScaleAbs(Mat src, Mat dst)
    Scales, calculates absolute values, and converts the result to 8-bit.
    static void
    Core.convertScaleAbs(Mat src, Mat dst, double alpha)
    Scales, calculates absolute values, and converts the result to 8-bit.
    static void
    Core.convertScaleAbs(Mat src, Mat dst, double alpha, double beta)
    Scales, calculates absolute values, and converts the result to 8-bit.
    void
    Mat.convertTo(Mat m, int rtype)
     
    void
    Mat.convertTo(Mat m, int rtype, double alpha)
     
    void
    Mat.convertTo(Mat m, int rtype, double alpha, double beta)
     
    static void
    Core.copyMakeBorder(Mat src, Mat dst, int top, int bottom, int left, int right, int borderType)
    Forms a border around an image.
    static void
    Core.copyMakeBorder(Mat src, Mat dst, int top, int bottom, int left, int right, int borderType, Scalar value)
    Forms a border around an image.
    void
    Mat.copySize(Mat m)
     
    static void
    Core.copyTo(Mat src, Mat dst, Mat mask)
    This is an overloaded member function, provided for convenience (python) Copies the matrix to another one.
    void
    Mat.copyTo(Mat m)
     
    void
    Mat.copyTo(Mat m, Mat mask)
     
    static int
    Core.countNonZero(Mat src)
    Counts non-zero array elements.
    Mat.cross(Mat m)
     
    static void
    Core.dct(Mat src, Mat dst)
    Performs a forward or inverse discrete Cosine transform of 1D or 2D array.
    static void
    Core.dct(Mat src, Mat dst, int flags)
    Performs a forward or inverse discrete Cosine transform of 1D or 2D array.
    static double
    Core.determinant(Mat mtx)
    Returns the determinant of a square floating-point matrix.
    static void
    Core.dft(Mat src, Mat dst)
    Performs a forward or inverse Discrete Fourier transform of a 1D or 2D floating-point array.
    static void
    Core.dft(Mat src, Mat dst, int flags)
    Performs a forward or inverse Discrete Fourier transform of a 1D or 2D floating-point array.
    static void
    Core.dft(Mat src, Mat dst, int flags, int nonzeroRows)
    Performs a forward or inverse Discrete Fourier transform of a 1D or 2D floating-point array.
    static Mat
    Mat.diag(Mat d)
     
    static void
    Core.divide(double scale, Mat src2, Mat dst)
     
    static void
    Core.divide(double scale, Mat src2, Mat dst, int dtype)
     
    static void
    Core.divide(Mat src1, Mat src2, Mat dst)
    Performs per-element division of two arrays or a scalar by an array.
    static void
    Core.divide(Mat src1, Mat src2, Mat dst, double scale)
    Performs per-element division of two arrays or a scalar by an array.
    static void
    Core.divide(Mat src1, Mat src2, Mat dst, double scale, int dtype)
    Performs per-element division of two arrays or a scalar by an array.
    static void
    Core.divide(Mat src1, Scalar src2, Mat dst)
     
    static void
    Core.divide(Mat src1, Scalar src2, Mat dst, double scale)
     
    static void
    Core.divide(Mat src1, Scalar src2, Mat dst, double scale, int dtype)
     
    double
    Mat.dot(Mat m)
     
    static boolean
    Core.eigen(Mat src, Mat eigenvalues)
    Calculates eigenvalues and eigenvectors of a symmetric matrix.
    static boolean
    Core.eigen(Mat src, Mat eigenvalues, Mat eigenvectors)
    Calculates eigenvalues and eigenvectors of a symmetric matrix.
    static void
    Core.eigenNonSymmetric(Mat src, Mat eigenvalues, Mat eigenvectors)
    Calculates eigenvalues and eigenvectors of a non-symmetric matrix (real eigenvalues only).
    static void
    Core.exp(Mat src, Mat dst)
    Calculates the exponent of every array element.
    static void
    Core.extractChannel(Mat src, Mat dst, int coi)
    Extracts a single channel from src (coi is 0-based index)
    static void
    Core.findNonZero(Mat src, Mat idx)
    Returns the list of locations of non-zero pixels Given a binary matrix (likely returned from an operation such as threshold(), compare(), >, ==, etc, return all of the non-zero indices as a cv::Mat or std::vector<cv::Point> (x,y) For example: cv::Mat binaryImage; // input, binary image cv::Mat locations; // output, locations of non-zero pixels cv::findNonZero(binaryImage, locations); // access pixel coordinates Point pnt = locations.at<Point>(i); or cv::Mat binaryImage; // input, binary image vector<Point> locations; // output, locations of non-zero pixels cv::findNonZero(binaryImage, locations); // access pixel coordinates Point pnt = locations[i];
    static void
    Core.flip(Mat src, Mat dst, int flipCode)
    Flips a 2D array around vertical, horizontal, or both axes.
    static void
    Core.flipND(Mat src, Mat dst, int axis)
    Flips a n-dimensional at given axis
    static void
    Core.gemm(Mat src1, Mat src2, double alpha, Mat src3, double beta, Mat dst)
    Performs generalized matrix multiplication.
    static void
    Core.gemm(Mat src1, Mat src2, double alpha, Mat src3, double beta, Mat dst, int flags)
    Performs generalized matrix multiplication.
    static boolean
    Core.hasNonZero(Mat src)
    Checks for the presence of at least one non-zero array element.
    static void
    Core.hconcat(List<Mat> src, Mat dst)
    std::vector<cv::Mat> matrices = { cv::Mat(4, 1, CV_8UC1, cv::Scalar(1)), cv::Mat(4, 1, CV_8UC1, cv::Scalar(2)), cv::Mat(4, 1, CV_8UC1, cv::Scalar(3)),}; cv::Mat out; cv::hconcat( matrices, out ); //out: //[1, 2, 3; // 1, 2, 3; // 1, 2, 3; // 1, 2, 3]
    static void
    Core.idct(Mat src, Mat dst)
    Calculates the inverse Discrete Cosine Transform of a 1D or 2D array.
    static void
    Core.idct(Mat src, Mat dst, int flags)
    Calculates the inverse Discrete Cosine Transform of a 1D or 2D array.
    static void
    Core.idft(Mat src, Mat dst)
    Calculates the inverse Discrete Fourier Transform of a 1D or 2D array.
    static void
    Core.idft(Mat src, Mat dst, int flags)
    Calculates the inverse Discrete Fourier Transform of a 1D or 2D array.
    static void
    Core.idft(Mat src, Mat dst, int flags, int nonzeroRows)
    Calculates the inverse Discrete Fourier Transform of a 1D or 2D array.
    static void
    Core.inRange(Mat src, Scalar lowerb, Scalar upperb, Mat dst)
    Checks if array elements lie between the elements of two other arrays.
    static void
    Core.insertChannel(Mat src, Mat dst, int coi)
    Inserts a single channel to dst (coi is 0-based index)
    static double
    Core.invert(Mat src, Mat dst)
    Finds the inverse or pseudo-inverse of a matrix.
    static double
    Core.invert(Mat src, Mat dst, int flags)
    Finds the inverse or pseudo-inverse of a matrix.
    static double
    Core.kmeans(Mat data, int K, Mat bestLabels, TermCriteria criteria, int attempts, int flags)
    Finds centers of clusters and groups input samples around the clusters.
    static double
    Core.kmeans(Mat data, int K, Mat bestLabels, TermCriteria criteria, int attempts, int flags, Mat centers)
    Finds centers of clusters and groups input samples around the clusters.
    static void
    Core.log(Mat src, Mat dst)
    Calculates the natural logarithm of every array element.
    static void
    Core.LUT(Mat src, Mat lut, Mat dst)
    Performs a look-up table transform of an array.
    static void
    Core.magnitude(Mat x, Mat y, Mat magnitude)
    Calculates the magnitude of 2D vectors.
    static double
    Core.Mahalanobis(Mat v1, Mat v2, Mat icovar)
    Calculates the Mahalanobis distance between two vectors.
    Mat.matMul(Mat m)
    Matrix multiplication
    static void
    Core.max(Mat src1, Mat src2, Mat dst)
    Calculates per-element maximum of two arrays or an array and a scalar.
    static void
    Core.max(Mat src1, Scalar src2, Mat dst)
     
    static Scalar
    Core.mean(Mat src)
    Calculates an average (mean) of array elements.
    static Scalar
    Core.mean(Mat src, Mat mask)
    Calculates an average (mean) of array elements.
    static void
    Core.meanStdDev(Mat src, MatOfDouble mean, MatOfDouble stddev)
    Calculates a mean and standard deviation of array elements.
    static void
    Core.meanStdDev(Mat src, MatOfDouble mean, MatOfDouble stddev, Mat mask)
    Calculates a mean and standard deviation of array elements.
    static void
    Core.merge(List<Mat> mv, Mat dst)
     
    static void
    Core.min(Mat src1, Mat src2, Mat dst)
    Calculates per-element minimum of two arrays or an array and a scalar.
    static void
    Core.min(Mat src1, Scalar src2, Mat dst)
     
    Core.minMaxLoc(Mat src)
     
    Core.minMaxLoc(Mat src, Mat mask)
     
    Mat.mul(Mat m)
    Element-wise multiplication
    Mat.mul(Mat m, double scale)
    Element-wise multiplication with scale factor
    static void
    Core.mulSpectrums(Mat a, Mat b, Mat c, int flags)
    Performs the per-element multiplication of two Fourier spectrums.
    static void
    Core.mulSpectrums(Mat a, Mat b, Mat c, int flags, boolean conjB)
    Performs the per-element multiplication of two Fourier spectrums.
    static void
    Core.multiply(Mat src1, Mat src2, Mat dst)
    Calculates the per-element scaled product of two arrays.
    static void
    Core.multiply(Mat src1, Mat src2, Mat dst, double scale)
    Calculates the per-element scaled product of two arrays.
    static void
    Core.multiply(Mat src1, Mat src2, Mat dst, double scale, int dtype)
    Calculates the per-element scaled product of two arrays.
    static void
    Core.multiply(Mat src1, Scalar src2, Mat dst)
     
    static void
    Core.multiply(Mat src1, Scalar src2, Mat dst, double scale)
     
    static void
    Core.multiply(Mat src1, Scalar src2, Mat dst, double scale, int dtype)
     
    static void
    Core.mulTransposed(Mat src, Mat dst, boolean aTa)
    Calculates the product of a matrix and its transposition.
    static void
    Core.mulTransposed(Mat src, Mat dst, boolean aTa, Mat delta)
    Calculates the product of a matrix and its transposition.
    static void
    Core.mulTransposed(Mat src, Mat dst, boolean aTa, Mat delta, double scale)
    Calculates the product of a matrix and its transposition.
    static void
    Core.mulTransposed(Mat src, Mat dst, boolean aTa, Mat delta, double scale, int dtype)
    Calculates the product of a matrix and its transposition.
    static double
    Core.norm(Mat src1)
    Calculates the absolute norm of an array.
    static double
    Core.norm(Mat src1, int normType)
    Calculates the absolute norm of an array.
    static double
    Core.norm(Mat src1, int normType, Mat mask)
    Calculates the absolute norm of an array.
    static double
    Core.norm(Mat src1, Mat src2)
    Calculates an absolute difference norm or a relative difference norm.
    static double
    Core.norm(Mat src1, Mat src2, int normType)
    Calculates an absolute difference norm or a relative difference norm.
    static double
    Core.norm(Mat src1, Mat src2, int normType, Mat mask)
    Calculates an absolute difference norm or a relative difference norm.
    static void
    Core.normalize(Mat src, Mat dst)
    Normalizes the norm or value range of an array.
    static void
    Core.normalize(Mat src, Mat dst, double alpha)
    Normalizes the norm or value range of an array.
    static void
    Core.normalize(Mat src, Mat dst, double alpha, double beta)
    Normalizes the norm or value range of an array.
    static void
    Core.normalize(Mat src, Mat dst, double alpha, double beta, int norm_type)
    Normalizes the norm or value range of an array.
    static void
    Core.normalize(Mat src, Mat dst, double alpha, double beta, int norm_type, int dtype)
    Normalizes the norm or value range of an array.
    static void
    Core.normalize(Mat src, Mat dst, double alpha, double beta, int norm_type, int dtype, Mat mask)
    Normalizes the norm or value range of an array.
    static void
    Core.patchNaNs(Mat a)
    Replaces NaNs by given number
    static void
    Core.patchNaNs(Mat a, double val)
    Replaces NaNs by given number
    static void
    Core.PCABackProject(Mat data, Mat mean, Mat eigenvectors, Mat result)
    wrap PCA::backProject
    static void
    Core.PCACompute(Mat data, Mat mean, Mat eigenvectors)
    wrap PCA::operator()
    static void
    Core.PCACompute(Mat data, Mat mean, Mat eigenvectors, double retainedVariance)
    wrap PCA::operator()
    static void
    Core.PCACompute(Mat data, Mat mean, Mat eigenvectors, int maxComponents)
    wrap PCA::operator()
    static void
    Core.PCACompute2(Mat data, Mat mean, Mat eigenvectors, Mat eigenvalues)
    wrap PCA::operator() and add eigenvalues output parameter
    static void
    Core.PCACompute2(Mat data, Mat mean, Mat eigenvectors, Mat eigenvalues, double retainedVariance)
    wrap PCA::operator() and add eigenvalues output parameter
    static void
    Core.PCACompute2(Mat data, Mat mean, Mat eigenvectors, Mat eigenvalues, int maxComponents)
    wrap PCA::operator() and add eigenvalues output parameter
    static void
    Core.PCAProject(Mat data, Mat mean, Mat eigenvectors, Mat result)
    wrap PCA::project
    static void
    Core.perspectiveTransform(Mat src, Mat dst, Mat m)
    Performs the perspective matrix transformation of vectors.
    static void
    Core.phase(Mat x, Mat y, Mat angle)
    Calculates the rotation angle of 2D vectors.
    static void
    Core.phase(Mat x, Mat y, Mat angle, boolean angleInDegrees)
    Calculates the rotation angle of 2D vectors.
    static void
    Core.polarToCart(Mat magnitude, Mat angle, Mat x, Mat y)
    Calculates x and y coordinates of 2D vectors from their magnitude and angle.
    static void
    Core.polarToCart(Mat magnitude, Mat angle, Mat x, Mat y, boolean angleInDegrees)
    Calculates x and y coordinates of 2D vectors from their magnitude and angle.
    static void
    Core.pow(Mat src, double power, Mat dst)
    Raises every array element to a power.
    static double
    Core.PSNR(Mat src1, Mat src2)
    Computes the Peak Signal-to-Noise Ratio (PSNR) image quality metric.
    static double
    Core.PSNR(Mat src1, Mat src2, double R)
    Computes the Peak Signal-to-Noise Ratio (PSNR) image quality metric.
    void
    Mat.push_back(Mat m)
     
    static void
    Core.randn(Mat dst, double mean, double stddev)
    Fills the array with normally distributed random numbers.
    static void
    Core.randShuffle(Mat dst)
    Shuffles the array elements randomly.
    static void
    Core.randShuffle(Mat dst, double iterFactor)
    Shuffles the array elements randomly.
    static void
    Core.randu(Mat dst, double low, double high)
    Generates a single uniformly-distributed random number or an array of random numbers.
    static void
    Core.reduce(Mat src, Mat dst, int dim, int rtype)
    Reduces a matrix to a vector.
    static void
    Core.reduce(Mat src, Mat dst, int dim, int rtype, int dtype)
    Reduces a matrix to a vector.
    static void
    Core.reduceArgMax(Mat src, Mat dst, int axis)
    Finds indices of max elements along provided axis Note: - If input or output array is not continuous, this function will create an internal copy. - NaN handling is left unspecified, see patchNaNs(). - The returned index is always in bounds of input matrix.
    static void
    Core.reduceArgMax(Mat src, Mat dst, int axis, boolean lastIndex)
    Finds indices of max elements along provided axis Note: - If input or output array is not continuous, this function will create an internal copy. - NaN handling is left unspecified, see patchNaNs(). - The returned index is always in bounds of input matrix.
    static void
    Core.reduceArgMin(Mat src, Mat dst, int axis)
    Finds indices of min elements along provided axis Note: - If input or output array is not continuous, this function will create an internal copy. - NaN handling is left unspecified, see patchNaNs(). - The returned index is always in bounds of input matrix.
    static void
    Core.reduceArgMin(Mat src, Mat dst, int axis, boolean lastIndex)
    Finds indices of min elements along provided axis Note: - If input or output array is not continuous, this function will create an internal copy. - NaN handling is left unspecified, see patchNaNs(). - The returned index is always in bounds of input matrix.
    static void
    Core.repeat(Mat src, int ny, int nx, Mat dst)
    Fills the output array with repeated copies of the input array.
    static void
    Core.rotate(Mat src, Mat dst, int rotateCode)
    Rotates a 2D array in multiples of 90 degrees.
    static void
    Core.scaleAdd(Mat src1, double alpha, Mat src2, Mat dst)
    Calculates the sum of a scaled array and another array.
    static void
    Core.setIdentity(Mat mtx)
    Initializes a scaled identity matrix.
    static void
    Core.setIdentity(Mat mtx, Scalar s)
    Initializes a scaled identity matrix.
    Mat.setTo(Mat value)
     
    Mat.setTo(Mat value, Mat mask)
     
    Mat.setTo(Scalar value, Mat mask)
     
    static boolean
    Core.solve(Mat src1, Mat src2, Mat dst)
    Solves one or more linear systems or least-squares problems.
    static boolean
    Core.solve(Mat src1, Mat src2, Mat dst, int flags)
    Solves one or more linear systems or least-squares problems.
    static int
    Core.solveCubic(Mat coeffs, Mat roots)
    Finds the real roots of a cubic equation.
    static double
    Core.solvePoly(Mat coeffs, Mat roots)
    Finds the real or complex roots of a polynomial equation.
    static double
    Core.solvePoly(Mat coeffs, Mat roots, int maxIters)
    Finds the real or complex roots of a polynomial equation.
    static void
    Core.sort(Mat src, Mat dst, int flags)
    Sorts each row or each column of a matrix.
    static void
    Core.sortIdx(Mat src, Mat dst, int flags)
    Sorts each row or each column of a matrix.
    static void
    Core.split(Mat m, List<Mat> mv)
     
    static void
    Core.sqrt(Mat src, Mat dst)
    Calculates a square root of array elements.
    static void
    Core.subtract(Mat src1, Mat src2, Mat dst)
    Calculates the per-element difference between two arrays or array and a scalar.
    static void
    Core.subtract(Mat src1, Mat src2, Mat dst, Mat mask)
    Calculates the per-element difference between two arrays or array and a scalar.
    static void
    Core.subtract(Mat src1, Mat src2, Mat dst, Mat mask, int dtype)
    Calculates the per-element difference between two arrays or array and a scalar.
    static void
    Core.subtract(Mat src1, Scalar src2, Mat dst)
     
    static void
    Core.subtract(Mat src1, Scalar src2, Mat dst, Mat mask)
     
    static void
    Core.subtract(Mat src1, Scalar src2, Mat dst, Mat mask, int dtype)
     
    static Scalar
    Core.sumElems(Mat src)
    Calculates the sum of array elements.
    static void
    Core.SVBackSubst(Mat w, Mat u, Mat vt, Mat rhs, Mat dst)
    wrap SVD::backSubst
    static void
    Core.SVDecomp(Mat src, Mat w, Mat u, Mat vt)
    wrap SVD::compute
    static void
    Core.SVDecomp(Mat src, Mat w, Mat u, Mat vt, int flags)
    wrap SVD::compute
    static Scalar
    Core.trace(Mat mtx)
    Returns the trace of a matrix.
    static void
    Core.transform(Mat src, Mat dst, Mat m)
    Performs the matrix transformation of every array element.
    static void
    Core.transpose(Mat src, Mat dst)
    Transposes a matrix.
    static void
    Core.transposeND(Mat src, MatOfInt order, Mat dst)
    Transpose for n-dimensional matrices.
    static void
    Core.vconcat(List<Mat> src, Mat dst)
    std::vector<cv::Mat> matrices = { cv::Mat(1, 4, CV_8UC1, cv::Scalar(1)), cv::Mat(1, 4, CV_8UC1, cv::Scalar(2)), cv::Mat(1, 4, CV_8UC1, cv::Scalar(3)),}; cv::Mat out; cv::vconcat( matrices, out ); //out: //[1, 1, 1, 1; // 2, 2, 2, 2; // 3, 3, 3, 3]
    Method parameters in org.opencv.core with type arguments of type Mat
    Modifier and Type
    Method
    Description
    static void
    Core.hconcat(List<Mat> src, Mat dst)
    std::vector<cv::Mat> matrices = { cv::Mat(4, 1, CV_8UC1, cv::Scalar(1)), cv::Mat(4, 1, CV_8UC1, cv::Scalar(2)), cv::Mat(4, 1, CV_8UC1, cv::Scalar(3)),}; cv::Mat out; cv::hconcat( matrices, out ); //out: //[1, 2, 3; // 1, 2, 3; // 1, 2, 3; // 1, 2, 3]
    static void
    Core.merge(List<Mat> mv, Mat dst)
     
    static void
    Core.mixChannels(List<Mat> src, List<Mat> dst, MatOfInt fromTo)
     
    static void
    Core.split(Mat m, List<Mat> mv)
     
    static void
    Core.vconcat(List<Mat> src, Mat dst)
    std::vector<cv::Mat> matrices = { cv::Mat(1, 4, CV_8UC1, cv::Scalar(1)), cv::Mat(1, 4, CV_8UC1, cv::Scalar(2)), cv::Mat(1, 4, CV_8UC1, cv::Scalar(3)),}; cv::Mat out; cv::vconcat( matrices, out ); //out: //[1, 1, 1, 1; // 2, 2, 2, 2; // 3, 3, 3, 3]
    Constructors in org.opencv.core with parameters of type Mat
    Modifier
    Constructor
    Description
     
    Mat(Mat m, Range rowRange)
     
     
    Mat(Mat m, Range[] ranges)
     
     
    Mat(Mat m, Range rowRange, Range colRange)
     
     
    Mat(Mat m, Rect roi)
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
  • Uses of Mat in org.opencv.img_hash

    Methods in org.opencv.img_hash with parameters of type Mat
    Modifier and Type
    Method
    Description
    static void
    Img_hash.averageHash(Mat inputArr, Mat outputArr)
    Calculates img_hash::AverageHash in one call
    static void
    Img_hash.blockMeanHash(Mat inputArr, Mat outputArr)
    Computes block mean hash of the input image
    static void
    Img_hash.blockMeanHash(Mat inputArr, Mat outputArr, int mode)
    Computes block mean hash of the input image
    static void
    Img_hash.colorMomentHash(Mat inputArr, Mat outputArr)
    Computes color moment hash of the input, the algorithm is come from the paper "Perceptual Hashing for Color Images Using Invariant Moments"
    double
    ImgHashBase.compare(Mat hashOne, Mat hashTwo)
    Compare the hash value between inOne and inTwo
    void
    ImgHashBase.compute(Mat inputArr, Mat outputArr)
    Computes hash of the input image
    static void
    Img_hash.marrHildrethHash(Mat inputArr, Mat outputArr)
    Computes average hash value of the input image
    static void
    Img_hash.marrHildrethHash(Mat inputArr, Mat outputArr, float alpha)
    Computes average hash value of the input image
    static void
    Img_hash.marrHildrethHash(Mat inputArr, Mat outputArr, float alpha, float scale)
    Computes average hash value of the input image
    static void
    Img_hash.pHash(Mat inputArr, Mat outputArr)
    Computes pHash value of the input image
    static void
    Img_hash.radialVarianceHash(Mat inputArr, Mat outputArr)
    Computes radial variance hash of the input image
    static void
    Img_hash.radialVarianceHash(Mat inputArr, Mat outputArr, double sigma)
    Computes radial variance hash of the input image
    static void
    Img_hash.radialVarianceHash(Mat inputArr, Mat outputArr, double sigma, int numOfAngleLine)
    Computes radial variance hash of the input image
  • Uses of Mat in org.opencv.imgcodecs

    Methods in org.opencv.imgcodecs that return Mat
    Modifier and Type
    Method
    Description
    static Mat
    Imgcodecs.dicomJpgFileRead(String filename, MatOfDouble segposition, MatOfDouble seglength)
    Loads a jpeg image (jpeg, jpeg-losseless, jpeg-ls and jpeg-2000) from file segments.
    static Mat
    Imgcodecs.dicomJpgFileRead(String filename, MatOfDouble segposition, MatOfDouble seglength, int dicomflags)
    Loads a jpeg image (jpeg, jpeg-losseless, jpeg-ls and jpeg-2000) from file segments.
    static Mat
    Imgcodecs.dicomJpgFileRead(String filename, MatOfDouble segposition, MatOfDouble seglength, int dicomflags, int flags)
    Loads a jpeg image (jpeg, jpeg-losseless, jpeg-ls and jpeg-2000) from file segments.
    static Mat
    Imgcodecs.dicomJpgMatRead(Mat buf)
    Loads a jpeg image (jpeg, jpeg-losseless, jpeg-ls and jpeg-2000) from Mat.
    static Mat
    Imgcodecs.dicomJpgMatRead(Mat buf, int dicomflags)
    Loads a jpeg image (jpeg, jpeg-losseless, jpeg-ls and jpeg-2000) from Mat.
    static Mat
    Imgcodecs.dicomJpgMatRead(Mat buf, int dicomflags, int flags)
    Loads a jpeg image (jpeg, jpeg-losseless, jpeg-ls and jpeg-2000) from Mat.
    static Mat
    Imgcodecs.dicomJpgWrite(Mat image, MatOfInt dicomParams, String colormodel)
    Encodes an DICOM image into a memory buffer.
    static Mat
    Imgcodecs.dicomRawFileRead(String filename, MatOfDouble segposition, MatOfDouble seglength, MatOfInt dicomparams, String colormodel)
    Loads a raw image (include RLE compressed image) from file segments.
    static Mat
    Imgcodecs.dicomRawMatRead(Mat buf, MatOfInt dicomParams, String colormodel)
    Loads a raw image (include RLE compressed image) from Mat.
    static Mat
    Imgcodecs.imdecode(Mat buf, int flags)
    Reads an image from a buffer in memory.
    static Mat
    Imgcodecs.imread(String filename, List<String> tags)
    Loads an image from a file.
    static Mat
    Imgcodecs.imread(String filename, List<String> tags, int flags)
    Loads an image from a file.
    Methods in org.opencv.imgcodecs with parameters of type Mat
    Modifier and Type
    Method
    Description
    static Mat
    Imgcodecs.dicomJpgMatRead(Mat buf)
    Loads a jpeg image (jpeg, jpeg-losseless, jpeg-ls and jpeg-2000) from Mat.
    static Mat
    Imgcodecs.dicomJpgMatRead(Mat buf, int dicomflags)
    Loads a jpeg image (jpeg, jpeg-losseless, jpeg-ls and jpeg-2000) from Mat.
    static Mat
    Imgcodecs.dicomJpgMatRead(Mat buf, int dicomflags, int flags)
    Loads a jpeg image (jpeg, jpeg-losseless, jpeg-ls and jpeg-2000) from Mat.
    static Mat
    Imgcodecs.dicomJpgWrite(Mat image, MatOfInt dicomParams, String colormodel)
    Encodes an DICOM image into a memory buffer.
    static Mat
    Imgcodecs.dicomRawMatRead(Mat buf, MatOfInt dicomParams, String colormodel)
    Loads a raw image (include RLE compressed image) from Mat.
    static Mat
    Imgcodecs.imdecode(Mat buf, int flags)
    Reads an image from a buffer in memory.
    static boolean
    Imgcodecs.imdecodemulti(Mat buf, int flags, List<Mat> mats)
    Reads a multi-page image from a buffer in memory.
    static boolean
    Imgcodecs.imdecodemulti(Mat buf, int flags, List<Mat> mats, Range range)
    Reads a multi-page image from a buffer in memory.
    static boolean
    Imgcodecs.imencode(String ext, Mat img, MatOfByte buf)
    Encodes an image into a memory buffer.
    static boolean
    Imgcodecs.imencode(String ext, Mat img, MatOfByte buf, MatOfInt params)
    Encodes an image into a memory buffer.
    static boolean
    Imgcodecs.imwrite(String filename, Mat img)
    Saves an image to a specified file.
    static boolean
    Imgcodecs.imwrite(String filename, Mat img, MatOfInt params)
    Saves an image to a specified file.
    Method parameters in org.opencv.imgcodecs with type arguments of type Mat
    Modifier and Type
    Method
    Description
    static boolean
    Imgcodecs.imdecodemulti(Mat buf, int flags, List<Mat> mats)
    Reads a multi-page image from a buffer in memory.
    static boolean
    Imgcodecs.imdecodemulti(Mat buf, int flags, List<Mat> mats, Range range)
    Reads a multi-page image from a buffer in memory.
    static boolean
    Imgcodecs.imreadmulti(String filename, List<Mat> mats)
    Loads a multi-page image from a file.
    static boolean
    Imgcodecs.imreadmulti(String filename, List<Mat> mats, int flags)
    Loads a multi-page image from a file.
    static boolean
    Imgcodecs.imreadmulti(String filename, List<Mat> mats, int start, int count)
    Loads a of images of a multi-page image from a file.
    static boolean
    Imgcodecs.imreadmulti(String filename, List<Mat> mats, int start, int count, int flags)
    Loads a of images of a multi-page image from a file.
    static boolean
    Imgcodecs.imwritemulti(String filename, List<Mat> img)
     
    static boolean
    Imgcodecs.imwritemulti(String filename, List<Mat> img, MatOfInt params)
     
  • Uses of Mat in org.opencv.imgproc

    Methods in org.opencv.imgproc that return Mat
    Modifier and Type
    Method
    Description
    static Mat
     
    static Mat
    Imgproc.getGaborKernel(Size ksize, double sigma, double theta, double lambd, double gamma)
    Returns Gabor filter coefficients.
    static Mat
    Imgproc.getGaborKernel(Size ksize, double sigma, double theta, double lambd, double gamma, double psi)
    Returns Gabor filter coefficients.
    static Mat
    Imgproc.getGaborKernel(Size ksize, double sigma, double theta, double lambd, double gamma, double psi, int ktype)
    Returns Gabor filter coefficients.
    static Mat
    Imgproc.getGaussianKernel(int ksize, double sigma)
    Returns Gaussian filter coefficients.
    static Mat
    Imgproc.getGaussianKernel(int ksize, double sigma, int ktype)
    Returns Gaussian filter coefficients.
    static Mat
    Imgproc.getPerspectiveTransform(Mat src, Mat dst)
    Calculates a perspective transform from four pairs of the corresponding points.
    static Mat
    Imgproc.getPerspectiveTransform(Mat src, Mat dst, int solveMethod)
    Calculates a perspective transform from four pairs of the corresponding points.
    static Mat
    Imgproc.getRotationMatrix2D(Point center, double angle, double scale)
    Calculates an affine matrix of 2D rotation.
    static Mat
    Imgproc.getStructuringElement(int shape, Size ksize)
    Returns a structuring element of the specified size and shape for morphological operations.
    static Mat
    Imgproc.getStructuringElement(int shape, Size ksize, Point anchor)
    Returns a structuring element of the specified size and shape for morphological operations.
    Methods in org.opencv.imgproc with parameters of type Mat
    Modifier and Type
    Method
    Description
    static void
    Imgproc.accumulate(Mat src, Mat dst)
    Adds an image to the accumulator image.
    static void
    Imgproc.accumulate(Mat src, Mat dst, Mat mask)
    Adds an image to the accumulator image.
    static void
    Imgproc.accumulateProduct(Mat src1, Mat src2, Mat dst)
    Adds the per-element product of two input images to the accumulator image.
    static void
    Imgproc.accumulateProduct(Mat src1, Mat src2, Mat dst, Mat mask)
    Adds the per-element product of two input images to the accumulator image.
    static void
    Imgproc.accumulateSquare(Mat src, Mat dst)
    Adds the square of a source image to the accumulator image.
    static void
    Imgproc.accumulateSquare(Mat src, Mat dst, Mat mask)
    Adds the square of a source image to the accumulator image.
    static void
    Imgproc.accumulateWeighted(Mat src, Mat dst, double alpha)
    Updates a running average.
    static void
    Imgproc.accumulateWeighted(Mat src, Mat dst, double alpha, Mat mask)
    Updates a running average.
    static void
    Imgproc.adaptiveThreshold(Mat src, Mat dst, double maxValue, int adaptiveMethod, int thresholdType, int blockSize, double C)
    Applies an adaptive threshold to an array.
    void
    CLAHE.apply(Mat src, Mat dst)
    Equalizes the histogram of a grayscale image using Contrast Limited Adaptive Histogram Equalization.
    static void
    Imgproc.applyColorMap(Mat src, Mat dst, int colormap)
    Applies a GNU Octave/MATLAB equivalent colormap on a given image.
    static void
    Imgproc.applyColorMap(Mat src, Mat dst, Mat userColor)
    Applies a user colormap on a given image.
    IntelligentScissorsMB.applyImage(Mat image)
    Specify input image and extract image features
    IntelligentScissorsMB.applyImageFeatures(Mat non_edge, Mat gradient_direction, Mat gradient_magnitude)
    Specify custom features of input image Customized advanced variant of applyImage() call.
    IntelligentScissorsMB.applyImageFeatures(Mat non_edge, Mat gradient_direction, Mat gradient_magnitude, Mat image)
    Specify custom features of input image Customized advanced variant of applyImage() call.
    static void
    Imgproc.arrowedLine(Mat img, Point pt1, Point pt2, Scalar color)
    Draws an arrow segment pointing from the first point to the second one.
    static void
    Imgproc.arrowedLine(Mat img, Point pt1, Point pt2, Scalar color, int thickness)
    Draws an arrow segment pointing from the first point to the second one.
    static void
    Imgproc.arrowedLine(Mat img, Point pt1, Point pt2, Scalar color, int thickness, int line_type)
    Draws an arrow segment pointing from the first point to the second one.
    static void
    Imgproc.arrowedLine(Mat img, Point pt1, Point pt2, Scalar color, int thickness, int line_type, int shift)
    Draws an arrow segment pointing from the first point to the second one.
    static void
    Imgproc.arrowedLine(Mat img, Point pt1, Point pt2, Scalar color, int thickness, int line_type, int shift, double tipLength)
    Draws an arrow segment pointing from the first point to the second one.
    static void
    Imgproc.bilateralFilter(Mat src, Mat dst, int d, double sigmaColor, double sigmaSpace)
    Applies the bilateral filter to an image.
    static void
    Imgproc.bilateralFilter(Mat src, Mat dst, int d, double sigmaColor, double sigmaSpace, int borderType)
    Applies the bilateral filter to an image.
    static void
    Imgproc.blendLinear(Mat src1, Mat src2, Mat weights1, Mat weights2, Mat dst)
    variant without mask parameter
    static void
    Imgproc.blur(Mat src, Mat dst, Size ksize)
    Blurs an image using the normalized box filter.
    static void
    Imgproc.blur(Mat src, Mat dst, Size ksize, Point anchor)
    Blurs an image using the normalized box filter.
    static void
    Imgproc.blur(Mat src, Mat dst, Size ksize, Point anchor, int borderType)
    Blurs an image using the normalized box filter.
    static Rect
    Imgproc.boundingRect(Mat array)
    Calculates the up-right bounding rectangle of a point set or non-zero pixels of gray-scale image.
    static void
    Imgproc.boxFilter(Mat src, Mat dst, int ddepth, Size ksize)
    Blurs an image using the box filter.
    static void
    Imgproc.boxFilter(Mat src, Mat dst, int ddepth, Size ksize, Point anchor)
    Blurs an image using the box filter.
    static void
    Imgproc.boxFilter(Mat src, Mat dst, int ddepth, Size ksize, Point anchor, boolean normalize)
    Blurs an image using the box filter.
    static void
    Imgproc.boxFilter(Mat src, Mat dst, int ddepth, Size ksize, Point anchor, boolean normalize, int borderType)
    Blurs an image using the box filter.
    static void
    Imgproc.boxPoints(RotatedRect box, Mat points)
    Finds the four vertices of a rotated rect.
    static void
    Imgproc.calcBackProject(List<Mat> images, MatOfInt channels, Mat hist, Mat dst, MatOfFloat ranges, double scale)
     
    static void
    Imgproc.calcHist(List<Mat> images, MatOfInt channels, Mat mask, Mat hist, MatOfInt histSize, MatOfFloat ranges)
    this variant supports only uniform histograms.
    static void
    Imgproc.calcHist(List<Mat> images, MatOfInt channels, Mat mask, Mat hist, MatOfInt histSize, MatOfFloat ranges, boolean accumulate)
    this variant supports only uniform histograms.
    static void
    Imgproc.Canny(Mat image, Mat edges, double threshold1, double threshold2)
    Finds edges in an image using the Canny algorithm CITE: Canny86 .
    static void
    Imgproc.Canny(Mat image, Mat edges, double threshold1, double threshold2, int apertureSize)
    Finds edges in an image using the Canny algorithm CITE: Canny86 .
    static void
    Imgproc.Canny(Mat image, Mat edges, double threshold1, double threshold2, int apertureSize, boolean L2gradient)
    Finds edges in an image using the Canny algorithm CITE: Canny86 .
    static void
    Imgproc.Canny(Mat dx, Mat dy, Mat edges, double threshold1, double threshold2)
    \overload Finds edges in an image using the Canny algorithm with custom image gradient.
    static void
    Imgproc.Canny(Mat dx, Mat dy, Mat edges, double threshold1, double threshold2, boolean L2gradient)
    \overload Finds edges in an image using the Canny algorithm with custom image gradient.
    static void
    Imgproc.circle(Mat img, Point center, int radius, Scalar color)
    Draws a circle.
    static void
    Imgproc.circle(Mat img, Point center, int radius, Scalar color, int thickness)
    Draws a circle.
    static void
    Imgproc.circle(Mat img, Point center, int radius, Scalar color, int thickness, int lineType)
    Draws a circle.
    static void
    Imgproc.circle(Mat img, Point center, int radius, Scalar color, int thickness, int lineType, int shift)
    Draws a circle.
    static double
    Imgproc.compareHist(Mat H1, Mat H2, int method)
    Compares two histograms.
    int
    LineSegmentDetector.compareSegments(Size size, Mat lines1, Mat lines2)
    Draws two groups of lines in blue and red, counting the non overlapping (mismatching) pixels.
    int
    LineSegmentDetector.compareSegments(Size size, Mat lines1, Mat lines2, Mat image)
    Draws two groups of lines in blue and red, counting the non overlapping (mismatching) pixels.
    static int
    Imgproc.connectedComponents(Mat image, Mat labels)
     
    static int
    Imgproc.connectedComponents(Mat image, Mat labels, int connectivity)
     
    static int
    Imgproc.connectedComponents(Mat image, Mat labels, int connectivity, int ltype)
     
    static int
    Imgproc.connectedComponentsWithAlgorithm(Mat image, Mat labels, int connectivity, int ltype, int ccltype)
    computes the connected components labeled image of boolean image image with 4 or 8 way connectivity - returns N, the total number of labels [0, N-1] where 0 represents the background label. ltype specifies the output label image type, an important consideration based on the total number of labels or alternatively the total number of pixels in the source image. ccltype specifies the connected components labeling algorithm to use, currently Bolelli (Spaghetti) CITE: Bolelli2019, Grana (BBDT) CITE: Grana2010 and Wu's (SAUF) CITE: Wu2009 algorithms are supported, see the #ConnectedComponentsAlgorithmsTypes for details.
    static int
    Imgproc.connectedComponentsWithStats(Mat image, Mat labels, Mat stats, Mat centroids)
     
    static int
    Imgproc.connectedComponentsWithStats(Mat image, Mat labels, Mat stats, Mat centroids, int connectivity)
     
    static int
    Imgproc.connectedComponentsWithStats(Mat image, Mat labels, Mat stats, Mat centroids, int connectivity, int ltype)
     
    static int
    Imgproc.connectedComponentsWithStatsWithAlgorithm(Mat image, Mat labels, Mat stats, Mat centroids, int connectivity, int ltype, int ccltype)
    computes the connected components labeled image of boolean image and also produces a statistics output for each label image with 4 or 8 way connectivity - returns N, the total number of labels [0, N-1] where 0 represents the background label. ltype specifies the output label image type, an important consideration based on the total number of labels or alternatively the total number of pixels in the source image. ccltype specifies the connected components labeling algorithm to use, currently Bolelli (Spaghetti) CITE: Bolelli2019, Grana (BBDT) CITE: Grana2010 and Wu's (SAUF) CITE: Wu2009 algorithms are supported, see the #ConnectedComponentsAlgorithmsTypes for details.
    static double
    Imgproc.contourArea(Mat contour)
    Calculates a contour area.
    static double
    Imgproc.contourArea(Mat contour, boolean oriented)
    Calculates a contour area.
    static void
    Imgproc.convertMaps(Mat map1, Mat map2, Mat dstmap1, Mat dstmap2, int dstmap1type)
    Converts image transformation maps from one representation to another.
    static void
    Imgproc.convertMaps(Mat map1, Mat map2, Mat dstmap1, Mat dstmap2, int dstmap1type, boolean nninterpolation)
    Converts image transformation maps from one representation to another.
    static void
    Imgproc.cornerEigenValsAndVecs(Mat src, Mat dst, int blockSize, int ksize)
    Calculates eigenvalues and eigenvectors of image blocks for corner detection.
    static void
    Imgproc.cornerEigenValsAndVecs(Mat src, Mat dst, int blockSize, int ksize, int borderType)
    Calculates eigenvalues and eigenvectors of image blocks for corner detection.
    static void
    Imgproc.cornerHarris(Mat src, Mat dst, int blockSize, int ksize, double k)
    Harris corner detector.
    static void
    Imgproc.cornerHarris(Mat src, Mat dst, int blockSize, int ksize, double k, int borderType)
    Harris corner detector.
    static void
    Imgproc.cornerMinEigenVal(Mat src, Mat dst, int blockSize)
    Calculates the minimal eigenvalue of gradient matrices for corner detection.
    static void
    Imgproc.cornerMinEigenVal(Mat src, Mat dst, int blockSize, int ksize)
    Calculates the minimal eigenvalue of gradient matrices for corner detection.
    static void
    Imgproc.cornerMinEigenVal(Mat src, Mat dst, int blockSize, int ksize, int borderType)
    Calculates the minimal eigenvalue of gradient matrices for corner detection.
    static void
    Imgproc.cornerSubPix(Mat image, Mat corners, Size winSize, Size zeroZone, TermCriteria criteria)
    Refines the corner locations.
    static void
    Imgproc.createHanningWindow(Mat dst, Size winSize, int type)
    This function computes a Hanning window coefficients in two dimensions.
    static void
    Imgproc.cvtColor(Mat src, Mat dst, int code)
    Converts an image from one color space to another.
    static void
    Imgproc.cvtColor(Mat src, Mat dst, int code, int dstCn)
    Converts an image from one color space to another.
    static void
    Imgproc.cvtColorTwoPlane(Mat src1, Mat src2, Mat dst, int code)
    Converts an image from one color space to another where the source image is stored in two planes.
    static void
    Imgproc.demosaicing(Mat src, Mat dst, int code)
    main function for all demosaicing processes
    static void
    Imgproc.demosaicing(Mat src, Mat dst, int code, int dstCn)
    main function for all demosaicing processes
    void
    GeneralizedHough.detect(Mat image, Mat positions)
     
    void
    GeneralizedHough.detect(Mat image, Mat positions, Mat votes)
     
    void
    GeneralizedHough.detect(Mat edges, Mat dx, Mat dy, Mat positions)
     
    void
    GeneralizedHough.detect(Mat edges, Mat dx, Mat dy, Mat positions, Mat votes)
     
    void
    LineSegmentDetector.detect(Mat image, Mat lines)
    Finds lines in the input image.
    void
    LineSegmentDetector.detect(Mat image, Mat lines, Mat width)
    Finds lines in the input image.
    void
    LineSegmentDetector.detect(Mat image, Mat lines, Mat width, Mat prec)
    Finds lines in the input image.
    void
    LineSegmentDetector.detect(Mat image, Mat lines, Mat width, Mat prec, Mat nfa)
    Finds lines in the input image.
    static void
    Imgproc.dilate(Mat src, Mat dst, Mat kernel)
    Dilates an image by using a specific structuring element.
    static void
    Imgproc.dilate(Mat src, Mat dst, Mat kernel, Point anchor)
    Dilates an image by using a specific structuring element.
    static void
    Imgproc.dilate(Mat src, Mat dst, Mat kernel, Point anchor, int iterations)
    Dilates an image by using a specific structuring element.
    static void
    Imgproc.dilate(Mat src, Mat dst, Mat kernel, Point anchor, int iterations, int borderType)
    Dilates an image by using a specific structuring element.
    static void
    Imgproc.dilate(Mat src, Mat dst, Mat kernel, Point anchor, int iterations, int borderType, Scalar borderValue)
    Dilates an image by using a specific structuring element.
    static void
    Imgproc.distanceTransform(Mat src, Mat dst, int distanceType, int maskSize)
     
    static void
    Imgproc.distanceTransform(Mat src, Mat dst, int distanceType, int maskSize, int dstType)
     
    static void
    Imgproc.distanceTransformWithLabels(Mat src, Mat dst, Mat labels, int distanceType, int maskSize)
    Calculates the distance to the closest zero pixel for each pixel of the source image.
    static void
    Imgproc.distanceTransformWithLabels(Mat src, Mat dst, Mat labels, int distanceType, int maskSize, int labelType)
    Calculates the distance to the closest zero pixel for each pixel of the source image.
    static void
    Imgproc.divSpectrums(Mat a, Mat b, Mat c, int flags)
    Performs the per-element division of the first Fourier spectrum by the second Fourier spectrum.
    static void
    Imgproc.divSpectrums(Mat a, Mat b, Mat c, int flags, boolean conjB)
    Performs the per-element division of the first Fourier spectrum by the second Fourier spectrum.
    static void
    Imgproc.drawContours(Mat image, List<MatOfPoint> contours, int contourIdx, Scalar color)
    Draws contours outlines or filled contours.
    static void
    Imgproc.drawContours(Mat image, List<MatOfPoint> contours, int contourIdx, Scalar color, int thickness)
    Draws contours outlines or filled contours.
    static void
    Imgproc.drawContours(Mat image, List<MatOfPoint> contours, int contourIdx, Scalar color, int thickness, int lineType)
    Draws contours outlines or filled contours.
    static void
    Imgproc.drawContours(Mat image, List<MatOfPoint> contours, int contourIdx, Scalar color, int thickness, int lineType, Mat hierarchy)
    Draws contours outlines or filled contours.
    static void
    Imgproc.drawContours(Mat image, List<MatOfPoint> contours, int contourIdx, Scalar color, int thickness, int lineType, Mat hierarchy, int maxLevel)
    Draws contours outlines or filled contours.
    static void
    Imgproc.drawContours(Mat image, List<MatOfPoint> contours, int contourIdx, Scalar color, int thickness, int lineType, Mat hierarchy, int maxLevel, Point offset)
    Draws contours outlines or filled contours.
    static void
    Imgproc.drawMarker(Mat img, Point position, Scalar color)
    Draws a marker on a predefined position in an image.
    static void
    Imgproc.drawMarker(Mat img, Point position, Scalar color, int markerType)
    Draws a marker on a predefined position in an image.
    static void
    Imgproc.drawMarker(Mat img, Point position, Scalar color, int markerType, int markerSize)
    Draws a marker on a predefined position in an image.
    static void
    Imgproc.drawMarker(Mat img, Point position, Scalar color, int markerType, int markerSize, int thickness)
    Draws a marker on a predefined position in an image.
    static void
    Imgproc.drawMarker(Mat img, Point position, Scalar color, int markerType, int markerSize, int thickness, int line_type)
    Draws a marker on a predefined position in an image.
    void
    LineSegmentDetector.drawSegments(Mat image, Mat lines)
    Draws the line segments on a given image.
    static void
    Imgproc.ellipse(Mat img, Point center, Size axes, double angle, double startAngle, double endAngle, Scalar color)
    Draws a simple or thick elliptic arc or fills an ellipse sector.
    static void
    Imgproc.ellipse(Mat img, Point center, Size axes, double angle, double startAngle, double endAngle, Scalar color, int thickness)
    Draws a simple or thick elliptic arc or fills an ellipse sector.
    static void
    Imgproc.ellipse(Mat img, Point center, Size axes, double angle, double startAngle, double endAngle, Scalar color, int thickness, int lineType)
    Draws a simple or thick elliptic arc or fills an ellipse sector.
    static void
    Imgproc.ellipse(Mat img, Point center, Size axes, double angle, double startAngle, double endAngle, Scalar color, int thickness, int lineType, int shift)
    Draws a simple or thick elliptic arc or fills an ellipse sector.
    static void
    Imgproc.ellipse(Mat img, RotatedRect box, Scalar color)
     
    static void
    Imgproc.ellipse(Mat img, RotatedRect box, Scalar color, int thickness)
     
    static void
    Imgproc.ellipse(Mat img, RotatedRect box, Scalar color, int thickness, int lineType)
     
    static float
    Imgproc.EMD(Mat signature1, Mat signature2, int distType)
    Computes the "minimal work" distance between two weighted point configurations.
    static float
    Imgproc.EMD(Mat signature1, Mat signature2, int distType, Mat cost)
    Computes the "minimal work" distance between two weighted point configurations.
    static float
    Imgproc.EMD(Mat signature1, Mat signature2, int distType, Mat cost, Mat flow)
    Computes the "minimal work" distance between two weighted point configurations.
    static void
    Imgproc.equalizeHist(Mat src, Mat dst)
    Equalizes the histogram of a grayscale image.
    static void
    Imgproc.erode(Mat src, Mat dst, Mat kernel)
    Erodes an image by using a specific structuring element.
    static void
    Imgproc.erode(Mat src, Mat dst, Mat kernel, Point anchor)
    Erodes an image by using a specific structuring element.
    static void
    Imgproc.erode(Mat src, Mat dst, Mat kernel, Point anchor, int iterations)
    Erodes an image by using a specific structuring element.
    static void
    Imgproc.erode(Mat src, Mat dst, Mat kernel, Point anchor, int iterations, int borderType)
    Erodes an image by using a specific structuring element.
    static void
    Imgproc.erode(Mat src, Mat dst, Mat kernel, Point anchor, int iterations, int borderType, Scalar borderValue)
    Erodes an image by using a specific structuring element.
    static void
    Imgproc.fillConvexPoly(Mat img, MatOfPoint points, Scalar color)
    Fills a convex polygon.
    static void
    Imgproc.fillConvexPoly(Mat img, MatOfPoint points, Scalar color, int lineType)
    Fills a convex polygon.
    static void
    Imgproc.fillConvexPoly(Mat img, MatOfPoint points, Scalar color, int lineType, int shift)
    Fills a convex polygon.
    static void
    Imgproc.fillPoly(Mat img, List<MatOfPoint> pts, Scalar color)
    Fills the area bounded by one or more polygons.
    static void
    Imgproc.fillPoly(Mat img, List<MatOfPoint> pts, Scalar color, int lineType)
    Fills the area bounded by one or more polygons.
    static void
    Imgproc.fillPoly(Mat img, List<MatOfPoint> pts, Scalar color, int lineType, int shift)
    Fills the area bounded by one or more polygons.
    static void
    Imgproc.fillPoly(Mat img, List<MatOfPoint> pts, Scalar color, int lineType, int shift, Point offset)
    Fills the area bounded by one or more polygons.
    static void
    Imgproc.filter2D(Mat src, Mat dst, int ddepth, Mat kernel)
    Convolves an image with the kernel.
    static void
    Imgproc.filter2D(Mat src, Mat dst, int ddepth, Mat kernel, Point anchor)
    Convolves an image with the kernel.
    static void
    Imgproc.filter2D(Mat src, Mat dst, int ddepth, Mat kernel, Point anchor, double delta)
    Convolves an image with the kernel.
    static void
    Imgproc.filter2D(Mat src, Mat dst, int ddepth, Mat kernel, Point anchor, double delta, int borderType)
    Convolves an image with the kernel.
    static void
    Imgproc.findContours(Mat image, List<MatOfPoint> contours, Mat hierarchy, int mode, int method)
    Finds contours in a binary image.
    static void
    Imgproc.findContours(Mat image, List<MatOfPoint> contours, Mat hierarchy, int mode, int method, Point offset)
    Finds contours in a binary image.
    Imgproc.fitEllipseAMS(Mat points)
    Fits an ellipse around a set of 2D points.
    Imgproc.fitEllipseDirect(Mat points)
    Fits an ellipse around a set of 2D points.
    static void
    Imgproc.fitLine(Mat points, Mat line, int distType, double param, double reps, double aeps)
    Fits a line to a 2D or 3D point set.
    static int
    Imgproc.floodFill(Mat image, Mat mask, Point seedPoint, Scalar newVal)
    Fills a connected component with the given color.
    static int
    Imgproc.floodFill(Mat image, Mat mask, Point seedPoint, Scalar newVal, Rect rect)
    Fills a connected component with the given color.
    static int
    Imgproc.floodFill(Mat image, Mat mask, Point seedPoint, Scalar newVal, Rect rect, Scalar loDiff)
    Fills a connected component with the given color.
    static int
    Imgproc.floodFill(Mat image, Mat mask, Point seedPoint, Scalar newVal, Rect rect, Scalar loDiff, Scalar upDiff)
    Fills a connected component with the given color.
    static int
    Imgproc.floodFill(Mat image, Mat mask, Point seedPoint, Scalar newVal, Rect rect, Scalar loDiff, Scalar upDiff, int flags)
    Fills a connected component with the given color.
    static void
    Imgproc.GaussianBlur(Mat src, Mat dst, Size ksize, double sigmaX)
    Blurs an image using a Gaussian filter.
    static void
    Imgproc.GaussianBlur(Mat src, Mat dst, Size ksize, double sigmaX, double sigmaY)
    Blurs an image using a Gaussian filter.
    static void
    Imgproc.GaussianBlur(Mat src, Mat dst, Size ksize, double sigmaX, double sigmaY, int borderType)
    Blurs an image using a Gaussian filter.
    void
    IntelligentScissorsMB.getContour(Point targetPt, Mat contour)
    Extracts optimal contour for the given target point on the image Note: buildMap() must be called before this call
    void
    IntelligentScissorsMB.getContour(Point targetPt, Mat contour, boolean backward)
    Extracts optimal contour for the given target point on the image Note: buildMap() must be called before this call
    static void
    Imgproc.getDerivKernels(Mat kx, Mat ky, int dx, int dy, int ksize)
    Returns filter coefficients for computing spatial image derivatives.
    static void
    Imgproc.getDerivKernels(Mat kx, Mat ky, int dx, int dy, int ksize, boolean normalize)
    Returns filter coefficients for computing spatial image derivatives.
    static void
    Imgproc.getDerivKernels(Mat kx, Mat ky, int dx, int dy, int ksize, boolean normalize, int ktype)
    Returns filter coefficients for computing spatial image derivatives.
    static Mat
    Imgproc.getPerspectiveTransform(Mat src, Mat dst)
    Calculates a perspective transform from four pairs of the corresponding points.
    static Mat
    Imgproc.getPerspectiveTransform(Mat src, Mat dst, int solveMethod)
    Calculates a perspective transform from four pairs of the corresponding points.
    static void
    Imgproc.getRectSubPix(Mat image, Size patchSize, Point center, Mat patch)
    Retrieves a pixel rectangle from an image with sub-pixel accuracy.
    static void
    Imgproc.getRectSubPix(Mat image, Size patchSize, Point center, Mat patch, int patchType)
    Retrieves a pixel rectangle from an image with sub-pixel accuracy.
    static void
    Imgproc.goodFeaturesToTrack(Mat image, MatOfPoint corners, int maxCorners, double qualityLevel, double minDistance)
    Determines strong corners on an image.
    static void
    Imgproc.goodFeaturesToTrack(Mat image, MatOfPoint corners, int maxCorners, double qualityLevel, double minDistance, Mat mask)
    Determines strong corners on an image.
    static void
    Imgproc.goodFeaturesToTrack(Mat image, MatOfPoint corners, int maxCorners, double qualityLevel, double minDistance, Mat mask, int blockSize)
    Determines strong corners on an image.
    static void
    Imgproc.goodFeaturesToTrack(Mat image, MatOfPoint corners, int maxCorners, double qualityLevel, double minDistance, Mat mask, int blockSize, boolean useHarrisDetector)
    Determines strong corners on an image.
    static void
    Imgproc.goodFeaturesToTrack(Mat image, MatOfPoint corners, int maxCorners, double qualityLevel, double minDistance, Mat mask, int blockSize, boolean useHarrisDetector, double k)
    Determines strong corners on an image.
    static void
    Imgproc.goodFeaturesToTrack(Mat image, MatOfPoint corners, int maxCorners, double qualityLevel, double minDistance, Mat mask, int blockSize, int gradientSize)
     
    static void
    Imgproc.goodFeaturesToTrack(Mat image, MatOfPoint corners, int maxCorners, double qualityLevel, double minDistance, Mat mask, int blockSize, int gradientSize, boolean useHarrisDetector)
     
    static void
    Imgproc.goodFeaturesToTrack(Mat image, MatOfPoint corners, int maxCorners, double qualityLevel, double minDistance, Mat mask, int blockSize, int gradientSize, boolean useHarrisDetector, double k)
     
    static void
    Imgproc.goodFeaturesToTrackWithQuality(Mat image, Mat corners, int maxCorners, double qualityLevel, double minDistance, Mat mask, Mat cornersQuality)
    Same as above, but returns also quality measure of the detected corners.
    static void
    Imgproc.goodFeaturesToTrackWithQuality(Mat image, Mat corners, int maxCorners, double qualityLevel, double minDistance, Mat mask, Mat cornersQuality, int blockSize)
    Same as above, but returns also quality measure of the detected corners.
    static void
    Imgproc.goodFeaturesToTrackWithQuality(Mat image, Mat corners, int maxCorners, double qualityLevel, double minDistance, Mat mask, Mat cornersQuality, int blockSize, int gradientSize)
    Same as above, but returns also quality measure of the detected corners.
    static void
    Imgproc.goodFeaturesToTrackWithQuality(Mat image, Mat corners, int maxCorners, double qualityLevel, double minDistance, Mat mask, Mat cornersQuality, int blockSize, int gradientSize, boolean useHarrisDetector)
    Same as above, but returns also quality measure of the detected corners.
    static void
    Imgproc.goodFeaturesToTrackWithQuality(Mat image, Mat corners, int maxCorners, double qualityLevel, double minDistance, Mat mask, Mat cornersQuality, int blockSize, int gradientSize, boolean useHarrisDetector, double k)
    Same as above, but returns also quality measure of the detected corners.
    static void
    Imgproc.grabCut(Mat img, Mat mask, Rect rect, Mat bgdModel, Mat fgdModel, int iterCount)
    Runs the GrabCut algorithm.
    static void
    Imgproc.grabCut(Mat img, Mat mask, Rect rect, Mat bgdModel, Mat fgdModel, int iterCount, int mode)
    Runs the GrabCut algorithm.
    static void
    Imgproc.HoughCircles(Mat image, Mat circles, int method, double dp, double minDist)
    Finds circles in a grayscale image using the Hough transform.
    static void
    Imgproc.HoughCircles(Mat image, Mat circles, int method, double dp, double minDist, double param1)
    Finds circles in a grayscale image using the Hough transform.
    static void
    Imgproc.HoughCircles(Mat image, Mat circles, int method, double dp, double minDist, double param1, double param2)
    Finds circles in a grayscale image using the Hough transform.
    static void
    Imgproc.HoughCircles(Mat image, Mat circles, int method, double dp, double minDist, double param1, double param2, int minRadius)
    Finds circles in a grayscale image using the Hough transform.
    static void
    Imgproc.HoughCircles(Mat image, Mat circles, int method, double dp, double minDist, double param1, double param2, int minRadius, int maxRadius)
    Finds circles in a grayscale image using the Hough transform.
    static void
    Imgproc.HoughLines(Mat image, Mat lines, double rho, double theta, int threshold)
    Finds lines in a binary image using the standard Hough transform.
    static void
    Imgproc.HoughLines(Mat image, Mat lines, double rho, double theta, int threshold, double srn)
    Finds lines in a binary image using the standard Hough transform.
    static void
    Imgproc.HoughLines(Mat image, Mat lines, double rho, double theta, int threshold, double srn, double stn)
    Finds lines in a binary image using the standard Hough transform.
    static void
    Imgproc.HoughLines(Mat image, Mat lines, double rho, double theta, int threshold, double srn, double stn, double min_theta)
    Finds lines in a binary image using the standard Hough transform.
    static void
    Imgproc.HoughLines(Mat image, Mat lines, double rho, double theta, int threshold, double srn, double stn, double min_theta, double max_theta)
    Finds lines in a binary image using the standard Hough transform.
    static void
    Imgproc.HoughLinesP(Mat image, Mat lines, double rho, double theta, int threshold)
    Finds line segments in a binary image using the probabilistic Hough transform.
    static void
    Imgproc.HoughLinesP(Mat image, Mat lines, double rho, double theta, int threshold, double minLineLength)
    Finds line segments in a binary image using the probabilistic Hough transform.
    static void
    Imgproc.HoughLinesP(Mat image, Mat lines, double rho, double theta, int threshold, double minLineLength, double maxLineGap)
    Finds line segments in a binary image using the probabilistic Hough transform.
    static void
    Imgproc.HoughLinesPointSet(Mat point, Mat lines, int lines_max, int threshold, double min_rho, double max_rho, double rho_step, double min_theta, double max_theta, double theta_step)
    Finds lines in a set of points using the standard Hough transform.
    static void
    Imgproc.HoughLinesWithAccumulator(Mat image, Mat lines, double rho, double theta, int threshold)
    Finds lines in a binary image using the standard Hough transform and get accumulator.
    static void
    Imgproc.HoughLinesWithAccumulator(Mat image, Mat lines, double rho, double theta, int threshold, double srn)
    Finds lines in a binary image using the standard Hough transform and get accumulator.
    static void
    Imgproc.HoughLinesWithAccumulator(Mat image, Mat lines, double rho, double theta, int threshold, double srn, double stn)
    Finds lines in a binary image using the standard Hough transform and get accumulator.
    static void
    Imgproc.HoughLinesWithAccumulator(Mat image, Mat lines, double rho, double theta, int threshold, double srn, double stn, double min_theta)
    Finds lines in a binary image using the standard Hough transform and get accumulator.
    static void
    Imgproc.HoughLinesWithAccumulator(Mat image, Mat lines, double rho, double theta, int threshold, double srn, double stn, double min_theta, double max_theta)
    Finds lines in a binary image using the standard Hough transform and get accumulator.
    static void
    Imgproc.HuMoments(Moments m, Mat hu)
     
    static void
    Imgproc.integral(Mat src, Mat sum)
     
    static void
    Imgproc.integral(Mat src, Mat sum, int sdepth)
     
    static void
    Imgproc.integral2(Mat src, Mat sum, Mat sqsum)
     
    static void
    Imgproc.integral2(Mat src, Mat sum, Mat sqsum, int sdepth)
     
    static void
    Imgproc.integral2(Mat src, Mat sum, Mat sqsum, int sdepth, int sqdepth)
     
    static void
    Imgproc.integral3(Mat src, Mat sum, Mat sqsum, Mat tilted)
    Calculates the integral of an image.
    static void
    Imgproc.integral3(Mat src, Mat sum, Mat sqsum, Mat tilted, int sdepth)
    Calculates the integral of an image.
    static void
    Imgproc.integral3(Mat src, Mat sum, Mat sqsum, Mat tilted, int sdepth, int sqdepth)
    Calculates the integral of an image.
    static float
    Imgproc.intersectConvexConvex(Mat p1, Mat p2, Mat p12)
    Finds intersection of two convex polygons
    static float
    Imgproc.intersectConvexConvex(Mat p1, Mat p2, Mat p12, boolean handleNested)
    Finds intersection of two convex polygons
    static void
    Imgproc.invertAffineTransform(Mat M, Mat iM)
    Inverts an affine transformation.
    static void
    Imgproc.Laplacian(Mat src, Mat dst, int ddepth)
    Calculates the Laplacian of an image.
    static void
    Imgproc.Laplacian(Mat src, Mat dst, int ddepth, int ksize)
    Calculates the Laplacian of an image.
    static void
    Imgproc.Laplacian(Mat src, Mat dst, int ddepth, int ksize, double scale)
    Calculates the Laplacian of an image.
    static void
    Imgproc.Laplacian(Mat src, Mat dst, int ddepth, int ksize, double scale, double delta)
    Calculates the Laplacian of an image.
    static void
    Imgproc.Laplacian(Mat src, Mat dst, int ddepth, int ksize, double scale, double delta, int borderType)
    Calculates the Laplacian of an image.
    static void
    Imgproc.line(Mat img, Point pt1, Point pt2, Scalar color)
    Draws a line segment connecting two points.
    static void
    Imgproc.line(Mat img, Point pt1, Point pt2, Scalar color, int thickness)
    Draws a line segment connecting two points.
    static void
    Imgproc.line(Mat img, Point pt1, Point pt2, Scalar color, int thickness, int lineType)
    Draws a line segment connecting two points.
    static void
    Imgproc.line(Mat img, Point pt1, Point pt2, Scalar color, int thickness, int lineType, int shift)
    Draws a line segment connecting two points.
    static void
    Imgproc.linearPolar(Mat src, Mat dst, Point center, double maxRadius, int flags)
    Deprecated.
    This function produces same result as cv::warpPolar(src, dst, src.size(), center, maxRadius, flags) Transform the source image using the following transformation (See REF: polar_remaps_reference_image "Polar remaps reference image c)"): \(\begin{array}{l} dst( \rho , \phi ) = src(x,y) \\ dst.size() \leftarrow src.size() \end{array}\) where \(\begin{array}{l} I = (dx,dy) = (x - center.x,y - center.y) \\ \rho = Kmag \cdot \texttt{magnitude} (I) ,\\ \phi = angle \cdot \texttt{angle} (I) \end{array}\) and \(\begin{array}{l} Kx = src.cols / maxRadius \\ Ky = src.rows / 2\Pi \end{array}\)
    static void
    Imgproc.logPolar(Mat src, Mat dst, Point center, double M, int flags)
    Deprecated.
    This function produces same result as cv::warpPolar(src, dst, src.size(), center, maxRadius, flags+WARP_POLAR_LOG); Transform the source image using the following transformation (See REF: polar_remaps_reference_image "Polar remaps reference image d)"): \(\begin{array}{l} dst( \rho , \phi ) = src(x,y) \\ dst.size() \leftarrow src.size() \end{array}\) where \(\begin{array}{l} I = (dx,dy) = (x - center.x,y - center.y) \\ \rho = M \cdot log_e(\texttt{magnitude} (I)) ,\\ \phi = Kangle \cdot \texttt{angle} (I) \\ \end{array}\) and \(\begin{array}{l} M = src.cols / log_e(maxRadius) \\ Kangle = src.rows / 2\Pi \\ \end{array}\) The function emulates the human "foveal" vision and can be used for fast scale and rotation-invariant template matching, for object tracking and so forth.
    static double
    Imgproc.matchShapes(Mat contour1, Mat contour2, int method, double parameter)
    Compares two shapes.
    static void
    Imgproc.matchTemplate(Mat image, Mat templ, Mat result, int method)
    Compares a template against overlapped image regions.
    static void
    Imgproc.matchTemplate(Mat image, Mat templ, Mat result, int method, Mat mask)
    Compares a template against overlapped image regions.
    static void
    Imgproc.medianBlur(Mat src, Mat dst, int ksize)
    Blurs an image using the median filter.
    static double
    Imgproc.minEnclosingTriangle(Mat points, Mat triangle)
    Finds a triangle of minimum area enclosing a 2D point set and returns its area.
    static Moments
    Imgproc.moments(Mat array)
    Calculates all of the moments up to the third order of a polygon or rasterized shape.
    static Moments
    Imgproc.moments(Mat array, boolean binaryImage)
    Calculates all of the moments up to the third order of a polygon or rasterized shape.
    static void
    Imgproc.morphologyEx(Mat src, Mat dst, int op, Mat kernel)
    Performs advanced morphological transformations.
    static void
    Imgproc.morphologyEx(Mat src, Mat dst, int op, Mat kernel, Point anchor)
    Performs advanced morphological transformations.
    static void
    Imgproc.morphologyEx(Mat src, Mat dst, int op, Mat kernel, Point anchor, int iterations)
    Performs advanced morphological transformations.
    static void
    Imgproc.morphologyEx(Mat src, Mat dst, int op, Mat kernel, Point anchor, int iterations, int borderType)
    Performs advanced morphological transformations.
    static void
    Imgproc.morphologyEx(Mat src, Mat dst, int op, Mat kernel, Point anchor, int iterations, int borderType, Scalar borderValue)
    Performs advanced morphological transformations.
    static Point
    Imgproc.phaseCorrelate(Mat src1, Mat src2)
    The function is used to detect translational shifts that occur between two images.
    static Point
    Imgproc.phaseCorrelate(Mat src1, Mat src2, Mat window)
    The function is used to detect translational shifts that occur between two images.
    static Point
    Imgproc.phaseCorrelate(Mat src1, Mat src2, Mat window, double[] response)
    The function is used to detect translational shifts that occur between two images.
    static void
    Imgproc.polylines(Mat img, List<MatOfPoint> pts, boolean isClosed, Scalar color)
    Draws several polygonal curves.
    static void
    Imgproc.polylines(Mat img, List<MatOfPoint> pts, boolean isClosed, Scalar color, int thickness)
    Draws several polygonal curves.
    static void
    Imgproc.polylines(Mat img, List<MatOfPoint> pts, boolean isClosed, Scalar color, int thickness, int lineType)
    Draws several polygonal curves.
    static void
    Imgproc.polylines(Mat img, List<MatOfPoint> pts, boolean isClosed, Scalar color, int thickness, int lineType, int shift)
    Draws several polygonal curves.
    static void
    Imgproc.preCornerDetect(Mat src, Mat dst, int ksize)
    Calculates a feature map for corner detection.
    static void
    Imgproc.preCornerDetect(Mat src, Mat dst, int ksize, int borderType)
    Calculates a feature map for corner detection.
    static void
    Imgproc.putText(Mat img, String text, Point org, int fontFace, double fontScale, Scalar color)
    Draws a text string.
    static void
    Imgproc.putText(Mat img, String text, Point org, int fontFace, double fontScale, Scalar color, int thickness)
    Draws a text string.
    static void
    Imgproc.putText(Mat img, String text, Point org, int fontFace, double fontScale, Scalar color, int thickness, int lineType)
    Draws a text string.
    static void
    Imgproc.putText(Mat img, String text, Point org, int fontFace, double fontScale, Scalar color, int thickness, int lineType, boolean bottomLeftOrigin)
    Draws a text string.
    static void
    Imgproc.pyrDown(Mat src, Mat dst)
    Blurs an image and downsamples it.
    static void
    Imgproc.pyrDown(Mat src, Mat dst, Size dstsize)
    Blurs an image and downsamples it.
    static void
    Imgproc.pyrDown(Mat src, Mat dst, Size dstsize, int borderType)
    Blurs an image and downsamples it.
    static void
    Imgproc.pyrMeanShiftFiltering(Mat src, Mat dst, double sp, double sr)
    Performs initial step of meanshift segmentation of an image.
    static void
    Imgproc.pyrMeanShiftFiltering(Mat src, Mat dst, double sp, double sr, int maxLevel)
    Performs initial step of meanshift segmentation of an image.
    static void
    Imgproc.pyrMeanShiftFiltering(Mat src, Mat dst, double sp, double sr, int maxLevel, TermCriteria termcrit)
    Performs initial step of meanshift segmentation of an image.
    static void
    Imgproc.pyrUp(Mat src, Mat dst)
    Upsamples an image and then blurs it.
    static void
    Imgproc.pyrUp(Mat src, Mat dst, Size dstsize)
    Upsamples an image and then blurs it.
    static void
    Imgproc.pyrUp(Mat src, Mat dst, Size dstsize, int borderType)
    Upsamples an image and then blurs it.
    static void
    Imgproc.rectangle(Mat img, Point pt1, Point pt2, Scalar color)
    Draws a simple, thick, or filled up-right rectangle.
    static void
    Imgproc.rectangle(Mat img, Point pt1, Point pt2, Scalar color, int thickness)
    Draws a simple, thick, or filled up-right rectangle.
    static void
    Imgproc.rectangle(Mat img, Point pt1, Point pt2, Scalar color, int thickness, int lineType)
    Draws a simple, thick, or filled up-right rectangle.
    static void
    Imgproc.rectangle(Mat img, Point pt1, Point pt2, Scalar color, int thickness, int lineType, int shift)
    Draws a simple, thick, or filled up-right rectangle.
    static void
    Imgproc.rectangle(Mat img, Rect rec, Scalar color)
    use rec parameter as alternative specification of the drawn rectangle: `r.tl() and r.br()-Point(1,1)` are opposite corners
    static void
    Imgproc.rectangle(Mat img, Rect rec, Scalar color, int thickness)
    use rec parameter as alternative specification of the drawn rectangle: `r.tl() and r.br()-Point(1,1)` are opposite corners
    static void
    Imgproc.rectangle(Mat img, Rect rec, Scalar color, int thickness, int lineType)
    use rec parameter as alternative specification of the drawn rectangle: `r.tl() and r.br()-Point(1,1)` are opposite corners
    static void
    Imgproc.rectangle(Mat img, Rect rec, Scalar color, int thickness, int lineType, int shift)
    use rec parameter as alternative specification of the drawn rectangle: `r.tl() and r.br()-Point(1,1)` are opposite corners
    static void
    Imgproc.remap(Mat src, Mat dst, Mat map1, Mat map2, int interpolation)
    Applies a generic geometrical transformation to an image.
    static void
    Imgproc.remap(Mat src, Mat dst, Mat map1, Mat map2, int interpolation, int borderMode)
    Applies a generic geometrical transformation to an image.
    static void
    Imgproc.remap(Mat src, Mat dst, Mat map1, Mat map2, int interpolation, int borderMode, Scalar borderValue)
    Applies a generic geometrical transformation to an image.
    static void
    Imgproc.resize(Mat src, Mat dst, Size dsize)
    Resizes an image.
    static void
    Imgproc.resize(Mat src, Mat dst, Size dsize, double fx)
    Resizes an image.
    static void
    Imgproc.resize(Mat src, Mat dst, Size dsize, double fx, double fy)
    Resizes an image.
    static void
    Imgproc.resize(Mat src, Mat dst, Size dsize, double fx, double fy, int interpolation)
    Resizes an image.
    static int
    Imgproc.rotatedRectangleIntersection(RotatedRect rect1, RotatedRect rect2, Mat intersectingRegion)
    Finds out if there is any intersection between two rotated rectangles.
    static void
    Imgproc.Scharr(Mat src, Mat dst, int ddepth, int dx, int dy)
    Calculates the first x- or y- image derivative using Scharr operator.
    static void
    Imgproc.Scharr(Mat src, Mat dst, int ddepth, int dx, int dy, double scale)
    Calculates the first x- or y- image derivative using Scharr operator.
    static void
    Imgproc.Scharr(Mat src, Mat dst, int ddepth, int dx, int dy, double scale, double delta)
    Calculates the first x- or y- image derivative using Scharr operator.
    static void
    Imgproc.Scharr(Mat src, Mat dst, int ddepth, int dx, int dy, double scale, double delta, int borderType)
    Calculates the first x- or y- image derivative using Scharr operator.
    static void
    Imgproc.sepFilter2D(Mat src, Mat dst, int ddepth, Mat kernelX, Mat kernelY)
    Applies a separable linear filter to an image.
    static void
    Imgproc.sepFilter2D(Mat src, Mat dst, int ddepth, Mat kernelX, Mat kernelY, Point anchor)
    Applies a separable linear filter to an image.
    static void
    Imgproc.sepFilter2D(Mat src, Mat dst, int ddepth, Mat kernelX, Mat kernelY, Point anchor, double delta)
    Applies a separable linear filter to an image.
    static void
    Imgproc.sepFilter2D(Mat src, Mat dst, int ddepth, Mat kernelX, Mat kernelY, Point anchor, double delta, int borderType)
    Applies a separable linear filter to an image.
    void
    GeneralizedHough.setTemplate(Mat templ)
     
    void
    GeneralizedHough.setTemplate(Mat edges, Mat dx, Mat dy)
     
    void
    GeneralizedHough.setTemplate(Mat edges, Mat dx, Mat dy, Point templCenter)
     
    void
    GeneralizedHough.setTemplate(Mat templ, Point templCenter)
     
    static void
    Imgproc.Sobel(Mat src, Mat dst, int ddepth, int dx, int dy)
    Calculates the first, second, third, or mixed image derivatives using an extended Sobel operator.
    static void
    Imgproc.Sobel(Mat src, Mat dst, int ddepth, int dx, int dy, int ksize)
    Calculates the first, second, third, or mixed image derivatives using an extended Sobel operator.
    static void
    Imgproc.Sobel(Mat src, Mat dst, int ddepth, int dx, int dy, int ksize, double scale)
    Calculates the first, second, third, or mixed image derivatives using an extended Sobel operator.
    static void
    Imgproc.Sobel(Mat src, Mat dst, int ddepth, int dx, int dy, int ksize, double scale, double delta)
    Calculates the first, second, third, or mixed image derivatives using an extended Sobel operator.
    static void
    Imgproc.Sobel(Mat src, Mat dst, int ddepth, int dx, int dy, int ksize, double scale, double delta, int borderType)
    Calculates the first, second, third, or mixed image derivatives using an extended Sobel operator.
    static void
    Imgproc.spatialGradient(Mat src, Mat dx, Mat dy)
    Calculates the first order image derivative in both x and y using a Sobel operator Equivalent to calling: Sobel( src, dx, CV_16SC1, 1, 0, 3 ); Sobel( src, dy, CV_16SC1, 0, 1, 3 );
    static void
    Imgproc.spatialGradient(Mat src, Mat dx, Mat dy, int ksize)
    Calculates the first order image derivative in both x and y using a Sobel operator Equivalent to calling: Sobel( src, dx, CV_16SC1, 1, 0, 3 ); Sobel( src, dy, CV_16SC1, 0, 1, 3 );
    static void
    Imgproc.spatialGradient(Mat src, Mat dx, Mat dy, int ksize, int borderType)
    Calculates the first order image derivative in both x and y using a Sobel operator Equivalent to calling: Sobel( src, dx, CV_16SC1, 1, 0, 3 ); Sobel( src, dy, CV_16SC1, 0, 1, 3 );
    static void
    Imgproc.sqrBoxFilter(Mat src, Mat dst, int ddepth, Size ksize)
    Calculates the normalized sum of squares of the pixel values overlapping the filter.
    static void
    Imgproc.sqrBoxFilter(Mat src, Mat dst, int ddepth, Size ksize, Point anchor)
    Calculates the normalized sum of squares of the pixel values overlapping the filter.
    static void
    Imgproc.sqrBoxFilter(Mat src, Mat dst, int ddepth, Size ksize, Point anchor, boolean normalize)
    Calculates the normalized sum of squares of the pixel values overlapping the filter.
    static void
    Imgproc.sqrBoxFilter(Mat src, Mat dst, int ddepth, Size ksize, Point anchor, boolean normalize, int borderType)
    Calculates the normalized sum of squares of the pixel values overlapping the filter.
    static void
    Imgproc.stackBlur(Mat src, Mat dst, Size ksize)
    Blurs an image using the stackBlur.
    static double
    Imgproc.threshold(Mat src, Mat dst, double thresh, double maxval, int type)
    Applies a fixed-level threshold to each array element.
    static void
    Imgproc.warpAffine(Mat src, Mat dst, Mat M, Size dsize)
    Applies an affine transformation to an image.
    static void
    Imgproc.warpAffine(Mat src, Mat dst, Mat M, Size dsize, int flags)
    Applies an affine transformation to an image.
    static void
    Imgproc.warpAffine(Mat src, Mat dst, Mat M, Size dsize, int flags, int borderMode)
    Applies an affine transformation to an image.
    static void
    Imgproc.warpAffine(Mat src, Mat dst, Mat M, Size dsize, int flags, int borderMode, Scalar borderValue)
    Applies an affine transformation to an image.
    static void
    Imgproc.warpPerspective(Mat src, Mat dst, Mat M, Size dsize)
    Applies a perspective transformation to an image.
    static void
    Imgproc.warpPerspective(Mat src, Mat dst, Mat M, Size dsize, int flags)
    Applies a perspective transformation to an image.
    static void
    Imgproc.warpPerspective(Mat src, Mat dst, Mat M, Size dsize, int flags, int borderMode)
    Applies a perspective transformation to an image.
    static void
    Imgproc.warpPerspective(Mat src, Mat dst, Mat M, Size dsize, int flags, int borderMode, Scalar borderValue)
    Applies a perspective transformation to an image.
    static void
    Imgproc.warpPolar(Mat src, Mat dst, Size dsize, Point center, double maxRadius, int flags)
    Remaps an image to polar or semilog-polar coordinates space polar_remaps_reference_image !
    static void
    Imgproc.watershed(Mat image, Mat markers)
    Performs a marker-based image segmentation using the watershed algorithm.
    Method parameters in org.opencv.imgproc with type arguments of type Mat
    Modifier and Type
    Method
    Description
    static void
    Imgproc.calcBackProject(List<Mat> images, MatOfInt channels, Mat hist, Mat dst, MatOfFloat ranges, double scale)
     
    static void
    Imgproc.calcHist(List<Mat> images, MatOfInt channels, Mat mask, Mat hist, MatOfInt histSize, MatOfFloat ranges)
    this variant supports only uniform histograms.
    static void
    Imgproc.calcHist(List<Mat> images, MatOfInt channels, Mat mask, Mat hist, MatOfInt histSize, MatOfFloat ranges, boolean accumulate)
    this variant supports only uniform histograms.
  • Uses of Mat in org.opencv.utils

    Methods in org.opencv.utils that return Mat
    Modifier and Type
    Method
    Description
    static Mat
    Converters.vector_char_to_Mat(List<Byte> bs)
     
    static Mat
    Converters.vector_DMatch_to_Mat(List<DMatch> matches)
     
    static Mat
     
    static Mat
    Converters.vector_float_to_Mat(List<Float> fs)
     
    static Mat
    Converters.vector_int_to_Mat(List<Integer> is)
     
    static Mat
     
    static Mat
    Converters.vector_Mat_to_Mat(List<Mat> mats)
     
    static Mat
    Converters.vector_Point_to_Mat(List<Point> pts)
     
    static Mat
    Converters.vector_Point_to_Mat(List<Point> pts, int typeDepth)
     
    static Mat
    Converters.vector_Point2d_to_Mat(List<Point> pts)
     
    static Mat
    Converters.vector_Point2f_to_Mat(List<Point> pts)
     
    static Mat
    Converters.vector_Point3_to_Mat(List<Point3> pts, int typeDepth)
     
    static Mat
     
    static Mat
     
    static Mat
     
    static Mat
    Converters.vector_Rect_to_Mat(List<Rect> rs)
     
    static Mat
     
    static Mat
     
    static Mat
    Converters.vector_uchar_to_Mat(List<Byte> bs)
     
    static Mat
    Converters.vector_vector_char_to_Mat(List<MatOfByte> lvb, List<Mat> mats)
     
    static Mat
     
    static Mat
     
    static Mat
     
    static Mat
     
    static Mat
     
    Methods in org.opencv.utils with parameters of type Mat
    Modifier and Type
    Method
    Description
    static void
    Converters.Mat_to_vector_char(Mat m, List<Byte> bs)
     
    static void
    Converters.Mat_to_vector_DMatch(Mat m, List<DMatch> matches)
     
    static void
    Converters.Mat_to_vector_double(Mat m, List<Double> ds)
     
    static void
    Converters.Mat_to_vector_float(Mat m, List<Float> fs)
     
    static void
    Converters.Mat_to_vector_int(Mat m, List<Integer> is)
     
    static void
    Converters.Mat_to_vector_KeyPoint(Mat m, List<KeyPoint> kps)
     
    static void
    Converters.Mat_to_vector_Mat(Mat m, List<Mat> mats)
     
    static void
    Converters.Mat_to_vector_Point(Mat m, List<Point> pts)
     
    static void
    Converters.Mat_to_vector_Point2d(Mat m, List<Point> pts)
     
    static void
    Converters.Mat_to_vector_Point2f(Mat m, List<Point> pts)
     
    static void
    Converters.Mat_to_vector_Point3(Mat m, List<Point3> pts)
     
    static void
    Converters.Mat_to_vector_Point3d(Mat m, List<Point3> pts)
     
    static void
    Converters.Mat_to_vector_Point3f(Mat m, List<Point3> pts)
     
    static void
    Converters.Mat_to_vector_Point3i(Mat m, List<Point3> pts)
     
    static void
    Converters.Mat_to_vector_Rect(Mat m, List<Rect> rs)
     
    static void
    Converters.Mat_to_vector_Rect2d(Mat m, List<Rect2d> rs)
     
    static void
     
    static void
    Converters.Mat_to_vector_uchar(Mat m, List<Byte> us)
     
    static void
    Converters.Mat_to_vector_vector_char(Mat m, List<List<Byte>> llb)
     
    static void
     
    static void
     
    static void
     
    static void
     
    static void
     
    Method parameters in org.opencv.utils with type arguments of type Mat
    Modifier and Type
    Method
    Description
    static void
    Converters.Mat_to_vector_Mat(Mat m, List<Mat> mats)
     
    static Mat
    Converters.vector_Mat_to_Mat(List<Mat> mats)