| Package | Description |
|---|---|
| org.opencv.calib3d | |
| org.opencv.contrib | |
| org.opencv.core | |
| org.opencv.features2d | |
| org.opencv.highgui | |
| org.opencv.imgproc | |
| org.opencv.ml | |
| org.opencv.objdetect | |
| org.opencv.photo | |
| org.opencv.utils | |
| org.opencv.video |
| Modifier and Type | Method and Description |
|---|---|
static Mat |
Calib3d.findFundamentalMat(MatOfPoint2f points1,
MatOfPoint2f points2)
Calculates a fundamental matrix from the corresponding points in two images.
|
static Mat |
Calib3d.findFundamentalMat(MatOfPoint2f points1,
MatOfPoint2f points2,
int method,
double param1,
double param2)
Calculates a fundamental matrix from the corresponding points in two images.
|
static Mat |
Calib3d.findFundamentalMat(MatOfPoint2f points1,
MatOfPoint2f points2,
int method,
double param1,
double param2,
Mat mask)
Calculates a fundamental matrix from the corresponding points in two images.
|
static Mat |
Calib3d.findHomography(MatOfPoint2f srcPoints,
MatOfPoint2f dstPoints)
Finds a perspective transformation between two planes.
|
static Mat |
Calib3d.findHomography(MatOfPoint2f srcPoints,
MatOfPoint2f dstPoints,
int method,
double ransacReprojThreshold)
Finds a perspective transformation between two planes.
|
static Mat |
Calib3d.findHomography(MatOfPoint2f srcPoints,
MatOfPoint2f dstPoints,
int method,
double ransacReprojThreshold,
Mat mask)
Finds a perspective transformation between two planes.
|
static Mat |
Calib3d.getOptimalNewCameraMatrix(Mat cameraMatrix,
Mat distCoeffs,
Size imageSize,
double alpha)
Returns the new camera matrix based on the free scaling parameter.
|
static Mat |
Calib3d.getOptimalNewCameraMatrix(Mat cameraMatrix,
Mat distCoeffs,
Size imageSize,
double alpha,
Size newImgSize,
Rect validPixROI,
boolean centerPrincipalPoint)
Returns the new camera matrix based on the free scaling parameter.
|
static Mat |
Calib3d.initCameraMatrix2D(List<MatOfPoint3f> objectPoints,
List<MatOfPoint2f> imagePoints,
Size imageSize)
Finds an initial camera matrix from 3D-2D point correspondences.
|
static Mat |
Calib3d.initCameraMatrix2D(List<MatOfPoint3f> objectPoints,
List<MatOfPoint2f> imagePoints,
Size imageSize,
double aspectRatio)
Finds an initial camera matrix from 3D-2D point correspondences.
|
| Modifier and Type | Method and Description |
|---|---|
static double |
Calib3d.calibrateCamera(List<Mat> objectPoints,
List<Mat> imagePoints,
Size imageSize,
Mat cameraMatrix,
Mat distCoeffs,
List<Mat> rvecs,
List<Mat> tvecs)
Finds the camera intrinsic and extrinsic parameters from several views of a
calibration pattern.
|
static double |
Calib3d.calibrateCamera(List<Mat> objectPoints,
List<Mat> imagePoints,
Size imageSize,
Mat cameraMatrix,
Mat distCoeffs,
List<Mat> rvecs,
List<Mat> tvecs,
int flags)
Finds the camera intrinsic and extrinsic parameters from several views of a
calibration pattern.
|
static double |
Calib3d.calibrateCamera(List<Mat> objectPoints,
List<Mat> imagePoints,
Size imageSize,
Mat cameraMatrix,
Mat distCoeffs,
List<Mat> rvecs,
List<Mat> tvecs,
int flags,
TermCriteria criteria)
Finds the camera intrinsic and extrinsic parameters from several views of a
calibration pattern.
|
static void |
Calib3d.calibrationMatrixValues(Mat cameraMatrix,
Size imageSize,
double apertureWidth,
double apertureHeight,
double[] fovx,
double[] fovy,
double[] focalLength,
Point principalPoint,
double[] aspectRatio)
Computes useful camera characteristics from the camera matrix.
|
static void |
Calib3d.composeRT(Mat rvec1,
Mat tvec1,
Mat rvec2,
Mat tvec2,
Mat rvec3,
Mat tvec3)
Combines two rotation-and-shift transformations.
|
static void |
Calib3d.composeRT(Mat rvec1,
Mat tvec1,
Mat rvec2,
Mat tvec2,
Mat rvec3,
Mat tvec3,
Mat dr3dr1,
Mat dr3dt1,
Mat dr3dr2,
Mat dr3dt2,
Mat dt3dr1,
Mat dt3dt1,
Mat dt3dr2,
Mat dt3dt2)
Combines two rotation-and-shift transformations.
|
void |
StereoSGBM.compute(Mat left,
Mat right,
Mat disp) |
void |
StereoBM.compute(Mat left,
Mat right,
Mat disparity)
Computes disparity using the BM algorithm for a rectified stereo pair.
|
void |
StereoBM.compute(Mat left,
Mat right,
Mat disparity,
int disptype)
Computes disparity using the BM algorithm for a rectified stereo pair.
|
static void |
Calib3d.computeCorrespondEpilines(Mat points,
int whichImage,
Mat F,
Mat lines)
For points in an image of a stereo pair, computes the corresponding epilines
in the other image.
|
static void |
Calib3d.convertPointsFromHomogeneous(Mat src,
Mat dst)
Converts points from homogeneous to Euclidean space.
|
static void |
Calib3d.convertPointsToHomogeneous(Mat src,
Mat dst)
Converts points from Euclidean to homogeneous space.
|
static void |
Calib3d.correctMatches(Mat F,
Mat points1,
Mat points2,
Mat newPoints1,
Mat newPoints2)
Refines coordinates of corresponding points.
|
static void |
Calib3d.decomposeProjectionMatrix(Mat projMatrix,
Mat cameraMatrix,
Mat rotMatrix,
Mat transVect)
Decomposes a projection matrix into a rotation matrix and a camera matrix.
|
static void |
Calib3d.decomposeProjectionMatrix(Mat projMatrix,
Mat cameraMatrix,
Mat rotMatrix,
Mat transVect,
Mat rotMatrixX,
Mat rotMatrixY,
Mat rotMatrixZ,
Mat eulerAngles)
Decomposes a projection matrix into a rotation matrix and a camera matrix.
|
static void |
Calib3d.drawChessboardCorners(Mat image,
Size patternSize,
MatOfPoint2f corners,
boolean patternWasFound)
Renders the detected chessboard corners.
|
static int |
Calib3d.estimateAffine3D(Mat src,
Mat dst,
Mat out,
Mat inliers)
Computes an optimal affine transformation between two 3D point sets.
|
static int |
Calib3d.estimateAffine3D(Mat src,
Mat dst,
Mat out,
Mat inliers,
double ransacThreshold,
double confidence)
Computes an optimal affine transformation between two 3D point sets.
|
static void |
Calib3d.filterSpeckles(Mat img,
double newVal,
int maxSpeckleSize,
double maxDiff)
Filters off small noise blobs (speckles) in the disparity map
|
static void |
Calib3d.filterSpeckles(Mat img,
double newVal,
int maxSpeckleSize,
double maxDiff,
Mat buf)
Filters off small noise blobs (speckles) in the disparity map
|
static boolean |
Calib3d.findChessboardCorners(Mat image,
Size patternSize,
MatOfPoint2f corners)
Finds the positions of internal corners of the chessboard.
|
static boolean |
Calib3d.findChessboardCorners(Mat image,
Size patternSize,
MatOfPoint2f corners,
int flags)
Finds the positions of internal corners of the chessboard.
|
static boolean |
Calib3d.findCirclesGridDefault(Mat image,
Size patternSize,
Mat centers) |
static boolean |
Calib3d.findCirclesGridDefault(Mat image,
Size patternSize,
Mat centers,
int flags) |
static Mat |
Calib3d.findFundamentalMat(MatOfPoint2f points1,
MatOfPoint2f points2,
int method,
double param1,
double param2,
Mat mask)
Calculates a fundamental matrix from the corresponding points in two images.
|
static Mat |
Calib3d.findHomography(MatOfPoint2f srcPoints,
MatOfPoint2f dstPoints,
int method,
double ransacReprojThreshold,
Mat mask)
Finds a perspective transformation between two planes.
|
static Mat |
Calib3d.getOptimalNewCameraMatrix(Mat cameraMatrix,
Mat distCoeffs,
Size imageSize,
double alpha)
Returns the new camera matrix based on the free scaling parameter.
|
static Mat |
Calib3d.getOptimalNewCameraMatrix(Mat cameraMatrix,
Mat distCoeffs,
Size imageSize,
double alpha,
Size newImgSize,
Rect validPixROI,
boolean centerPrincipalPoint)
Returns the new camera matrix based on the free scaling parameter.
|
static void |
Calib3d.matMulDeriv(Mat A,
Mat B,
Mat dABdA,
Mat dABdB)
Computes partial derivatives of the matrix product for each multiplied
matrix.
|
static void |
Calib3d.projectPoints(MatOfPoint3f objectPoints,
Mat rvec,
Mat tvec,
Mat cameraMatrix,
MatOfDouble distCoeffs,
MatOfPoint2f imagePoints)
Projects 3D points to an image plane.
|
static void |
Calib3d.projectPoints(MatOfPoint3f objectPoints,
Mat rvec,
Mat tvec,
Mat cameraMatrix,
MatOfDouble distCoeffs,
MatOfPoint2f imagePoints,
Mat jacobian,
double aspectRatio)
Projects 3D points to an image plane.
|
static float |
Calib3d.rectify3Collinear(Mat cameraMatrix1,
Mat distCoeffs1,
Mat cameraMatrix2,
Mat distCoeffs2,
Mat cameraMatrix3,
Mat distCoeffs3,
List<Mat> imgpt1,
List<Mat> imgpt3,
Size imageSize,
Mat R12,
Mat T12,
Mat R13,
Mat T13,
Mat R1,
Mat R2,
Mat R3,
Mat P1,
Mat P2,
Mat P3,
Mat Q,
double alpha,
Size newImgSize,
Rect roi1,
Rect roi2,
int flags) |
static void |
Calib3d.reprojectImageTo3D(Mat disparity,
Mat _3dImage,
Mat Q)
Reprojects a disparity image to 3D space.
|
static void |
Calib3d.reprojectImageTo3D(Mat disparity,
Mat _3dImage,
Mat Q,
boolean handleMissingValues)
Reprojects a disparity image to 3D space.
|
static void |
Calib3d.reprojectImageTo3D(Mat disparity,
Mat _3dImage,
Mat Q,
boolean handleMissingValues,
int ddepth)
Reprojects a disparity image to 3D space.
|
static void |
Calib3d.Rodrigues(Mat src,
Mat dst)
Converts a rotation matrix to a rotation vector or vice versa.
|
static void |
Calib3d.Rodrigues(Mat src,
Mat dst,
Mat jacobian)
Converts a rotation matrix to a rotation vector or vice versa.
|
static double[] |
Calib3d.RQDecomp3x3(Mat src,
Mat mtxR,
Mat mtxQ)
Computes an RQ decomposition of 3x3 matrices.
|
static double[] |
Calib3d.RQDecomp3x3(Mat src,
Mat mtxR,
Mat mtxQ,
Mat Qx,
Mat Qy,
Mat Qz)
Computes an RQ decomposition of 3x3 matrices.
|
static boolean |
Calib3d.solvePnP(MatOfPoint3f objectPoints,
MatOfPoint2f imagePoints,
Mat cameraMatrix,
MatOfDouble distCoeffs,
Mat rvec,
Mat tvec)
Finds an object pose from 3D-2D point correspondences.
|
static boolean |
Calib3d.solvePnP(MatOfPoint3f objectPoints,
MatOfPoint2f imagePoints,
Mat cameraMatrix,
MatOfDouble distCoeffs,
Mat rvec,
Mat tvec,
boolean useExtrinsicGuess,
int flags)
Finds an object pose from 3D-2D point correspondences.
|
static void |
Calib3d.solvePnPRansac(MatOfPoint3f objectPoints,
MatOfPoint2f imagePoints,
Mat cameraMatrix,
MatOfDouble distCoeffs,
Mat rvec,
Mat tvec)
Finds an object pose from 3D-2D point correspondences using the RANSAC
scheme.
|
static void |
Calib3d.solvePnPRansac(MatOfPoint3f objectPoints,
MatOfPoint2f imagePoints,
Mat cameraMatrix,
MatOfDouble distCoeffs,
Mat rvec,
Mat tvec,
boolean useExtrinsicGuess,
int iterationsCount,
float reprojectionError,
int minInliersCount,
Mat inliers,
int flags)
Finds an object pose from 3D-2D point correspondences using the RANSAC
scheme.
|
static double |
Calib3d.stereoCalibrate(List<Mat> objectPoints,
List<Mat> imagePoints1,
List<Mat> imagePoints2,
Mat cameraMatrix1,
Mat distCoeffs1,
Mat cameraMatrix2,
Mat distCoeffs2,
Size imageSize,
Mat R,
Mat T,
Mat E,
Mat F)
Calibrates the stereo camera.
|
static double |
Calib3d.stereoCalibrate(List<Mat> objectPoints,
List<Mat> imagePoints1,
List<Mat> imagePoints2,
Mat cameraMatrix1,
Mat distCoeffs1,
Mat cameraMatrix2,
Mat distCoeffs2,
Size imageSize,
Mat R,
Mat T,
Mat E,
Mat F,
TermCriteria criteria,
int flags)
Calibrates the stereo camera.
|
static void |
Calib3d.stereoRectify(Mat cameraMatrix1,
Mat distCoeffs1,
Mat cameraMatrix2,
Mat distCoeffs2,
Size imageSize,
Mat R,
Mat T,
Mat R1,
Mat R2,
Mat P1,
Mat P2,
Mat Q)
Computes rectification transforms for each head of a calibrated stereo
camera.
|
static void |
Calib3d.stereoRectify(Mat cameraMatrix1,
Mat distCoeffs1,
Mat cameraMatrix2,
Mat distCoeffs2,
Size imageSize,
Mat R,
Mat T,
Mat R1,
Mat R2,
Mat P1,
Mat P2,
Mat Q,
int flags,
double alpha,
Size newImageSize,
Rect validPixROI1,
Rect validPixROI2)
Computes rectification transforms for each head of a calibrated stereo
camera.
|
static boolean |
Calib3d.stereoRectifyUncalibrated(Mat points1,
Mat points2,
Mat F,
Size imgSize,
Mat H1,
Mat H2)
Computes a rectification transform for an uncalibrated stereo camera.
|
static boolean |
Calib3d.stereoRectifyUncalibrated(Mat points1,
Mat points2,
Mat F,
Size imgSize,
Mat H1,
Mat H2,
double threshold)
Computes a rectification transform for an uncalibrated stereo camera.
|
static void |
Calib3d.triangulatePoints(Mat projMatr1,
Mat projMatr2,
Mat projPoints1,
Mat projPoints2,
Mat points4D)
Reconstructs points by triangulation.
|
static void |
Calib3d.validateDisparity(Mat disparity,
Mat cost,
int minDisparity,
int numberOfDisparities) |
static void |
Calib3d.validateDisparity(Mat disparity,
Mat cost,
int minDisparity,
int numberOfDisparities,
int disp12MaxDisp) |
| Modifier and Type | Method and Description |
|---|---|
static double |
Calib3d.calibrateCamera(List<Mat> objectPoints,
List<Mat> imagePoints,
Size imageSize,
Mat cameraMatrix,
Mat distCoeffs,
List<Mat> rvecs,
List<Mat> tvecs)
Finds the camera intrinsic and extrinsic parameters from several views of a
calibration pattern.
|
static double |
Calib3d.calibrateCamera(List<Mat> objectPoints,
List<Mat> imagePoints,
Size imageSize,
Mat cameraMatrix,
Mat distCoeffs,
List<Mat> rvecs,
List<Mat> tvecs)
Finds the camera intrinsic and extrinsic parameters from several views of a
calibration pattern.
|
static double |
Calib3d.calibrateCamera(List<Mat> objectPoints,
List<Mat> imagePoints,
Size imageSize,
Mat cameraMatrix,
Mat distCoeffs,
List<Mat> rvecs,
List<Mat> tvecs)
Finds the camera intrinsic and extrinsic parameters from several views of a
calibration pattern.
|
static double |
Calib3d.calibrateCamera(List<Mat> objectPoints,
List<Mat> imagePoints,
Size imageSize,
Mat cameraMatrix,
Mat distCoeffs,
List<Mat> rvecs,
List<Mat> tvecs)
Finds the camera intrinsic and extrinsic parameters from several views of a
calibration pattern.
|
static double |
Calib3d.calibrateCamera(List<Mat> objectPoints,
List<Mat> imagePoints,
Size imageSize,
Mat cameraMatrix,
Mat distCoeffs,
List<Mat> rvecs,
List<Mat> tvecs,
int flags)
Finds the camera intrinsic and extrinsic parameters from several views of a
calibration pattern.
|
static double |
Calib3d.calibrateCamera(List<Mat> objectPoints,
List<Mat> imagePoints,
Size imageSize,
Mat cameraMatrix,
Mat distCoeffs,
List<Mat> rvecs,
List<Mat> tvecs,
int flags)
Finds the camera intrinsic and extrinsic parameters from several views of a
calibration pattern.
|
static double |
Calib3d.calibrateCamera(List<Mat> objectPoints,
List<Mat> imagePoints,
Size imageSize,
Mat cameraMatrix,
Mat distCoeffs,
List<Mat> rvecs,
List<Mat> tvecs,
int flags)
Finds the camera intrinsic and extrinsic parameters from several views of a
calibration pattern.
|
static double |
Calib3d.calibrateCamera(List<Mat> objectPoints,
List<Mat> imagePoints,
Size imageSize,
Mat cameraMatrix,
Mat distCoeffs,
List<Mat> rvecs,
List<Mat> tvecs,
int flags)
Finds the camera intrinsic and extrinsic parameters from several views of a
calibration pattern.
|
static double |
Calib3d.calibrateCamera(List<Mat> objectPoints,
List<Mat> imagePoints,
Size imageSize,
Mat cameraMatrix,
Mat distCoeffs,
List<Mat> rvecs,
List<Mat> tvecs,
int flags,
TermCriteria criteria)
Finds the camera intrinsic and extrinsic parameters from several views of a
calibration pattern.
|
static double |
Calib3d.calibrateCamera(List<Mat> objectPoints,
List<Mat> imagePoints,
Size imageSize,
Mat cameraMatrix,
Mat distCoeffs,
List<Mat> rvecs,
List<Mat> tvecs,
int flags,
TermCriteria criteria)
Finds the camera intrinsic and extrinsic parameters from several views of a
calibration pattern.
|
static double |
Calib3d.calibrateCamera(List<Mat> objectPoints,
List<Mat> imagePoints,
Size imageSize,
Mat cameraMatrix,
Mat distCoeffs,
List<Mat> rvecs,
List<Mat> tvecs,
int flags,
TermCriteria criteria)
Finds the camera intrinsic and extrinsic parameters from several views of a
calibration pattern.
|
static double |
Calib3d.calibrateCamera(List<Mat> objectPoints,
List<Mat> imagePoints,
Size imageSize,
Mat cameraMatrix,
Mat distCoeffs,
List<Mat> rvecs,
List<Mat> tvecs,
int flags,
TermCriteria criteria)
Finds the camera intrinsic and extrinsic parameters from several views of a
calibration pattern.
|
static float |
Calib3d.rectify3Collinear(Mat cameraMatrix1,
Mat distCoeffs1,
Mat cameraMatrix2,
Mat distCoeffs2,
Mat cameraMatrix3,
Mat distCoeffs3,
List<Mat> imgpt1,
List<Mat> imgpt3,
Size imageSize,
Mat R12,
Mat T12,
Mat R13,
Mat T13,
Mat R1,
Mat R2,
Mat R3,
Mat P1,
Mat P2,
Mat P3,
Mat Q,
double alpha,
Size newImgSize,
Rect roi1,
Rect roi2,
int flags) |
static float |
Calib3d.rectify3Collinear(Mat cameraMatrix1,
Mat distCoeffs1,
Mat cameraMatrix2,
Mat distCoeffs2,
Mat cameraMatrix3,
Mat distCoeffs3,
List<Mat> imgpt1,
List<Mat> imgpt3,
Size imageSize,
Mat R12,
Mat T12,
Mat R13,
Mat T13,
Mat R1,
Mat R2,
Mat R3,
Mat P1,
Mat P2,
Mat P3,
Mat Q,
double alpha,
Size newImgSize,
Rect roi1,
Rect roi2,
int flags) |
static double |
Calib3d.stereoCalibrate(List<Mat> objectPoints,
List<Mat> imagePoints1,
List<Mat> imagePoints2,
Mat cameraMatrix1,
Mat distCoeffs1,
Mat cameraMatrix2,
Mat distCoeffs2,
Size imageSize,
Mat R,
Mat T,
Mat E,
Mat F)
Calibrates the stereo camera.
|
static double |
Calib3d.stereoCalibrate(List<Mat> objectPoints,
List<Mat> imagePoints1,
List<Mat> imagePoints2,
Mat cameraMatrix1,
Mat distCoeffs1,
Mat cameraMatrix2,
Mat distCoeffs2,
Size imageSize,
Mat R,
Mat T,
Mat E,
Mat F)
Calibrates the stereo camera.
|
static double |
Calib3d.stereoCalibrate(List<Mat> objectPoints,
List<Mat> imagePoints1,
List<Mat> imagePoints2,
Mat cameraMatrix1,
Mat distCoeffs1,
Mat cameraMatrix2,
Mat distCoeffs2,
Size imageSize,
Mat R,
Mat T,
Mat E,
Mat F)
Calibrates the stereo camera.
|
static double |
Calib3d.stereoCalibrate(List<Mat> objectPoints,
List<Mat> imagePoints1,
List<Mat> imagePoints2,
Mat cameraMatrix1,
Mat distCoeffs1,
Mat cameraMatrix2,
Mat distCoeffs2,
Size imageSize,
Mat R,
Mat T,
Mat E,
Mat F,
TermCriteria criteria,
int flags)
Calibrates the stereo camera.
|
static double |
Calib3d.stereoCalibrate(List<Mat> objectPoints,
List<Mat> imagePoints1,
List<Mat> imagePoints2,
Mat cameraMatrix1,
Mat distCoeffs1,
Mat cameraMatrix2,
Mat distCoeffs2,
Size imageSize,
Mat R,
Mat T,
Mat E,
Mat F,
TermCriteria criteria,
int flags)
Calibrates the stereo camera.
|
static double |
Calib3d.stereoCalibrate(List<Mat> objectPoints,
List<Mat> imagePoints1,
List<Mat> imagePoints2,
Mat cameraMatrix1,
Mat distCoeffs1,
Mat cameraMatrix2,
Mat distCoeffs2,
Size imageSize,
Mat R,
Mat T,
Mat E,
Mat F,
TermCriteria criteria,
int flags)
Calibrates the stereo camera.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
Contrib.applyColorMap(Mat src,
Mat dst,
int colormap)
Applies a GNU Octave/MATLAB equivalent colormap on a given image.
|
static int |
Contrib.chamerMatching(Mat img,
Mat templ,
List<MatOfPoint> results,
MatOfFloat cost) |
static int |
Contrib.chamerMatching(Mat img,
Mat templ,
List<MatOfPoint> results,
MatOfFloat cost,
double templScale,
int maxMatches,
double minMatchDistance,
int padX,
int padY,
int scales,
double minScale,
double maxScale,
double orientationWeight,
double truncate) |
void |
StereoVar.compute(Mat left,
Mat right,
Mat disp) |
void |
FaceRecognizer.predict(Mat src,
int[] label,
double[] confidence)
Predicts a label and associated confidence (e.g.
|
void |
FaceRecognizer.train(List<Mat> src,
Mat labels)
Trains a FaceRecognizer with given data and associated labels.
|
void |
FaceRecognizer.update(List<Mat> src,
Mat labels)
Updates a FaceRecognizer with given data and associated labels.
|
| Modifier and Type | Method and Description |
|---|---|
void |
FaceRecognizer.train(List<Mat> src,
Mat labels)
Trains a FaceRecognizer with given data and associated labels.
|
void |
FaceRecognizer.update(List<Mat> src,
Mat labels)
Updates a FaceRecognizer with given data and associated labels.
|
| Modifier and Type | Class and Description |
|---|---|
class |
MatOfByte |
class |
MatOfDMatch |
class |
MatOfDouble |
class |
MatOfFloat |
class |
MatOfFloat4 |
class |
MatOfFloat6 |
class |
MatOfInt |
class |
MatOfInt4 |
class |
MatOfKeyPoint |
class |
MatOfPoint |
class |
MatOfPoint2f |
class |
MatOfPoint3 |
class |
MatOfPoint3f |
class |
MatOfRect |
| Modifier and Type | Method and Description |
|---|---|
Mat |
Mat.adjustROI(int dtop,
int dbottom,
int dleft,
int dright)
Adjusts a submatrix size and position within the parent matrix.
|
Mat |
Mat.clone()
Creates a full copy of the array and the underlying data.
|
Mat |
Mat.col(int x)
Creates a matrix header for the specified matrix column.
|
Mat |
Mat.colRange(int startcol,
int endcol)
Creates a matrix header for the specified column span.
|
Mat |
Mat.colRange(Range r)
Creates a matrix header for the specified column span.
|
Mat |
Mat.cross(Mat m)
Computes a cross-product of two 3-element vectors.
|
Mat |
Mat.diag()
Extracts a diagonal from a matrix, or creates a diagonal matrix.
|
Mat |
Mat.diag(int d)
Extracts a diagonal from a matrix, or creates a diagonal matrix.
|
static Mat |
Mat.diag(Mat d)
Extracts a diagonal from a matrix, or creates a diagonal matrix.
|
static Mat |
Mat.eye(int rows,
int cols,
int type)
Returns an identity matrix of the specified size and type.
|
static Mat |
Mat.eye(Size size,
int type)
Returns an identity matrix of the specified size and type.
|
Mat |
Algorithm.getMat(String name) |
Mat |
Mat.inv()
Inverses a matrix.
|
Mat |
Mat.inv(int method)
Inverses a matrix.
|
Mat |
Mat.mul(Mat m)
Performs an element-wise multiplication or division of the two matrices.
|
Mat |
Mat.mul(Mat m,
double scale)
Performs an element-wise multiplication or division of the two matrices.
|
static Mat |
Mat.ones(int rows,
int cols,
int type)
Returns an array of all 1's of the specified size and type.
|
static Mat |
Mat.ones(Size size,
int type)
Returns an array of all 1's of the specified size and type.
|
Mat |
Mat.reshape(int cn)
Changes the shape and/or the number of channels of a 2D matrix without
copying the data.
|
Mat |
Mat.reshape(int cn,
int rows)
Changes the shape and/or the number of channels of a 2D matrix without
copying the data.
|
Mat |
Mat.row(int y)
Creates a matrix header for the specified matrix row.
|
Mat |
Mat.rowRange(int startrow,
int endrow)
Creates a matrix header for the specified row span.
|
Mat |
Mat.rowRange(Range r)
Creates a matrix header for the specified row span.
|
Mat |
Mat.setTo(Mat value)
Sets all or some of the array elements to the specified value.
|
Mat |
Mat.setTo(Mat value,
Mat mask)
Sets all or some of the array elements to the specified value.
|
Mat |
Mat.setTo(Scalar s) |
Mat |
Mat.setTo(Scalar value,
Mat mask)
Sets all or some of the array elements to the specified value.
|
Mat |
Mat.submat(int rowStart,
int rowEnd,
int colStart,
int colEnd)
Extracts a rectangular submatrix.
|
Mat |
Mat.submat(Range rowRange,
Range colRange)
Extracts a rectangular submatrix.
|
Mat |
Mat.submat(Rect roi)
Extracts a rectangular submatrix.
|
Mat |
Mat.t()
Transposes a matrix.
|
static Mat |
Mat.zeros(int rows,
int cols,
int type)
Returns a zero array of the specified size and type.
|
static Mat |
Mat.zeros(Size size,
int type)
Returns a zero array of the specified size and type.
|
| Modifier and Type | Method and Description |
|---|---|
List<Mat> |
Algorithm.getMatVector(String name) |
| Modifier and Type | Method and 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)
Calculates the per-element absolute difference between two arrays or between
an array and a scalar.
|
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)
Calculates the per-element sum of two arrays or an array and a scalar.
|
static void |
Core.add(Mat src1,
Scalar 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,
Scalar src2,
Mat dst,
Mat mask,
int dtype)
Calculates the per-element sum of two arrays or an array and a scalar.
|
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)
Provides a functional form of
convertTo. |
void |
Mat.assignTo(Mat m,
int type)
Provides a functional form of
convertTo. |
static void |
Core.batchDistance(Mat src1,
Mat src2,
Mat dist,
int dtype,
Mat nidx) |
static void |
Core.batchDistance(Mat src1,
Mat src2,
Mat dist,
int dtype,
Mat nidx,
int normType,
int K) |
static void |
Core.batchDistance(Mat src1,
Mat src2,
Mat dist,
int dtype,
Mat nidx,
int normType,
int K,
Mat mask,
int update,
boolean crosscheck) |
static void |
Core.bitwise_and(Mat src1,
Mat src2,
Mat dst)
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)
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.calcCovarMatrix(Mat samples,
Mat covar,
Mat mean,
int flags)
Calculates the covariance matrix of a set of vectors.
|
static void |
Core.calcCovarMatrix(Mat samples,
Mat covar,
Mat mean,
int flags,
int ctype)
Calculates the covariance matrix of a set of vectors.
|
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,
double minVal,
double maxVal)
Checks every element of an input array for invalid values.
|
static void |
Core.circle(Mat img,
Point center,
int radius,
Scalar color)
Draws a circle.
|
static void |
Core.circle(Mat img,
Point center,
int radius,
Scalar color,
int thickness)
Draws a circle.
|
static void |
Core.circle(Mat img,
Point center,
int radius,
Scalar color,
int thickness,
int lineType,
int shift)
Draws a circle.
|
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)
Performs the per-element comparison of two arrays or an array and scalar
value.
|
static void |
Core.completeSymm(Mat mtx)
Copies the lower or the upper half of a square matrix to another half.
|
static void |
Core.completeSymm(Mat mtx,
boolean lowerToUpper)
Copies the lower or the upper half of a square matrix to another half.
|
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,
double beta)
Scales, calculates absolute values, and converts the result to 8-bit.
|
void |
Mat.convertTo(Mat m,
int rtype)
Converts an array to another data type with optional scaling.
|
void |
Mat.convertTo(Mat m,
int rtype,
double alpha)
Converts an array to another data type with optional scaling.
|
void |
Mat.convertTo(Mat m,
int rtype,
double alpha,
double beta)
Converts an array to another data type with optional scaling.
|
void |
Mat.copyTo(Mat m)
Copies the matrix to another one.
|
void |
Mat.copyTo(Mat m,
Mat mask)
Copies the matrix to another one.
|
static int |
Core.countNonZero(Mat src)
Counts non-zero array elements.
|
Mat |
Mat.cross(Mat m)
Computes a cross-product of two 3-element vectors.
|
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,
int nonzeroRows)
Performs a forward or inverse Discrete Fourier transform of a 1D or 2D
floating-point array.
|
static Mat |
Mat.diag(Mat d)
Extracts a diagonal from a matrix, or creates a diagonal matrix.
|
static void |
Core.divide(double scale,
Mat src2,
Mat dst)
Performs per-element division of two arrays or a scalar by an array.
|
static void |
Core.divide(double scale,
Mat src2,
Mat dst,
int dtype)
Performs per-element division of two arrays or a scalar by an array.
|
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)
Performs per-element division of two arrays or a scalar by an array.
|
static void |
Core.divide(Mat src1,
Scalar src2,
Mat dst,
double scale)
Performs per-element division of two arrays or a scalar by an array.
|
static void |
Core.divide(Mat src1,
Scalar src2,
Mat dst,
double scale,
int dtype)
Performs per-element division of two arrays or a scalar by an array.
|
double |
Mat.dot(Mat m)
Computes a dot-product of two vectors.
|
static boolean |
Core.eigen(Mat src,
boolean computeEigenvectors,
Mat eigenvalues,
Mat eigenvectors)
Calculates eigenvalues and eigenvectors of a symmetric matrix.
|
static void |
Core.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 |
Core.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 |
Core.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 |
Core.ellipse(Mat img,
RotatedRect box,
Scalar color)
Draws a simple or thick elliptic arc or fills an ellipse sector.
|
static void |
Core.ellipse(Mat img,
RotatedRect box,
Scalar color,
int thickness)
Draws a simple or thick elliptic arc or fills an ellipse sector.
|
static void |
Core.ellipse(Mat img,
RotatedRect box,
Scalar color,
int thickness,
int lineType)
Draws a simple or thick elliptic arc or fills an ellipse sector.
|
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) |
static void |
Core.fillConvexPoly(Mat img,
MatOfPoint points,
Scalar color)
Fills a convex polygon.
|
static void |
Core.fillConvexPoly(Mat img,
MatOfPoint points,
Scalar color,
int lineType,
int shift)
Fills a convex polygon.
|
static void |
Core.fillPoly(Mat img,
List<MatOfPoint> pts,
Scalar color)
Fills the area bounded by one or more polygons.
|
static void |
Core.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 |
Core.findNonZero(Mat src,
Mat idx) |
static void |
Core.flip(Mat src,
Mat dst,
int flipCode)
Flips a 2D array around vertical, horizontal, or both axes.
|
static void |
Core.gemm(Mat src1,
Mat src2,
double alpha,
Mat src3,
double gamma,
Mat dst)
Performs generalized matrix multiplication.
|
static void |
Core.gemm(Mat src1,
Mat src2,
double alpha,
Mat src3,
double gamma,
Mat dst,
int flags)
Performs generalized matrix multiplication.
|
static void |
Core.hconcat(List<Mat> src,
Mat dst) |
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,
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) |
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.line(Mat img,
Point pt1,
Point pt2,
Scalar color)
Draws a line segment connecting two points.
|
static void |
Core.line(Mat img,
Point pt1,
Point pt2,
Scalar color,
int thickness)
Draws a line segment connecting two points.
|
static void |
Core.line(Mat img,
Point pt1,
Point pt2,
Scalar color,
int thickness,
int lineType,
int shift)
Draws a line segment connecting two points.
|
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.LUT(Mat src,
Mat lut,
Mat dst,
int interpolation)
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.
|
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)
Calculates per-element maximum of two arrays or an array and a scalar.
|
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)
Creates one multichannel array out of several single-channel ones.
|
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)
Calculates per-element minimum of two arrays or an array and a scalar.
|
static Core.MinMaxLocResult |
Core.minMaxLoc(Mat src)
Finds the global minimum and maximum in an array.
|
static Core.MinMaxLocResult |
Core.minMaxLoc(Mat src,
Mat mask)
Finds the global minimum and maximum in an array.
|
Mat |
Mat.mul(Mat m)
Performs an element-wise multiplication or division of the two matrices.
|
Mat |
Mat.mul(Mat m,
double scale)
Performs an element-wise multiplication or division of the two matrices.
|
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)
Calculates the per-element scaled product of two arrays.
|
static void |
Core.multiply(Mat src1,
Scalar src2,
Mat dst,
double scale)
Calculates the per-element scaled product of two arrays.
|
static void |
Core.multiply(Mat src1,
Scalar src2,
Mat dst,
double scale,
int dtype)
Calculates the per-element scaled product of two arrays.
|
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,
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 an absolute array norm, an absolute difference norm, or a relative
difference norm.
|
static double |
Core.norm(Mat src1,
int normType)
Calculates an absolute array norm, an absolute difference norm, or a relative
difference norm.
|
static double |
Core.norm(Mat src1,
int normType,
Mat mask)
Calculates an absolute array norm, an absolute difference norm, or a relative
difference norm.
|
static double |
Core.norm(Mat src1,
Mat src2)
Calculates an absolute array norm, an absolute difference norm, or a relative
difference norm.
|
static double |
Core.norm(Mat src1,
Mat src2,
int normType)
Calculates an absolute array norm, an absolute difference norm, or a relative
difference norm.
|
static double |
Core.norm(Mat src1,
Mat src2,
int normType,
Mat mask)
Calculates an absolute array norm, 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,
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) |
static void |
Core.patchNaNs(Mat a,
double val) |
static void |
Core.PCABackProject(Mat data,
Mat mean,
Mat eigenvectors,
Mat result) |
static void |
Core.PCACompute(Mat data,
Mat mean,
Mat eigenvectors) |
static void |
Core.PCACompute(Mat data,
Mat mean,
Mat eigenvectors,
int maxComponents) |
static void |
Core.PCAComputeVar(Mat data,
Mat mean,
Mat eigenvectors,
double retainedVariance) |
static void |
Core.PCAProject(Mat data,
Mat mean,
Mat eigenvectors,
Mat result) |
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.polylines(Mat img,
List<MatOfPoint> pts,
boolean isClosed,
Scalar color)
Draws several polygonal curves.
|
static void |
Core.polylines(Mat img,
List<MatOfPoint> pts,
boolean isClosed,
Scalar color,
int thickness)
Draws several polygonal curves.
|
static void |
Core.polylines(Mat img,
List<MatOfPoint> pts,
boolean isClosed,
Scalar color,
int thickness,
int lineType,
int shift)
Draws several polygonal curves.
|
static void |
Core.pow(Mat src,
double power,
Mat dst)
Raises every array element to a power.
|
void |
Mat.push_back(Mat m)
Adds elements to the bottom of the matrix.
|
static void |
Core.putText(Mat img,
String text,
Point org,
int fontFace,
double fontScale,
Scalar color)
Draws a text string.
|
static void |
Core.putText(Mat img,
String text,
Point org,
int fontFace,
double fontScale,
Scalar color,
int thickness)
Draws a text string.
|
static void |
Core.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 |
Core.randn(Mat dst,
double mean,
double stddev)
Fills the array with normally distributed random numbers.
|
static void |
Core.randShuffle(Mat dst) |
static void |
Core.randShuffle(Mat dst,
double iterFactor) |
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.rectangle(Mat img,
Point pt1,
Point pt2,
Scalar color)
Draws a simple, thick, or filled up-right rectangle.
|
static void |
Core.rectangle(Mat img,
Point pt1,
Point pt2,
Scalar color,
int thickness)
Draws a simple, thick, or filled up-right rectangle.
|
static void |
Core.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 |
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.repeat(Mat src,
int ny,
int nx,
Mat dst)
Fills the output array with repeated copies of the input array.
|
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.
|
void |
Algorithm.setMat(String name,
Mat value) |
Mat |
Mat.setTo(Mat value)
Sets all or some of the array elements to the specified value.
|
Mat |
Mat.setTo(Mat value,
Mat mask)
Sets all or some of the array elements to the specified value.
|
Mat |
Mat.setTo(Scalar value,
Mat mask)
Sets all or some of the array elements to the specified value.
|
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)
Divides a multi-channel array into several single-channel arrays.
|
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)
Calculates the per-element difference between two arrays or array and a
scalar.
|
static void |
Core.subtract(Mat src1,
Scalar src2,
Mat dst,
Mat mask)
Calculates the per-element difference between two arrays or array and a
scalar.
|
static void |
Core.subtract(Mat src1,
Scalar src2,
Mat dst,
Mat mask,
int dtype)
Calculates the per-element difference between two arrays or array and a
scalar.
|
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) |
static void |
Core.SVDecomp(Mat src,
Mat w,
Mat u,
Mat vt) |
static void |
Core.SVDecomp(Mat src,
Mat w,
Mat u,
Mat vt,
int flags) |
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.vconcat(List<Mat> src,
Mat dst) |
| Modifier and Type | Method and Description |
|---|---|
static void |
Core.hconcat(List<Mat> src,
Mat dst) |
static void |
Core.merge(List<Mat> mv,
Mat dst)
Creates one multichannel array out of several single-channel ones.
|
static void |
Core.mixChannels(List<Mat> src,
List<Mat> dst,
MatOfInt fromTo)
Copies specified channels from input arrays to the specified channels of
output arrays.
|
static void |
Core.mixChannels(List<Mat> src,
List<Mat> dst,
MatOfInt fromTo)
Copies specified channels from input arrays to the specified channels of
output arrays.
|
void |
Algorithm.setMatVector(String name,
List<Mat> value) |
static void |
Core.split(Mat m,
List<Mat> mv)
Divides a multi-channel array into several single-channel arrays.
|
static void |
Core.vconcat(List<Mat> src,
Mat dst) |
| Constructor and Description |
|---|
Mat(Mat m,
Range rowRange)
Various Mat constructors
|
Mat(Mat m,
Range rowRange,
Range colRange)
Various Mat constructors
|
Mat(Mat m,
Rect roi)
Various Mat constructors
|
MatOfByte(Mat m) |
MatOfDMatch(Mat m) |
MatOfDouble(Mat m) |
MatOfFloat(Mat m) |
MatOfFloat4(Mat m) |
MatOfFloat6(Mat m) |
MatOfInt(Mat m) |
MatOfInt4(Mat m) |
MatOfKeyPoint(Mat m) |
MatOfPoint(Mat m) |
MatOfPoint2f(Mat m) |
MatOfPoint3(Mat m) |
MatOfPoint3f(Mat m) |
MatOfRect(Mat m) |
| Modifier and Type | Method and Description |
|---|---|
List<Mat> |
DescriptorMatcher.getTrainDescriptors()
Returns a constant link to the train descriptor collection
trainDescCollection. |
List<Mat> |
GenericDescriptorMatcher.getTrainImages()
Returns a train image collection.
|
| Modifier and Type | Method and Description |
|---|---|
void |
GenericDescriptorMatcher.classify(Mat queryImage,
MatOfKeyPoint queryKeypoints)
Classifies keypoints from a query set.
|
void |
GenericDescriptorMatcher.classify(Mat queryImage,
MatOfKeyPoint queryKeypoints,
Mat trainImage,
MatOfKeyPoint trainKeypoints)
Classifies keypoints from a query set.
|
void |
DescriptorExtractor.compute(Mat image,
MatOfKeyPoint keypoints,
Mat descriptors)
Computes the descriptors for a set of keypoints detected in an image (first
variant) or image set (second variant).
|
void |
FeatureDetector.detect(Mat image,
MatOfKeyPoint keypoints)
Detects keypoints in an image (first variant) or image set (second variant).
|
void |
FeatureDetector.detect(Mat image,
MatOfKeyPoint keypoints,
Mat mask)
Detects keypoints in an image (first variant) or image set (second variant).
|
static void |
Features2d.drawKeypoints(Mat image,
MatOfKeyPoint keypoints,
Mat outImage)
Draws keypoints.
|
static void |
Features2d.drawKeypoints(Mat image,
MatOfKeyPoint keypoints,
Mat outImage,
Scalar color,
int flags)
Draws keypoints.
|
static void |
Features2d.drawMatches(Mat img1,
MatOfKeyPoint keypoints1,
Mat img2,
MatOfKeyPoint keypoints2,
MatOfDMatch matches1to2,
Mat outImg)
Draws the found matches of keypoints from two images.
|
static void |
Features2d.drawMatches(Mat img1,
MatOfKeyPoint keypoints1,
Mat img2,
MatOfKeyPoint keypoints2,
MatOfDMatch matches1to2,
Mat outImg,
Scalar matchColor,
Scalar singlePointColor,
MatOfByte matchesMask,
int flags)
Draws the found matches of keypoints from two images.
|
static void |
Features2d.drawMatches2(Mat img1,
MatOfKeyPoint keypoints1,
Mat img2,
MatOfKeyPoint keypoints2,
List<MatOfDMatch> matches1to2,
Mat outImg)
Draws the found matches of keypoints from two images.
|
static void |
Features2d.drawMatches2(Mat img1,
MatOfKeyPoint keypoints1,
Mat img2,
MatOfKeyPoint keypoints2,
List<MatOfDMatch> matches1to2,
Mat outImg,
Scalar matchColor,
Scalar singlePointColor,
List<MatOfByte> matchesMask,
int flags)
Draws the found matches of keypoints from two images.
|
void |
DescriptorMatcher.knnMatch(Mat queryDescriptors,
List<MatOfDMatch> matches,
int k)
Finds the k best matches for each descriptor from a query set.
|
void |
DescriptorMatcher.knnMatch(Mat queryDescriptors,
List<MatOfDMatch> matches,
int k,
List<Mat> masks,
boolean compactResult)
Finds the k best matches for each descriptor from a query set.
|
void |
DescriptorMatcher.knnMatch(Mat queryDescriptors,
Mat trainDescriptors,
List<MatOfDMatch> matches,
int k)
Finds the k best matches for each descriptor from a query set.
|
void |
DescriptorMatcher.knnMatch(Mat queryDescriptors,
Mat trainDescriptors,
List<MatOfDMatch> matches,
int k,
Mat mask,
boolean compactResult)
Finds the k best matches for each descriptor from a query set.
|
void |
GenericDescriptorMatcher.knnMatch(Mat queryImage,
MatOfKeyPoint queryKeypoints,
List<MatOfDMatch> matches,
int k)
Finds the
k best matches for each query keypoint. |
void |
GenericDescriptorMatcher.knnMatch(Mat queryImage,
MatOfKeyPoint queryKeypoints,
List<MatOfDMatch> matches,
int k,
List<Mat> masks,
boolean compactResult)
Finds the
k best matches for each query keypoint. |
void |
GenericDescriptorMatcher.knnMatch(Mat queryImage,
MatOfKeyPoint queryKeypoints,
Mat trainImage,
MatOfKeyPoint trainKeypoints,
List<MatOfDMatch> matches,
int k)
Finds the
k best matches for each query keypoint. |
void |
GenericDescriptorMatcher.knnMatch(Mat queryImage,
MatOfKeyPoint queryKeypoints,
Mat trainImage,
MatOfKeyPoint trainKeypoints,
List<MatOfDMatch> matches,
int k,
Mat mask,
boolean compactResult)
Finds the
k best matches for each query keypoint. |
void |
DescriptorMatcher.match(Mat queryDescriptors,
Mat trainDescriptors,
MatOfDMatch matches)
Finds the best match for each descriptor from a query set.
|
void |
DescriptorMatcher.match(Mat queryDescriptors,
Mat trainDescriptors,
MatOfDMatch matches,
Mat mask)
Finds the best match for each descriptor from a query set.
|
void |
DescriptorMatcher.match(Mat queryDescriptors,
MatOfDMatch matches)
Finds the best match for each descriptor from a query set.
|
void |
DescriptorMatcher.match(Mat queryDescriptors,
MatOfDMatch matches,
List<Mat> masks)
Finds the best match for each descriptor from a query set.
|
void |
GenericDescriptorMatcher.match(Mat queryImage,
MatOfKeyPoint queryKeypoints,
Mat trainImage,
MatOfKeyPoint trainKeypoints,
MatOfDMatch matches)
Finds the best match in the training set for each keypoint from the query
set.
|
void |
GenericDescriptorMatcher.match(Mat queryImage,
MatOfKeyPoint queryKeypoints,
Mat trainImage,
MatOfKeyPoint trainKeypoints,
MatOfDMatch matches,
Mat mask)
Finds the best match in the training set for each keypoint from the query
set.
|
void |
GenericDescriptorMatcher.match(Mat queryImage,
MatOfKeyPoint queryKeypoints,
MatOfDMatch matches)
Finds the best match in the training set for each keypoint from the query
set.
|
void |
GenericDescriptorMatcher.match(Mat queryImage,
MatOfKeyPoint queryKeypoints,
MatOfDMatch matches,
List<Mat> masks)
Finds the best match in the training set for each keypoint from the query
set.
|
void |
DescriptorMatcher.radiusMatch(Mat queryDescriptors,
List<MatOfDMatch> matches,
float maxDistance)
For each query descriptor, finds the training descriptors not farther than
the specified distance.
|
void |
DescriptorMatcher.radiusMatch(Mat queryDescriptors,
List<MatOfDMatch> matches,
float maxDistance,
List<Mat> masks,
boolean compactResult)
For each query descriptor, finds the training descriptors not farther than
the specified distance.
|
void |
DescriptorMatcher.radiusMatch(Mat queryDescriptors,
Mat trainDescriptors,
List<MatOfDMatch> matches,
float maxDistance)
For each query descriptor, finds the training descriptors not farther than
the specified distance.
|
void |
DescriptorMatcher.radiusMatch(Mat queryDescriptors,
Mat trainDescriptors,
List<MatOfDMatch> matches,
float maxDistance,
Mat mask,
boolean compactResult)
For each query descriptor, finds the training descriptors not farther than
the specified distance.
|
void |
GenericDescriptorMatcher.radiusMatch(Mat queryImage,
MatOfKeyPoint queryKeypoints,
List<MatOfDMatch> matches,
float maxDistance)
For each query keypoint, finds the training keypoints not farther than the
specified distance.
|
void |
GenericDescriptorMatcher.radiusMatch(Mat queryImage,
MatOfKeyPoint queryKeypoints,
List<MatOfDMatch> matches,
float maxDistance,
List<Mat> masks,
boolean compactResult)
For each query keypoint, finds the training keypoints not farther than the
specified distance.
|
void |
GenericDescriptorMatcher.radiusMatch(Mat queryImage,
MatOfKeyPoint queryKeypoints,
Mat trainImage,
MatOfKeyPoint trainKeypoints,
List<MatOfDMatch> matches,
float maxDistance)
For each query keypoint, finds the training keypoints not farther than the
specified distance.
|
void |
GenericDescriptorMatcher.radiusMatch(Mat queryImage,
MatOfKeyPoint queryKeypoints,
Mat trainImage,
MatOfKeyPoint trainKeypoints,
List<MatOfDMatch> matches,
float maxDistance,
Mat mask,
boolean compactResult)
For each query keypoint, finds the training keypoints not farther than the
specified distance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
DescriptorMatcher.add(List<Mat> descriptors)
Adds descriptors to train a descriptor collection.
|
void |
GenericDescriptorMatcher.add(List<Mat> images,
List<MatOfKeyPoint> keypoints)
Adds images and their keypoints to the training collection stored in the
class instance.
|
void |
DescriptorExtractor.compute(List<Mat> images,
List<MatOfKeyPoint> keypoints,
List<Mat> descriptors)
Computes the descriptors for a set of keypoints detected in an image (first
variant) or image set (second variant).
|
void |
DescriptorExtractor.compute(List<Mat> images,
List<MatOfKeyPoint> keypoints,
List<Mat> descriptors)
Computes the descriptors for a set of keypoints detected in an image (first
variant) or image set (second variant).
|
void |
FeatureDetector.detect(List<Mat> images,
List<MatOfKeyPoint> keypoints)
Detects keypoints in an image (first variant) or image set (second variant).
|
void |
FeatureDetector.detect(List<Mat> images,
List<MatOfKeyPoint> keypoints,
List<Mat> masks)
Detects keypoints in an image (first variant) or image set (second variant).
|
void |
FeatureDetector.detect(List<Mat> images,
List<MatOfKeyPoint> keypoints,
List<Mat> masks)
Detects keypoints in an image (first variant) or image set (second variant).
|
void |
DescriptorMatcher.knnMatch(Mat queryDescriptors,
List<MatOfDMatch> matches,
int k,
List<Mat> masks,
boolean compactResult)
Finds the k best matches for each descriptor from a query set.
|
void |
GenericDescriptorMatcher.knnMatch(Mat queryImage,
MatOfKeyPoint queryKeypoints,
List<MatOfDMatch> matches,
int k,
List<Mat> masks,
boolean compactResult)
Finds the
k best matches for each query keypoint. |
void |
DescriptorMatcher.match(Mat queryDescriptors,
MatOfDMatch matches,
List<Mat> masks)
Finds the best match for each descriptor from a query set.
|
void |
GenericDescriptorMatcher.match(Mat queryImage,
MatOfKeyPoint queryKeypoints,
MatOfDMatch matches,
List<Mat> masks)
Finds the best match in the training set for each keypoint from the query
set.
|
void |
DescriptorMatcher.radiusMatch(Mat queryDescriptors,
List<MatOfDMatch> matches,
float maxDistance,
List<Mat> masks,
boolean compactResult)
For each query descriptor, finds the training descriptors not farther than
the specified distance.
|
void |
GenericDescriptorMatcher.radiusMatch(Mat queryImage,
MatOfKeyPoint queryKeypoints,
List<MatOfDMatch> matches,
float maxDistance,
List<Mat> masks,
boolean compactResult)
For each query keypoint, finds the training keypoints not farther than the
specified distance.
|
| Modifier and Type | Method and Description |
|---|---|
static Mat |
Highgui.imdecode(Mat buf,
int flags)
Reads an image from a buffer in memory.
|
static Mat |
Highgui.imread(String filename)
Loads an image from a file.
|
static Mat |
Highgui.imread(String filename,
int flags)
Loads an image from a file.
|
| Modifier and Type | Method and Description |
|---|---|
static Mat |
Highgui.imdecode(Mat buf,
int flags)
Reads an image from a buffer in memory.
|
static boolean |
Highgui.imencode(String ext,
Mat img,
MatOfByte buf)
Encodes an image into a memory buffer.
|
static boolean |
Highgui.imencode(String ext,
Mat img,
MatOfByte buf,
MatOfInt params)
Encodes an image into a memory buffer.
|
static boolean |
Highgui.imwrite(String filename,
Mat img)
Saves an image to a specified file.
|
static boolean |
Highgui.imwrite(String filename,
Mat img,
MatOfInt params)
Saves an image to a specified file.
|
boolean |
VideoCapture.read(Mat image)
Grabs, decodes and returns the next video frame.
|
boolean |
VideoCapture.retrieve(Mat image)
Decodes and returns the grabbed video frame.
|
boolean |
VideoCapture.retrieve(Mat image,
int channel)
Decodes and returns the grabbed video frame.
|
| Modifier and Type | Method and Description |
|---|---|
static Mat |
Imgproc.getAffineTransform(MatOfPoint2f src,
MatOfPoint2f dst)
Calculates an affine transform from three pairs of the corresponding points.
|
static Mat |
Imgproc.getDefaultNewCameraMatrix(Mat cameraMatrix)
Returns the default new camera matrix.
|
static Mat |
Imgproc.getDefaultNewCameraMatrix(Mat cameraMatrix,
Size imgsize,
boolean centerPrincipalPoint)
Returns the default new camera matrix.
|
static Mat |
Imgproc.getGaborKernel(Size ksize,
double sigma,
double theta,
double lambd,
double gamma) |
static Mat |
Imgproc.getGaborKernel(Size ksize,
double sigma,
double theta,
double lambd,
double gamma,
double psi,
int ktype) |
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.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.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
Imgproc.accumulate(Mat src,
Mat dst)
Adds an image to the accumulator.
|
static void |
Imgproc.accumulate(Mat src,
Mat dst,
Mat mask)
Adds an image to the accumulator.
|
static void |
Imgproc.accumulateProduct(Mat src1,
Mat src2,
Mat dst)
Adds the per-element product of two input images to the accumulator.
|
static void |
Imgproc.accumulateProduct(Mat src1,
Mat src2,
Mat dst,
Mat mask)
Adds the per-element product of two input images to the accumulator.
|
static void |
Imgproc.accumulateSquare(Mat src,
Mat dst)
Adds the square of a source image to the accumulator.
|
static void |
Imgproc.accumulateSquare(Mat src,
Mat dst,
Mat mask)
Adds the square of a source image to the accumulator.
|
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.adaptiveBilateralFilter(Mat src,
Mat dst,
Size ksize,
double sigmaSpace)
Applies the adaptive bilateral filter to an image.
|
static void |
Imgproc.adaptiveBilateralFilter(Mat src,
Mat dst,
Size ksize,
double sigmaSpace,
double maxSigmaColor,
Point anchor)
Applies the adaptive bilateral filter to an image.
|
static void |
Imgproc.adaptiveBilateralFilter(Mat src,
Mat dst,
Size ksize,
double sigmaSpace,
double maxSigmaColor,
Point anchor,
int borderType)
Applies the adaptive bilateral filter to an image.
|
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) |
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.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 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,
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.calcBackProject(List<Mat> images,
MatOfInt channels,
Mat hist,
Mat dst,
MatOfFloat ranges,
double scale)
Calculates the back projection of a histogram.
|
static void |
Imgproc.calcHist(List<Mat> images,
MatOfInt channels,
Mat mask,
Mat hist,
MatOfInt histSize,
MatOfFloat ranges)
Calculates a histogram of a set of arrays.
|
static void |
Imgproc.calcHist(List<Mat> images,
MatOfInt channels,
Mat mask,
Mat hist,
MatOfInt histSize,
MatOfFloat ranges,
boolean accumulate)
Calculates a histogram of a set of arrays.
|
static void |
Imgproc.Canny(Mat image,
Mat edges,
double threshold1,
double threshold2)
Finds edges in an image using the [Canny86] algorithm.
|
static void |
Imgproc.Canny(Mat image,
Mat edges,
double threshold1,
double threshold2,
int apertureSize,
boolean L2gradient)
Finds edges in an image using the [Canny86] algorithm.
|
static double |
Imgproc.compareHist(Mat H1,
Mat H2,
int method)
Compares two histograms.
|
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.copyMakeBorder(Mat src,
Mat dst,
int top,
int bottom,
int left,
int right,
int borderType)
Forms a border around an image.
|
static void |
Imgproc.copyMakeBorder(Mat src,
Mat dst,
int top,
int bottom,
int left,
int right,
int borderType,
Scalar value)
Forms a border around an image.
|
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 edge detector.
|
static void |
Imgproc.cornerHarris(Mat src,
Mat dst,
int blockSize,
int ksize,
double k,
int borderType)
Harris edge 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,
MatOfPoint2f 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.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,
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,
Scalar borderValue)
Dilates an image by using a specific structuring element.
|
static void |
Imgproc.distanceTransform(Mat src,
Mat dst,
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)
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.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,
Mat hierarchy,
int maxLevel,
Point offset)
Draws contours outlines or filled contours.
|
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,
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,
Scalar borderValue)
Erodes an image by using a specific structuring element.
|
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,
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.
|
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,
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.
|
static Mat |
Imgproc.getDefaultNewCameraMatrix(Mat cameraMatrix)
Returns the default new camera matrix.
|
static Mat |
Imgproc.getDefaultNewCameraMatrix(Mat cameraMatrix,
Size imgsize,
boolean centerPrincipalPoint)
Returns the default new camera matrix.
|
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,
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 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,
int blockSize,
boolean useHarrisDetector,
double k)
Determines strong corners on an image.
|
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,
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,
double stn)
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,
double maxLineGap)
Finds line segments in a binary image using the probabilistic Hough
transform.
|
static void |
Imgproc.HuMoments(Moments m,
Mat hu)
Calculates seven Hu invariants.
|
static void |
Imgproc.initUndistortRectifyMap(Mat cameraMatrix,
Mat distCoeffs,
Mat R,
Mat newCameraMatrix,
Size size,
int m1type,
Mat map1,
Mat map2)
Computes the undistortion and rectification transformation map.
|
static float |
Imgproc.initWideAngleProjMap(Mat cameraMatrix,
Mat distCoeffs,
Size imageSize,
int destImageWidth,
int m1type,
Mat map1,
Mat map2) |
static float |
Imgproc.initWideAngleProjMap(Mat cameraMatrix,
Mat distCoeffs,
Size imageSize,
int destImageWidth,
int m1type,
Mat map1,
Mat map2,
int projType,
double alpha) |
static void |
Imgproc.integral(Mat src,
Mat sum)
Calculates the integral of an image.
|
static void |
Imgproc.integral(Mat src,
Mat sum,
int sdepth)
Calculates the integral of an image.
|
static void |
Imgproc.integral2(Mat src,
Mat sum,
Mat sqsum)
Calculates the integral of an image.
|
static void |
Imgproc.integral2(Mat src,
Mat sum,
Mat sqsum,
int sdepth)
Calculates the integral of an image.
|
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 float |
Imgproc.intersectConvexConvex(Mat _p1,
Mat _p2,
Mat _p12) |
static float |
Imgproc.intersectConvexConvex(Mat _p1,
Mat _p2,
Mat _p12,
boolean handleNested) |
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,
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 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.medianBlur(Mat src,
Mat dst,
int ksize)
Blurs an image using the median filter.
|
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,
int iterations)
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.phaseCorrelateRes(Mat src1,
Mat src2,
Mat window) |
static Point |
Imgproc.phaseCorrelateRes(Mat src1,
Mat src2,
Mat window,
double[] response) |
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 double |
Imgproc.PSNR(Mat src1,
Mat src2) |
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,
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.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,
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,
double fy,
int interpolation)
Resizes an image.
|
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,
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,
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.
|
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,
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 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.undistort(Mat src,
Mat dst,
Mat cameraMatrix,
Mat distCoeffs)
Transforms an image to compensate for lens distortion.
|
static void |
Imgproc.undistort(Mat src,
Mat dst,
Mat cameraMatrix,
Mat distCoeffs,
Mat newCameraMatrix)
Transforms an image to compensate for lens distortion.
|
static void |
Imgproc.undistortPoints(MatOfPoint2f src,
MatOfPoint2f dst,
Mat cameraMatrix,
Mat distCoeffs)
Computes the ideal point coordinates from the observed point coordinates.
|
static void |
Imgproc.undistortPoints(MatOfPoint2f src,
MatOfPoint2f dst,
Mat cameraMatrix,
Mat distCoeffs,
Mat R,
Mat P)
Computes the ideal point coordinates from the observed point coordinates.
|
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,
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,
Scalar borderValue)
Applies a perspective transformation to an image.
|
static void |
Imgproc.watershed(Mat image,
Mat markers)
Performs a marker-based image segmentation using the watershed algorithm.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
Imgproc.calcBackProject(List<Mat> images,
MatOfInt channels,
Mat hist,
Mat dst,
MatOfFloat ranges,
double scale)
Calculates the back projection of a histogram.
|
static void |
Imgproc.calcHist(List<Mat> images,
MatOfInt channels,
Mat mask,
Mat hist,
MatOfInt histSize,
MatOfFloat ranges)
Calculates a histogram of a set of arrays.
|
static void |
Imgproc.calcHist(List<Mat> images,
MatOfInt channels,
Mat mask,
Mat hist,
MatOfInt histSize,
MatOfFloat ranges,
boolean accumulate)
Calculates a histogram of a set of arrays.
|
| Modifier and Type | Method and Description |
|---|---|
Mat |
CvRTrees.getVarImportance()
Returns the variable importance array.
|
Mat |
CvDTree.getVarImportance()
Returns the variable importance array.
|
| Modifier and Type | Method and Description |
|---|---|
void |
CvANN_MLP.create(Mat layerSizes)
Constructs MLP with the specified topology.
|
void |
CvANN_MLP.create(Mat layerSizes,
int activateFunc,
double fparam1,
double fparam2)
Constructs MLP with the specified topology.
|
float |
CvKNearest.find_nearest(Mat samples,
int k,
Mat results,
Mat neighborResponses,
Mat dists)
Finds the neighbors and predicts responses for input vectors.
|
void |
CvSVM.predict_all(Mat samples,
Mat results)
Predicts the response for input sample(s).
|
float |
CvRTrees.predict_prob(Mat sample)
Returns a fuzzy-predicted class label.
|
float |
CvRTrees.predict_prob(Mat sample,
Mat missing)
Returns a fuzzy-predicted class label.
|
double[] |
EM.predict(Mat sample)
Returns a likelihood logarithm value and an index of the most probable
mixture component for the given sample.
|
float |
CvSVM.predict(Mat sample)
Predicts the response for input sample(s).
|
float |
CvRTrees.predict(Mat sample)
Predicts the output for an input sample.
|
float |
CvNormalBayesClassifier.predict(Mat samples)
Predicts the response for sample(s).
|
float |
CvGBTrees.predict(Mat sample)
Predicts a response for an input sample.
|
float |
CvBoost.predict(Mat sample)
Predicts a response for an input sample.
|
float |
CvSVM.predict(Mat sample,
boolean returnDFVal)
Predicts the response for input sample(s).
|
double[] |
EM.predict(Mat sample,
Mat probs)
Returns a likelihood logarithm value and an index of the most probable
mixture component for the given sample.
|
float |
CvRTrees.predict(Mat sample,
Mat missing)
Predicts the output for an input sample.
|
float |
CvNormalBayesClassifier.predict(Mat samples,
Mat results)
Predicts the response for sample(s).
|
float |
CvANN_MLP.predict(Mat inputs,
Mat outputs)
Predicts responses for input samples.
|
float |
CvBoost.predict(Mat sample,
Mat missing,
Range slice,
boolean rawMode,
boolean returnSum)
Predicts a response for an input sample.
|
float |
CvGBTrees.predict(Mat sample,
Mat missing,
Range slice,
int k)
Predicts a response for an input sample.
|
boolean |
CvSVM.train_auto(Mat trainData,
Mat responses,
Mat varIdx,
Mat sampleIdx,
CvSVMParams params)
Trains an SVM with optimal parameters.
|
boolean |
CvSVM.train_auto(Mat trainData,
Mat responses,
Mat varIdx,
Mat sampleIdx,
CvSVMParams params,
int k_fold,
CvParamGrid Cgrid,
CvParamGrid gammaGrid,
CvParamGrid pGrid,
CvParamGrid nuGrid,
CvParamGrid coeffGrid,
CvParamGrid degreeGrid,
boolean balanced)
Trains an SVM with optimal parameters.
|
boolean |
EM.train(Mat samples)
Estimates the Gaussian mixture parameters from a samples set.
|
boolean |
CvRTrees.train(Mat trainData,
int tflag,
Mat responses)
Trains the Random Trees model.
|
boolean |
CvGBTrees.train(Mat trainData,
int tflag,
Mat responses)
Trains a Gradient boosted tree model.
|
boolean |
CvERTrees.train(Mat trainData,
int tflag,
Mat responses) |
boolean |
CvDTree.train(Mat trainData,
int tflag,
Mat responses)
Trains a decision tree.
|
boolean |
CvBoost.train(Mat trainData,
int tflag,
Mat responses)
Trains a boosted tree classifier.
|
boolean |
CvBoost.train(Mat trainData,
int tflag,
Mat responses,
Mat varIdx,
Mat sampleIdx,
Mat varType,
Mat missingDataMask,
CvBoostParams params,
boolean update)
Trains a boosted tree classifier.
|
boolean |
CvDTree.train(Mat trainData,
int tflag,
Mat responses,
Mat varIdx,
Mat sampleIdx,
Mat varType,
Mat missingDataMask,
CvDTreeParams params)
Trains a decision tree.
|
boolean |
CvGBTrees.train(Mat trainData,
int tflag,
Mat responses,
Mat varIdx,
Mat sampleIdx,
Mat varType,
Mat missingDataMask,
CvGBTreesParams params,
boolean update)
Trains a Gradient boosted tree model.
|
boolean |
CvRTrees.train(Mat trainData,
int tflag,
Mat responses,
Mat varIdx,
Mat sampleIdx,
Mat varType,
Mat missingDataMask,
CvRTParams params)
Trains the Random Trees model.
|
boolean |
CvERTrees.train(Mat trainData,
int tflag,
Mat responses,
Mat varIdx,
Mat sampleIdx,
Mat varType,
Mat missingDataMask,
CvRTParams params) |
boolean |
CvSVM.train(Mat trainData,
Mat responses)
Trains an SVM.
|
boolean |
CvNormalBayesClassifier.train(Mat trainData,
Mat responses)
Trains the model.
|
boolean |
CvKNearest.train(Mat trainData,
Mat responses)
Trains the model.
|
int |
CvANN_MLP.train(Mat inputs,
Mat outputs,
Mat sampleWeights)
Trains/updates MLP.
|
boolean |
CvKNearest.train(Mat trainData,
Mat responses,
Mat sampleIdx,
boolean isRegression,
int maxK,
boolean updateBase)
Trains the model.
|
boolean |
EM.train(Mat samples,
Mat logLikelihoods,
Mat labels,
Mat probs)
Estimates the Gaussian mixture parameters from a samples set.
|
boolean |
CvNormalBayesClassifier.train(Mat trainData,
Mat responses,
Mat varIdx,
Mat sampleIdx,
boolean update)
Trains the model.
|
int |
CvANN_MLP.train(Mat inputs,
Mat outputs,
Mat sampleWeights,
Mat sampleIdx,
CvANN_MLP_TrainParams params,
int flags)
Trains/updates MLP.
|
boolean |
CvSVM.train(Mat trainData,
Mat responses,
Mat varIdx,
Mat sampleIdx,
CvSVMParams params)
Trains an SVM.
|
boolean |
EM.trainE(Mat samples,
Mat means0) |
boolean |
EM.trainE(Mat samples,
Mat means0,
Mat covs0,
Mat weights0,
Mat logLikelihoods,
Mat labels,
Mat probs) |
boolean |
EM.trainM(Mat samples,
Mat probs0) |
boolean |
EM.trainM(Mat samples,
Mat probs0,
Mat logLikelihoods,
Mat labels,
Mat probs) |
| Constructor and Description |
|---|
CvANN_MLP(Mat layerSizes)
The constructors.
|
CvANN_MLP(Mat layerSizes,
int activateFunc,
double fparam1,
double fparam2)
The constructors.
|
CvBoost(Mat trainData,
int tflag,
Mat responses)
Default and training constructors.
|
CvBoost(Mat trainData,
int tflag,
Mat responses,
Mat varIdx,
Mat sampleIdx,
Mat varType,
Mat missingDataMask,
CvBoostParams params)
Default and training constructors.
|
CvGBTrees(Mat trainData,
int tflag,
Mat responses)
Default and training constructors.
|
CvGBTrees(Mat trainData,
int tflag,
Mat responses,
Mat varIdx,
Mat sampleIdx,
Mat varType,
Mat missingDataMask,
CvGBTreesParams params)
Default and training constructors.
|
CvKNearest(Mat trainData,
Mat responses)
Default and training constructors.
|
CvKNearest(Mat trainData,
Mat responses,
Mat sampleIdx,
boolean isRegression,
int max_k)
Default and training constructors.
|
CvNormalBayesClassifier(Mat trainData,
Mat responses)
Default and training constructors.
|
CvNormalBayesClassifier(Mat trainData,
Mat responses,
Mat varIdx,
Mat sampleIdx)
Default and training constructors.
|
CvSVM(Mat trainData,
Mat responses)
Default and training constructors.
|
CvSVM(Mat trainData,
Mat responses,
Mat varIdx,
Mat sampleIdx,
CvSVMParams params)
Default and training constructors.
|
| Modifier and Type | Method and Description |
|---|---|
void |
HOGDescriptor.compute(Mat img,
MatOfFloat descriptors) |
void |
HOGDescriptor.compute(Mat img,
MatOfFloat descriptors,
Size winStride,
Size padding,
MatOfPoint locations) |
void |
HOGDescriptor.computeGradient(Mat img,
Mat grad,
Mat angleOfs) |
void |
HOGDescriptor.computeGradient(Mat img,
Mat grad,
Mat angleOfs,
Size paddingTL,
Size paddingBR) |
void |
HOGDescriptor.detect(Mat img,
MatOfPoint foundLocations,
MatOfDouble weights) |
void |
HOGDescriptor.detect(Mat img,
MatOfPoint foundLocations,
MatOfDouble weights,
double hitThreshold,
Size winStride,
Size padding,
MatOfPoint searchLocations) |
void |
CascadeClassifier.detectMultiScale(Mat image,
MatOfRect objects)
Detects objects of different sizes in the input image.
|
void |
CascadeClassifier.detectMultiScale(Mat image,
MatOfRect objects,
double scaleFactor,
int minNeighbors,
int flags,
Size minSize,
Size maxSize)
Detects objects of different sizes in the input image.
|
void |
HOGDescriptor.detectMultiScale(Mat img,
MatOfRect foundLocations,
MatOfDouble foundWeights) |
void |
HOGDescriptor.detectMultiScale(Mat img,
MatOfRect foundLocations,
MatOfDouble foundWeights,
double hitThreshold,
Size winStride,
Size padding,
double scale,
double finalThreshold,
boolean useMeanshiftGrouping) |
void |
CascadeClassifier.detectMultiScale(Mat image,
MatOfRect objects,
MatOfInt rejectLevels,
MatOfDouble levelWeights)
Detects objects of different sizes in the input image.
|
void |
CascadeClassifier.detectMultiScale(Mat image,
MatOfRect objects,
MatOfInt rejectLevels,
MatOfDouble levelWeights,
double scaleFactor,
int minNeighbors,
int flags,
Size minSize,
Size maxSize,
boolean outputRejectLevels)
Detects objects of different sizes in the input image.
|
void |
HOGDescriptor.setSVMDetector(Mat _svmdetector) |
| Modifier and Type | Method and Description |
|---|---|
static void |
Photo.fastNlMeansDenoising(Mat src,
Mat dst)
Perform image denoising using Non-local Means Denoising algorithm
http://www.ipol.im/pub/algo/bcm_non_local_means_denoising/ with several
computational optimizations.
|
static void |
Photo.fastNlMeansDenoising(Mat src,
Mat dst,
float h,
int templateWindowSize,
int searchWindowSize)
Perform image denoising using Non-local Means Denoising algorithm
http://www.ipol.im/pub/algo/bcm_non_local_means_denoising/ with several
computational optimizations.
|
static void |
Photo.fastNlMeansDenoisingColored(Mat src,
Mat dst)
Modification of
fastNlMeansDenoising function for colored images |
static void |
Photo.fastNlMeansDenoisingColored(Mat src,
Mat dst,
float h,
float hColor,
int templateWindowSize,
int searchWindowSize)
Modification of
fastNlMeansDenoising function for colored images |
static void |
Photo.fastNlMeansDenoisingColoredMulti(List<Mat> srcImgs,
Mat dst,
int imgToDenoiseIndex,
int temporalWindowSize)
Modification of
fastNlMeansDenoisingMulti function for colored
images sequences |
static void |
Photo.fastNlMeansDenoisingColoredMulti(List<Mat> srcImgs,
Mat dst,
int imgToDenoiseIndex,
int temporalWindowSize,
float h,
float hColor,
int templateWindowSize,
int searchWindowSize)
Modification of
fastNlMeansDenoisingMulti function for colored
images sequences |
static void |
Photo.fastNlMeansDenoisingMulti(List<Mat> srcImgs,
Mat dst,
int imgToDenoiseIndex,
int temporalWindowSize)
Modification of
fastNlMeansDenoising function for images
sequence where consequtive images have been captured in small period of time. |
static void |
Photo.fastNlMeansDenoisingMulti(List<Mat> srcImgs,
Mat dst,
int imgToDenoiseIndex,
int temporalWindowSize,
float h,
int templateWindowSize,
int searchWindowSize)
Modification of
fastNlMeansDenoising function for images
sequence where consequtive images have been captured in small period of time. |
static void |
Photo.inpaint(Mat src,
Mat inpaintMask,
Mat dst,
double inpaintRadius,
int flags)
Restores the selected region in an image using the region neighborhood.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
Photo.fastNlMeansDenoisingColoredMulti(List<Mat> srcImgs,
Mat dst,
int imgToDenoiseIndex,
int temporalWindowSize)
Modification of
fastNlMeansDenoisingMulti function for colored
images sequences |
static void |
Photo.fastNlMeansDenoisingColoredMulti(List<Mat> srcImgs,
Mat dst,
int imgToDenoiseIndex,
int temporalWindowSize,
float h,
float hColor,
int templateWindowSize,
int searchWindowSize)
Modification of
fastNlMeansDenoisingMulti function for colored
images sequences |
static void |
Photo.fastNlMeansDenoisingMulti(List<Mat> srcImgs,
Mat dst,
int imgToDenoiseIndex,
int temporalWindowSize)
Modification of
fastNlMeansDenoising function for images
sequence where consequtive images have been captured in small period of time. |
static void |
Photo.fastNlMeansDenoisingMulti(List<Mat> srcImgs,
Mat dst,
int imgToDenoiseIndex,
int temporalWindowSize,
float h,
int templateWindowSize,
int searchWindowSize)
Modification of
fastNlMeansDenoising function for images
sequence where consequtive images have been captured in small period of time. |
| Modifier and Type | Method and 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_uchar(Mat m,
List<Byte> us) |
static void |
Converters.Mat_to_vector_vector_char(Mat m,
List<List<Byte>> llb) |
static void |
Converters.Mat_to_vector_vector_DMatch(Mat m,
List<MatOfDMatch> lvdm) |
static void |
Converters.Mat_to_vector_vector_KeyPoint(Mat m,
List<MatOfKeyPoint> kps) |
static void |
Converters.Mat_to_vector_vector_Point(Mat m,
List<MatOfPoint> pts) |
static void |
Converters.Mat_to_vector_vector_Point2f(Mat m,
List<MatOfPoint2f> pts) |
static void |
Converters.Mat_to_vector_vector_Point3f(Mat m,
List<MatOfPoint3f> pts) |
| Modifier and Type | Method and Description |
|---|---|
static void |
Converters.Mat_to_vector_Mat(Mat m,
List<Mat> mats) |
static Mat |
Converters.vector_Mat_to_Mat(List<Mat> mats) |
static Mat |
Converters.vector_vector_char_to_Mat(List<MatOfByte> lvb,
List<Mat> mats) |
static Mat |
Converters.vector_vector_DMatch_to_Mat(List<MatOfDMatch> lvdm,
List<Mat> mats) |
static Mat |
Converters.vector_vector_KeyPoint_to_Mat(List<MatOfKeyPoint> kps,
List<Mat> mats) |
static Mat |
Converters.vector_vector_Point_to_Mat(List<MatOfPoint> pts,
List<Mat> mats) |
static Mat |
Converters.vector_vector_Point2f_to_Mat(List<MatOfPoint2f> pts,
List<Mat> mats) |
static Mat |
Converters.vector_vector_Point3f_to_Mat(List<MatOfPoint3f> pts,
List<Mat> mats) |
| Modifier and Type | Method and Description |
|---|---|
Mat |
KalmanFilter.correct(Mat measurement)
Updates the predicted state from the measurement.
|
static Mat |
Video.estimateRigidTransform(Mat src,
Mat dst,
boolean fullAffine)
Computes an optimal affine transformation between two 2D point sets.
|
Mat |
KalmanFilter.predict()
Computes a predicted state.
|
Mat |
KalmanFilter.predict(Mat control)
Computes a predicted state.
|
| Modifier and Type | Method and Description |
|---|---|
void |
BackgroundSubtractor.apply(Mat image,
Mat fgmask)
Computes a foreground mask.
|
void |
BackgroundSubtractor.apply(Mat image,
Mat fgmask,
double learningRate)
Computes a foreground mask.
|
static int |
Video.buildOpticalFlowPyramid(Mat img,
List<Mat> pyramid,
Size winSize,
int maxLevel)
Constructs the image pyramid which can be passed to "calcOpticalFlowPyrLK".
|
static int |
Video.buildOpticalFlowPyramid(Mat img,
List<Mat> pyramid,
Size winSize,
int maxLevel,
boolean withDerivatives,
int pyrBorder,
int derivBorder,
boolean tryReuseInputImage)
Constructs the image pyramid which can be passed to "calcOpticalFlowPyrLK".
|
static double |
Video.calcGlobalOrientation(Mat orientation,
Mat mask,
Mat mhi,
double timestamp,
double duration)
Calculates a global motion orientation in a selected region.
|
static void |
Video.calcMotionGradient(Mat mhi,
Mat mask,
Mat orientation,
double delta1,
double delta2)
Calculates a gradient orientation of a motion history image.
|
static void |
Video.calcMotionGradient(Mat mhi,
Mat mask,
Mat orientation,
double delta1,
double delta2,
int apertureSize)
Calculates a gradient orientation of a motion history image.
|
static void |
Video.calcOpticalFlowFarneback(Mat prev,
Mat next,
Mat flow,
double pyr_scale,
int levels,
int winsize,
int iterations,
int poly_n,
double poly_sigma,
int flags)
Computes a dense optical flow using the Gunnar Farneback's algorithm.
|
static void |
Video.calcOpticalFlowPyrLK(Mat prevImg,
Mat nextImg,
MatOfPoint2f prevPts,
MatOfPoint2f nextPts,
MatOfByte status,
MatOfFloat err)
Calculates an optical flow for a sparse feature set using the iterative
Lucas-Kanade method with pyramids.
|
static void |
Video.calcOpticalFlowPyrLK(Mat prevImg,
Mat nextImg,
MatOfPoint2f prevPts,
MatOfPoint2f nextPts,
MatOfByte status,
MatOfFloat err,
Size winSize,
int maxLevel)
Calculates an optical flow for a sparse feature set using the iterative
Lucas-Kanade method with pyramids.
|
static void |
Video.calcOpticalFlowPyrLK(Mat prevImg,
Mat nextImg,
MatOfPoint2f prevPts,
MatOfPoint2f nextPts,
MatOfByte status,
MatOfFloat err,
Size winSize,
int maxLevel,
TermCriteria criteria,
int flags,
double minEigThreshold)
Calculates an optical flow for a sparse feature set using the iterative
Lucas-Kanade method with pyramids.
|
static void |
Video.calcOpticalFlowSF(Mat from,
Mat to,
Mat flow,
int layers,
int averaging_block_size,
int max_flow)
Calculate an optical flow using "SimpleFlow" algorithm.
|
static void |
Video.calcOpticalFlowSF(Mat from,
Mat to,
Mat flow,
int layers,
int averaging_block_size,
int max_flow,
double sigma_dist,
double sigma_color,
int postprocess_window,
double sigma_dist_fix,
double sigma_color_fix,
double occ_thr,
int upscale_averaging_radius,
double upscale_sigma_dist,
double upscale_sigma_color,
double speed_up_thr)
Calculate an optical flow using "SimpleFlow" algorithm.
|
static RotatedRect |
Video.CamShift(Mat probImage,
Rect window,
TermCriteria criteria)
Finds an object center, size, and orientation.
|
Mat |
KalmanFilter.correct(Mat measurement)
Updates the predicted state from the measurement.
|
static Mat |
Video.estimateRigidTransform(Mat src,
Mat dst,
boolean fullAffine)
Computes an optimal affine transformation between two 2D point sets.
|
static int |
Video.meanShift(Mat probImage,
Rect window,
TermCriteria criteria)
Finds an object on a back projection image.
|
Mat |
KalmanFilter.predict(Mat control)
Computes a predicted state.
|
static void |
Video.segmentMotion(Mat mhi,
Mat segmask,
MatOfRect boundingRects,
double timestamp,
double segThresh)
Splits a motion history image into a few parts corresponding to separate
independent motions (for example, left hand, right hand).
|
static void |
Video.updateMotionHistory(Mat silhouette,
Mat mhi,
double timestamp,
double duration)
Updates the motion history image by a moving silhouette.
|
| Modifier and Type | Method and Description |
|---|---|
static int |
Video.buildOpticalFlowPyramid(Mat img,
List<Mat> pyramid,
Size winSize,
int maxLevel)
Constructs the image pyramid which can be passed to "calcOpticalFlowPyrLK".
|
static int |
Video.buildOpticalFlowPyramid(Mat img,
List<Mat> pyramid,
Size winSize,
int maxLevel,
boolean withDerivatives,
int pyrBorder,
int derivBorder,
boolean tryReuseInputImage)
Constructs the image pyramid which can be passed to "calcOpticalFlowPyrLK".
|
Copyright © 2014. All rights reserved.