Class Core


  • public class Core
    extends Object
    • Constructor Detail

      • Core

        public Core()
    • Method Detail

      • mean

        public static Scalar mean​(Mat src)
      • sumElems

        public static Scalar sumElems​(Mat src)
      • trace

        public static Scalar trace​(Mat mtx)
      • getBuildInformation

        public static String getBuildInformation()
      • getHardwareFeatureName

        public static String getHardwareFeatureName​(int feature)
      • getVersionString

        public static String getVersionString()
      • getIppVersion

        public static String getIppVersion()
      • findFile

        public static String findFile​(String relative_path,
                                      boolean required,
                                      boolean silentMode)
      • findFile

        public static String findFile​(String relative_path,
                                      boolean required)
      • findFile

        public static String findFile​(String relative_path)
      • findFileOrKeep

        public static String findFileOrKeep​(String relative_path,
                                            boolean silentMode)
      • findFileOrKeep

        public static String findFileOrKeep​(String relative_path)
      • checkRange

        public static boolean checkRange​(Mat a,
                                         boolean quiet,
                                         double minVal,
                                         double maxVal)
      • checkRange

        public static boolean checkRange​(Mat a,
                                         boolean quiet,
                                         double minVal)
      • checkRange

        public static boolean checkRange​(Mat a,
                                         boolean quiet)
      • checkRange

        public static boolean checkRange​(Mat a)
      • eigen

        public static boolean eigen​(Mat src,
                                    Mat eigenvalues,
                                    Mat eigenvectors)
      • eigen

        public static boolean eigen​(Mat src,
                                    Mat eigenvalues)
      • solve

        public static boolean solve​(Mat src1,
                                    Mat src2,
                                    Mat dst,
                                    int flags)
      • solve

        public static boolean solve​(Mat src1,
                                    Mat src2,
                                    Mat dst)
      • useIPP

        public static boolean useIPP()
      • useIPP_NE

        public static boolean useIPP_NE()
      • useIPP_NotExact

        public static boolean useIPP_NotExact()
      • Mahalanobis

        public static double Mahalanobis​(Mat v1,
                                         Mat v2,
                                         Mat icovar)
      • PSNR

        public static double PSNR​(Mat src1,
                                  Mat src2)
      • determinant

        public static double determinant​(Mat mtx)
      • getTickFrequency

        public static double getTickFrequency()
      • invert

        public static double invert​(Mat src,
                                    Mat dst,
                                    int flags)
      • invert

        public static double invert​(Mat src,
                                    Mat dst)
      • kmeans

        public static double kmeans​(Mat data,
                                    int K,
                                    Mat bestLabels,
                                    TermCriteria criteria,
                                    int attempts,
                                    int flags,
                                    Mat centers)
      • kmeans

        public static double kmeans​(Mat data,
                                    int K,
                                    Mat bestLabels,
                                    TermCriteria criteria,
                                    int attempts,
                                    int flags)
      • norm

        public static double norm​(Mat src1,
                                  Mat src2,
                                  int normType,
                                  Mat mask)
      • norm

        public static double norm​(Mat src1,
                                  Mat src2,
                                  int normType)
      • norm

        public static double norm​(Mat src1,
                                  Mat src2)
      • norm

        public static double norm​(Mat src1,
                                  int normType,
                                  Mat mask)
      • norm

        public static double norm​(Mat src1,
                                  int normType)
      • norm

        public static double norm​(Mat src1)
      • solvePoly

        public static double solvePoly​(Mat coeffs,
                                       Mat roots,
                                       int maxIters)
      • solvePoly

        public static double solvePoly​(Mat coeffs,
                                       Mat roots)
      • cubeRoot

        public static float cubeRoot​(float val)
      • fastAtan2

        public static float fastAtan2​(float y,
                                      float x)
      • borderInterpolate

        public static int borderInterpolate​(int p,
                                            int len,
                                            int borderType)
      • countNonZero

        public static int countNonZero​(Mat src)
      • getNumThreads

        public static int getNumThreads()
      • getNumberOfCPUs

        public static int getNumberOfCPUs()
      • getOptimalDFTSize

        public static int getOptimalDFTSize​(int vecsize)
      • getThreadNum

        @Deprecated
        public static int getThreadNum()
        Deprecated.
      • getVersionMajor

        public static int getVersionMajor()
      • getVersionMinor

        public static int getVersionMinor()
      • getVersionRevision

        public static int getVersionRevision()
      • solveCubic

        public static int solveCubic​(Mat coeffs,
                                     Mat roots)
      • getCPUTickCount

        public static long getCPUTickCount()
      • getTickCount

        public static long getTickCount()
      • LUT

        public static void LUT​(Mat src,
                               Mat lut,
                               Mat dst)
      • PCABackProject

        public static void PCABackProject​(Mat data,
                                          Mat mean,
                                          Mat eigenvectors,
                                          Mat result)
      • PCACompute2

        public static void PCACompute2​(Mat data,
                                       Mat mean,
                                       Mat eigenvectors,
                                       Mat eigenvalues,
                                       double retainedVariance)
      • PCACompute2

        public static void PCACompute2​(Mat data,
                                       Mat mean,
                                       Mat eigenvectors,
                                       Mat eigenvalues,
                                       int maxComponents)
      • PCACompute2

        public static void PCACompute2​(Mat data,
                                       Mat mean,
                                       Mat eigenvectors,
                                       Mat eigenvalues)
      • PCACompute

        public static void PCACompute​(Mat data,
                                      Mat mean,
                                      Mat eigenvectors,
                                      double retainedVariance)
      • PCACompute

        public static void PCACompute​(Mat data,
                                      Mat mean,
                                      Mat eigenvectors,
                                      int maxComponents)
      • PCACompute

        public static void PCACompute​(Mat data,
                                      Mat mean,
                                      Mat eigenvectors)
      • PCAProject

        public static void PCAProject​(Mat data,
                                      Mat mean,
                                      Mat eigenvectors,
                                      Mat result)
      • SVBackSubst

        public static void SVBackSubst​(Mat w,
                                       Mat u,
                                       Mat vt,
                                       Mat rhs,
                                       Mat dst)
      • SVDecomp

        public static void SVDecomp​(Mat src,
                                    Mat w,
                                    Mat u,
                                    Mat vt,
                                    int flags)
      • SVDecomp

        public static void SVDecomp​(Mat src,
                                    Mat w,
                                    Mat u,
                                    Mat vt)
      • absdiff

        public static void absdiff​(Mat src1,
                                   Mat src2,
                                   Mat dst)
      • absdiff

        public static void absdiff​(Mat src1,
                                   Scalar src2,
                                   Mat dst)
      • add

        public static void add​(Mat src1,
                               Mat src2,
                               Mat dst,
                               Mat mask,
                               int dtype)
      • add

        public static void add​(Mat src1,
                               Mat src2,
                               Mat dst,
                               Mat mask)
      • add

        public static void add​(Mat src1,
                               Mat src2,
                               Mat dst)
      • add

        public static void add​(Mat src1,
                               Scalar src2,
                               Mat dst,
                               Mat mask,
                               int dtype)
      • add

        public static void add​(Mat src1,
                               Scalar src2,
                               Mat dst,
                               Mat mask)
      • add

        public static void add​(Mat src1,
                               Scalar src2,
                               Mat dst)
      • addWeighted

        public static void addWeighted​(Mat src1,
                                       double alpha,
                                       Mat src2,
                                       double beta,
                                       double gamma,
                                       Mat dst,
                                       int dtype)
      • addWeighted

        public static void addWeighted​(Mat src1,
                                       double alpha,
                                       Mat src2,
                                       double beta,
                                       double gamma,
                                       Mat dst)
      • batchDistance

        public static void batchDistance​(Mat src1,
                                         Mat src2,
                                         Mat dist,
                                         int dtype,
                                         Mat nidx,
                                         int normType,
                                         int K,
                                         Mat mask,
                                         int update,
                                         boolean crosscheck)
      • batchDistance

        public static void batchDistance​(Mat src1,
                                         Mat src2,
                                         Mat dist,
                                         int dtype,
                                         Mat nidx,
                                         int normType,
                                         int K,
                                         Mat mask,
                                         int update)
      • batchDistance

        public static void batchDistance​(Mat src1,
                                         Mat src2,
                                         Mat dist,
                                         int dtype,
                                         Mat nidx,
                                         int normType,
                                         int K,
                                         Mat mask)
      • batchDistance

        public static void batchDistance​(Mat src1,
                                         Mat src2,
                                         Mat dist,
                                         int dtype,
                                         Mat nidx,
                                         int normType,
                                         int K)
      • batchDistance

        public static void batchDistance​(Mat src1,
                                         Mat src2,
                                         Mat dist,
                                         int dtype,
                                         Mat nidx,
                                         int normType)
      • batchDistance

        public static void batchDistance​(Mat src1,
                                         Mat src2,
                                         Mat dist,
                                         int dtype,
                                         Mat nidx)
      • bitwise_and

        public static void bitwise_and​(Mat src1,
                                       Mat src2,
                                       Mat dst,
                                       Mat mask)
      • bitwise_and

        public static void bitwise_and​(Mat src1,
                                       Mat src2,
                                       Mat dst)
      • bitwise_not

        public static void bitwise_not​(Mat src,
                                       Mat dst,
                                       Mat mask)
      • bitwise_not

        public static void bitwise_not​(Mat src,
                                       Mat dst)
      • bitwise_or

        public static void bitwise_or​(Mat src1,
                                      Mat src2,
                                      Mat dst,
                                      Mat mask)
      • bitwise_or

        public static void bitwise_or​(Mat src1,
                                      Mat src2,
                                      Mat dst)
      • bitwise_xor

        public static void bitwise_xor​(Mat src1,
                                       Mat src2,
                                       Mat dst,
                                       Mat mask)
      • bitwise_xor

        public static void bitwise_xor​(Mat src1,
                                       Mat src2,
                                       Mat dst)
      • calcCovarMatrix

        public static void calcCovarMatrix​(Mat samples,
                                           Mat covar,
                                           Mat mean,
                                           int flags,
                                           int ctype)
      • calcCovarMatrix

        public static void calcCovarMatrix​(Mat samples,
                                           Mat covar,
                                           Mat mean,
                                           int flags)
      • cartToPolar

        public static void cartToPolar​(Mat x,
                                       Mat y,
                                       Mat magnitude,
                                       Mat angle,
                                       boolean angleInDegrees)
      • cartToPolar

        public static void cartToPolar​(Mat x,
                                       Mat y,
                                       Mat magnitude,
                                       Mat angle)
      • compare

        public static void compare​(Mat src1,
                                   Mat src2,
                                   Mat dst,
                                   int cmpop)
      • compare

        public static void compare​(Mat src1,
                                   Scalar src2,
                                   Mat dst,
                                   int cmpop)
      • completeSymm

        public static void completeSymm​(Mat m,
                                        boolean lowerToUpper)
      • completeSymm

        public static void completeSymm​(Mat m)
      • convertFp16

        public static void convertFp16​(Mat src,
                                       Mat dst)
      • convertScaleAbs

        public static void convertScaleAbs​(Mat src,
                                           Mat dst,
                                           double alpha,
                                           double beta)
      • convertScaleAbs

        public static void convertScaleAbs​(Mat src,
                                           Mat dst,
                                           double alpha)
      • convertScaleAbs

        public static void convertScaleAbs​(Mat src,
                                           Mat dst)
      • copyMakeBorder

        public static void copyMakeBorder​(Mat src,
                                          Mat dst,
                                          int top,
                                          int bottom,
                                          int left,
                                          int right,
                                          int borderType,
                                          Scalar value)
      • copyMakeBorder

        public static void copyMakeBorder​(Mat src,
                                          Mat dst,
                                          int top,
                                          int bottom,
                                          int left,
                                          int right,
                                          int borderType)
      • dct

        public static void dct​(Mat src,
                               Mat dst,
                               int flags)
      • dct

        public static void dct​(Mat src,
                               Mat dst)
      • dft

        public static void dft​(Mat src,
                               Mat dst,
                               int flags,
                               int nonzeroRows)
      • dft

        public static void dft​(Mat src,
                               Mat dst,
                               int flags)
      • dft

        public static void dft​(Mat src,
                               Mat dst)
      • divide

        public static void divide​(Mat src1,
                                  Mat src2,
                                  Mat dst,
                                  double scale,
                                  int dtype)
      • divide

        public static void divide​(Mat src1,
                                  Mat src2,
                                  Mat dst,
                                  double scale)
      • divide

        public static void divide​(Mat src1,
                                  Mat src2,
                                  Mat dst)
      • divide

        public static void divide​(Mat src1,
                                  Scalar src2,
                                  Mat dst,
                                  double scale,
                                  int dtype)
      • divide

        public static void divide​(Mat src1,
                                  Scalar src2,
                                  Mat dst,
                                  double scale)
      • divide

        public static void divide​(Mat src1,
                                  Scalar src2,
                                  Mat dst)
      • divide

        public static void divide​(double scale,
                                  Mat src2,
                                  Mat dst,
                                  int dtype)
      • divide

        public static void divide​(double scale,
                                  Mat src2,
                                  Mat dst)
      • eigenNonSymmetric

        public static void eigenNonSymmetric​(Mat src,
                                             Mat eigenvalues,
                                             Mat eigenvectors)
      • exp

        public static void exp​(Mat src,
                               Mat dst)
      • extractChannel

        public static void extractChannel​(Mat src,
                                          Mat dst,
                                          int coi)
      • findNonZero

        public static void findNonZero​(Mat src,
                                       Mat idx)
      • flip

        public static void flip​(Mat src,
                                Mat dst,
                                int flipCode)
      • gemm

        public static void gemm​(Mat src1,
                                Mat src2,
                                double alpha,
                                Mat src3,
                                double beta,
                                Mat dst,
                                int flags)
      • gemm

        public static void gemm​(Mat src1,
                                Mat src2,
                                double alpha,
                                Mat src3,
                                double beta,
                                Mat dst)
      • hconcat

        public static void hconcat​(List<Mat> src,
                                   Mat dst)
      • idct

        public static void idct​(Mat src,
                                Mat dst,
                                int flags)
      • idct

        public static void idct​(Mat src,
                                Mat dst)
      • idft

        public static void idft​(Mat src,
                                Mat dst,
                                int flags,
                                int nonzeroRows)
      • idft

        public static void idft​(Mat src,
                                Mat dst,
                                int flags)
      • idft

        public static void idft​(Mat src,
                                Mat dst)
      • inRange

        public static void inRange​(Mat src,
                                   Scalar lowerb,
                                   Scalar upperb,
                                   Mat dst)
      • insertChannel

        public static void insertChannel​(Mat src,
                                         Mat dst,
                                         int coi)
      • log

        public static void log​(Mat src,
                               Mat dst)
      • magnitude

        public static void magnitude​(Mat x,
                                     Mat y,
                                     Mat magnitude)
      • max

        public static void max​(Mat src1,
                               Mat src2,
                               Mat dst)
      • max

        public static void max​(Mat src1,
                               Scalar src2,
                               Mat dst)
      • merge

        public static void merge​(List<Mat> mv,
                                 Mat dst)
      • min

        public static void min​(Mat src1,
                               Mat src2,
                               Mat dst)
      • min

        public static void min​(Mat src1,
                               Scalar src2,
                               Mat dst)
      • mulSpectrums

        public static void mulSpectrums​(Mat a,
                                        Mat b,
                                        Mat c,
                                        int flags,
                                        boolean conjB)
      • mulSpectrums

        public static void mulSpectrums​(Mat a,
                                        Mat b,
                                        Mat c,
                                        int flags)
      • mulTransposed

        public static void mulTransposed​(Mat src,
                                         Mat dst,
                                         boolean aTa,
                                         Mat delta,
                                         double scale,
                                         int dtype)
      • mulTransposed

        public static void mulTransposed​(Mat src,
                                         Mat dst,
                                         boolean aTa,
                                         Mat delta,
                                         double scale)
      • mulTransposed

        public static void mulTransposed​(Mat src,
                                         Mat dst,
                                         boolean aTa,
                                         Mat delta)
      • mulTransposed

        public static void mulTransposed​(Mat src,
                                         Mat dst,
                                         boolean aTa)
      • multiply

        public static void multiply​(Mat src1,
                                    Mat src2,
                                    Mat dst,
                                    double scale,
                                    int dtype)
      • multiply

        public static void multiply​(Mat src1,
                                    Mat src2,
                                    Mat dst,
                                    double scale)
      • multiply

        public static void multiply​(Mat src1,
                                    Mat src2,
                                    Mat dst)
      • multiply

        public static void multiply​(Mat src1,
                                    Scalar src2,
                                    Mat dst,
                                    double scale,
                                    int dtype)
      • multiply

        public static void multiply​(Mat src1,
                                    Scalar src2,
                                    Mat dst,
                                    double scale)
      • multiply

        public static void multiply​(Mat src1,
                                    Scalar src2,
                                    Mat dst)
      • normalize

        public static void normalize​(Mat src,
                                     Mat dst,
                                     double alpha,
                                     double beta,
                                     int norm_type,
                                     int dtype,
                                     Mat mask)
      • normalize

        public static void normalize​(Mat src,
                                     Mat dst,
                                     double alpha,
                                     double beta,
                                     int norm_type,
                                     int dtype)
      • normalize

        public static void normalize​(Mat src,
                                     Mat dst,
                                     double alpha,
                                     double beta,
                                     int norm_type)
      • normalize

        public static void normalize​(Mat src,
                                     Mat dst,
                                     double alpha,
                                     double beta)
      • normalize

        public static void normalize​(Mat src,
                                     Mat dst,
                                     double alpha)
      • normalize

        public static void normalize​(Mat src,
                                     Mat dst)
      • patchNaNs

        public static void patchNaNs​(Mat a,
                                     double val)
      • patchNaNs

        public static void patchNaNs​(Mat a)
      • perspectiveTransform

        public static void perspectiveTransform​(Mat src,
                                                Mat dst,
                                                Mat m)
      • phase

        public static void phase​(Mat x,
                                 Mat y,
                                 Mat angle,
                                 boolean angleInDegrees)
      • phase

        public static void phase​(Mat x,
                                 Mat y,
                                 Mat angle)
      • polarToCart

        public static void polarToCart​(Mat magnitude,
                                       Mat angle,
                                       Mat x,
                                       Mat y,
                                       boolean angleInDegrees)
      • polarToCart

        public static void polarToCart​(Mat magnitude,
                                       Mat angle,
                                       Mat x,
                                       Mat y)
      • pow

        public static void pow​(Mat src,
                               double power,
                               Mat dst)
      • randShuffle

        public static void randShuffle​(Mat dst,
                                       double iterFactor)
      • randShuffle

        public static void randShuffle​(Mat dst)
      • randn

        public static void randn​(Mat dst,
                                 double mean,
                                 double stddev)
      • randu

        public static void randu​(Mat dst,
                                 double low,
                                 double high)
      • reduce

        public static void reduce​(Mat src,
                                  Mat dst,
                                  int dim,
                                  int rtype,
                                  int dtype)
      • reduce

        public static void reduce​(Mat src,
                                  Mat dst,
                                  int dim,
                                  int rtype)
      • repeat

        public static void repeat​(Mat src,
                                  int ny,
                                  int nx,
                                  Mat dst)
      • rotate

        public static void rotate​(Mat src,
                                  Mat dst,
                                  int rotateCode)
      • scaleAdd

        public static void scaleAdd​(Mat src1,
                                    double alpha,
                                    Mat src2,
                                    Mat dst)
      • setErrorVerbosity

        public static void setErrorVerbosity​(boolean verbose)
      • setIdentity

        public static void setIdentity​(Mat mtx,
                                       Scalar s)
      • setIdentity

        public static void setIdentity​(Mat mtx)
      • setNumThreads

        public static void setNumThreads​(int nthreads)
      • setRNGSeed

        public static void setRNGSeed​(int seed)
      • sort

        public static void sort​(Mat src,
                                Mat dst,
                                int flags)
      • sortIdx

        public static void sortIdx​(Mat src,
                                   Mat dst,
                                   int flags)
      • split

        public static void split​(Mat m,
                                 List<Mat> mv)
      • sqrt

        public static void sqrt​(Mat src,
                                Mat dst)
      • subtract

        public static void subtract​(Mat src1,
                                    Mat src2,
                                    Mat dst,
                                    Mat mask,
                                    int dtype)
      • subtract

        public static void subtract​(Mat src1,
                                    Mat src2,
                                    Mat dst,
                                    Mat mask)
      • subtract

        public static void subtract​(Mat src1,
                                    Mat src2,
                                    Mat dst)
      • subtract

        public static void subtract​(Mat src1,
                                    Scalar src2,
                                    Mat dst,
                                    Mat mask,
                                    int dtype)
      • subtract

        public static void subtract​(Mat src1,
                                    Scalar src2,
                                    Mat dst,
                                    Mat mask)
      • subtract

        public static void subtract​(Mat src1,
                                    Scalar src2,
                                    Mat dst)
      • transform

        public static void transform​(Mat src,
                                     Mat dst,
                                     Mat m)
      • transpose

        public static void transpose​(Mat src,
                                     Mat dst)
      • vconcat

        public static void vconcat​(List<Mat> src,
                                   Mat dst)
      • setUseIPP

        public static void setUseIPP​(boolean flag)
      • setUseIPP_NE

        public static void setUseIPP_NE​(boolean flag)
      • setUseIPP_NotExact

        public static void setUseIPP_NotExact​(boolean flag)
      • addSamplesDataSearchPath

        public static void addSamplesDataSearchPath​(String path)
      • addSamplesDataSearchSubDirectory

        public static void addSamplesDataSearchSubDirectory​(String subdir)