Uses of Class
org.opencv.core.Mat
-
-
Uses of Mat in org.opencv.aruco
Methods in org.opencv.aruco that return Mat Modifier and Type Method Description MatDictionary. get_bytesList()static MatDictionary. getBitsFromByteList(Mat byteList, int markerSize)Transform list of bytes to matrix of bitsstatic MatDictionary. getByteListFromBits(Mat bits)Transform matrix of bits to list of bytes in the 4 rotationsMethods in org.opencv.aruco with parameters of type Mat Modifier and Type Method Description static doubleAruco. calibrateCameraAruco(List<Mat> corners, Mat ids, Mat counter, Board board, Size imageSize, Mat cameraMatrix, Mat distCoeffs)It's the same function as #calibrateCameraAruco but without calibration error estimation.static doubleAruco. calibrateCameraAruco(List<Mat> corners, Mat ids, Mat counter, Board board, Size imageSize, Mat cameraMatrix, Mat distCoeffs, List<Mat> rvecs)It's the same function as #calibrateCameraAruco but without calibration error estimation.static doubleAruco. calibrateCameraAruco(List<Mat> corners, Mat ids, Mat counter, Board board, Size imageSize, Mat cameraMatrix, Mat distCoeffs, List<Mat> rvecs, List<Mat> tvecs)It's the same function as #calibrateCameraAruco but without calibration error estimation.static doubleAruco. calibrateCameraAruco(List<Mat> corners, Mat ids, Mat counter, Board board, Size imageSize, Mat cameraMatrix, Mat distCoeffs, List<Mat> rvecs, List<Mat> tvecs, int flags)It's the same function as #calibrateCameraAruco but without calibration error estimation.static doubleAruco. calibrateCameraAruco(List<Mat> corners, Mat ids, Mat counter, Board board, Size imageSize, Mat cameraMatrix, Mat distCoeffs, List<Mat> rvecs, List<Mat> tvecs, int flags, TermCriteria criteria)It's the same function as #calibrateCameraAruco but without calibration error estimation.static doubleAruco. calibrateCameraArucoExtended(List<Mat> corners, Mat ids, Mat counter, Board board, Size imageSize, Mat cameraMatrix, Mat distCoeffs, List<Mat> rvecs, List<Mat> tvecs, Mat stdDeviationsIntrinsics, Mat stdDeviationsExtrinsics, Mat perViewErrors)Calibrate a camera using aruco markersstatic doubleAruco. calibrateCameraArucoExtended(List<Mat> corners, Mat ids, Mat counter, Board board, Size imageSize, Mat cameraMatrix, Mat distCoeffs, List<Mat> rvecs, List<Mat> tvecs, Mat stdDeviationsIntrinsics, Mat stdDeviationsExtrinsics, Mat perViewErrors, int flags)Calibrate a camera using aruco markersstatic doubleAruco. calibrateCameraArucoExtended(List<Mat> corners, Mat ids, Mat counter, Board board, Size imageSize, Mat cameraMatrix, Mat distCoeffs, List<Mat> rvecs, List<Mat> tvecs, Mat stdDeviationsIntrinsics, Mat stdDeviationsExtrinsics, Mat perViewErrors, int flags, TermCriteria criteria)Calibrate a camera using aruco markersstatic doubleAruco. calibrateCameraCharuco(List<Mat> charucoCorners, List<Mat> charucoIds, CharucoBoard board, Size imageSize, Mat cameraMatrix, Mat distCoeffs)It's the same function as #calibrateCameraCharuco but without calibration error estimation.static doubleAruco. calibrateCameraCharuco(List<Mat> charucoCorners, List<Mat> charucoIds, CharucoBoard board, Size imageSize, Mat cameraMatrix, Mat distCoeffs, List<Mat> rvecs)It's the same function as #calibrateCameraCharuco but without calibration error estimation.static doubleAruco. calibrateCameraCharuco(List<Mat> charucoCorners, List<Mat> charucoIds, CharucoBoard board, Size imageSize, Mat cameraMatrix, Mat distCoeffs, List<Mat> rvecs, List<Mat> tvecs)It's the same function as #calibrateCameraCharuco but without calibration error estimation.static doubleAruco. calibrateCameraCharuco(List<Mat> charucoCorners, List<Mat> charucoIds, CharucoBoard board, Size imageSize, Mat cameraMatrix, Mat distCoeffs, List<Mat> rvecs, List<Mat> tvecs, int flags)It's the same function as #calibrateCameraCharuco but without calibration error estimation.static doubleAruco. calibrateCameraCharuco(List<Mat> charucoCorners, List<Mat> charucoIds, CharucoBoard board, Size imageSize, Mat cameraMatrix, Mat distCoeffs, List<Mat> rvecs, List<Mat> tvecs, int flags, TermCriteria criteria)It's the same function as #calibrateCameraCharuco but without calibration error estimation.static doubleAruco. calibrateCameraCharucoExtended(List<Mat> charucoCorners, List<Mat> charucoIds, CharucoBoard board, Size imageSize, Mat cameraMatrix, Mat distCoeffs, List<Mat> rvecs, List<Mat> tvecs, Mat stdDeviationsIntrinsics, Mat stdDeviationsExtrinsics, Mat perViewErrors)Calibrate a camera using Charuco cornersstatic doubleAruco. calibrateCameraCharucoExtended(List<Mat> charucoCorners, List<Mat> charucoIds, CharucoBoard board, Size imageSize, Mat cameraMatrix, Mat distCoeffs, List<Mat> rvecs, List<Mat> tvecs, Mat stdDeviationsIntrinsics, Mat stdDeviationsExtrinsics, Mat perViewErrors, int flags)Calibrate a camera using Charuco cornersstatic doubleAruco. calibrateCameraCharucoExtended(List<Mat> charucoCorners, List<Mat> charucoIds, CharucoBoard board, Size imageSize, Mat cameraMatrix, Mat distCoeffs, List<Mat> rvecs, List<Mat> tvecs, Mat stdDeviationsIntrinsics, Mat stdDeviationsExtrinsics, Mat perViewErrors, int flags, TermCriteria criteria)Calibrate a camera using Charuco cornersstatic BoardBoard. create(List<Mat> objPoints, Dictionary dictionary, Mat ids)Provide way to create Board by passing necessary data.static voidAruco. detectCharucoDiamond(Mat image, List<Mat> markerCorners, Mat markerIds, float squareMarkerLengthRate, List<Mat> diamondCorners, Mat diamondIds)Detect ChArUco Diamond markersstatic voidAruco. detectCharucoDiamond(Mat image, List<Mat> markerCorners, Mat markerIds, float squareMarkerLengthRate, List<Mat> diamondCorners, Mat diamondIds, Mat cameraMatrix)Detect ChArUco Diamond markersstatic voidAruco. detectCharucoDiamond(Mat image, List<Mat> markerCorners, Mat markerIds, float squareMarkerLengthRate, List<Mat> diamondCorners, Mat diamondIds, Mat cameraMatrix, Mat distCoeffs)Detect ChArUco Diamond markersstatic voidAruco. detectMarkers(Mat image, Dictionary dictionary, List<Mat> corners, Mat ids)Basic marker detectionstatic voidAruco. detectMarkers(Mat image, Dictionary dictionary, List<Mat> corners, Mat ids, DetectorParameters parameters)Basic marker detectionstatic voidAruco. detectMarkers(Mat image, Dictionary dictionary, List<Mat> corners, Mat ids, DetectorParameters parameters, List<Mat> rejectedImgPoints)Basic marker detectionstatic voidAruco. detectMarkers(Mat image, Dictionary dictionary, List<Mat> corners, Mat ids, DetectorParameters parameters, List<Mat> rejectedImgPoints, Mat cameraMatrix)Basic marker detectionstatic voidAruco. detectMarkers(Mat image, Dictionary dictionary, List<Mat> corners, Mat ids, DetectorParameters parameters, List<Mat> rejectedImgPoints, Mat cameraMatrix, Mat distCoeff)Basic marker detectionvoidCharucoBoard. draw(Size outSize, Mat img)Draw a ChArUco boardvoidCharucoBoard. draw(Size outSize, Mat img, int marginSize)Draw a ChArUco boardvoidCharucoBoard. draw(Size outSize, Mat img, int marginSize, int borderBits)Draw a ChArUco boardvoidGridBoard. draw(Size outSize, Mat img)Draw a GridBoardvoidGridBoard. draw(Size outSize, Mat img, int marginSize)Draw a GridBoardvoidGridBoard. draw(Size outSize, Mat img, int marginSize, int borderBits)Draw a GridBoardstatic voidAruco. drawAxis(Mat image, Mat cameraMatrix, Mat distCoeffs, Mat rvec, Mat tvec, float length)Deprecated.use cv::drawFrameAxesstatic voidAruco. drawDetectedCornersCharuco(Mat image, Mat charucoCorners)Draws a set of Charuco cornersstatic voidAruco. drawDetectedCornersCharuco(Mat image, Mat charucoCorners, Mat charucoIds)Draws a set of Charuco cornersstatic voidAruco. drawDetectedCornersCharuco(Mat image, Mat charucoCorners, Mat charucoIds, Scalar cornerColor)Draws a set of Charuco cornersstatic voidAruco. drawDetectedDiamonds(Mat image, List<Mat> diamondCorners)Draw a set of detected ChArUco Diamond markersstatic voidAruco. drawDetectedDiamonds(Mat image, List<Mat> diamondCorners, Mat diamondIds)Draw a set of detected ChArUco Diamond markersstatic voidAruco. drawDetectedDiamonds(Mat image, List<Mat> diamondCorners, Mat diamondIds, Scalar borderColor)Draw a set of detected ChArUco Diamond markersstatic voidAruco. drawDetectedMarkers(Mat image, List<Mat> corners)Draw detected markers in imagestatic voidAruco. drawDetectedMarkers(Mat image, List<Mat> corners, Mat ids)Draw detected markers in imagestatic voidAruco. drawDetectedMarkers(Mat image, List<Mat> corners, Mat ids, Scalar borderColor)Draw detected markers in imagestatic voidAruco. drawMarker(Dictionary dictionary, int id, int sidePixels, Mat img)Draw a canonical marker imagestatic voidAruco. drawMarker(Dictionary dictionary, int id, int sidePixels, Mat img, int borderBits)Draw a canonical marker imagevoidDictionary. drawMarker(int id, int sidePixels, Mat _img)Draw a canonical marker imagevoidDictionary. drawMarker(int id, int sidePixels, Mat _img, int borderBits)Draw a canonical marker imagestatic voidAruco. drawPlanarBoard(Board board, Size outSize, Mat img)Draw a planar board SEE: _drawPlanarBoardImplstatic voidAruco. drawPlanarBoard(Board board, Size outSize, Mat img, int marginSize)Draw a planar board SEE: _drawPlanarBoardImplstatic voidAruco. drawPlanarBoard(Board board, Size outSize, Mat img, int marginSize, int borderBits)Draw a planar board SEE: _drawPlanarBoardImplstatic intAruco. estimatePoseBoard(List<Mat> corners, Mat ids, Board board, Mat cameraMatrix, Mat distCoeffs, Mat rvec, Mat tvec)Pose estimation for a board of markersstatic intAruco. estimatePoseBoard(List<Mat> corners, Mat ids, Board board, Mat cameraMatrix, Mat distCoeffs, Mat rvec, Mat tvec, boolean useExtrinsicGuess)Pose estimation for a board of markersstatic booleanAruco. estimatePoseCharucoBoard(Mat charucoCorners, Mat charucoIds, CharucoBoard board, Mat cameraMatrix, Mat distCoeffs, Mat rvec, Mat tvec)Pose estimation for a ChArUco board given some of their cornersstatic booleanAruco. estimatePoseCharucoBoard(Mat charucoCorners, Mat charucoIds, CharucoBoard board, Mat cameraMatrix, Mat distCoeffs, Mat rvec, Mat tvec, boolean useExtrinsicGuess)Pose estimation for a ChArUco board given some of their cornersstatic voidAruco. estimatePoseSingleMarkers(List<Mat> corners, float markerLength, Mat cameraMatrix, Mat distCoeffs, Mat rvecs, Mat tvecs)Pose estimation for single markersstatic voidAruco. estimatePoseSingleMarkers(List<Mat> corners, float markerLength, Mat cameraMatrix, Mat distCoeffs, Mat rvecs, Mat tvecs, Mat _objPoints)Pose estimation for single markersstatic MatDictionary. getBitsFromByteList(Mat byteList, int markerSize)Transform list of bytes to matrix of bitsstatic voidAruco. getBoardObjectAndImagePoints(Board board, List<Mat> detectedCorners, Mat detectedIds, Mat objPoints, Mat imgPoints)Given a board configuration and a set of detected markers, returns the corresponding image points and object points to call solvePnPstatic MatDictionary. getByteListFromBits(Mat bits)Transform matrix of bits to list of bytes in the 4 rotationsstatic intAruco. interpolateCornersCharuco(List<Mat> markerCorners, Mat markerIds, Mat image, CharucoBoard board, Mat charucoCorners, Mat charucoIds)Interpolate position of ChArUco board cornersstatic intAruco. interpolateCornersCharuco(List<Mat> markerCorners, Mat markerIds, Mat image, CharucoBoard board, Mat charucoCorners, Mat charucoIds, Mat cameraMatrix)Interpolate position of ChArUco board cornersstatic intAruco. interpolateCornersCharuco(List<Mat> markerCorners, Mat markerIds, Mat image, CharucoBoard board, Mat charucoCorners, Mat charucoIds, Mat cameraMatrix, Mat distCoeffs)Interpolate position of ChArUco board cornersstatic intAruco. interpolateCornersCharuco(List<Mat> markerCorners, Mat markerIds, Mat image, CharucoBoard board, Mat charucoCorners, Mat charucoIds, Mat cameraMatrix, Mat distCoeffs, int minMarkers)Interpolate position of ChArUco board cornersstatic voidAruco. refineDetectedMarkers(Mat image, Board board, List<Mat> detectedCorners, Mat detectedIds, List<Mat> rejectedCorners)Refind not detected markers based on the already detected and the board layoutstatic voidAruco. refineDetectedMarkers(Mat image, Board board, List<Mat> detectedCorners, Mat detectedIds, List<Mat> rejectedCorners, Mat cameraMatrix)Refind not detected markers based on the already detected and the board layoutstatic voidAruco. refineDetectedMarkers(Mat image, Board board, List<Mat> detectedCorners, Mat detectedIds, List<Mat> rejectedCorners, Mat cameraMatrix, Mat distCoeffs)Refind not detected markers based on the already detected and the board layoutstatic voidAruco. refineDetectedMarkers(Mat image, Board board, List<Mat> detectedCorners, Mat detectedIds, List<Mat> rejectedCorners, Mat cameraMatrix, Mat distCoeffs, float minRepDistance)Refind not detected markers based on the already detected and the board layoutstatic voidAruco. refineDetectedMarkers(Mat image, Board board, List<Mat> detectedCorners, Mat detectedIds, List<Mat> rejectedCorners, Mat cameraMatrix, Mat distCoeffs, float minRepDistance, float errorCorrectionRate)Refind not detected markers based on the already detected and the board layoutstatic voidAruco. refineDetectedMarkers(Mat image, Board board, List<Mat> detectedCorners, Mat detectedIds, List<Mat> rejectedCorners, Mat cameraMatrix, Mat distCoeffs, float minRepDistance, float errorCorrectionRate, boolean checkAllOrders)Refind not detected markers based on the already detected and the board layoutstatic voidAruco. refineDetectedMarkers(Mat image, Board board, List<Mat> detectedCorners, Mat detectedIds, List<Mat> rejectedCorners, Mat cameraMatrix, Mat distCoeffs, float minRepDistance, float errorCorrectionRate, boolean checkAllOrders, Mat recoveredIdxs)Refind not detected markers based on the already detected and the board layoutstatic voidAruco. refineDetectedMarkers(Mat image, Board board, List<Mat> detectedCorners, Mat detectedIds, List<Mat> rejectedCorners, Mat cameraMatrix, Mat distCoeffs, float minRepDistance, float errorCorrectionRate, boolean checkAllOrders, Mat recoveredIdxs, DetectorParameters parameters)Refind not detected markers based on the already detected and the board layoutvoidDictionary. set_bytesList(Mat bytesList)voidBoard. setIds(Mat ids)Set ids vectorstatic booleanAruco. testCharucoCornersCollinear(CharucoBoard _board, Mat _charucoIds)test whether the ChArUco markers are collinearMethod parameters in org.opencv.aruco with type arguments of type Mat Modifier and Type Method Description static doubleAruco. calibrateCameraAruco(List<Mat> corners, Mat ids, Mat counter, Board board, Size imageSize, Mat cameraMatrix, Mat distCoeffs)It's the same function as #calibrateCameraAruco but without calibration error estimation.static doubleAruco. calibrateCameraAruco(List<Mat> corners, Mat ids, Mat counter, Board board, Size imageSize, Mat cameraMatrix, Mat distCoeffs, List<Mat> rvecs)It's the same function as #calibrateCameraAruco but without calibration error estimation.static doubleAruco. calibrateCameraAruco(List<Mat> corners, Mat ids, Mat counter, Board board, Size imageSize, Mat cameraMatrix, Mat distCoeffs, List<Mat> rvecs, List<Mat> tvecs)It's the same function as #calibrateCameraAruco but without calibration error estimation.static doubleAruco. calibrateCameraAruco(List<Mat> corners, Mat ids, Mat counter, Board board, Size imageSize, Mat cameraMatrix, Mat distCoeffs, List<Mat> rvecs, List<Mat> tvecs, int flags)It's the same function as #calibrateCameraAruco but without calibration error estimation.static doubleAruco. calibrateCameraAruco(List<Mat> corners, Mat ids, Mat counter, Board board, Size imageSize, Mat cameraMatrix, Mat distCoeffs, List<Mat> rvecs, List<Mat> tvecs, int flags, TermCriteria criteria)It's the same function as #calibrateCameraAruco but without calibration error estimation.static doubleAruco. calibrateCameraArucoExtended(List<Mat> corners, Mat ids, Mat counter, Board board, Size imageSize, Mat cameraMatrix, Mat distCoeffs, List<Mat> rvecs, List<Mat> tvecs, Mat stdDeviationsIntrinsics, Mat stdDeviationsExtrinsics, Mat perViewErrors)Calibrate a camera using aruco markersstatic doubleAruco. calibrateCameraArucoExtended(List<Mat> corners, Mat ids, Mat counter, Board board, Size imageSize, Mat cameraMatrix, Mat distCoeffs, List<Mat> rvecs, List<Mat> tvecs, Mat stdDeviationsIntrinsics, Mat stdDeviationsExtrinsics, Mat perViewErrors, int flags)Calibrate a camera using aruco markersstatic doubleAruco. calibrateCameraArucoExtended(List<Mat> corners, Mat ids, Mat counter, Board board, Size imageSize, Mat cameraMatrix, Mat distCoeffs, List<Mat> rvecs, List<Mat> tvecs, Mat stdDeviationsIntrinsics, Mat stdDeviationsExtrinsics, Mat perViewErrors, int flags, TermCriteria criteria)Calibrate a camera using aruco markersstatic doubleAruco. calibrateCameraCharuco(List<Mat> charucoCorners, List<Mat> charucoIds, CharucoBoard board, Size imageSize, Mat cameraMatrix, Mat distCoeffs)It's the same function as #calibrateCameraCharuco but without calibration error estimation.static doubleAruco. calibrateCameraCharuco(List<Mat> charucoCorners, List<Mat> charucoIds, CharucoBoard board, Size imageSize, Mat cameraMatrix, Mat distCoeffs, List<Mat> rvecs)It's the same function as #calibrateCameraCharuco but without calibration error estimation.static doubleAruco. calibrateCameraCharuco(List<Mat> charucoCorners, List<Mat> charucoIds, CharucoBoard board, Size imageSize, Mat cameraMatrix, Mat distCoeffs, List<Mat> rvecs, List<Mat> tvecs)It's the same function as #calibrateCameraCharuco but without calibration error estimation.static doubleAruco. calibrateCameraCharuco(List<Mat> charucoCorners, List<Mat> charucoIds, CharucoBoard board, Size imageSize, Mat cameraMatrix, Mat distCoeffs, List<Mat> rvecs, List<Mat> tvecs, int flags)It's the same function as #calibrateCameraCharuco but without calibration error estimation.static doubleAruco. calibrateCameraCharuco(List<Mat> charucoCorners, List<Mat> charucoIds, CharucoBoard board, Size imageSize, Mat cameraMatrix, Mat distCoeffs, List<Mat> rvecs, List<Mat> tvecs, int flags, TermCriteria criteria)It's the same function as #calibrateCameraCharuco but without calibration error estimation.static doubleAruco. calibrateCameraCharucoExtended(List<Mat> charucoCorners, List<Mat> charucoIds, CharucoBoard board, Size imageSize, Mat cameraMatrix, Mat distCoeffs, List<Mat> rvecs, List<Mat> tvecs, Mat stdDeviationsIntrinsics, Mat stdDeviationsExtrinsics, Mat perViewErrors)Calibrate a camera using Charuco cornersstatic doubleAruco. calibrateCameraCharucoExtended(List<Mat> charucoCorners, List<Mat> charucoIds, CharucoBoard board, Size imageSize, Mat cameraMatrix, Mat distCoeffs, List<Mat> rvecs, List<Mat> tvecs, Mat stdDeviationsIntrinsics, Mat stdDeviationsExtrinsics, Mat perViewErrors, int flags)Calibrate a camera using Charuco cornersstatic doubleAruco. calibrateCameraCharucoExtended(List<Mat> charucoCorners, List<Mat> charucoIds, CharucoBoard board, Size imageSize, Mat cameraMatrix, Mat distCoeffs, List<Mat> rvecs, List<Mat> tvecs, Mat stdDeviationsIntrinsics, Mat stdDeviationsExtrinsics, Mat perViewErrors, int flags, TermCriteria criteria)Calibrate a camera using Charuco cornersstatic BoardBoard. create(List<Mat> objPoints, Dictionary dictionary, Mat ids)Provide way to create Board by passing necessary data.static voidAruco. detectCharucoDiamond(Mat image, List<Mat> markerCorners, Mat markerIds, float squareMarkerLengthRate, List<Mat> diamondCorners, Mat diamondIds)Detect ChArUco Diamond markersstatic voidAruco. detectCharucoDiamond(Mat image, List<Mat> markerCorners, Mat markerIds, float squareMarkerLengthRate, List<Mat> diamondCorners, Mat diamondIds, Mat cameraMatrix)Detect ChArUco Diamond markersstatic voidAruco. detectCharucoDiamond(Mat image, List<Mat> markerCorners, Mat markerIds, float squareMarkerLengthRate, List<Mat> diamondCorners, Mat diamondIds, Mat cameraMatrix, Mat distCoeffs)Detect ChArUco Diamond markersstatic voidAruco. detectMarkers(Mat image, Dictionary dictionary, List<Mat> corners, Mat ids)Basic marker detectionstatic voidAruco. detectMarkers(Mat image, Dictionary dictionary, List<Mat> corners, Mat ids, DetectorParameters parameters)Basic marker detectionstatic voidAruco. detectMarkers(Mat image, Dictionary dictionary, List<Mat> corners, Mat ids, DetectorParameters parameters, List<Mat> rejectedImgPoints)Basic marker detectionstatic voidAruco. detectMarkers(Mat image, Dictionary dictionary, List<Mat> corners, Mat ids, DetectorParameters parameters, List<Mat> rejectedImgPoints, Mat cameraMatrix)Basic marker detectionstatic voidAruco. detectMarkers(Mat image, Dictionary dictionary, List<Mat> corners, Mat ids, DetectorParameters parameters, List<Mat> rejectedImgPoints, Mat cameraMatrix, Mat distCoeff)Basic marker detectionstatic voidAruco. drawDetectedDiamonds(Mat image, List<Mat> diamondCorners)Draw a set of detected ChArUco Diamond markersstatic voidAruco. drawDetectedDiamonds(Mat image, List<Mat> diamondCorners, Mat diamondIds)Draw a set of detected ChArUco Diamond markersstatic voidAruco. drawDetectedDiamonds(Mat image, List<Mat> diamondCorners, Mat diamondIds, Scalar borderColor)Draw a set of detected ChArUco Diamond markersstatic voidAruco. drawDetectedMarkers(Mat image, List<Mat> corners)Draw detected markers in imagestatic voidAruco. drawDetectedMarkers(Mat image, List<Mat> corners, Mat ids)Draw detected markers in imagestatic voidAruco. drawDetectedMarkers(Mat image, List<Mat> corners, Mat ids, Scalar borderColor)Draw detected markers in imagestatic intAruco. estimatePoseBoard(List<Mat> corners, Mat ids, Board board, Mat cameraMatrix, Mat distCoeffs, Mat rvec, Mat tvec)Pose estimation for a board of markersstatic intAruco. estimatePoseBoard(List<Mat> corners, Mat ids, Board board, Mat cameraMatrix, Mat distCoeffs, Mat rvec, Mat tvec, boolean useExtrinsicGuess)Pose estimation for a board of markersstatic voidAruco. estimatePoseSingleMarkers(List<Mat> corners, float markerLength, Mat cameraMatrix, Mat distCoeffs, Mat rvecs, Mat tvecs)Pose estimation for single markersstatic voidAruco. estimatePoseSingleMarkers(List<Mat> corners, float markerLength, Mat cameraMatrix, Mat distCoeffs, Mat rvecs, Mat tvecs, Mat _objPoints)Pose estimation for single markersstatic voidAruco. getBoardObjectAndImagePoints(Board board, List<Mat> detectedCorners, Mat detectedIds, Mat objPoints, Mat imgPoints)Given a board configuration and a set of detected markers, returns the corresponding image points and object points to call solvePnPstatic intAruco. interpolateCornersCharuco(List<Mat> markerCorners, Mat markerIds, Mat image, CharucoBoard board, Mat charucoCorners, Mat charucoIds)Interpolate position of ChArUco board cornersstatic intAruco. interpolateCornersCharuco(List<Mat> markerCorners, Mat markerIds, Mat image, CharucoBoard board, Mat charucoCorners, Mat charucoIds, Mat cameraMatrix)Interpolate position of ChArUco board cornersstatic intAruco. interpolateCornersCharuco(List<Mat> markerCorners, Mat markerIds, Mat image, CharucoBoard board, Mat charucoCorners, Mat charucoIds, Mat cameraMatrix, Mat distCoeffs)Interpolate position of ChArUco board cornersstatic intAruco. interpolateCornersCharuco(List<Mat> markerCorners, Mat markerIds, Mat image, CharucoBoard board, Mat charucoCorners, Mat charucoIds, Mat cameraMatrix, Mat distCoeffs, int minMarkers)Interpolate position of ChArUco board cornersstatic voidAruco. refineDetectedMarkers(Mat image, Board board, List<Mat> detectedCorners, Mat detectedIds, List<Mat> rejectedCorners)Refind not detected markers based on the already detected and the board layoutstatic voidAruco. refineDetectedMarkers(Mat image, Board board, List<Mat> detectedCorners, Mat detectedIds, List<Mat> rejectedCorners, Mat cameraMatrix)Refind not detected markers based on the already detected and the board layoutstatic voidAruco. refineDetectedMarkers(Mat image, Board board, List<Mat> detectedCorners, Mat detectedIds, List<Mat> rejectedCorners, Mat cameraMatrix, Mat distCoeffs)Refind not detected markers based on the already detected and the board layoutstatic voidAruco. refineDetectedMarkers(Mat image, Board board, List<Mat> detectedCorners, Mat detectedIds, List<Mat> rejectedCorners, Mat cameraMatrix, Mat distCoeffs, float minRepDistance)Refind not detected markers based on the already detected and the board layoutstatic voidAruco. refineDetectedMarkers(Mat image, Board board, List<Mat> detectedCorners, Mat detectedIds, List<Mat> rejectedCorners, Mat cameraMatrix, Mat distCoeffs, float minRepDistance, float errorCorrectionRate)Refind not detected markers based on the already detected and the board layoutstatic voidAruco. refineDetectedMarkers(Mat image, Board board, List<Mat> detectedCorners, Mat detectedIds, List<Mat> rejectedCorners, Mat cameraMatrix, Mat distCoeffs, float minRepDistance, float errorCorrectionRate, boolean checkAllOrders)Refind not detected markers based on the already detected and the board layoutstatic voidAruco. refineDetectedMarkers(Mat image, Board board, List<Mat> detectedCorners, Mat detectedIds, List<Mat> rejectedCorners, Mat cameraMatrix, Mat distCoeffs, float minRepDistance, float errorCorrectionRate, boolean checkAllOrders, Mat recoveredIdxs)Refind not detected markers based on the already detected and the board layoutstatic voidAruco. refineDetectedMarkers(Mat image, Board board, List<Mat> detectedCorners, Mat detectedIds, List<Mat> rejectedCorners, Mat cameraMatrix, Mat distCoeffs, float minRepDistance, float errorCorrectionRate, boolean checkAllOrders, Mat recoveredIdxs, DetectorParameters parameters)Refind not detected markers based on the already detected and the board layout -
Uses of Mat in org.opencv.barcode
Methods in org.opencv.barcode with parameters of type Mat Modifier and Type Method Description booleanBarcodeDetector. decode(Mat img, Mat points, List<String> decoded_info, List<Integer> decoded_type)Decodes barcode in image once it's found by the detect() method.booleanBarcodeDetector. detect(Mat img, Mat points)Detects Barcode in image and returns the rectangle(s) containing the code.booleanBarcodeDetector. detectAndDecode(Mat img, List<String> decoded_info, List<Integer> decoded_type)Both detects and decodes barcodebooleanBarcodeDetector. detectAndDecode(Mat img, List<String> decoded_info, List<Integer> decoded_type, Mat points)Both detects and decodes barcode -
Uses of Mat in org.opencv.bgsegm
Methods in org.opencv.bgsegm with parameters of type Mat Modifier and Type Method Description voidBackgroundSubtractorCNT. apply(Mat image, Mat fgmask)voidBackgroundSubtractorCNT. apply(Mat image, Mat fgmask, double learningRate)voidBackgroundSubtractorGSOC. apply(Mat image, Mat fgmask)voidBackgroundSubtractorGSOC. apply(Mat image, Mat fgmask, double learningRate)voidBackgroundSubtractorLSBP. apply(Mat image, Mat fgmask)voidBackgroundSubtractorLSBP. apply(Mat image, Mat fgmask, double learningRate)static SyntheticSequenceGeneratorBgsegm. createSyntheticSequenceGenerator(Mat background, Mat object)Creates an instance of SyntheticSequenceGenerator.static SyntheticSequenceGeneratorBgsegm. createSyntheticSequenceGenerator(Mat background, Mat object, double amplitude)Creates an instance of SyntheticSequenceGenerator.static SyntheticSequenceGeneratorBgsegm. createSyntheticSequenceGenerator(Mat background, Mat object, double amplitude, double wavelength)Creates an instance of SyntheticSequenceGenerator.static SyntheticSequenceGeneratorBgsegm. createSyntheticSequenceGenerator(Mat background, Mat object, double amplitude, double wavelength, double wavespeed)Creates an instance of SyntheticSequenceGenerator.static SyntheticSequenceGeneratorBgsegm. createSyntheticSequenceGenerator(Mat background, Mat object, double amplitude, double wavelength, double wavespeed, double objspeed)Creates an instance of SyntheticSequenceGenerator.voidBackgroundSubtractorCNT. getBackgroundImage(Mat backgroundImage)voidBackgroundSubtractorGSOC. getBackgroundImage(Mat backgroundImage)voidBackgroundSubtractorLSBP. getBackgroundImage(Mat backgroundImage)voidSyntheticSequenceGenerator. getNextFrame(Mat frame, Mat gtMask)Obtain the next frame in the sequence.Constructors in org.opencv.bgsegm with parameters of type Mat Constructor Description SyntheticSequenceGenerator(Mat background, Mat object, double amplitude, double wavelength, double wavespeed, double objspeed)Creates an instance of SyntheticSequenceGenerator. -
Uses of Mat in org.opencv.bioinspired
Methods in org.opencv.bioinspired that return Mat Modifier and Type Method Description MatRetina. getMagnoRAW()MatRetina. getParvoRAW()Methods in org.opencv.bioinspired with parameters of type Mat Modifier and Type Method Description voidRetina. applyFastToneMapping(Mat inputImage, Mat outputToneMappedImage)Method which processes an image in the aim to correct its luminance correct backlight problems, enhance details in shadows.voidRetinaFastToneMapping. applyFastToneMapping(Mat inputImage, Mat outputToneMappedImage)applies a luminance correction (initially High Dynamic Range (HDR) tone mapping) using only the 2 local adaptation stages of the retina parvocellular channel : photoreceptors level and ganlion cells level.voidRetina. getMagno(Mat retinaOutput_magno)Accessor of the motion channel of the retina (models peripheral vision).voidRetina. getMagnoRAW(Mat retinaOutput_magno)Accessor of the motion channel of the retina (models peripheral vision).voidRetina. getParvo(Mat retinaOutput_parvo)Accessor of the details channel of the retina (models foveal vision).voidRetina. getParvoRAW(Mat retinaOutput_parvo)Accessor of the details channel of the retina (models foveal vision).voidTransientAreasSegmentationModule. getSegmentationPicture(Mat transientAreas)access function return the last segmentation result: a boolean picture which is resampled between 0 and 255 for a display purposevoidRetina. run(Mat inputImage)Method which allows retina to be applied on an input image, after run, encapsulated retina module is ready to deliver its outputs using dedicated acccessors, see getParvo and getMagno methodsvoidTransientAreasSegmentationModule. run(Mat inputToSegment)main processing method, get result using methods getSegmentationPicture()voidTransientAreasSegmentationModule. run(Mat inputToSegment, int channelIndex)main processing method, get result using methods getSegmentationPicture() -
Uses of Mat in org.opencv.calib3d
Methods in org.opencv.calib3d that return Mat Modifier and Type Method Description static MatCalib3d. estimateAffine2D(Mat from, Mat to)Computes an optimal affine transformation between two 2D point sets.static MatCalib3d. estimateAffine2D(Mat from, Mat to, Mat inliers)Computes an optimal affine transformation between two 2D point sets.static MatCalib3d. estimateAffine2D(Mat from, Mat to, Mat inliers, int method)Computes an optimal affine transformation between two 2D point sets.static MatCalib3d. estimateAffine2D(Mat from, Mat to, Mat inliers, int method, double ransacReprojThreshold)Computes an optimal affine transformation between two 2D point sets.static MatCalib3d. estimateAffine2D(Mat from, Mat to, Mat inliers, int method, double ransacReprojThreshold, long maxIters)Computes an optimal affine transformation between two 2D point sets.static MatCalib3d. estimateAffine2D(Mat from, Mat to, Mat inliers, int method, double ransacReprojThreshold, long maxIters, double confidence)Computes an optimal affine transformation between two 2D point sets.static MatCalib3d. estimateAffine2D(Mat from, Mat to, Mat inliers, int method, double ransacReprojThreshold, long maxIters, double confidence, long refineIters)Computes an optimal affine transformation between two 2D point sets.static MatCalib3d. estimateAffine2D(Mat pts1, Mat pts2, Mat inliers, UsacParams params)static MatCalib3d. estimateAffine3D(Mat src, Mat dst)Computes an optimal affine transformation between two 3D point sets.static MatCalib3d. estimateAffine3D(Mat src, Mat dst, double[] scale)Computes an optimal affine transformation between two 3D point sets.static MatCalib3d. estimateAffine3D(Mat src, Mat dst, double[] scale, boolean force_rotation)Computes an optimal affine transformation between two 3D point sets.static MatCalib3d. estimateAffinePartial2D(Mat from, Mat to)Computes an optimal limited affine transformation with 4 degrees of freedom between two 2D point sets.static MatCalib3d. estimateAffinePartial2D(Mat from, Mat to, Mat inliers)Computes an optimal limited affine transformation with 4 degrees of freedom between two 2D point sets.static MatCalib3d. estimateAffinePartial2D(Mat from, Mat to, Mat inliers, int method)Computes an optimal limited affine transformation with 4 degrees of freedom between two 2D point sets.static MatCalib3d. estimateAffinePartial2D(Mat from, Mat to, Mat inliers, int method, double ransacReprojThreshold)Computes an optimal limited affine transformation with 4 degrees of freedom between two 2D point sets.static MatCalib3d. estimateAffinePartial2D(Mat from, Mat to, Mat inliers, int method, double ransacReprojThreshold, long maxIters)Computes an optimal limited affine transformation with 4 degrees of freedom between two 2D point sets.static MatCalib3d. estimateAffinePartial2D(Mat from, Mat to, Mat inliers, int method, double ransacReprojThreshold, long maxIters, double confidence)Computes an optimal limited affine transformation with 4 degrees of freedom between two 2D point sets.static MatCalib3d. estimateAffinePartial2D(Mat from, Mat to, Mat inliers, int method, double ransacReprojThreshold, long maxIters, double confidence, long refineIters)Computes an optimal limited affine transformation with 4 degrees of freedom between two 2D point sets.static MatCalib3d. findEssentialMat(Mat points1, Mat points2)static MatCalib3d. findEssentialMat(Mat points1, Mat points2, double focal)static MatCalib3d. findEssentialMat(Mat points1, Mat points2, double focal, Point pp)static MatCalib3d. findEssentialMat(Mat points1, Mat points2, double focal, Point pp, int method)static MatCalib3d. findEssentialMat(Mat points1, Mat points2, double focal, Point pp, int method, double prob)static MatCalib3d. findEssentialMat(Mat points1, Mat points2, double focal, Point pp, int method, double prob, double threshold)static MatCalib3d. findEssentialMat(Mat points1, Mat points2, double focal, Point pp, int method, double prob, double threshold, int maxIters)static MatCalib3d. findEssentialMat(Mat points1, Mat points2, double focal, Point pp, int method, double prob, double threshold, int maxIters, Mat mask)static MatCalib3d. findEssentialMat(Mat points1, Mat points2, Mat cameraMatrix)Calculates an essential matrix from the corresponding points in two images.static MatCalib3d. findEssentialMat(Mat points1, Mat points2, Mat cameraMatrix, int method)Calculates an essential matrix from the corresponding points in two images.static MatCalib3d. findEssentialMat(Mat points1, Mat points2, Mat cameraMatrix, int method, double prob)Calculates an essential matrix from the corresponding points in two images.static MatCalib3d. findEssentialMat(Mat points1, Mat points2, Mat cameraMatrix, int method, double prob, double threshold)Calculates an essential matrix from the corresponding points in two images.static MatCalib3d. findEssentialMat(Mat points1, Mat points2, Mat cameraMatrix, int method, double prob, double threshold, int maxIters)Calculates an essential matrix from the corresponding points in two images.static MatCalib3d. findEssentialMat(Mat points1, Mat points2, Mat cameraMatrix, int method, double prob, double threshold, int maxIters, Mat mask)Calculates an essential matrix from the corresponding points in two images.static MatCalib3d. findEssentialMat(Mat points1, Mat points2, Mat cameraMatrix1, Mat distCoeffs1, Mat cameraMatrix2, Mat distCoeffs2)Calculates an essential matrix from the corresponding points in two images from potentially two different cameras.static MatCalib3d. findEssentialMat(Mat points1, Mat points2, Mat cameraMatrix1, Mat distCoeffs1, Mat cameraMatrix2, Mat distCoeffs2, int method)Calculates an essential matrix from the corresponding points in two images from potentially two different cameras.static MatCalib3d. findEssentialMat(Mat points1, Mat points2, Mat cameraMatrix1, Mat distCoeffs1, Mat cameraMatrix2, Mat distCoeffs2, int method, double prob)Calculates an essential matrix from the corresponding points in two images from potentially two different cameras.static MatCalib3d. findEssentialMat(Mat points1, Mat points2, Mat cameraMatrix1, Mat distCoeffs1, Mat cameraMatrix2, Mat distCoeffs2, int method, double prob, double threshold)Calculates an essential matrix from the corresponding points in two images from potentially two different cameras.static MatCalib3d. findEssentialMat(Mat points1, Mat points2, Mat cameraMatrix1, Mat distCoeffs1, Mat cameraMatrix2, Mat distCoeffs2, int method, double prob, double threshold, Mat mask)Calculates an essential matrix from the corresponding points in two images from potentially two different cameras.static MatCalib3d. findEssentialMat(Mat points1, Mat points2, Mat cameraMatrix1, Mat cameraMatrix2, Mat dist_coeff1, Mat dist_coeff2, Mat mask, UsacParams params)static MatCalib3d. findFundamentalMat(MatOfPoint2f points1, MatOfPoint2f points2)static MatCalib3d. findFundamentalMat(MatOfPoint2f points1, MatOfPoint2f points2, int method)static MatCalib3d. findFundamentalMat(MatOfPoint2f points1, MatOfPoint2f points2, int method, double ransacReprojThreshold)static MatCalib3d. findFundamentalMat(MatOfPoint2f points1, MatOfPoint2f points2, int method, double ransacReprojThreshold, double confidence)static MatCalib3d. findFundamentalMat(MatOfPoint2f points1, MatOfPoint2f points2, int method, double ransacReprojThreshold, double confidence, int maxIters)Calculates a fundamental matrix from the corresponding points in two images.static MatCalib3d. findFundamentalMat(MatOfPoint2f points1, MatOfPoint2f points2, int method, double ransacReprojThreshold, double confidence, int maxIters, Mat mask)Calculates a fundamental matrix from the corresponding points in two images.static MatCalib3d. findFundamentalMat(MatOfPoint2f points1, MatOfPoint2f points2, int method, double ransacReprojThreshold, double confidence, Mat mask)static MatCalib3d. findFundamentalMat(MatOfPoint2f points1, MatOfPoint2f points2, Mat mask, UsacParams params)static MatCalib3d. findHomography(MatOfPoint2f srcPoints, MatOfPoint2f dstPoints)Finds a perspective transformation between two planes.static MatCalib3d. findHomography(MatOfPoint2f srcPoints, MatOfPoint2f dstPoints, int method)Finds a perspective transformation between two planes.static MatCalib3d. findHomography(MatOfPoint2f srcPoints, MatOfPoint2f dstPoints, int method, double ransacReprojThreshold)Finds a perspective transformation between two planes.static MatCalib3d. findHomography(MatOfPoint2f srcPoints, MatOfPoint2f dstPoints, int method, double ransacReprojThreshold, Mat mask)Finds a perspective transformation between two planes.static MatCalib3d. findHomography(MatOfPoint2f srcPoints, MatOfPoint2f dstPoints, int method, double ransacReprojThreshold, Mat mask, int maxIters)Finds a perspective transformation between two planes.static MatCalib3d. findHomography(MatOfPoint2f srcPoints, MatOfPoint2f dstPoints, int method, double ransacReprojThreshold, Mat mask, int maxIters, double confidence)Finds a perspective transformation between two planes.static MatCalib3d. findHomography(MatOfPoint2f srcPoints, MatOfPoint2f dstPoints, Mat mask, UsacParams params)static MatCalib3d. getDefaultNewCameraMatrix(Mat cameraMatrix)Returns the default new camera matrix.static MatCalib3d. getDefaultNewCameraMatrix(Mat cameraMatrix, Size imgsize)Returns the default new camera matrix.static MatCalib3d. getDefaultNewCameraMatrix(Mat cameraMatrix, Size imgsize, boolean centerPrincipalPoint)Returns the default new camera matrix.static MatCalib3d. getOptimalNewCameraMatrix(Mat cameraMatrix, Mat distCoeffs, Size imageSize, double alpha)Returns the new camera intrinsic matrix based on the free scaling parameter.static MatCalib3d. getOptimalNewCameraMatrix(Mat cameraMatrix, Mat distCoeffs, Size imageSize, double alpha, Size newImgSize)Returns the new camera intrinsic matrix based on the free scaling parameter.static MatCalib3d. getOptimalNewCameraMatrix(Mat cameraMatrix, Mat distCoeffs, Size imageSize, double alpha, Size newImgSize, Rect validPixROI)Returns the new camera intrinsic matrix based on the free scaling parameter.static MatCalib3d. getOptimalNewCameraMatrix(Mat cameraMatrix, Mat distCoeffs, Size imageSize, double alpha, Size newImgSize, Rect validPixROI, boolean centerPrincipalPoint)Returns the new camera intrinsic matrix based on the free scaling parameter.static MatCalib3d. initCameraMatrix2D(List<MatOfPoint3f> objectPoints, List<MatOfPoint2f> imagePoints, Size imageSize)Finds an initial camera intrinsic matrix from 3D-2D point correspondences.static MatCalib3d. initCameraMatrix2D(List<MatOfPoint3f> objectPoints, List<MatOfPoint2f> imagePoints, Size imageSize, double aspectRatio)Finds an initial camera intrinsic matrix from 3D-2D point correspondences.Methods in org.opencv.calib3d with parameters of type Mat Modifier and Type Method Description static doubleCalib3d. calibrateCamera(List<Mat> objectPoints, List<Mat> imagePoints, Size imageSize, Mat cameraMatrix, Mat distCoeffs, List<Mat> rvecs, List<Mat> tvecs)static doubleCalib3d. calibrateCamera(List<Mat> objectPoints, List<Mat> imagePoints, Size imageSize, Mat cameraMatrix, Mat distCoeffs, List<Mat> rvecs, List<Mat> tvecs, int flags)static doubleCalib3d. calibrateCamera(List<Mat> objectPoints, List<Mat> imagePoints, Size imageSize, Mat cameraMatrix, Mat distCoeffs, List<Mat> rvecs, List<Mat> tvecs, int flags, TermCriteria criteria)static doubleCalib3d. calibrateCameraExtended(List<Mat> objectPoints, List<Mat> imagePoints, Size imageSize, Mat cameraMatrix, Mat distCoeffs, List<Mat> rvecs, List<Mat> tvecs, Mat stdDeviationsIntrinsics, Mat stdDeviationsExtrinsics, Mat perViewErrors)Finds the camera intrinsic and extrinsic parameters from several views of a calibration pattern.static doubleCalib3d. calibrateCameraExtended(List<Mat> objectPoints, List<Mat> imagePoints, Size imageSize, Mat cameraMatrix, Mat distCoeffs, List<Mat> rvecs, List<Mat> tvecs, Mat stdDeviationsIntrinsics, Mat stdDeviationsExtrinsics, Mat perViewErrors, int flags)Finds the camera intrinsic and extrinsic parameters from several views of a calibration pattern.static doubleCalib3d. calibrateCameraExtended(List<Mat> objectPoints, List<Mat> imagePoints, Size imageSize, Mat cameraMatrix, Mat distCoeffs, List<Mat> rvecs, List<Mat> tvecs, Mat stdDeviationsIntrinsics, Mat stdDeviationsExtrinsics, Mat perViewErrors, int flags, TermCriteria criteria)Finds the camera intrinsic and extrinsic parameters from several views of a calibration pattern.static doubleCalib3d. calibrateCameraRO(List<Mat> objectPoints, List<Mat> imagePoints, Size imageSize, int iFixedPoint, Mat cameraMatrix, Mat distCoeffs, List<Mat> rvecs, List<Mat> tvecs, Mat newObjPoints)static doubleCalib3d. calibrateCameraRO(List<Mat> objectPoints, List<Mat> imagePoints, Size imageSize, int iFixedPoint, Mat cameraMatrix, Mat distCoeffs, List<Mat> rvecs, List<Mat> tvecs, Mat newObjPoints, int flags)static doubleCalib3d. calibrateCameraRO(List<Mat> objectPoints, List<Mat> imagePoints, Size imageSize, int iFixedPoint, Mat cameraMatrix, Mat distCoeffs, List<Mat> rvecs, List<Mat> tvecs, Mat newObjPoints, int flags, TermCriteria criteria)static doubleCalib3d. calibrateCameraROExtended(List<Mat> objectPoints, List<Mat> imagePoints, Size imageSize, int iFixedPoint, Mat cameraMatrix, Mat distCoeffs, List<Mat> rvecs, List<Mat> tvecs, Mat newObjPoints, Mat stdDeviationsIntrinsics, Mat stdDeviationsExtrinsics, Mat stdDeviationsObjPoints, Mat perViewErrors)Finds the camera intrinsic and extrinsic parameters from several views of a calibration pattern.static doubleCalib3d. calibrateCameraROExtended(List<Mat> objectPoints, List<Mat> imagePoints, Size imageSize, int iFixedPoint, Mat cameraMatrix, Mat distCoeffs, List<Mat> rvecs, List<Mat> tvecs, Mat newObjPoints, Mat stdDeviationsIntrinsics, Mat stdDeviationsExtrinsics, Mat stdDeviationsObjPoints, Mat perViewErrors, int flags)Finds the camera intrinsic and extrinsic parameters from several views of a calibration pattern.static doubleCalib3d. calibrateCameraROExtended(List<Mat> objectPoints, List<Mat> imagePoints, Size imageSize, int iFixedPoint, Mat cameraMatrix, Mat distCoeffs, List<Mat> rvecs, List<Mat> tvecs, Mat newObjPoints, Mat stdDeviationsIntrinsics, Mat stdDeviationsExtrinsics, Mat stdDeviationsObjPoints, Mat perViewErrors, int flags, TermCriteria criteria)Finds the camera intrinsic and extrinsic parameters from several views of a calibration pattern.static voidCalib3d. calibrateHandEye(List<Mat> R_gripper2base, List<Mat> t_gripper2base, List<Mat> R_target2cam, List<Mat> t_target2cam, Mat R_cam2gripper, Mat t_cam2gripper)Computes Hand-Eye calibration: \(_{}^{g}\textrm{T}_c\)static voidCalib3d. calibrateHandEye(List<Mat> R_gripper2base, List<Mat> t_gripper2base, List<Mat> R_target2cam, List<Mat> t_target2cam, Mat R_cam2gripper, Mat t_cam2gripper, int method)Computes Hand-Eye calibration: \(_{}^{g}\textrm{T}_c\)static voidCalib3d. calibrateRobotWorldHandEye(List<Mat> R_world2cam, List<Mat> t_world2cam, List<Mat> R_base2gripper, List<Mat> t_base2gripper, Mat R_base2world, Mat t_base2world, Mat R_gripper2cam, Mat t_gripper2cam)Computes Robot-World/Hand-Eye calibration: \(_{}^{w}\textrm{T}_b\) and \(_{}^{c}\textrm{T}_g\)static voidCalib3d. calibrateRobotWorldHandEye(List<Mat> R_world2cam, List<Mat> t_world2cam, List<Mat> R_base2gripper, List<Mat> t_base2gripper, Mat R_base2world, Mat t_base2world, Mat R_gripper2cam, Mat t_gripper2cam, int method)Computes Robot-World/Hand-Eye calibration: \(_{}^{w}\textrm{T}_b\) and \(_{}^{c}\textrm{T}_g\)static voidCalib3d. 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 intrinsic matrix.static booleanCalib3d. checkChessboard(Mat img, Size size)static voidCalib3d. composeRT(Mat rvec1, Mat tvec1, Mat rvec2, Mat tvec2, Mat rvec3, Mat tvec3)Combines two rotation-and-shift transformations.static voidCalib3d. composeRT(Mat rvec1, Mat tvec1, Mat rvec2, Mat tvec2, Mat rvec3, Mat tvec3, Mat dr3dr1)Combines two rotation-and-shift transformations.static voidCalib3d. composeRT(Mat rvec1, Mat tvec1, Mat rvec2, Mat tvec2, Mat rvec3, Mat tvec3, Mat dr3dr1, Mat dr3dt1)Combines two rotation-and-shift transformations.static voidCalib3d. composeRT(Mat rvec1, Mat tvec1, Mat rvec2, Mat tvec2, Mat rvec3, Mat tvec3, Mat dr3dr1, Mat dr3dt1, Mat dr3dr2)Combines two rotation-and-shift transformations.static voidCalib3d. composeRT(Mat rvec1, Mat tvec1, Mat rvec2, Mat tvec2, Mat rvec3, Mat tvec3, Mat dr3dr1, Mat dr3dt1, Mat dr3dr2, Mat dr3dt2)Combines two rotation-and-shift transformations.static voidCalib3d. composeRT(Mat rvec1, Mat tvec1, Mat rvec2, Mat tvec2, Mat rvec3, Mat tvec3, Mat dr3dr1, Mat dr3dt1, Mat dr3dr2, Mat dr3dt2, Mat dt3dr1)Combines two rotation-and-shift transformations.static voidCalib3d. 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)Combines two rotation-and-shift transformations.static voidCalib3d. 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)Combines two rotation-and-shift transformations.static voidCalib3d. 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.voidStereoMatcher. compute(Mat left, Mat right, Mat disparity)Computes disparity map for the specified stereo pairstatic voidCalib3d. 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 voidCalib3d. convertPointsFromHomogeneous(Mat src, Mat dst)Converts points from homogeneous to Euclidean space.static voidCalib3d. convertPointsToHomogeneous(Mat src, Mat dst)Converts points from Euclidean to homogeneous space.static voidCalib3d. correctMatches(Mat F, Mat points1, Mat points2, Mat newPoints1, Mat newPoints2)Refines coordinates of corresponding points.static voidCalib3d. decomposeEssentialMat(Mat E, Mat R1, Mat R2, Mat t)Decompose an essential matrix to possible rotations and translation.static intCalib3d. decomposeHomographyMat(Mat H, Mat K, List<Mat> rotations, List<Mat> translations, List<Mat> normals)Decompose a homography matrix to rotation(s), translation(s) and plane normal(s).static voidCalib3d. decomposeProjectionMatrix(Mat projMatrix, Mat cameraMatrix, Mat rotMatrix, Mat transVect)Decomposes a projection matrix into a rotation matrix and a camera intrinsic matrix.static voidCalib3d. decomposeProjectionMatrix(Mat projMatrix, Mat cameraMatrix, Mat rotMatrix, Mat transVect, Mat rotMatrixX)Decomposes a projection matrix into a rotation matrix and a camera intrinsic matrix.static voidCalib3d. decomposeProjectionMatrix(Mat projMatrix, Mat cameraMatrix, Mat rotMatrix, Mat transVect, Mat rotMatrixX, Mat rotMatrixY)Decomposes a projection matrix into a rotation matrix and a camera intrinsic matrix.static voidCalib3d. decomposeProjectionMatrix(Mat projMatrix, Mat cameraMatrix, Mat rotMatrix, Mat transVect, Mat rotMatrixX, Mat rotMatrixY, Mat rotMatrixZ)Decomposes a projection matrix into a rotation matrix and a camera intrinsic matrix.static voidCalib3d. 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 intrinsic matrix.static voidCalib3d. drawChessboardCorners(Mat image, Size patternSize, MatOfPoint2f corners, boolean patternWasFound)Renders the detected chessboard corners.static voidCalib3d. drawFrameAxes(Mat image, Mat cameraMatrix, Mat distCoeffs, Mat rvec, Mat tvec, float length)Draw axes of the world/object coordinate system from pose estimation.static voidCalib3d. drawFrameAxes(Mat image, Mat cameraMatrix, Mat distCoeffs, Mat rvec, Mat tvec, float length, int thickness)Draw axes of the world/object coordinate system from pose estimation.static MatCalib3d. estimateAffine2D(Mat from, Mat to)Computes an optimal affine transformation between two 2D point sets.static MatCalib3d. estimateAffine2D(Mat from, Mat to, Mat inliers)Computes an optimal affine transformation between two 2D point sets.static MatCalib3d. estimateAffine2D(Mat from, Mat to, Mat inliers, int method)Computes an optimal affine transformation between two 2D point sets.static MatCalib3d. estimateAffine2D(Mat from, Mat to, Mat inliers, int method, double ransacReprojThreshold)Computes an optimal affine transformation between two 2D point sets.static MatCalib3d. estimateAffine2D(Mat from, Mat to, Mat inliers, int method, double ransacReprojThreshold, long maxIters)Computes an optimal affine transformation between two 2D point sets.static MatCalib3d. estimateAffine2D(Mat from, Mat to, Mat inliers, int method, double ransacReprojThreshold, long maxIters, double confidence)Computes an optimal affine transformation between two 2D point sets.static MatCalib3d. estimateAffine2D(Mat from, Mat to, Mat inliers, int method, double ransacReprojThreshold, long maxIters, double confidence, long refineIters)Computes an optimal affine transformation between two 2D point sets.static MatCalib3d. estimateAffine2D(Mat pts1, Mat pts2, Mat inliers, UsacParams params)static MatCalib3d. estimateAffine3D(Mat src, Mat dst)Computes an optimal affine transformation between two 3D point sets.static MatCalib3d. estimateAffine3D(Mat src, Mat dst, double[] scale)Computes an optimal affine transformation between two 3D point sets.static MatCalib3d. estimateAffine3D(Mat src, Mat dst, double[] scale, boolean force_rotation)Computes an optimal affine transformation between two 3D point sets.static intCalib3d. estimateAffine3D(Mat src, Mat dst, Mat out, Mat inliers)Computes an optimal affine transformation between two 3D point sets.static intCalib3d. estimateAffine3D(Mat src, Mat dst, Mat out, Mat inliers, double ransacThreshold)Computes an optimal affine transformation between two 3D point sets.static intCalib3d. estimateAffine3D(Mat src, Mat dst, Mat out, Mat inliers, double ransacThreshold, double confidence)Computes an optimal affine transformation between two 3D point sets.static MatCalib3d. estimateAffinePartial2D(Mat from, Mat to)Computes an optimal limited affine transformation with 4 degrees of freedom between two 2D point sets.static MatCalib3d. estimateAffinePartial2D(Mat from, Mat to, Mat inliers)Computes an optimal limited affine transformation with 4 degrees of freedom between two 2D point sets.static MatCalib3d. estimateAffinePartial2D(Mat from, Mat to, Mat inliers, int method)Computes an optimal limited affine transformation with 4 degrees of freedom between two 2D point sets.static MatCalib3d. estimateAffinePartial2D(Mat from, Mat to, Mat inliers, int method, double ransacReprojThreshold)Computes an optimal limited affine transformation with 4 degrees of freedom between two 2D point sets.static MatCalib3d. estimateAffinePartial2D(Mat from, Mat to, Mat inliers, int method, double ransacReprojThreshold, long maxIters)Computes an optimal limited affine transformation with 4 degrees of freedom between two 2D point sets.static MatCalib3d. estimateAffinePartial2D(Mat from, Mat to, Mat inliers, int method, double ransacReprojThreshold, long maxIters, double confidence)Computes an optimal limited affine transformation with 4 degrees of freedom between two 2D point sets.static MatCalib3d. estimateAffinePartial2D(Mat from, Mat to, Mat inliers, int method, double ransacReprojThreshold, long maxIters, double confidence, long refineIters)Computes an optimal limited affine transformation with 4 degrees of freedom between two 2D point sets.static ScalarCalib3d. estimateChessboardSharpness(Mat image, Size patternSize, Mat corners)Estimates the sharpness of a detected chessboard.static ScalarCalib3d. estimateChessboardSharpness(Mat image, Size patternSize, Mat corners, float rise_distance)Estimates the sharpness of a detected chessboard.static ScalarCalib3d. estimateChessboardSharpness(Mat image, Size patternSize, Mat corners, float rise_distance, boolean vertical)Estimates the sharpness of a detected chessboard.static ScalarCalib3d. estimateChessboardSharpness(Mat image, Size patternSize, Mat corners, float rise_distance, boolean vertical, Mat sharpness)Estimates the sharpness of a detected chessboard.static intCalib3d. estimateTranslation3D(Mat src, Mat dst, Mat out, Mat inliers)Computes an optimal translation between two 3D point sets.static intCalib3d. estimateTranslation3D(Mat src, Mat dst, Mat out, Mat inliers, double ransacThreshold)Computes an optimal translation between two 3D point sets.static intCalib3d. estimateTranslation3D(Mat src, Mat dst, Mat out, Mat inliers, double ransacThreshold, double confidence)Computes an optimal translation between two 3D point sets.static voidCalib3d. filterHomographyDecompByVisibleRefpoints(List<Mat> rotations, List<Mat> normals, Mat beforePoints, Mat afterPoints, Mat possibleSolutions)Filters homography decompositions based on additional information.static voidCalib3d. filterHomographyDecompByVisibleRefpoints(List<Mat> rotations, List<Mat> normals, Mat beforePoints, Mat afterPoints, Mat possibleSolutions, Mat pointsMask)Filters homography decompositions based on additional information.static voidCalib3d. filterSpeckles(Mat img, double newVal, int maxSpeckleSize, double maxDiff)Filters off small noise blobs (speckles) in the disparity mapstatic voidCalib3d. filterSpeckles(Mat img, double newVal, int maxSpeckleSize, double maxDiff, Mat buf)Filters off small noise blobs (speckles) in the disparity mapstatic booleanCalib3d. find4QuadCornerSubpix(Mat img, Mat corners, Size region_size)static booleanCalib3d. findChessboardCorners(Mat image, Size patternSize, MatOfPoint2f corners)Finds the positions of internal corners of the chessboard.static booleanCalib3d. findChessboardCorners(Mat image, Size patternSize, MatOfPoint2f corners, int flags)Finds the positions of internal corners of the chessboard.static booleanCalib3d. findChessboardCornersSB(Mat image, Size patternSize, Mat corners)static booleanCalib3d. findChessboardCornersSB(Mat image, Size patternSize, Mat corners, int flags)static booleanCalib3d. findChessboardCornersSBWithMeta(Mat image, Size patternSize, Mat corners, int flags, Mat meta)Finds the positions of internal corners of the chessboard using a sector based approach.static booleanCalib3d. findCirclesGrid(Mat image, Size patternSize, Mat centers)static booleanCalib3d. findCirclesGrid(Mat image, Size patternSize, Mat centers, int flags)static MatCalib3d. findEssentialMat(Mat points1, Mat points2)static MatCalib3d. findEssentialMat(Mat points1, Mat points2, double focal)static MatCalib3d. findEssentialMat(Mat points1, Mat points2, double focal, Point pp)static MatCalib3d. findEssentialMat(Mat points1, Mat points2, double focal, Point pp, int method)static MatCalib3d. findEssentialMat(Mat points1, Mat points2, double focal, Point pp, int method, double prob)static MatCalib3d. findEssentialMat(Mat points1, Mat points2, double focal, Point pp, int method, double prob, double threshold)static MatCalib3d. findEssentialMat(Mat points1, Mat points2, double focal, Point pp, int method, double prob, double threshold, int maxIters)static MatCalib3d. findEssentialMat(Mat points1, Mat points2, double focal, Point pp, int method, double prob, double threshold, int maxIters, Mat mask)static MatCalib3d. findEssentialMat(Mat points1, Mat points2, Mat cameraMatrix)Calculates an essential matrix from the corresponding points in two images.static MatCalib3d. findEssentialMat(Mat points1, Mat points2, Mat cameraMatrix, int method)Calculates an essential matrix from the corresponding points in two images.static MatCalib3d. findEssentialMat(Mat points1, Mat points2, Mat cameraMatrix, int method, double prob)Calculates an essential matrix from the corresponding points in two images.static MatCalib3d. findEssentialMat(Mat points1, Mat points2, Mat cameraMatrix, int method, double prob, double threshold)Calculates an essential matrix from the corresponding points in two images.static MatCalib3d. findEssentialMat(Mat points1, Mat points2, Mat cameraMatrix, int method, double prob, double threshold, int maxIters)Calculates an essential matrix from the corresponding points in two images.static MatCalib3d. findEssentialMat(Mat points1, Mat points2, Mat cameraMatrix, int method, double prob, double threshold, int maxIters, Mat mask)Calculates an essential matrix from the corresponding points in two images.static MatCalib3d. findEssentialMat(Mat points1, Mat points2, Mat cameraMatrix1, Mat distCoeffs1, Mat cameraMatrix2, Mat distCoeffs2)Calculates an essential matrix from the corresponding points in two images from potentially two different cameras.static MatCalib3d. findEssentialMat(Mat points1, Mat points2, Mat cameraMatrix1, Mat distCoeffs1, Mat cameraMatrix2, Mat distCoeffs2, int method)Calculates an essential matrix from the corresponding points in two images from potentially two different cameras.static MatCalib3d. findEssentialMat(Mat points1, Mat points2, Mat cameraMatrix1, Mat distCoeffs1, Mat cameraMatrix2, Mat distCoeffs2, int method, double prob)Calculates an essential matrix from the corresponding points in two images from potentially two different cameras.static MatCalib3d. findEssentialMat(Mat points1, Mat points2, Mat cameraMatrix1, Mat distCoeffs1, Mat cameraMatrix2, Mat distCoeffs2, int method, double prob, double threshold)Calculates an essential matrix from the corresponding points in two images from potentially two different cameras.static MatCalib3d. findEssentialMat(Mat points1, Mat points2, Mat cameraMatrix1, Mat distCoeffs1, Mat cameraMatrix2, Mat distCoeffs2, int method, double prob, double threshold, Mat mask)Calculates an essential matrix from the corresponding points in two images from potentially two different cameras.static MatCalib3d. findEssentialMat(Mat points1, Mat points2, Mat cameraMatrix1, Mat cameraMatrix2, Mat dist_coeff1, Mat dist_coeff2, Mat mask, UsacParams params)static MatCalib3d. findFundamentalMat(MatOfPoint2f points1, MatOfPoint2f points2, int method, double ransacReprojThreshold, double confidence, int maxIters, Mat mask)Calculates a fundamental matrix from the corresponding points in two images.static MatCalib3d. findFundamentalMat(MatOfPoint2f points1, MatOfPoint2f points2, int method, double ransacReprojThreshold, double confidence, Mat mask)static MatCalib3d. findFundamentalMat(MatOfPoint2f points1, MatOfPoint2f points2, Mat mask, UsacParams params)static MatCalib3d. findHomography(MatOfPoint2f srcPoints, MatOfPoint2f dstPoints, int method, double ransacReprojThreshold, Mat mask)Finds a perspective transformation between two planes.static MatCalib3d. findHomography(MatOfPoint2f srcPoints, MatOfPoint2f dstPoints, int method, double ransacReprojThreshold, Mat mask, int maxIters)Finds a perspective transformation between two planes.static MatCalib3d. findHomography(MatOfPoint2f srcPoints, MatOfPoint2f dstPoints, int method, double ransacReprojThreshold, Mat mask, int maxIters, double confidence)Finds a perspective transformation between two planes.static MatCalib3d. findHomography(MatOfPoint2f srcPoints, MatOfPoint2f dstPoints, Mat mask, UsacParams params)static doubleCalib3d. fisheye_calibrate(List<Mat> objectPoints, List<Mat> imagePoints, Size image_size, Mat K, Mat D, List<Mat> rvecs, List<Mat> tvecs)Performs camera calibarationstatic doubleCalib3d. fisheye_calibrate(List<Mat> objectPoints, List<Mat> imagePoints, Size image_size, Mat K, Mat D, List<Mat> rvecs, List<Mat> tvecs, int flags)Performs camera calibarationstatic doubleCalib3d. fisheye_calibrate(List<Mat> objectPoints, List<Mat> imagePoints, Size image_size, Mat K, Mat D, List<Mat> rvecs, List<Mat> tvecs, int flags, TermCriteria criteria)Performs camera calibarationstatic voidCalib3d. fisheye_distortPoints(Mat undistorted, Mat distorted, Mat K, Mat D)Distorts 2D points using fisheye model.static voidCalib3d. fisheye_distortPoints(Mat undistorted, Mat distorted, Mat K, Mat D, double alpha)Distorts 2D points using fisheye model.static voidCalib3d. fisheye_estimateNewCameraMatrixForUndistortRectify(Mat K, Mat D, Size image_size, Mat R, Mat P)Estimates new camera intrinsic matrix for undistortion or rectification.static voidCalib3d. fisheye_estimateNewCameraMatrixForUndistortRectify(Mat K, Mat D, Size image_size, Mat R, Mat P, double balance)Estimates new camera intrinsic matrix for undistortion or rectification.static voidCalib3d. fisheye_estimateNewCameraMatrixForUndistortRectify(Mat K, Mat D, Size image_size, Mat R, Mat P, double balance, Size new_size)Estimates new camera intrinsic matrix for undistortion or rectification.static voidCalib3d. fisheye_estimateNewCameraMatrixForUndistortRectify(Mat K, Mat D, Size image_size, Mat R, Mat P, double balance, Size new_size, double fov_scale)Estimates new camera intrinsic matrix for undistortion or rectification.static voidCalib3d. fisheye_initUndistortRectifyMap(Mat K, Mat D, Mat R, Mat P, Size size, int m1type, Mat map1, Mat map2)Computes undistortion and rectification maps for image transform by #remap.static voidCalib3d. fisheye_projectPoints(Mat objectPoints, Mat imagePoints, Mat rvec, Mat tvec, Mat K, Mat D)static voidCalib3d. fisheye_projectPoints(Mat objectPoints, Mat imagePoints, Mat rvec, Mat tvec, Mat K, Mat D, double alpha)static voidCalib3d. fisheye_projectPoints(Mat objectPoints, Mat imagePoints, Mat rvec, Mat tvec, Mat K, Mat D, double alpha, Mat jacobian)static doubleCalib3d. fisheye_stereoCalibrate(List<Mat> objectPoints, List<Mat> imagePoints1, List<Mat> imagePoints2, Mat K1, Mat D1, Mat K2, Mat D2, Size imageSize, Mat R, Mat T)Performs stereo calibrationstatic doubleCalib3d. fisheye_stereoCalibrate(List<Mat> objectPoints, List<Mat> imagePoints1, List<Mat> imagePoints2, Mat K1, Mat D1, Mat K2, Mat D2, Size imageSize, Mat R, Mat T, int flags)Performs stereo calibrationstatic doubleCalib3d. fisheye_stereoCalibrate(List<Mat> objectPoints, List<Mat> imagePoints1, List<Mat> imagePoints2, Mat K1, Mat D1, Mat K2, Mat D2, Size imageSize, Mat R, Mat T, int flags, TermCriteria criteria)Performs stereo calibrationstatic voidCalib3d. fisheye_stereoRectify(Mat K1, Mat D1, Mat K2, Mat D2, Size imageSize, Mat R, Mat tvec, Mat R1, Mat R2, Mat P1, Mat P2, Mat Q, int flags)Stereo rectification for fisheye camera modelstatic voidCalib3d. fisheye_stereoRectify(Mat K1, Mat D1, Mat K2, Mat D2, Size imageSize, Mat R, Mat tvec, Mat R1, Mat R2, Mat P1, Mat P2, Mat Q, int flags, Size newImageSize)Stereo rectification for fisheye camera modelstatic voidCalib3d. fisheye_stereoRectify(Mat K1, Mat D1, Mat K2, Mat D2, Size imageSize, Mat R, Mat tvec, Mat R1, Mat R2, Mat P1, Mat P2, Mat Q, int flags, Size newImageSize, double balance)Stereo rectification for fisheye camera modelstatic voidCalib3d. fisheye_stereoRectify(Mat K1, Mat D1, Mat K2, Mat D2, Size imageSize, Mat R, Mat tvec, Mat R1, Mat R2, Mat P1, Mat P2, Mat Q, int flags, Size newImageSize, double balance, double fov_scale)Stereo rectification for fisheye camera modelstatic voidCalib3d. fisheye_undistortImage(Mat distorted, Mat undistorted, Mat K, Mat D)Transforms an image to compensate for fisheye lens distortion.static voidCalib3d. fisheye_undistortImage(Mat distorted, Mat undistorted, Mat K, Mat D, Mat Knew)Transforms an image to compensate for fisheye lens distortion.static voidCalib3d. fisheye_undistortImage(Mat distorted, Mat undistorted, Mat K, Mat D, Mat Knew, Size new_size)Transforms an image to compensate for fisheye lens distortion.static voidCalib3d. fisheye_undistortPoints(Mat distorted, Mat undistorted, Mat K, Mat D)Undistorts 2D points using fisheye modelstatic voidCalib3d. fisheye_undistortPoints(Mat distorted, Mat undistorted, Mat K, Mat D, Mat R)Undistorts 2D points using fisheye modelstatic voidCalib3d. fisheye_undistortPoints(Mat distorted, Mat undistorted, Mat K, Mat D, Mat R, Mat P)Undistorts 2D points using fisheye modelstatic MatCalib3d. getDefaultNewCameraMatrix(Mat cameraMatrix)Returns the default new camera matrix.static MatCalib3d. getDefaultNewCameraMatrix(Mat cameraMatrix, Size imgsize)Returns the default new camera matrix.static MatCalib3d. getDefaultNewCameraMatrix(Mat cameraMatrix, Size imgsize, boolean centerPrincipalPoint)Returns the default new camera matrix.static MatCalib3d. getOptimalNewCameraMatrix(Mat cameraMatrix, Mat distCoeffs, Size imageSize, double alpha)Returns the new camera intrinsic matrix based on the free scaling parameter.static MatCalib3d. getOptimalNewCameraMatrix(Mat cameraMatrix, Mat distCoeffs, Size imageSize, double alpha, Size newImgSize)Returns the new camera intrinsic matrix based on the free scaling parameter.static MatCalib3d. getOptimalNewCameraMatrix(Mat cameraMatrix, Mat distCoeffs, Size imageSize, double alpha, Size newImgSize, Rect validPixROI)Returns the new camera intrinsic matrix based on the free scaling parameter.static MatCalib3d. getOptimalNewCameraMatrix(Mat cameraMatrix, Mat distCoeffs, Size imageSize, double alpha, Size newImgSize, Rect validPixROI, boolean centerPrincipalPoint)Returns the new camera intrinsic matrix based on the free scaling parameter.static voidCalib3d. initInverseRectificationMap(Mat cameraMatrix, Mat distCoeffs, Mat R, Mat newCameraMatrix, Size size, int m1type, Mat map1, Mat map2)Computes the projection and inverse-rectification transformation map.static voidCalib3d. 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 voidCalib3d. matMulDeriv(Mat A, Mat B, Mat dABdA, Mat dABdB)Computes partial derivatives of the matrix product for each multiplied matrix.static voidCalib3d. projectPoints(MatOfPoint3f objectPoints, Mat rvec, Mat tvec, Mat cameraMatrix, MatOfDouble distCoeffs, MatOfPoint2f imagePoints)Projects 3D points to an image plane.static voidCalib3d. projectPoints(MatOfPoint3f objectPoints, Mat rvec, Mat tvec, Mat cameraMatrix, MatOfDouble distCoeffs, MatOfPoint2f imagePoints, Mat jacobian)Projects 3D points to an image plane.static voidCalib3d. 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 intCalib3d. recoverPose(Mat E, Mat points1, Mat points2, Mat R, Mat t)static intCalib3d. recoverPose(Mat E, Mat points1, Mat points2, Mat R, Mat t, double focal)static intCalib3d. recoverPose(Mat E, Mat points1, Mat points2, Mat R, Mat t, double focal, Point pp)static intCalib3d. recoverPose(Mat E, Mat points1, Mat points2, Mat R, Mat t, double focal, Point pp, Mat mask)static intCalib3d. recoverPose(Mat E, Mat points1, Mat points2, Mat cameraMatrix, Mat R, Mat t)Recovers the relative camera rotation and the translation from an estimated essential matrix and the corresponding points in two images, using cheirality check.static intCalib3d. recoverPose(Mat E, Mat points1, Mat points2, Mat cameraMatrix, Mat R, Mat t, double distanceThresh)static intCalib3d. recoverPose(Mat E, Mat points1, Mat points2, Mat cameraMatrix, Mat R, Mat t, double distanceThresh, Mat mask)static intCalib3d. recoverPose(Mat E, Mat points1, Mat points2, Mat cameraMatrix, Mat R, Mat t, double distanceThresh, Mat mask, Mat triangulatedPoints)static intCalib3d. recoverPose(Mat E, Mat points1, Mat points2, Mat cameraMatrix, Mat R, Mat t, Mat mask)Recovers the relative camera rotation and the translation from an estimated essential matrix and the corresponding points in two images, using cheirality check.static floatCalib3d. 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 voidCalib3d. reprojectImageTo3D(Mat disparity, Mat _3dImage, Mat Q)Reprojects a disparity image to 3D space.static voidCalib3d. reprojectImageTo3D(Mat disparity, Mat _3dImage, Mat Q, boolean handleMissingValues)Reprojects a disparity image to 3D space.static voidCalib3d. reprojectImageTo3D(Mat disparity, Mat _3dImage, Mat Q, boolean handleMissingValues, int ddepth)Reprojects a disparity image to 3D space.static voidCalib3d. Rodrigues(Mat src, Mat dst)Converts a rotation matrix to a rotation vector or vice versa.static voidCalib3d. 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)Computes an RQ decomposition of 3x3 matrices.static double[]Calib3d. RQDecomp3x3(Mat src, Mat mtxR, Mat mtxQ, Mat Qx, Mat Qy)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 doubleCalib3d. sampsonDistance(Mat pt1, Mat pt2, Mat F)Calculates the Sampson Distance between two points.static intCalib3d. solveP3P(Mat objectPoints, Mat imagePoints, Mat cameraMatrix, Mat distCoeffs, List<Mat> rvecs, List<Mat> tvecs, int flags)Finds an object pose from 3 3D-2D point correspondences.static booleanCalib3d. solvePnP(MatOfPoint3f objectPoints, MatOfPoint2f imagePoints, Mat cameraMatrix, MatOfDouble distCoeffs, Mat rvec, Mat tvec)Finds an object pose from 3D-2D point correspondences.static booleanCalib3d. solvePnP(MatOfPoint3f objectPoints, MatOfPoint2f imagePoints, Mat cameraMatrix, MatOfDouble distCoeffs, Mat rvec, Mat tvec, boolean useExtrinsicGuess)Finds an object pose from 3D-2D point correspondences.static booleanCalib3d. 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 intCalib3d. solvePnPGeneric(Mat objectPoints, Mat imagePoints, Mat cameraMatrix, Mat distCoeffs, List<Mat> rvecs, List<Mat> tvecs)Finds an object pose from 3D-2D point correspondences.static intCalib3d. solvePnPGeneric(Mat objectPoints, Mat imagePoints, Mat cameraMatrix, Mat distCoeffs, List<Mat> rvecs, List<Mat> tvecs, boolean useExtrinsicGuess)Finds an object pose from 3D-2D point correspondences.static intCalib3d. solvePnPGeneric(Mat objectPoints, Mat imagePoints, Mat cameraMatrix, Mat distCoeffs, List<Mat> rvecs, List<Mat> tvecs, boolean useExtrinsicGuess, int flags)Finds an object pose from 3D-2D point correspondences.static intCalib3d. solvePnPGeneric(Mat objectPoints, Mat imagePoints, Mat cameraMatrix, Mat distCoeffs, List<Mat> rvecs, List<Mat> tvecs, boolean useExtrinsicGuess, int flags, Mat rvec)Finds an object pose from 3D-2D point correspondences.static intCalib3d. solvePnPGeneric(Mat objectPoints, Mat imagePoints, Mat cameraMatrix, Mat distCoeffs, List<Mat> rvecs, List<Mat> tvecs, boolean useExtrinsicGuess, int flags, Mat rvec, Mat tvec)Finds an object pose from 3D-2D point correspondences.static intCalib3d. solvePnPGeneric(Mat objectPoints, Mat imagePoints, Mat cameraMatrix, Mat distCoeffs, List<Mat> rvecs, List<Mat> tvecs, boolean useExtrinsicGuess, int flags, Mat rvec, Mat tvec, Mat reprojectionError)Finds an object pose from 3D-2D point correspondences.static booleanCalib3d. 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 booleanCalib3d. solvePnPRansac(MatOfPoint3f objectPoints, MatOfPoint2f imagePoints, Mat cameraMatrix, MatOfDouble distCoeffs, Mat rvec, Mat tvec, boolean useExtrinsicGuess)Finds an object pose from 3D-2D point correspondences using the RANSAC scheme.static booleanCalib3d. solvePnPRansac(MatOfPoint3f objectPoints, MatOfPoint2f imagePoints, Mat cameraMatrix, MatOfDouble distCoeffs, Mat rvec, Mat tvec, boolean useExtrinsicGuess, int iterationsCount)Finds an object pose from 3D-2D point correspondences using the RANSAC scheme.static booleanCalib3d. solvePnPRansac(MatOfPoint3f objectPoints, MatOfPoint2f imagePoints, Mat cameraMatrix, MatOfDouble distCoeffs, Mat rvec, Mat tvec, boolean useExtrinsicGuess, int iterationsCount, float reprojectionError)Finds an object pose from 3D-2D point correspondences using the RANSAC scheme.static booleanCalib3d. solvePnPRansac(MatOfPoint3f objectPoints, MatOfPoint2f imagePoints, Mat cameraMatrix, MatOfDouble distCoeffs, Mat rvec, Mat tvec, boolean useExtrinsicGuess, int iterationsCount, float reprojectionError, double confidence)Finds an object pose from 3D-2D point correspondences using the RANSAC scheme.static booleanCalib3d. solvePnPRansac(MatOfPoint3f objectPoints, MatOfPoint2f imagePoints, Mat cameraMatrix, MatOfDouble distCoeffs, Mat rvec, Mat tvec, boolean useExtrinsicGuess, int iterationsCount, float reprojectionError, double confidence, Mat inliers)Finds an object pose from 3D-2D point correspondences using the RANSAC scheme.static booleanCalib3d. solvePnPRansac(MatOfPoint3f objectPoints, MatOfPoint2f imagePoints, Mat cameraMatrix, MatOfDouble distCoeffs, Mat rvec, Mat tvec, boolean useExtrinsicGuess, int iterationsCount, float reprojectionError, double confidence, Mat inliers, int flags)Finds an object pose from 3D-2D point correspondences using the RANSAC scheme.static booleanCalib3d. solvePnPRansac(MatOfPoint3f objectPoints, MatOfPoint2f imagePoints, Mat cameraMatrix, MatOfDouble distCoeffs, Mat rvec, Mat tvec, Mat inliers)static booleanCalib3d. solvePnPRansac(MatOfPoint3f objectPoints, MatOfPoint2f imagePoints, Mat cameraMatrix, MatOfDouble distCoeffs, Mat rvec, Mat tvec, Mat inliers, UsacParams params)static voidCalib3d. solvePnPRefineLM(Mat objectPoints, Mat imagePoints, Mat cameraMatrix, Mat distCoeffs, Mat rvec, Mat tvec)Refine a pose (the translation and the rotation that transform a 3D point expressed in the object coordinate frame to the camera coordinate frame) from a 3D-2D point correspondences and starting from an initial solution.static voidCalib3d. solvePnPRefineLM(Mat objectPoints, Mat imagePoints, Mat cameraMatrix, Mat distCoeffs, Mat rvec, Mat tvec, TermCriteria criteria)Refine a pose (the translation and the rotation that transform a 3D point expressed in the object coordinate frame to the camera coordinate frame) from a 3D-2D point correspondences and starting from an initial solution.static voidCalib3d. solvePnPRefineVVS(Mat objectPoints, Mat imagePoints, Mat cameraMatrix, Mat distCoeffs, Mat rvec, Mat tvec)Refine a pose (the translation and the rotation that transform a 3D point expressed in the object coordinate frame to the camera coordinate frame) from a 3D-2D point correspondences and starting from an initial solution.static voidCalib3d. solvePnPRefineVVS(Mat objectPoints, Mat imagePoints, Mat cameraMatrix, Mat distCoeffs, Mat rvec, Mat tvec, TermCriteria criteria)Refine a pose (the translation and the rotation that transform a 3D point expressed in the object coordinate frame to the camera coordinate frame) from a 3D-2D point correspondences and starting from an initial solution.static voidCalib3d. solvePnPRefineVVS(Mat objectPoints, Mat imagePoints, Mat cameraMatrix, Mat distCoeffs, Mat rvec, Mat tvec, TermCriteria criteria, double VVSlambda)Refine a pose (the translation and the rotation that transform a 3D point expressed in the object coordinate frame to the camera coordinate frame) from a 3D-2D point correspondences and starting from an initial solution.static doubleCalib3d. 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)static doubleCalib3d. 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, int flags)static doubleCalib3d. 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, int flags, TermCriteria criteria)static doubleCalib3d. stereoCalibrateExtended(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, Mat perViewErrors)Calibrates a stereo camera set up.static doubleCalib3d. stereoCalibrateExtended(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, Mat perViewErrors, int flags)Calibrates a stereo camera set up.static doubleCalib3d. stereoCalibrateExtended(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, Mat perViewErrors, int flags, TermCriteria criteria)Calibrates a stereo camera set up.static voidCalib3d. 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 voidCalib3d. 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)Computes rectification transforms for each head of a calibrated stereo camera.static voidCalib3d. 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)Computes rectification transforms for each head of a calibrated stereo camera.static voidCalib3d. 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)Computes rectification transforms for each head of a calibrated stereo camera.static voidCalib3d. 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)Computes rectification transforms for each head of a calibrated stereo camera.static voidCalib3d. 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 booleanCalib3d. stereoRectifyUncalibrated(Mat points1, Mat points2, Mat F, Size imgSize, Mat H1, Mat H2)Computes a rectification transform for an uncalibrated stereo camera.static booleanCalib3d. 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 voidCalib3d. triangulatePoints(Mat projMatr1, Mat projMatr2, Mat projPoints1, Mat projPoints2, Mat points4D)This function reconstructs 3-dimensional points (in homogeneous coordinates) by using their observations with a stereo camera.static voidCalib3d. undistort(Mat src, Mat dst, Mat cameraMatrix, Mat distCoeffs)Transforms an image to compensate for lens distortion.static voidCalib3d. undistort(Mat src, Mat dst, Mat cameraMatrix, Mat distCoeffs, Mat newCameraMatrix)Transforms an image to compensate for lens distortion.static voidCalib3d. undistortPoints(MatOfPoint2f src, MatOfPoint2f dst, Mat cameraMatrix, Mat distCoeffs)Computes the ideal point coordinates from the observed point coordinates.static voidCalib3d. undistortPoints(MatOfPoint2f src, MatOfPoint2f dst, Mat cameraMatrix, Mat distCoeffs, Mat R)Computes the ideal point coordinates from the observed point coordinates.static voidCalib3d. undistortPoints(MatOfPoint2f src, MatOfPoint2f dst, Mat cameraMatrix, Mat distCoeffs, Mat R, Mat P)Computes the ideal point coordinates from the observed point coordinates.static voidCalib3d. undistortPointsIter(Mat src, Mat dst, Mat cameraMatrix, Mat distCoeffs, Mat R, Mat P, TermCriteria criteria)Note: Default version of #undistortPoints does 5 iterations to compute undistorted points.static voidCalib3d. validateDisparity(Mat disparity, Mat cost, int minDisparity, int numberOfDisparities)static voidCalib3d. validateDisparity(Mat disparity, Mat cost, int minDisparity, int numberOfDisparities, int disp12MaxDisp)Method parameters in org.opencv.calib3d with type arguments of type Mat Modifier and Type Method Description static doubleCalib3d. calibrateCamera(List<Mat> objectPoints, List<Mat> imagePoints, Size imageSize, Mat cameraMatrix, Mat distCoeffs, List<Mat> rvecs, List<Mat> tvecs)static doubleCalib3d. calibrateCamera(List<Mat> objectPoints, List<Mat> imagePoints, Size imageSize, Mat cameraMatrix, Mat distCoeffs, List<Mat> rvecs, List<Mat> tvecs, int flags)static doubleCalib3d. calibrateCamera(List<Mat> objectPoints, List<Mat> imagePoints, Size imageSize, Mat cameraMatrix, Mat distCoeffs, List<Mat> rvecs, List<Mat> tvecs, int flags, TermCriteria criteria)static doubleCalib3d. calibrateCameraExtended(List<Mat> objectPoints, List<Mat> imagePoints, Size imageSize, Mat cameraMatrix, Mat distCoeffs, List<Mat> rvecs, List<Mat> tvecs, Mat stdDeviationsIntrinsics, Mat stdDeviationsExtrinsics, Mat perViewErrors)Finds the camera intrinsic and extrinsic parameters from several views of a calibration pattern.static doubleCalib3d. calibrateCameraExtended(List<Mat> objectPoints, List<Mat> imagePoints, Size imageSize, Mat cameraMatrix, Mat distCoeffs, List<Mat> rvecs, List<Mat> tvecs, Mat stdDeviationsIntrinsics, Mat stdDeviationsExtrinsics, Mat perViewErrors, int flags)Finds the camera intrinsic and extrinsic parameters from several views of a calibration pattern.static doubleCalib3d. calibrateCameraExtended(List<Mat> objectPoints, List<Mat> imagePoints, Size imageSize, Mat cameraMatrix, Mat distCoeffs, List<Mat> rvecs, List<Mat> tvecs, Mat stdDeviationsIntrinsics, Mat stdDeviationsExtrinsics, Mat perViewErrors, int flags, TermCriteria criteria)Finds the camera intrinsic and extrinsic parameters from several views of a calibration pattern.static doubleCalib3d. calibrateCameraRO(List<Mat> objectPoints, List<Mat> imagePoints, Size imageSize, int iFixedPoint, Mat cameraMatrix, Mat distCoeffs, List<Mat> rvecs, List<Mat> tvecs, Mat newObjPoints)static doubleCalib3d. calibrateCameraRO(List<Mat> objectPoints, List<Mat> imagePoints, Size imageSize, int iFixedPoint, Mat cameraMatrix, Mat distCoeffs, List<Mat> rvecs, List<Mat> tvecs, Mat newObjPoints, int flags)static doubleCalib3d. calibrateCameraRO(List<Mat> objectPoints, List<Mat> imagePoints, Size imageSize, int iFixedPoint, Mat cameraMatrix, Mat distCoeffs, List<Mat> rvecs, List<Mat> tvecs, Mat newObjPoints, int flags, TermCriteria criteria)static doubleCalib3d. calibrateCameraROExtended(List<Mat> objectPoints, List<Mat> imagePoints, Size imageSize, int iFixedPoint, Mat cameraMatrix, Mat distCoeffs, List<Mat> rvecs, List<Mat> tvecs, Mat newObjPoints, Mat stdDeviationsIntrinsics, Mat stdDeviationsExtrinsics, Mat stdDeviationsObjPoints, Mat perViewErrors)Finds the camera intrinsic and extrinsic parameters from several views of a calibration pattern.static doubleCalib3d. calibrateCameraROExtended(List<Mat> objectPoints, List<Mat> imagePoints, Size imageSize, int iFixedPoint, Mat cameraMatrix, Mat distCoeffs, List<Mat> rvecs, List<Mat> tvecs, Mat newObjPoints, Mat stdDeviationsIntrinsics, Mat stdDeviationsExtrinsics, Mat stdDeviationsObjPoints, Mat perViewErrors, int flags)Finds the camera intrinsic and extrinsic parameters from several views of a calibration pattern.static doubleCalib3d. calibrateCameraROExtended(List<Mat> objectPoints, List<Mat> imagePoints, Size imageSize, int iFixedPoint, Mat cameraMatrix, Mat distCoeffs, List<Mat> rvecs, List<Mat> tvecs, Mat newObjPoints, Mat stdDeviationsIntrinsics, Mat stdDeviationsExtrinsics, Mat stdDeviationsObjPoints, Mat perViewErrors, int flags, TermCriteria criteria)Finds the camera intrinsic and extrinsic parameters from several views of a calibration pattern.static voidCalib3d. calibrateHandEye(List<Mat> R_gripper2base, List<Mat> t_gripper2base, List<Mat> R_target2cam, List<Mat> t_target2cam, Mat R_cam2gripper, Mat t_cam2gripper)Computes Hand-Eye calibration: \(_{}^{g}\textrm{T}_c\)static voidCalib3d. calibrateHandEye(List<Mat> R_gripper2base, List<Mat> t_gripper2base, List<Mat> R_target2cam, List<Mat> t_target2cam, Mat R_cam2gripper, Mat t_cam2gripper, int method)Computes Hand-Eye calibration: \(_{}^{g}\textrm{T}_c\)static voidCalib3d. calibrateRobotWorldHandEye(List<Mat> R_world2cam, List<Mat> t_world2cam, List<Mat> R_base2gripper, List<Mat> t_base2gripper, Mat R_base2world, Mat t_base2world, Mat R_gripper2cam, Mat t_gripper2cam)Computes Robot-World/Hand-Eye calibration: \(_{}^{w}\textrm{T}_b\) and \(_{}^{c}\textrm{T}_g\)static voidCalib3d. calibrateRobotWorldHandEye(List<Mat> R_world2cam, List<Mat> t_world2cam, List<Mat> R_base2gripper, List<Mat> t_base2gripper, Mat R_base2world, Mat t_base2world, Mat R_gripper2cam, Mat t_gripper2cam, int method)Computes Robot-World/Hand-Eye calibration: \(_{}^{w}\textrm{T}_b\) and \(_{}^{c}\textrm{T}_g\)static intCalib3d. decomposeHomographyMat(Mat H, Mat K, List<Mat> rotations, List<Mat> translations, List<Mat> normals)Decompose a homography matrix to rotation(s), translation(s) and plane normal(s).static voidCalib3d. filterHomographyDecompByVisibleRefpoints(List<Mat> rotations, List<Mat> normals, Mat beforePoints, Mat afterPoints, Mat possibleSolutions)Filters homography decompositions based on additional information.static voidCalib3d. filterHomographyDecompByVisibleRefpoints(List<Mat> rotations, List<Mat> normals, Mat beforePoints, Mat afterPoints, Mat possibleSolutions, Mat pointsMask)Filters homography decompositions based on additional information.static doubleCalib3d. fisheye_calibrate(List<Mat> objectPoints, List<Mat> imagePoints, Size image_size, Mat K, Mat D, List<Mat> rvecs, List<Mat> tvecs)Performs camera calibarationstatic doubleCalib3d. fisheye_calibrate(List<Mat> objectPoints, List<Mat> imagePoints, Size image_size, Mat K, Mat D, List<Mat> rvecs, List<Mat> tvecs, int flags)Performs camera calibarationstatic doubleCalib3d. fisheye_calibrate(List<Mat> objectPoints, List<Mat> imagePoints, Size image_size, Mat K, Mat D, List<Mat> rvecs, List<Mat> tvecs, int flags, TermCriteria criteria)Performs camera calibarationstatic doubleCalib3d. fisheye_stereoCalibrate(List<Mat> objectPoints, List<Mat> imagePoints1, List<Mat> imagePoints2, Mat K1, Mat D1, Mat K2, Mat D2, Size imageSize, Mat R, Mat T)Performs stereo calibrationstatic doubleCalib3d. fisheye_stereoCalibrate(List<Mat> objectPoints, List<Mat> imagePoints1, List<Mat> imagePoints2, Mat K1, Mat D1, Mat K2, Mat D2, Size imageSize, Mat R, Mat T, int flags)Performs stereo calibrationstatic doubleCalib3d. fisheye_stereoCalibrate(List<Mat> objectPoints, List<Mat> imagePoints1, List<Mat> imagePoints2, Mat K1, Mat D1, Mat K2, Mat D2, Size imageSize, Mat R, Mat T, int flags, TermCriteria criteria)Performs stereo calibrationstatic floatCalib3d. 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 intCalib3d. solveP3P(Mat objectPoints, Mat imagePoints, Mat cameraMatrix, Mat distCoeffs, List<Mat> rvecs, List<Mat> tvecs, int flags)Finds an object pose from 3 3D-2D point correspondences.static intCalib3d. solvePnPGeneric(Mat objectPoints, Mat imagePoints, Mat cameraMatrix, Mat distCoeffs, List<Mat> rvecs, List<Mat> tvecs)Finds an object pose from 3D-2D point correspondences.static intCalib3d. solvePnPGeneric(Mat objectPoints, Mat imagePoints, Mat cameraMatrix, Mat distCoeffs, List<Mat> rvecs, List<Mat> tvecs, boolean useExtrinsicGuess)Finds an object pose from 3D-2D point correspondences.static intCalib3d. solvePnPGeneric(Mat objectPoints, Mat imagePoints, Mat cameraMatrix, Mat distCoeffs, List<Mat> rvecs, List<Mat> tvecs, boolean useExtrinsicGuess, int flags)Finds an object pose from 3D-2D point correspondences.static intCalib3d. solvePnPGeneric(Mat objectPoints, Mat imagePoints, Mat cameraMatrix, Mat distCoeffs, List<Mat> rvecs, List<Mat> tvecs, boolean useExtrinsicGuess, int flags, Mat rvec)Finds an object pose from 3D-2D point correspondences.static intCalib3d. solvePnPGeneric(Mat objectPoints, Mat imagePoints, Mat cameraMatrix, Mat distCoeffs, List<Mat> rvecs, List<Mat> tvecs, boolean useExtrinsicGuess, int flags, Mat rvec, Mat tvec)Finds an object pose from 3D-2D point correspondences.static intCalib3d. solvePnPGeneric(Mat objectPoints, Mat imagePoints, Mat cameraMatrix, Mat distCoeffs, List<Mat> rvecs, List<Mat> tvecs, boolean useExtrinsicGuess, int flags, Mat rvec, Mat tvec, Mat reprojectionError)Finds an object pose from 3D-2D point correspondences.static doubleCalib3d. 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)static doubleCalib3d. 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, int flags)static doubleCalib3d. 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, int flags, TermCriteria criteria)static doubleCalib3d. stereoCalibrateExtended(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, Mat perViewErrors)Calibrates a stereo camera set up.static doubleCalib3d. stereoCalibrateExtended(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, Mat perViewErrors, int flags)Calibrates a stereo camera set up.static doubleCalib3d. stereoCalibrateExtended(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, Mat perViewErrors, int flags, TermCriteria criteria)Calibrates a stereo camera set up. -
Uses of Mat in org.opencv.core
Subclasses of Mat in org.opencv.core Modifier and Type Class Description classMatOfByteclassMatOfDMatchclassMatOfDoubleclassMatOfFloatclassMatOfFloat4classMatOfFloat6classMatOfIntclassMatOfInt4classMatOfKeyPointclassMatOfPointclassMatOfPoint2fclassMatOfPoint3classMatOfPoint3fclassMatOfRectclassMatOfRect2dclassMatOfRotatedRectMethods in org.opencv.core that return Mat Modifier and Type Method Description MatMat. adjustROI(int dtop, int dbottom, int dleft, int dright)MatMat. clone()MatMat. col(int x)MatMat. colRange(int startcol, int endcol)MatMat. colRange(Range r)MatMat. cross(Mat m)MatMat. diag()MatMat. diag(int d)static MatMat. diag(Mat d)static MatMat. eye(int rows, int cols, int type)static MatMat. eye(Size size, int type)MatMat. inv()MatMat. inv(int method)MatMat. mul(Mat m)MatMat. mul(Mat m, double scale)static MatMat. ones(int[] sizes, int type)static MatMat. ones(int rows, int cols, int type)static MatMat. ones(Size size, int type)MatMat. reshape(int cn)MatMat. reshape(int cn, int rows)MatMat. reshape(int cn, int[] newshape)MatMat. row(int y)MatMat. rowRange(int startrow, int endrow)MatMat. rowRange(Range r)MatMat. setTo(Mat value)MatMat. setTo(Mat value, Mat mask)MatMat. setTo(Scalar s)MatMat. setTo(Scalar value, Mat mask)MatMat. submat(int rowStart, int rowEnd, int colStart, int colEnd)MatMat. submat(Range[] ranges)MatMat. submat(Range rowRange, Range colRange)MatMat. submat(Rect roi)MatMat. t()static MatMat. zeros(int[] sizes, int type)static MatMat. zeros(int rows, int cols, int type)static MatMat. zeros(Size size, int type)Methods in org.opencv.core with parameters of type Mat Modifier and Type Method Description static voidCore. absdiff(Mat src1, Mat src2, Mat dst)Calculates the per-element absolute difference between two arrays or between an array and a scalar.static voidCore. absdiff(Mat src1, Scalar src2, Mat dst)static voidCore. add(Mat src1, Mat src2, Mat dst)Calculates the per-element sum of two arrays or an array and a scalar.static voidCore. add(Mat src1, Mat src2, Mat dst, Mat mask)Calculates the per-element sum of two arrays or an array and a scalar.static voidCore. 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 voidCore. add(Mat src1, Scalar src2, Mat dst)static voidCore. add(Mat src1, Scalar src2, Mat dst, Mat mask)static voidCore. add(Mat src1, Scalar src2, Mat dst, Mat mask, int dtype)static voidCore. addWeighted(Mat src1, double alpha, Mat src2, double beta, double gamma, Mat dst)Calculates the weighted sum of two arrays.static voidCore. addWeighted(Mat src1, double alpha, Mat src2, double beta, double gamma, Mat dst, int dtype)Calculates the weighted sum of two arrays.voidMat. assignTo(Mat m)voidMat. assignTo(Mat m, int type)static voidCore. batchDistance(Mat src1, Mat src2, Mat dist, int dtype, Mat nidx)naive nearest neighbor finder see http://en.wikipedia.org/wiki/Nearest_neighbor_search TODO: documentstatic voidCore. batchDistance(Mat src1, Mat src2, Mat dist, int dtype, Mat nidx, int normType)naive nearest neighbor finder see http://en.wikipedia.org/wiki/Nearest_neighbor_search TODO: documentstatic voidCore. batchDistance(Mat src1, Mat src2, Mat dist, int dtype, Mat nidx, int normType, int K)naive nearest neighbor finder see http://en.wikipedia.org/wiki/Nearest_neighbor_search TODO: documentstatic voidCore. batchDistance(Mat src1, Mat src2, Mat dist, int dtype, Mat nidx, int normType, int K, Mat mask)naive nearest neighbor finder see http://en.wikipedia.org/wiki/Nearest_neighbor_search TODO: documentstatic voidCore. batchDistance(Mat src1, Mat src2, Mat dist, int dtype, Mat nidx, int normType, int K, Mat mask, int update)naive nearest neighbor finder see http://en.wikipedia.org/wiki/Nearest_neighbor_search TODO: documentstatic voidCore. batchDistance(Mat src1, Mat src2, Mat dist, int dtype, Mat nidx, int normType, int K, Mat mask, int update, boolean crosscheck)naive nearest neighbor finder see http://en.wikipedia.org/wiki/Nearest_neighbor_search TODO: documentstatic voidCore. bitwise_and(Mat src1, Mat src2, Mat dst)computes bitwise conjunction of the two arrays (dst = src1 & src2) Calculates the per-element bit-wise conjunction of two arrays or an array and a scalar.static voidCore. bitwise_and(Mat src1, Mat src2, Mat dst, Mat mask)computes bitwise conjunction of the two arrays (dst = src1 & src2) Calculates the per-element bit-wise conjunction of two arrays or an array and a scalar.static voidCore. bitwise_not(Mat src, Mat dst)Inverts every bit of an array.static voidCore. bitwise_not(Mat src, Mat dst, Mat mask)Inverts every bit of an array.static voidCore. 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 voidCore. 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 voidCore. 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 voidCore. 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 voidCore. calcCovarMatrix(Mat samples, Mat covar, Mat mean, int flags)Note: use #COVAR_ROWS or #COVAR_COLS flagstatic voidCore. calcCovarMatrix(Mat samples, Mat covar, Mat mean, int flags, int ctype)Note: use #COVAR_ROWS or #COVAR_COLS flagstatic voidCore. cartToPolar(Mat x, Mat y, Mat magnitude, Mat angle)Calculates the magnitude and angle of 2D vectors.static voidCore. cartToPolar(Mat x, Mat y, Mat magnitude, Mat angle, boolean angleInDegrees)Calculates the magnitude and angle of 2D vectors.static booleanCore. checkRange(Mat a)Checks every element of an input array for invalid values.static booleanCore. checkRange(Mat a, boolean quiet)Checks every element of an input array for invalid values.static booleanCore. checkRange(Mat a, boolean quiet, double minVal)Checks every element of an input array for invalid values.static booleanCore. checkRange(Mat a, boolean quiet, double minVal, double maxVal)Checks every element of an input array for invalid values.static voidCore. compare(Mat src1, Mat src2, Mat dst, int cmpop)Performs the per-element comparison of two arrays or an array and scalar value.static voidCore. compare(Mat src1, Scalar src2, Mat dst, int cmpop)static voidCore. completeSymm(Mat m)Copies the lower or the upper half of a square matrix to its another half.static voidCore. completeSymm(Mat m, boolean lowerToUpper)Copies the lower or the upper half of a square matrix to its another half.static voidCore. convertFp16(Mat src, Mat dst)Converts an array to half precision floating number.static voidCore. convertScaleAbs(Mat src, Mat dst)Scales, calculates absolute values, and converts the result to 8-bit.static voidCore. convertScaleAbs(Mat src, Mat dst, double alpha)Scales, calculates absolute values, and converts the result to 8-bit.static voidCore. convertScaleAbs(Mat src, Mat dst, double alpha, double beta)Scales, calculates absolute values, and converts the result to 8-bit.voidMat. convertTo(Mat m, int rtype)voidMat. convertTo(Mat m, int rtype, double alpha)voidMat. convertTo(Mat m, int rtype, double alpha, double beta)static voidCore. copyMakeBorder(Mat src, Mat dst, int top, int bottom, int left, int right, int borderType)Forms a border around an image.static voidCore. copyMakeBorder(Mat src, Mat dst, int top, int bottom, int left, int right, int borderType, Scalar value)Forms a border around an image.voidMat. copySize(Mat m)static voidCore. copyTo(Mat src, Mat dst, Mat mask)This is an overloaded member function, provided for convenience (python) Copies the matrix to another one.voidMat. copyTo(Mat m)voidMat. copyTo(Mat m, Mat mask)static intCore. countNonZero(Mat src)Counts non-zero array elements.MatMat. cross(Mat m)static voidCore. dct(Mat src, Mat dst)Performs a forward or inverse discrete Cosine transform of 1D or 2D array.static voidCore. dct(Mat src, Mat dst, int flags)Performs a forward or inverse discrete Cosine transform of 1D or 2D array.static doubleCore. determinant(Mat mtx)Returns the determinant of a square floating-point matrix.static voidCore. dft(Mat src, Mat dst)Performs a forward or inverse Discrete Fourier transform of a 1D or 2D floating-point array.static voidCore. dft(Mat src, Mat dst, int flags)Performs a forward or inverse Discrete Fourier transform of a 1D or 2D floating-point array.static voidCore. 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 MatMat. diag(Mat d)static voidCore. divide(double scale, Mat src2, Mat dst)static voidCore. divide(double scale, Mat src2, Mat dst, int dtype)static voidCore. divide(Mat src1, Mat src2, Mat dst)Performs per-element division of two arrays or a scalar by an array.static voidCore. divide(Mat src1, Mat src2, Mat dst, double scale)Performs per-element division of two arrays or a scalar by an array.static voidCore. 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 voidCore. divide(Mat src1, Scalar src2, Mat dst)static voidCore. divide(Mat src1, Scalar src2, Mat dst, double scale)static voidCore. divide(Mat src1, Scalar src2, Mat dst, double scale, int dtype)doubleMat. dot(Mat m)static booleanCore. eigen(Mat src, Mat eigenvalues)Calculates eigenvalues and eigenvectors of a symmetric matrix.static booleanCore. eigen(Mat src, Mat eigenvalues, Mat eigenvectors)Calculates eigenvalues and eigenvectors of a symmetric matrix.static voidCore. eigenNonSymmetric(Mat src, Mat eigenvalues, Mat eigenvectors)Calculates eigenvalues and eigenvectors of a non-symmetric matrix (real eigenvalues only).static voidCore. exp(Mat src, Mat dst)Calculates the exponent of every array element.static voidCore. extractChannel(Mat src, Mat dst, int coi)Extracts a single channel from src (coi is 0-based index)static voidCore. findNonZero(Mat src, Mat idx)Returns the list of locations of non-zero pixels Given a binary matrix (likely returned from an operation such as threshold(), compare(), >, ==, etc, return all of the non-zero indices as a cv::Mat or std::vector<cv::Point> (x,y) For example:cv::Mat binaryImage; // input, binary image cv::Mat locations; // output, locations of non-zero pixels cv::findNonZero(binaryImage, locations); // access pixel coordinates Point pnt = locations.at<Point>(i);orcv::Mat binaryImage; // input, binary image vector<Point> locations; // output, locations of non-zero pixels cv::findNonZero(binaryImage, locations); // access pixel coordinates Point pnt = locations[i];static voidCore. flip(Mat src, Mat dst, int flipCode)Flips a 2D array around vertical, horizontal, or both axes.static voidCore. gemm(Mat src1, Mat src2, double alpha, Mat src3, double beta, Mat dst)Performs generalized matrix multiplication.static voidCore. gemm(Mat src1, Mat src2, double alpha, Mat src3, double beta, Mat dst, int flags)Performs generalized matrix multiplication.static voidCore. hconcat(List<Mat> src, Mat dst)std::vector<cv::Mat> matrices = { cv::Mat(4, 1, CV_8UC1, cv::Scalar(1)), cv::Mat(4, 1, CV_8UC1, cv::Scalar(2)), cv::Mat(4, 1, CV_8UC1, cv::Scalar(3)),}; cv::Mat out; cv::hconcat( matrices, out ); //out: //[1, 2, 3; // 1, 2, 3; // 1, 2, 3; // 1, 2, 3]static voidCore. idct(Mat src, Mat dst)Calculates the inverse Discrete Cosine Transform of a 1D or 2D array.static voidCore. idct(Mat src, Mat dst, int flags)Calculates the inverse Discrete Cosine Transform of a 1D or 2D array.static voidCore. idft(Mat src, Mat dst)Calculates the inverse Discrete Fourier Transform of a 1D or 2D array.static voidCore. idft(Mat src, Mat dst, int flags)Calculates the inverse Discrete Fourier Transform of a 1D or 2D array.static voidCore. idft(Mat src, Mat dst, int flags, int nonzeroRows)Calculates the inverse Discrete Fourier Transform of a 1D or 2D array.static voidCore. inRange(Mat src, Scalar lowerb, Scalar upperb, Mat dst)Checks if array elements lie between the elements of two other arrays.static voidCore. insertChannel(Mat src, Mat dst, int coi)Inserts a single channel to dst (coi is 0-based index)static doubleCore. invert(Mat src, Mat dst)Finds the inverse or pseudo-inverse of a matrix.static doubleCore. invert(Mat src, Mat dst, int flags)Finds the inverse or pseudo-inverse of a matrix.static doubleCore. 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 doubleCore. 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 voidCore. log(Mat src, Mat dst)Calculates the natural logarithm of every array element.static voidCore. LUT(Mat src, Mat lut, Mat dst)Performs a look-up table transform of an array.static voidCore. magnitude(Mat x, Mat y, Mat magnitude)Calculates the magnitude of 2D vectors.static doubleCore. Mahalanobis(Mat v1, Mat v2, Mat icovar)Calculates the Mahalanobis distance between two vectors.static voidCore. max(Mat src1, Mat src2, Mat dst)Calculates per-element maximum of two arrays or an array and a scalar.static voidCore. max(Mat src1, Scalar src2, Mat dst)static ScalarCore. mean(Mat src)Calculates an average (mean) of array elements.static ScalarCore. mean(Mat src, Mat mask)Calculates an average (mean) of array elements.static voidCore. meanStdDev(Mat src, MatOfDouble mean, MatOfDouble stddev)Calculates a mean and standard deviation of array elements.static voidCore. meanStdDev(Mat src, MatOfDouble mean, MatOfDouble stddev, Mat mask)Calculates a mean and standard deviation of array elements.static voidCore. merge(List<Mat> mv, Mat dst)static voidCore. min(Mat src1, Mat src2, Mat dst)Calculates per-element minimum of two arrays or an array and a scalar.static voidCore. min(Mat src1, Scalar src2, Mat dst)static Core.MinMaxLocResultCore. minMaxLoc(Mat src)static Core.MinMaxLocResultCore. minMaxLoc(Mat src, Mat mask)MatMat. mul(Mat m)MatMat. mul(Mat m, double scale)static voidCore. mulSpectrums(Mat a, Mat b, Mat c, int flags)Performs the per-element multiplication of two Fourier spectrums.static voidCore. mulSpectrums(Mat a, Mat b, Mat c, int flags, boolean conjB)Performs the per-element multiplication of two Fourier spectrums.static voidCore. multiply(Mat src1, Mat src2, Mat dst)Calculates the per-element scaled product of two arrays.static voidCore. multiply(Mat src1, Mat src2, Mat dst, double scale)Calculates the per-element scaled product of two arrays.static voidCore. multiply(Mat src1, Mat src2, Mat dst, double scale, int dtype)Calculates the per-element scaled product of two arrays.static voidCore. multiply(Mat src1, Scalar src2, Mat dst)static voidCore. multiply(Mat src1, Scalar src2, Mat dst, double scale)static voidCore. multiply(Mat src1, Scalar src2, Mat dst, double scale, int dtype)static voidCore. mulTransposed(Mat src, Mat dst, boolean aTa)Calculates the product of a matrix and its transposition.static voidCore. mulTransposed(Mat src, Mat dst, boolean aTa, Mat delta)Calculates the product of a matrix and its transposition.static voidCore. mulTransposed(Mat src, Mat dst, boolean aTa, Mat delta, double scale)Calculates the product of a matrix and its transposition.static voidCore. mulTransposed(Mat src, Mat dst, boolean aTa, Mat delta, double scale, int dtype)Calculates the product of a matrix and its transposition.static doubleCore. norm(Mat src1)Calculates the absolute norm of an array.static doubleCore. norm(Mat src1, int normType)Calculates the absolute norm of an array.static doubleCore. norm(Mat src1, int normType, Mat mask)Calculates the absolute norm of an array.static doubleCore. norm(Mat src1, Mat src2)Calculates an absolute difference norm or a relative difference norm.static doubleCore. norm(Mat src1, Mat src2, int normType)Calculates an absolute difference norm or a relative difference norm.static doubleCore. norm(Mat src1, Mat src2, int normType, Mat mask)Calculates an absolute difference norm or a relative difference norm.static voidCore. normalize(Mat src, Mat dst)Normalizes the norm or value range of an array.static voidCore. normalize(Mat src, Mat dst, double alpha)Normalizes the norm or value range of an array.static voidCore. normalize(Mat src, Mat dst, double alpha, double beta)Normalizes the norm or value range of an array.static voidCore. normalize(Mat src, Mat dst, double alpha, double beta, int norm_type)Normalizes the norm or value range of an array.static voidCore. normalize(Mat src, Mat dst, double alpha, double beta, int norm_type, int dtype)Normalizes the norm or value range of an array.static voidCore. 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 voidCore. patchNaNs(Mat a)converts NaNs to the given numberstatic voidCore. patchNaNs(Mat a, double val)converts NaNs to the given numberstatic voidCore. PCABackProject(Mat data, Mat mean, Mat eigenvectors, Mat result)wrap PCA::backProjectstatic voidCore. PCACompute(Mat data, Mat mean, Mat eigenvectors)wrap PCA::operator()static voidCore. PCACompute(Mat data, Mat mean, Mat eigenvectors, double retainedVariance)wrap PCA::operator()static voidCore. PCACompute(Mat data, Mat mean, Mat eigenvectors, int maxComponents)wrap PCA::operator()static voidCore. PCACompute2(Mat data, Mat mean, Mat eigenvectors, Mat eigenvalues)wrap PCA::operator() and add eigenvalues output parameterstatic voidCore. PCACompute2(Mat data, Mat mean, Mat eigenvectors, Mat eigenvalues, double retainedVariance)wrap PCA::operator() and add eigenvalues output parameterstatic voidCore. PCACompute2(Mat data, Mat mean, Mat eigenvectors, Mat eigenvalues, int maxComponents)wrap PCA::operator() and add eigenvalues output parameterstatic voidCore. PCAProject(Mat data, Mat mean, Mat eigenvectors, Mat result)wrap PCA::projectstatic voidCore. perspectiveTransform(Mat src, Mat dst, Mat m)Performs the perspective matrix transformation of vectors.static voidCore. phase(Mat x, Mat y, Mat angle)Calculates the rotation angle of 2D vectors.static voidCore. phase(Mat x, Mat y, Mat angle, boolean angleInDegrees)Calculates the rotation angle of 2D vectors.static voidCore. polarToCart(Mat magnitude, Mat angle, Mat x, Mat y)Calculates x and y coordinates of 2D vectors from their magnitude and angle.static voidCore. 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 voidCore. pow(Mat src, double power, Mat dst)Raises every array element to a power.static doubleCore. PSNR(Mat src1, Mat src2)Computes the Peak Signal-to-Noise Ratio (PSNR) image quality metric.static doubleCore. PSNR(Mat src1, Mat src2, double R)Computes the Peak Signal-to-Noise Ratio (PSNR) image quality metric.voidMat. push_back(Mat m)static voidCore. randn(Mat dst, double mean, double stddev)Fills the array with normally distributed random numbers.static voidCore. randShuffle(Mat dst)Shuffles the array elements randomly.static voidCore. randShuffle(Mat dst, double iterFactor)Shuffles the array elements randomly.static voidCore. randu(Mat dst, double low, double high)Generates a single uniformly-distributed random number or an array of random numbers.static voidCore. reduce(Mat src, Mat dst, int dim, int rtype)Reduces a matrix to a vector.static voidCore. reduce(Mat src, Mat dst, int dim, int rtype, int dtype)Reduces a matrix to a vector.static voidCore. repeat(Mat src, int ny, int nx, Mat dst)Fills the output array with repeated copies of the input array.static voidCore. rotate(Mat src, Mat dst, int rotateCode)Rotates a 2D array in multiples of 90 degrees.static voidCore. scaleAdd(Mat src1, double alpha, Mat src2, Mat dst)Calculates the sum of a scaled array and another array.static voidCore. setIdentity(Mat mtx)Initializes a scaled identity matrix.static voidCore. setIdentity(Mat mtx, Scalar s)Initializes a scaled identity matrix.MatMat. setTo(Mat value)MatMat. setTo(Mat value, Mat mask)MatMat. setTo(Scalar value, Mat mask)static booleanCore. solve(Mat src1, Mat src2, Mat dst)Solves one or more linear systems or least-squares problems.static booleanCore. solve(Mat src1, Mat src2, Mat dst, int flags)Solves one or more linear systems or least-squares problems.static intCore. solveCubic(Mat coeffs, Mat roots)Finds the real roots of a cubic equation.static doubleCore. solvePoly(Mat coeffs, Mat roots)Finds the real or complex roots of a polynomial equation.static doubleCore. solvePoly(Mat coeffs, Mat roots, int maxIters)Finds the real or complex roots of a polynomial equation.static voidCore. sort(Mat src, Mat dst, int flags)Sorts each row or each column of a matrix.static voidCore. sortIdx(Mat src, Mat dst, int flags)Sorts each row or each column of a matrix.static voidCore. split(Mat m, List<Mat> mv)static voidCore. sqrt(Mat src, Mat dst)Calculates a square root of array elements.static voidCore. subtract(Mat src1, Mat src2, Mat dst)Calculates the per-element difference between two arrays or array and a scalar.static voidCore. subtract(Mat src1, Mat src2, Mat dst, Mat mask)Calculates the per-element difference between two arrays or array and a scalar.static voidCore. 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 voidCore. subtract(Mat src1, Scalar src2, Mat dst)static voidCore. subtract(Mat src1, Scalar src2, Mat dst, Mat mask)static voidCore. subtract(Mat src1, Scalar src2, Mat dst, Mat mask, int dtype)static ScalarCore. sumElems(Mat src)Calculates the sum of array elements.static voidCore. SVBackSubst(Mat w, Mat u, Mat vt, Mat rhs, Mat dst)wrap SVD::backSubststatic voidCore. SVDecomp(Mat src, Mat w, Mat u, Mat vt)wrap SVD::computestatic voidCore. SVDecomp(Mat src, Mat w, Mat u, Mat vt, int flags)wrap SVD::computestatic ScalarCore. trace(Mat mtx)Returns the trace of a matrix.static voidCore. transform(Mat src, Mat dst, Mat m)Performs the matrix transformation of every array element.static voidCore. transpose(Mat src, Mat dst)Transposes a matrix.static voidCore. vconcat(List<Mat> src, Mat dst)std::vector<cv::Mat> matrices = { cv::Mat(1, 4, CV_8UC1, cv::Scalar(1)), cv::Mat(1, 4, CV_8UC1, cv::Scalar(2)), cv::Mat(1, 4, CV_8UC1, cv::Scalar(3)),}; cv::Mat out; cv::vconcat( matrices, out ); //out: //[1, 1, 1, 1; // 2, 2, 2, 2; // 3, 3, 3, 3]Method parameters in org.opencv.core with type arguments of type Mat Modifier and Type Method Description static voidCore. hconcat(List<Mat> src, Mat dst)std::vector<cv::Mat> matrices = { cv::Mat(4, 1, CV_8UC1, cv::Scalar(1)), cv::Mat(4, 1, CV_8UC1, cv::Scalar(2)), cv::Mat(4, 1, CV_8UC1, cv::Scalar(3)),}; cv::Mat out; cv::hconcat( matrices, out ); //out: //[1, 2, 3; // 1, 2, 3; // 1, 2, 3; // 1, 2, 3]static voidCore. merge(List<Mat> mv, Mat dst)static voidCore. mixChannels(List<Mat> src, List<Mat> dst, MatOfInt fromTo)static voidCore. split(Mat m, List<Mat> mv)static voidCore. vconcat(List<Mat> src, Mat dst)std::vector<cv::Mat> matrices = { cv::Mat(1, 4, CV_8UC1, cv::Scalar(1)), cv::Mat(1, 4, CV_8UC1, cv::Scalar(2)), cv::Mat(1, 4, CV_8UC1, cv::Scalar(3)),}; cv::Mat out; cv::vconcat( matrices, out ); //out: //[1, 1, 1, 1; // 2, 2, 2, 2; // 3, 3, 3, 3]Constructors in org.opencv.core with parameters of type Mat Constructor Description Mat(Mat m, Range rowRange)Mat(Mat m, Range[] ranges)Mat(Mat m, Range rowRange, Range colRange)Mat(Mat m, Rect roi)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)MatOfRect2d(Mat m)MatOfRotatedRect(Mat m) -
Uses of Mat in org.opencv.dnn
Methods in org.opencv.dnn that return Mat Modifier and Type Method Description static MatDnn. blobFromImage(Mat image)Creates 4-dimensional blob from image.static MatDnn. blobFromImage(Mat image, double scalefactor)Creates 4-dimensional blob from image.static MatDnn. blobFromImage(Mat image, double scalefactor, Size size)Creates 4-dimensional blob from image.static MatDnn. blobFromImage(Mat image, double scalefactor, Size size, Scalar mean)Creates 4-dimensional blob from image.static MatDnn. blobFromImage(Mat image, double scalefactor, Size size, Scalar mean, boolean swapRB)Creates 4-dimensional blob from image.static MatDnn. blobFromImage(Mat image, double scalefactor, Size size, Scalar mean, boolean swapRB, boolean crop)Creates 4-dimensional blob from image.static MatDnn. blobFromImage(Mat image, double scalefactor, Size size, Scalar mean, boolean swapRB, boolean crop, int ddepth)Creates 4-dimensional blob from image.static MatDnn. blobFromImages(List<Mat> images)Creates 4-dimensional blob from series of images.static MatDnn. blobFromImages(List<Mat> images, double scalefactor)Creates 4-dimensional blob from series of images.static MatDnn. blobFromImages(List<Mat> images, double scalefactor, Size size)Creates 4-dimensional blob from series of images.static MatDnn. blobFromImages(List<Mat> images, double scalefactor, Size size, Scalar mean)Creates 4-dimensional blob from series of images.static MatDnn. blobFromImages(List<Mat> images, double scalefactor, Size size, Scalar mean, boolean swapRB)Creates 4-dimensional blob from series of images.static MatDnn. blobFromImages(List<Mat> images, double scalefactor, Size size, Scalar mean, boolean swapRB, boolean crop)Creates 4-dimensional blob from series of images.static MatDnn. blobFromImages(List<Mat> images, double scalefactor, Size size, Scalar mean, boolean swapRB, boolean crop, int ddepth)Creates 4-dimensional blob from series of images.MatNet. forward()Runs forward pass to compute output of layer with nameoutputName.MatNet. forward(String outputName)Runs forward pass to compute output of layer with nameoutputName.MatNet. getParam(DictValue layer)Returns parameter blob of the layer.MatNet. getParam(DictValue layer, int numParam)Returns parameter blob of the layer.static MatDnn. readTensorFromONNX(String path)Creates blob from .pb file.static MatDnn. readTorchBlob(String filename)Loads blob which was serialized as torch.Tensor object of Torch7 framework.static MatDnn. readTorchBlob(String filename, boolean isBinary)Loads blob which was serialized as torch.Tensor object of Torch7 framework.Methods in org.opencv.dnn that return types with arguments of type Mat Modifier and Type Method Description List<Mat>Layer. get_blobs()Methods in org.opencv.dnn with parameters of type Mat Modifier and Type Method Description static MatDnn. blobFromImage(Mat image)Creates 4-dimensional blob from image.static MatDnn. blobFromImage(Mat image, double scalefactor)Creates 4-dimensional blob from image.static MatDnn. blobFromImage(Mat image, double scalefactor, Size size)Creates 4-dimensional blob from image.static MatDnn. blobFromImage(Mat image, double scalefactor, Size size, Scalar mean)Creates 4-dimensional blob from image.static MatDnn. blobFromImage(Mat image, double scalefactor, Size size, Scalar mean, boolean swapRB)Creates 4-dimensional blob from image.static MatDnn. blobFromImage(Mat image, double scalefactor, Size size, Scalar mean, boolean swapRB, boolean crop)Creates 4-dimensional blob from image.static MatDnn. blobFromImage(Mat image, double scalefactor, Size size, Scalar mean, boolean swapRB, boolean crop, int ddepth)Creates 4-dimensional blob from image.voidClassificationModel. classify(Mat frame, int[] classId, float[] conf)voidDetectionModel. detect(Mat frame, MatOfInt classIds, MatOfFloat confidences, MatOfRect boxes)Given theinputframe, create input blob, run net and return result detections.voidDetectionModel. detect(Mat frame, MatOfInt classIds, MatOfFloat confidences, MatOfRect boxes, float confThreshold)Given theinputframe, create input blob, run net and return result detections.voidDetectionModel. detect(Mat frame, MatOfInt classIds, MatOfFloat confidences, MatOfRect boxes, float confThreshold, float nmsThreshold)Given theinputframe, create input blob, run net and return result detections.voidTextDetectionModel. detect(Mat frame, List<MatOfPoint> detections)voidTextDetectionModel. detect(Mat frame, List<MatOfPoint> detections, MatOfFloat confidences)Performs detection Given the inputframe, prepare network input, run network inference, post-process network output and return result detections.voidTextDetectionModel. detectTextRectangles(Mat frame, MatOfRotatedRect detections)voidTextDetectionModel. detectTextRectangles(Mat frame, MatOfRotatedRect detections, MatOfFloat confidences)Performs detection Given the inputframe, prepare network input, run network inference, post-process network output and return result detections.MatOfPoint2fKeypointsModel. estimate(Mat frame)Given theinputframe, create input blob, run netMatOfPoint2fKeypointsModel. estimate(Mat frame, float thresh)Given theinputframe, create input blob, run netstatic voidDnn. imagesFromBlob(Mat blob_, List<Mat> images_)Parse a 4D blob and output the images it contains as 2D arrays through a simpler data structure (std::vector<cv::Mat>).voidModel. predict(Mat frame, List<Mat> outs)Given theinputframe, create input blob, run net and return the outputblobs.StringTextRecognitionModel. recognize(Mat frame)Given theinputframe, create input blob, run net and return recognition resultvoidTextRecognitionModel. recognize(Mat frame, List<Mat> roiRects, List<String> results)Given theinputframe, create input blob, run net and return recognition resultvoidSegmentationModel. segment(Mat frame, Mat mask)Given theinputframe, create input blob, run netvoidNet. setInput(Mat blob)Sets the new input value for the networkvoidNet. setInput(Mat blob, String name)Sets the new input value for the networkvoidNet. setInput(Mat blob, String name, double scalefactor)Sets the new input value for the networkvoidNet. setInput(Mat blob, String name, double scalefactor, Scalar mean)Sets the new input value for the networkvoidNet. setParam(DictValue layer, int numParam, Mat blob)Sets the new value for the learned param of the layer.Method parameters in org.opencv.dnn with type arguments of type Mat Modifier and Type Method Description static MatDnn. blobFromImages(List<Mat> images)Creates 4-dimensional blob from series of images.static MatDnn. blobFromImages(List<Mat> images, double scalefactor)Creates 4-dimensional blob from series of images.static MatDnn. blobFromImages(List<Mat> images, double scalefactor, Size size)Creates 4-dimensional blob from series of images.static MatDnn. blobFromImages(List<Mat> images, double scalefactor, Size size, Scalar mean)Creates 4-dimensional blob from series of images.static MatDnn. blobFromImages(List<Mat> images, double scalefactor, Size size, Scalar mean, boolean swapRB)Creates 4-dimensional blob from series of images.static MatDnn. blobFromImages(List<Mat> images, double scalefactor, Size size, Scalar mean, boolean swapRB, boolean crop)Creates 4-dimensional blob from series of images.static MatDnn. blobFromImages(List<Mat> images, double scalefactor, Size size, Scalar mean, boolean swapRB, boolean crop, int ddepth)Creates 4-dimensional blob from series of images.voidLayer. finalize(List<Mat> inputs, List<Mat> outputs)Computes and sets internal parameters according to inputs, outputs and blobs.voidNet. forward(List<Mat> outputBlobs)Runs forward pass to compute output of layer with nameoutputName.voidNet. forward(List<Mat> outputBlobs, String outputName)Runs forward pass to compute output of layer with nameoutputName.voidNet. forward(List<Mat> outputBlobs, List<String> outBlobNames)Runs forward pass to compute outputs of layers listed inoutBlobNames.static voidDnn. imagesFromBlob(Mat blob_, List<Mat> images_)Parse a 4D blob and output the images it contains as 2D arrays through a simpler data structure (std::vector<cv::Mat>).voidModel. predict(Mat frame, List<Mat> outs)Given theinputframe, create input blob, run net and return the outputblobs.voidTextRecognitionModel. recognize(Mat frame, List<Mat> roiRects, List<String> results)Given theinputframe, create input blob, run net and return recognition resultvoidLayer. run(List<Mat> inputs, List<Mat> outputs, List<Mat> internals)Deprecated.This method will be removed in the future release.voidLayer. set_blobs(List<Mat> blobs) -
Uses of Mat in org.opencv.face
Methods in org.opencv.face that return Mat Modifier and Type Method Description MatBasicFaceRecognizer. getEigenValues()MatBasicFaceRecognizer. getEigenVectors()MatBasicFaceRecognizer. getLabels()MatLBPHFaceRecognizer. getLabels()MatBasicFaceRecognizer. getMean()Methods in org.opencv.face that return types with arguments of type Mat Modifier and Type Method Description List<Mat>LBPHFaceRecognizer. getHistograms()List<Mat>BasicFaceRecognizer. getProjections()Methods in org.opencv.face with parameters of type Mat Modifier and Type Method Description voidBIF. compute(Mat image, Mat features)Computes features sby input image.static voidFace. drawFacemarks(Mat image, Mat points)Utility to draw the detected facial landmark pointsstatic voidFace. drawFacemarks(Mat image, Mat points, Scalar color)Utility to draw the detected facial landmark pointsbooleanFacemark. fit(Mat image, MatOfRect faces, List<MatOfPoint2f> landmarks)Detect facial landmarks from an image.static booleanFace. getFacesHAAR(Mat image, Mat faces, String face_cascade_name)Default face detector This function is mainly utilized by the implementation of a Facemark Algorithm.static booleanFace. loadFacePoints(String filename, Mat points)A utility to load facial landmark information from a given file.static booleanFace. loadFacePoints(String filename, Mat points, float offset)A utility to load facial landmark information from a given file.static booleanFace. loadTrainingData(String imageList, String groundTruth, List<String> images, Mat facePoints)A utility to load facial landmark information from the dataset.static booleanFace. loadTrainingData(String imageList, String groundTruth, List<String> images, Mat facePoints, float offset)A utility to load facial landmark information from the dataset.static booleanFace. loadTrainingData(String filename, List<String> images, Mat facePoints)A utility to load facial landmark dataset from a single file.static booleanFace. loadTrainingData(String filename, List<String> images, Mat facePoints, char delim)A utility to load facial landmark dataset from a single file.static booleanFace. loadTrainingData(String filename, List<String> images, Mat facePoints, char delim, float offset)A utility to load facial landmark dataset from a single file.voidFaceRecognizer. predict(Mat src, int[] label, double[] confidence)Predicts a label and associated confidence (e.g.voidFaceRecognizer. predict_collect(Mat src, PredictCollector collector)if implemented - send all result of prediction to collector that can be used for somehow custom result handlingintFaceRecognizer. predict_label(Mat src)booleanMACE. same(Mat query)correlate query img and threshold to min class valuevoidFaceRecognizer. train(List<Mat> src, Mat labels)Trains a FaceRecognizer with given data and associated labels.voidFaceRecognizer. update(List<Mat> src, Mat labels)Updates a FaceRecognizer with given data and associated labels.Method parameters in org.opencv.face with type arguments of type Mat Modifier and Type Method Description voidFaceRecognizer. train(List<Mat> src, Mat labels)Trains a FaceRecognizer with given data and associated labels.voidMACE. train(List<Mat> images)train it on positive features compute the mace filter:h = D(-1) * X * (X(+) * D(-1) * X)(-1) * Calso calculate a minimal threshold for this class, the smallest self-similarity from the train imagesvoidFaceRecognizer. update(List<Mat> src, Mat labels)Updates a FaceRecognizer with given data and associated labels. -
Uses of Mat in org.opencv.features2d
Methods in org.opencv.features2d that return Mat Modifier and Type Method Description MatBOWKMeansTrainer. cluster()MatBOWKMeansTrainer. cluster(Mat descriptors)MatBOWTrainer. cluster()MatBOWTrainer. cluster(Mat descriptors)Clusters train descriptors.MatBOWImgDescriptorExtractor. getVocabulary()Returns the set vocabulary.Methods in org.opencv.features2d that return types with arguments of type Mat Modifier and Type Method Description List<Mat>BOWTrainer. getDescriptors()Returns a training set of descriptors.List<Mat>DescriptorMatcher. getTrainDescriptors()Returns a constant link to the train descriptor collection trainDescCollection .Methods in org.opencv.features2d with parameters of type Mat Modifier and Type Method Description voidBOWTrainer. add(Mat descriptors)Adds descriptors to a training set.MatBOWKMeansTrainer. cluster(Mat descriptors)MatBOWTrainer. cluster(Mat descriptors)Clusters train descriptors.voidBOWImgDescriptorExtractor. compute(Mat image, MatOfKeyPoint keypoints, Mat imgDescriptor)voidFeature2D. 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).voidFeature2D. detect(Mat image, MatOfKeyPoint keypoints)Detects keypoints in an image (first variant) or image set (second variant).voidFeature2D. detect(Mat image, MatOfKeyPoint keypoints, Mat mask)Detects keypoints in an image (first variant) or image set (second variant).voidFeature2D. detectAndCompute(Mat image, Mat mask, MatOfKeyPoint keypoints, Mat descriptors)Detects keypoints and computes the descriptorsvoidFeature2D. detectAndCompute(Mat image, Mat mask, MatOfKeyPoint keypoints, Mat descriptors, boolean useProvidedKeypoints)Detects keypoints and computes the descriptorsvoidMSER. detectRegions(Mat image, List<MatOfPoint> msers, MatOfRect bboxes)Detect %MSER regionsstatic voidFeatures2d. drawKeypoints(Mat image, MatOfKeyPoint keypoints, Mat outImage)Draws keypoints.static voidFeatures2d. drawKeypoints(Mat image, MatOfKeyPoint keypoints, Mat outImage, Scalar color)Draws keypoints.static voidFeatures2d. drawKeypoints(Mat image, MatOfKeyPoint keypoints, Mat outImage, Scalar color, int flags)Draws keypoints.static voidFeatures2d. drawMatches(Mat img1, MatOfKeyPoint keypoints1, Mat img2, MatOfKeyPoint keypoints2, MatOfDMatch matches1to2, Mat outImg)Draws the found matches of keypoints from two images.static voidFeatures2d. drawMatches(Mat img1, MatOfKeyPoint keypoints1, Mat img2, MatOfKeyPoint keypoints2, MatOfDMatch matches1to2, Mat outImg, int matchesThickness)static voidFeatures2d. drawMatches(Mat img1, MatOfKeyPoint keypoints1, Mat img2, MatOfKeyPoint keypoints2, MatOfDMatch matches1to2, Mat outImg, int matchesThickness, Scalar matchColor)static voidFeatures2d. drawMatches(Mat img1, MatOfKeyPoint keypoints1, Mat img2, MatOfKeyPoint keypoints2, MatOfDMatch matches1to2, Mat outImg, int matchesThickness, Scalar matchColor, Scalar singlePointColor)static voidFeatures2d. drawMatches(Mat img1, MatOfKeyPoint keypoints1, Mat img2, MatOfKeyPoint keypoints2, MatOfDMatch matches1to2, Mat outImg, int matchesThickness, Scalar matchColor, Scalar singlePointColor, MatOfByte matchesMask)static voidFeatures2d. drawMatches(Mat img1, MatOfKeyPoint keypoints1, Mat img2, MatOfKeyPoint keypoints2, MatOfDMatch matches1to2, Mat outImg, int matchesThickness, Scalar matchColor, Scalar singlePointColor, MatOfByte matchesMask, int flags)static voidFeatures2d. drawMatches(Mat img1, MatOfKeyPoint keypoints1, Mat img2, MatOfKeyPoint keypoints2, MatOfDMatch matches1to2, Mat outImg, Scalar matchColor)Draws the found matches of keypoints from two images.static voidFeatures2d. drawMatches(Mat img1, MatOfKeyPoint keypoints1, Mat img2, MatOfKeyPoint keypoints2, MatOfDMatch matches1to2, Mat outImg, Scalar matchColor, Scalar singlePointColor)Draws the found matches of keypoints from two images.static voidFeatures2d. drawMatches(Mat img1, MatOfKeyPoint keypoints1, Mat img2, MatOfKeyPoint keypoints2, MatOfDMatch matches1to2, Mat outImg, Scalar matchColor, Scalar singlePointColor, MatOfByte matchesMask)Draws the found matches of keypoints from two images.static voidFeatures2d. 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 voidFeatures2d. drawMatchesKnn(Mat img1, MatOfKeyPoint keypoints1, Mat img2, MatOfKeyPoint keypoints2, List<MatOfDMatch> matches1to2, Mat outImg)static voidFeatures2d. drawMatchesKnn(Mat img1, MatOfKeyPoint keypoints1, Mat img2, MatOfKeyPoint keypoints2, List<MatOfDMatch> matches1to2, Mat outImg, Scalar matchColor)static voidFeatures2d. drawMatchesKnn(Mat img1, MatOfKeyPoint keypoints1, Mat img2, MatOfKeyPoint keypoints2, List<MatOfDMatch> matches1to2, Mat outImg, Scalar matchColor, Scalar singlePointColor)static voidFeatures2d. drawMatchesKnn(Mat img1, MatOfKeyPoint keypoints1, Mat img2, MatOfKeyPoint keypoints2, List<MatOfDMatch> matches1to2, Mat outImg, Scalar matchColor, Scalar singlePointColor, List<MatOfByte> matchesMask)static voidFeatures2d. drawMatchesKnn(Mat img1, MatOfKeyPoint keypoints1, Mat img2, MatOfKeyPoint keypoints2, List<MatOfDMatch> matches1to2, Mat outImg, Scalar matchColor, Scalar singlePointColor, List<MatOfByte> matchesMask, int flags)voidDescriptorMatcher. knnMatch(Mat queryDescriptors, List<MatOfDMatch> matches, int k)voidDescriptorMatcher. knnMatch(Mat queryDescriptors, List<MatOfDMatch> matches, int k, List<Mat> masks)voidDescriptorMatcher. knnMatch(Mat queryDescriptors, List<MatOfDMatch> matches, int k, List<Mat> masks, boolean compactResult)voidDescriptorMatcher. knnMatch(Mat queryDescriptors, Mat trainDescriptors, List<MatOfDMatch> matches, int k)Finds the k best matches for each descriptor from a query set.voidDescriptorMatcher. knnMatch(Mat queryDescriptors, Mat trainDescriptors, List<MatOfDMatch> matches, int k, Mat mask)Finds the k best matches for each descriptor from a query set.voidDescriptorMatcher. 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.voidDescriptorMatcher. match(Mat queryDescriptors, MatOfDMatch matches)voidDescriptorMatcher. match(Mat queryDescriptors, MatOfDMatch matches, List<Mat> masks)voidDescriptorMatcher. match(Mat queryDescriptors, Mat trainDescriptors, MatOfDMatch matches)Finds the best match for each descriptor from a query set.voidDescriptorMatcher. match(Mat queryDescriptors, Mat trainDescriptors, MatOfDMatch matches, Mat mask)Finds the best match for each descriptor from a query set.voidDescriptorMatcher. radiusMatch(Mat queryDescriptors, List<MatOfDMatch> matches, float maxDistance)voidDescriptorMatcher. radiusMatch(Mat queryDescriptors, List<MatOfDMatch> matches, float maxDistance, List<Mat> masks)voidDescriptorMatcher. radiusMatch(Mat queryDescriptors, List<MatOfDMatch> matches, float maxDistance, List<Mat> masks, boolean compactResult)voidDescriptorMatcher. radiusMatch(Mat queryDescriptors, Mat trainDescriptors, List<MatOfDMatch> matches, float maxDistance)For each query descriptor, finds the training descriptors not farther than the specified distance.voidDescriptorMatcher. radiusMatch(Mat queryDescriptors, Mat trainDescriptors, List<MatOfDMatch> matches, float maxDistance, Mat mask)For each query descriptor, finds the training descriptors not farther than the specified distance.voidDescriptorMatcher. 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.voidBOWImgDescriptorExtractor. setVocabulary(Mat vocabulary)Sets a visual vocabulary.Method parameters in org.opencv.features2d with type arguments of type Mat Modifier and Type Method Description voidDescriptorMatcher. add(List<Mat> descriptors)Adds descriptors to train a CPU(trainDescCollectionis) or GPU(utrainDescCollectionis) descriptor collection.voidFeature2D. compute(List<Mat> images, List<MatOfKeyPoint> keypoints, List<Mat> descriptors)voidFeature2D. detect(List<Mat> images, List<MatOfKeyPoint> keypoints)voidFeature2D. detect(List<Mat> images, List<MatOfKeyPoint> keypoints, List<Mat> masks)voidDescriptorMatcher. match(Mat queryDescriptors, MatOfDMatch matches, List<Mat> masks) -
Uses of Mat in org.opencv.highgui
Fields in org.opencv.highgui declared as Mat Modifier and Type Field Description MatImageWindow. imgMethods in org.opencv.highgui with parameters of type Mat Modifier and Type Method Description static voidHighGui. imshow(String winname, Mat img)voidImageWindow. setMat(Mat img)static ImageHighGui. toBufferedImage(Mat m)Constructors in org.opencv.highgui with parameters of type Mat Constructor Description ImageWindow(String name, Mat img) -
Uses of Mat in org.opencv.img_hash
Methods in org.opencv.img_hash with parameters of type Mat Modifier and Type Method Description static voidImg_hash. averageHash(Mat inputArr, Mat outputArr)Calculates img_hash::AverageHash in one callstatic voidImg_hash. blockMeanHash(Mat inputArr, Mat outputArr)Computes block mean hash of the input imagestatic voidImg_hash. blockMeanHash(Mat inputArr, Mat outputArr, int mode)Computes block mean hash of the input imagestatic voidImg_hash. colorMomentHash(Mat inputArr, Mat outputArr)Computes color moment hash of the input, the algorithm is come from the paper "Perceptual Hashing for Color Images Using Invariant Moments"doubleImgHashBase. compare(Mat hashOne, Mat hashTwo)Compare the hash value between inOne and inTwovoidImgHashBase. compute(Mat inputArr, Mat outputArr)Computes hash of the input imagestatic voidImg_hash. marrHildrethHash(Mat inputArr, Mat outputArr)Computes average hash value of the input imagestatic voidImg_hash. marrHildrethHash(Mat inputArr, Mat outputArr, float alpha)Computes average hash value of the input imagestatic voidImg_hash. marrHildrethHash(Mat inputArr, Mat outputArr, float alpha, float scale)Computes average hash value of the input imagestatic voidImg_hash. pHash(Mat inputArr, Mat outputArr)Computes pHash value of the input imagestatic voidImg_hash. radialVarianceHash(Mat inputArr, Mat outputArr)Computes radial variance hash of the input imagestatic voidImg_hash. radialVarianceHash(Mat inputArr, Mat outputArr, double sigma)Computes radial variance hash of the input imagestatic voidImg_hash. radialVarianceHash(Mat inputArr, Mat outputArr, double sigma, int numOfAngleLine)Computes radial variance hash of the input image -
Uses of Mat in org.opencv.imgcodecs
Methods in org.opencv.imgcodecs that return Mat Modifier and Type Method Description static MatImgcodecs. imdecode(Mat buf, int flags)Reads an image from a buffer in memory.static MatImgcodecs. imread(String filename)Loads an image from a file.static MatImgcodecs. imread(String filename, int flags)Loads an image from a file.Methods in org.opencv.imgcodecs with parameters of type Mat Modifier and Type Method Description static MatImgcodecs. imdecode(Mat buf, int flags)Reads an image from a buffer in memory.static booleanImgcodecs. imencode(String ext, Mat img, MatOfByte buf)Encodes an image into a memory buffer.static booleanImgcodecs. imencode(String ext, Mat img, MatOfByte buf, MatOfInt params)Encodes an image into a memory buffer.static booleanImgcodecs. imwrite(String filename, Mat img)Saves an image to a specified file.static booleanImgcodecs. imwrite(String filename, Mat img, MatOfInt params)Saves an image to a specified file.Method parameters in org.opencv.imgcodecs with type arguments of type Mat Modifier and Type Method Description static booleanImgcodecs. imreadmulti(String filename, List<Mat> mats)Loads a multi-page image from a file.static booleanImgcodecs. imreadmulti(String filename, List<Mat> mats, int flags)Loads a multi-page image from a file.static booleanImgcodecs. imreadmulti(String filename, List<Mat> mats, int start, int count)Loads a of images of a multi-page image from a file.static booleanImgcodecs. imreadmulti(String filename, List<Mat> mats, int start, int count, int flags)Loads a of images of a multi-page image from a file.static booleanImgcodecs. imwritemulti(String filename, List<Mat> img)static booleanImgcodecs. imwritemulti(String filename, List<Mat> img, MatOfInt params) -
Uses of Mat in org.opencv.imgproc
Methods in org.opencv.imgproc that return Mat Modifier and Type Method Description static MatImgproc. getAffineTransform(MatOfPoint2f src, MatOfPoint2f dst)static MatImgproc. getGaborKernel(Size ksize, double sigma, double theta, double lambd, double gamma)Returns Gabor filter coefficients.static MatImgproc. getGaborKernel(Size ksize, double sigma, double theta, double lambd, double gamma, double psi)Returns Gabor filter coefficients.static MatImgproc. getGaborKernel(Size ksize, double sigma, double theta, double lambd, double gamma, double psi, int ktype)Returns Gabor filter coefficients.static MatImgproc. getGaussianKernel(int ksize, double sigma)Returns Gaussian filter coefficients.static MatImgproc. getGaussianKernel(int ksize, double sigma, int ktype)Returns Gaussian filter coefficients.static MatImgproc. getPerspectiveTransform(Mat src, Mat dst)Calculates a perspective transform from four pairs of the corresponding points.static MatImgproc. getPerspectiveTransform(Mat src, Mat dst, int solveMethod)Calculates a perspective transform from four pairs of the corresponding points.static MatImgproc. getRotationMatrix2D(Point center, double angle, double scale)Calculates an affine matrix of 2D rotation.static MatImgproc. getStructuringElement(int shape, Size ksize)Returns a structuring element of the specified size and shape for morphological operations.static MatImgproc. getStructuringElement(int shape, Size ksize, Point anchor)Returns a structuring element of the specified size and shape for morphological operations.Methods in org.opencv.imgproc with parameters of type Mat Modifier and Type Method Description static voidImgproc. accumulate(Mat src, Mat dst)Adds an image to the accumulator image.static voidImgproc. accumulate(Mat src, Mat dst, Mat mask)Adds an image to the accumulator image.static voidImgproc. accumulateProduct(Mat src1, Mat src2, Mat dst)Adds the per-element product of two input images to the accumulator image.static voidImgproc. accumulateProduct(Mat src1, Mat src2, Mat dst, Mat mask)Adds the per-element product of two input images to the accumulator image.static voidImgproc. accumulateSquare(Mat src, Mat dst)Adds the square of a source image to the accumulator image.static voidImgproc. accumulateSquare(Mat src, Mat dst, Mat mask)Adds the square of a source image to the accumulator image.static voidImgproc. accumulateWeighted(Mat src, Mat dst, double alpha)Updates a running average.static voidImgproc. accumulateWeighted(Mat src, Mat dst, double alpha, Mat mask)Updates a running average.static voidImgproc. adaptiveThreshold(Mat src, Mat dst, double maxValue, int adaptiveMethod, int thresholdType, int blockSize, double C)Applies an adaptive threshold to an array.voidCLAHE. apply(Mat src, Mat dst)Equalizes the histogram of a grayscale image using Contrast Limited Adaptive Histogram Equalization.static voidImgproc. applyColorMap(Mat src, Mat dst, int colormap)Applies a GNU Octave/MATLAB equivalent colormap on a given image.static voidImgproc. applyColorMap(Mat src, Mat dst, Mat userColor)Applies a user colormap on a given image.IntelligentScissorsMBIntelligentScissorsMB. applyImage(Mat image)Specify input image and extract image featuresIntelligentScissorsMBIntelligentScissorsMB. applyImageFeatures(Mat non_edge, Mat gradient_direction, Mat gradient_magnitude)Specify custom features of imput image Customized advanced variant of applyImage() call.IntelligentScissorsMBIntelligentScissorsMB. applyImageFeatures(Mat non_edge, Mat gradient_direction, Mat gradient_magnitude, Mat image)Specify custom features of imput image Customized advanced variant of applyImage() call.static voidImgproc. arrowedLine(Mat img, Point pt1, Point pt2, Scalar color)Draws a arrow segment pointing from the first point to the second one.static voidImgproc. arrowedLine(Mat img, Point pt1, Point pt2, Scalar color, int thickness)Draws a arrow segment pointing from the first point to the second one.static voidImgproc. arrowedLine(Mat img, Point pt1, Point pt2, Scalar color, int thickness, int line_type)Draws a arrow segment pointing from the first point to the second one.static voidImgproc. arrowedLine(Mat img, Point pt1, Point pt2, Scalar color, int thickness, int line_type, int shift)Draws a arrow segment pointing from the first point to the second one.static voidImgproc. arrowedLine(Mat img, Point pt1, Point pt2, Scalar color, int thickness, int line_type, int shift, double tipLength)Draws a arrow segment pointing from the first point to the second one.static voidImgproc. bilateralFilter(Mat src, Mat dst, int d, double sigmaColor, double sigmaSpace)Applies the bilateral filter to an image.static voidImgproc. bilateralFilter(Mat src, Mat dst, int d, double sigmaColor, double sigmaSpace, int borderType)Applies the bilateral filter to an image.static voidImgproc. blendLinear(Mat src1, Mat src2, Mat weights1, Mat weights2, Mat dst)static voidImgproc. blur(Mat src, Mat dst, Size ksize)Blurs an image using the normalized box filter.static voidImgproc. blur(Mat src, Mat dst, Size ksize, Point anchor)Blurs an image using the normalized box filter.static voidImgproc. blur(Mat src, Mat dst, Size ksize, Point anchor, int borderType)Blurs an image using the normalized box filter.static RectImgproc. boundingRect(Mat array)Calculates the up-right bounding rectangle of a point set or non-zero pixels of gray-scale image.static voidImgproc. boxFilter(Mat src, Mat dst, int ddepth, Size ksize)Blurs an image using the box filter.static voidImgproc. boxFilter(Mat src, Mat dst, int ddepth, Size ksize, Point anchor)Blurs an image using the box filter.static voidImgproc. boxFilter(Mat src, Mat dst, int ddepth, Size ksize, Point anchor, boolean normalize)Blurs an image using the box filter.static voidImgproc. boxFilter(Mat src, Mat dst, int ddepth, Size ksize, Point anchor, boolean normalize, int borderType)Blurs an image using the box filter.static voidImgproc. boxPoints(RotatedRect box, Mat points)Finds the four vertices of a rotated rect.static voidImgproc. calcBackProject(List<Mat> images, MatOfInt channels, Mat hist, Mat dst, MatOfFloat ranges, double scale)static voidImgproc. calcHist(List<Mat> images, MatOfInt channels, Mat mask, Mat hist, MatOfInt histSize, MatOfFloat ranges)static voidImgproc. calcHist(List<Mat> images, MatOfInt channels, Mat mask, Mat hist, MatOfInt histSize, MatOfFloat ranges, boolean accumulate)static voidImgproc. Canny(Mat image, Mat edges, double threshold1, double threshold2)Finds edges in an image using the Canny algorithm CITE: Canny86 .static voidImgproc. Canny(Mat image, Mat edges, double threshold1, double threshold2, int apertureSize)Finds edges in an image using the Canny algorithm CITE: Canny86 .static voidImgproc. Canny(Mat image, Mat edges, double threshold1, double threshold2, int apertureSize, boolean L2gradient)Finds edges in an image using the Canny algorithm CITE: Canny86 .static voidImgproc. Canny(Mat dx, Mat dy, Mat edges, double threshold1, double threshold2)\overload Finds edges in an image using the Canny algorithm with custom image gradient.static voidImgproc. Canny(Mat dx, Mat dy, Mat edges, double threshold1, double threshold2, boolean L2gradient)\overload Finds edges in an image using the Canny algorithm with custom image gradient.static voidImgproc. circle(Mat img, Point center, int radius, Scalar color)Draws a circle.static voidImgproc. circle(Mat img, Point center, int radius, Scalar color, int thickness)Draws a circle.static voidImgproc. circle(Mat img, Point center, int radius, Scalar color, int thickness, int lineType)Draws a circle.static voidImgproc. circle(Mat img, Point center, int radius, Scalar color, int thickness, int lineType, int shift)Draws a circle.static doubleImgproc. compareHist(Mat H1, Mat H2, int method)Compares two histograms.intLineSegmentDetector. compareSegments(Size size, Mat lines1, Mat lines2)Draws two groups of lines in blue and red, counting the non overlapping (mismatching) pixels.intLineSegmentDetector. compareSegments(Size size, Mat lines1, Mat lines2, Mat image)Draws two groups of lines in blue and red, counting the non overlapping (mismatching) pixels.static intImgproc. connectedComponents(Mat image, Mat labels)static intImgproc. connectedComponents(Mat image, Mat labels, int connectivity)static intImgproc. connectedComponents(Mat image, Mat labels, int connectivity, int ltype)static intImgproc. connectedComponentsWithAlgorithm(Mat image, Mat labels, int connectivity, int ltype, int ccltype)computes the connected components labeled image of boolean image image with 4 or 8 way connectivity - returns N, the total number of labels [0, N-1] where 0 represents the background label.static intImgproc. connectedComponentsWithStats(Mat image, Mat labels, Mat stats, Mat centroids)static intImgproc. connectedComponentsWithStats(Mat image, Mat labels, Mat stats, Mat centroids, int connectivity)static intImgproc. connectedComponentsWithStats(Mat image, Mat labels, Mat stats, Mat centroids, int connectivity, int ltype)static intImgproc. connectedComponentsWithStatsWithAlgorithm(Mat image, Mat labels, Mat stats, Mat centroids, int connectivity, int ltype, int ccltype)computes the connected components labeled image of boolean image and also produces a statistics output for each label image with 4 or 8 way connectivity - returns N, the total number of labels [0, N-1] where 0 represents the background label.static doubleImgproc. contourArea(Mat contour)Calculates a contour area.static doubleImgproc. contourArea(Mat contour, boolean oriented)Calculates a contour area.static voidImgproc. convertMaps(Mat map1, Mat map2, Mat dstmap1, Mat dstmap2, int dstmap1type)Converts image transformation maps from one representation to another.static voidImgproc. convertMaps(Mat map1, Mat map2, Mat dstmap1, Mat dstmap2, int dstmap1type, boolean nninterpolation)Converts image transformation maps from one representation to another.static voidImgproc. cornerEigenValsAndVecs(Mat src, Mat dst, int blockSize, int ksize)Calculates eigenvalues and eigenvectors of image blocks for corner detection.static voidImgproc. cornerEigenValsAndVecs(Mat src, Mat dst, int blockSize, int ksize, int borderType)Calculates eigenvalues and eigenvectors of image blocks for corner detection.static voidImgproc. cornerHarris(Mat src, Mat dst, int blockSize, int ksize, double k)Harris corner detector.static voidImgproc. cornerHarris(Mat src, Mat dst, int blockSize, int ksize, double k, int borderType)Harris corner detector.static voidImgproc. cornerMinEigenVal(Mat src, Mat dst, int blockSize)Calculates the minimal eigenvalue of gradient matrices for corner detection.static voidImgproc. cornerMinEigenVal(Mat src, Mat dst, int blockSize, int ksize)Calculates the minimal eigenvalue of gradient matrices for corner detection.static voidImgproc. cornerMinEigenVal(Mat src, Mat dst, int blockSize, int ksize, int borderType)Calculates the minimal eigenvalue of gradient matrices for corner detection.static voidImgproc. cornerSubPix(Mat image, Mat corners, Size winSize, Size zeroZone, TermCriteria criteria)Refines the corner locations.static voidImgproc. createHanningWindow(Mat dst, Size winSize, int type)This function computes a Hanning window coefficients in two dimensions.static voidImgproc. cvtColor(Mat src, Mat dst, int code)Converts an image from one color space to another.static voidImgproc. cvtColor(Mat src, Mat dst, int code, int dstCn)Converts an image from one color space to another.static voidImgproc. cvtColorTwoPlane(Mat src1, Mat src2, Mat dst, int code)Converts an image from one color space to another where the source image is stored in two planes.static voidImgproc. demosaicing(Mat src, Mat dst, int code)main function for all demosaicing processesstatic voidImgproc. demosaicing(Mat src, Mat dst, int code, int dstCn)main function for all demosaicing processesvoidGeneralizedHough. detect(Mat image, Mat positions)voidGeneralizedHough. detect(Mat image, Mat positions, Mat votes)voidGeneralizedHough. detect(Mat edges, Mat dx, Mat dy, Mat positions)voidGeneralizedHough. detect(Mat edges, Mat dx, Mat dy, Mat positions, Mat votes)voidLineSegmentDetector. detect(Mat image, Mat lines)Finds lines in the input image.voidLineSegmentDetector. detect(Mat image, Mat lines, Mat width)Finds lines in the input image.voidLineSegmentDetector. detect(Mat image, Mat lines, Mat width, Mat prec)Finds lines in the input image.voidLineSegmentDetector. detect(Mat image, Mat lines, Mat width, Mat prec, Mat nfa)Finds lines in the input image.static voidImgproc. dilate(Mat src, Mat dst, Mat kernel)Dilates an image by using a specific structuring element.static voidImgproc. dilate(Mat src, Mat dst, Mat kernel, Point anchor)Dilates an image by using a specific structuring element.static voidImgproc. dilate(Mat src, Mat dst, Mat kernel, Point anchor, int iterations)Dilates an image by using a specific structuring element.static voidImgproc. dilate(Mat src, Mat dst, Mat kernel, Point anchor, int iterations, int borderType)Dilates an image by using a specific structuring element.static voidImgproc. 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 voidImgproc. distanceTransform(Mat src, Mat dst, int distanceType, int maskSize)static voidImgproc. distanceTransform(Mat src, Mat dst, int distanceType, int maskSize, int dstType)static voidImgproc. 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 voidImgproc. 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 voidImgproc. divSpectrums(Mat a, Mat b, Mat c, int flags)Performs the per-element division of the first Fourier spectrum by the second Fourier spectrum.static voidImgproc. divSpectrums(Mat a, Mat b, Mat c, int flags, boolean conjB)Performs the per-element division of the first Fourier spectrum by the second Fourier spectrum.static voidImgproc. drawContours(Mat image, List<MatOfPoint> contours, int contourIdx, Scalar color)Draws contours outlines or filled contours.static voidImgproc. drawContours(Mat image, List<MatOfPoint> contours, int contourIdx, Scalar color, int thickness)Draws contours outlines or filled contours.static voidImgproc. drawContours(Mat image, List<MatOfPoint> contours, int contourIdx, Scalar color, int thickness, int lineType)Draws contours outlines or filled contours.static voidImgproc. drawContours(Mat image, List<MatOfPoint> contours, int contourIdx, Scalar color, int thickness, int lineType, Mat hierarchy)Draws contours outlines or filled contours.static voidImgproc. drawContours(Mat image, List<MatOfPoint> contours, int contourIdx, Scalar color, int thickness, int lineType, Mat hierarchy, int maxLevel)Draws contours outlines or filled contours.static voidImgproc. 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 voidImgproc. drawMarker(Mat img, Point position, Scalar color)Draws a marker on a predefined position in an image.static voidImgproc. drawMarker(Mat img, Point position, Scalar color, int markerType)Draws a marker on a predefined position in an image.static voidImgproc. drawMarker(Mat img, Point position, Scalar color, int markerType, int markerSize)Draws a marker on a predefined position in an image.static voidImgproc. drawMarker(Mat img, Point position, Scalar color, int markerType, int markerSize, int thickness)Draws a marker on a predefined position in an image.static voidImgproc. drawMarker(Mat img, Point position, Scalar color, int markerType, int markerSize, int thickness, int line_type)Draws a marker on a predefined position in an image.voidLineSegmentDetector. drawSegments(Mat image, Mat lines)Draws the line segments on a given image.static voidImgproc. 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 voidImgproc. 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 voidImgproc. ellipse(Mat img, Point center, Size axes, double angle, double startAngle, double endAngle, Scalar color, int thickness, int lineType)Draws a simple or thick elliptic arc or fills an ellipse sector.static voidImgproc. 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 voidImgproc. ellipse(Mat img, RotatedRect box, Scalar color)static voidImgproc. ellipse(Mat img, RotatedRect box, Scalar color, int thickness)static voidImgproc. ellipse(Mat img, RotatedRect box, Scalar color, int thickness, int lineType)static floatImgproc. EMD(Mat signature1, Mat signature2, int distType)Computes the "minimal work" distance between two weighted point configurations.static floatImgproc. EMD(Mat signature1, Mat signature2, int distType, Mat cost)Computes the "minimal work" distance between two weighted point configurations.static floatImgproc. EMD(Mat signature1, Mat signature2, int distType, Mat cost, Mat flow)Computes the "minimal work" distance between two weighted point configurations.static voidImgproc. equalizeHist(Mat src, Mat dst)Equalizes the histogram of a grayscale image.static voidImgproc. erode(Mat src, Mat dst, Mat kernel)Erodes an image by using a specific structuring element.static voidImgproc. erode(Mat src, Mat dst, Mat kernel, Point anchor)Erodes an image by using a specific structuring element.static voidImgproc. erode(Mat src, Mat dst, Mat kernel, Point anchor, int iterations)Erodes an image by using a specific structuring element.static voidImgproc. erode(Mat src, Mat dst, Mat kernel, Point anchor, int iterations, int borderType)Erodes an image by using a specific structuring element.static voidImgproc. 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 voidImgproc. fillConvexPoly(Mat img, MatOfPoint points, Scalar color)Fills a convex polygon.static voidImgproc. fillConvexPoly(Mat img, MatOfPoint points, Scalar color, int lineType)Fills a convex polygon.static voidImgproc. fillConvexPoly(Mat img, MatOfPoint points, Scalar color, int lineType, int shift)Fills a convex polygon.static voidImgproc. fillPoly(Mat img, List<MatOfPoint> pts, Scalar color)Fills the area bounded by one or more polygons.static voidImgproc. fillPoly(Mat img, List<MatOfPoint> pts, Scalar color, int lineType)Fills the area bounded by one or more polygons.static voidImgproc. fillPoly(Mat img, List<MatOfPoint> pts, Scalar color, int lineType, int shift)Fills the area bounded by one or more polygons.static voidImgproc. fillPoly(Mat img, List<MatOfPoint> pts, Scalar color, int lineType, int shift, Point offset)Fills the area bounded by one or more polygons.static voidImgproc. filter2D(Mat src, Mat dst, int ddepth, Mat kernel)Convolves an image with the kernel.static voidImgproc. filter2D(Mat src, Mat dst, int ddepth, Mat kernel, Point anchor)Convolves an image with the kernel.static voidImgproc. filter2D(Mat src, Mat dst, int ddepth, Mat kernel, Point anchor, double delta)Convolves an image with the kernel.static voidImgproc. filter2D(Mat src, Mat dst, int ddepth, Mat kernel, Point anchor, double delta, int borderType)Convolves an image with the kernel.static voidImgproc. findContours(Mat image, List<MatOfPoint> contours, Mat hierarchy, int mode, int method)Finds contours in a binary image.static voidImgproc. findContours(Mat image, List<MatOfPoint> contours, Mat hierarchy, int mode, int method, Point offset)Finds contours in a binary image.static RotatedRectImgproc. fitEllipseAMS(Mat points)Fits an ellipse around a set of 2D points.static RotatedRectImgproc. fitEllipseDirect(Mat points)Fits an ellipse around a set of 2D points.static voidImgproc. fitLine(Mat points, Mat line, int distType, double param, double reps, double aeps)Fits a line to a 2D or 3D point set.static intImgproc. floodFill(Mat image, Mat mask, Point seedPoint, Scalar newVal)Fills a connected component with the given color.static intImgproc. floodFill(Mat image, Mat mask, Point seedPoint, Scalar newVal, Rect rect)Fills a connected component with the given color.static intImgproc. floodFill(Mat image, Mat mask, Point seedPoint, Scalar newVal, Rect rect, Scalar loDiff)Fills a connected component with the given color.static intImgproc. floodFill(Mat image, Mat mask, Point seedPoint, Scalar newVal, Rect rect, Scalar loDiff, Scalar upDiff)Fills a connected component with the given color.static intImgproc. 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 voidImgproc. GaussianBlur(Mat src, Mat dst, Size ksize, double sigmaX)Blurs an image using a Gaussian filter.static voidImgproc. GaussianBlur(Mat src, Mat dst, Size ksize, double sigmaX, double sigmaY)Blurs an image using a Gaussian filter.static voidImgproc. GaussianBlur(Mat src, Mat dst, Size ksize, double sigmaX, double sigmaY, int borderType)Blurs an image using a Gaussian filter.voidIntelligentScissorsMB. getContour(Point targetPt, Mat contour)Extracts optimal contour for the given target point on the image Note: buildMap() must be called before this callvoidIntelligentScissorsMB. getContour(Point targetPt, Mat contour, boolean backward)Extracts optimal contour for the given target point on the image Note: buildMap() must be called before this callstatic voidImgproc. getDerivKernels(Mat kx, Mat ky, int dx, int dy, int ksize)Returns filter coefficients for computing spatial image derivatives.static voidImgproc. getDerivKernels(Mat kx, Mat ky, int dx, int dy, int ksize, boolean normalize)Returns filter coefficients for computing spatial image derivatives.static voidImgproc. getDerivKernels(Mat kx, Mat ky, int dx, int dy, int ksize, boolean normalize, int ktype)Returns filter coefficients for computing spatial image derivatives.static MatImgproc. getPerspectiveTransform(Mat src, Mat dst)Calculates a perspective transform from four pairs of the corresponding points.static MatImgproc. getPerspectiveTransform(Mat src, Mat dst, int solveMethod)Calculates a perspective transform from four pairs of the corresponding points.static voidImgproc. getRectSubPix(Mat image, Size patchSize, Point center, Mat patch)Retrieves a pixel rectangle from an image with sub-pixel accuracy.static voidImgproc. getRectSubPix(Mat image, Size patchSize, Point center, Mat patch, int patchType)Retrieves a pixel rectangle from an image with sub-pixel accuracy.static voidImgproc. goodFeaturesToTrack(Mat image, MatOfPoint corners, int maxCorners, double qualityLevel, double minDistance)Determines strong corners on an image.static voidImgproc. goodFeaturesToTrack(Mat image, MatOfPoint corners, int maxCorners, double qualityLevel, double minDistance, Mat mask)Determines strong corners on an image.static voidImgproc. goodFeaturesToTrack(Mat image, MatOfPoint corners, int maxCorners, double qualityLevel, double minDistance, Mat mask, int blockSize)Determines strong corners on an image.static voidImgproc. goodFeaturesToTrack(Mat image, MatOfPoint corners, int maxCorners, double qualityLevel, double minDistance, Mat mask, int blockSize, boolean useHarrisDetector)Determines strong corners on an image.static voidImgproc. 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 voidImgproc. goodFeaturesToTrack(Mat image, MatOfPoint corners, int maxCorners, double qualityLevel, double minDistance, Mat mask, int blockSize, int gradientSize)static voidImgproc. goodFeaturesToTrack(Mat image, MatOfPoint corners, int maxCorners, double qualityLevel, double minDistance, Mat mask, int blockSize, int gradientSize, boolean useHarrisDetector)static voidImgproc. goodFeaturesToTrack(Mat image, MatOfPoint corners, int maxCorners, double qualityLevel, double minDistance, Mat mask, int blockSize, int gradientSize, boolean useHarrisDetector, double k)static voidImgproc. goodFeaturesToTrackWithQuality(Mat image, Mat corners, int maxCorners, double qualityLevel, double minDistance, Mat mask, Mat cornersQuality)Same as above, but returns also quality measure of the detected corners.static voidImgproc. goodFeaturesToTrackWithQuality(Mat image, Mat corners, int maxCorners, double qualityLevel, double minDistance, Mat mask, Mat cornersQuality, int blockSize)Same as above, but returns also quality measure of the detected corners.static voidImgproc. goodFeaturesToTrackWithQuality(Mat image, Mat corners, int maxCorners, double qualityLevel, double minDistance, Mat mask, Mat cornersQuality, int blockSize, int gradientSize)Same as above, but returns also quality measure of the detected corners.static voidImgproc. goodFeaturesToTrackWithQuality(Mat image, Mat corners, int maxCorners, double qualityLevel, double minDistance, Mat mask, Mat cornersQuality, int blockSize, int gradientSize, boolean useHarrisDetector)Same as above, but returns also quality measure of the detected corners.static voidImgproc. goodFeaturesToTrackWithQuality(Mat image, Mat corners, int maxCorners, double qualityLevel, double minDistance, Mat mask, Mat cornersQuality, int blockSize, int gradientSize, boolean useHarrisDetector, double k)Same as above, but returns also quality measure of the detected corners.static voidImgproc. grabCut(Mat img, Mat mask, Rect rect, Mat bgdModel, Mat fgdModel, int iterCount)Runs the GrabCut algorithm.static voidImgproc. grabCut(Mat img, Mat mask, Rect rect, Mat bgdModel, Mat fgdModel, int iterCount, int mode)Runs the GrabCut algorithm.static voidImgproc. HoughCircles(Mat image, Mat circles, int method, double dp, double minDist)Finds circles in a grayscale image using the Hough transform.static voidImgproc. HoughCircles(Mat image, Mat circles, int method, double dp, double minDist, double param1)Finds circles in a grayscale image using the Hough transform.static voidImgproc. HoughCircles(Mat image, Mat circles, int method, double dp, double minDist, double param1, double param2)Finds circles in a grayscale image using the Hough transform.static voidImgproc. HoughCircles(Mat image, Mat circles, int method, double dp, double minDist, double param1, double param2, int minRadius)Finds circles in a grayscale image using the Hough transform.static voidImgproc. 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 voidImgproc. HoughLines(Mat image, Mat lines, double rho, double theta, int threshold)Finds lines in a binary image using the standard Hough transform.static voidImgproc. HoughLines(Mat image, Mat lines, double rho, double theta, int threshold, double srn)Finds lines in a binary image using the standard Hough transform.static voidImgproc. 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 voidImgproc. HoughLines(Mat image, Mat lines, double rho, double theta, int threshold, double srn, double stn, double min_theta)Finds lines in a binary image using the standard Hough transform.static voidImgproc. HoughLines(Mat image, Mat lines, double rho, double theta, int threshold, double srn, double stn, double min_theta, double max_theta)Finds lines in a binary image using the standard Hough transform.static voidImgproc. HoughLinesP(Mat image, Mat lines, double rho, double theta, int threshold)Finds line segments in a binary image using the probabilistic Hough transform.static voidImgproc. HoughLinesP(Mat image, Mat lines, double rho, double theta, int threshold, double minLineLength)Finds line segments in a binary image using the probabilistic Hough transform.static voidImgproc. 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 voidImgproc. HoughLinesPointSet(Mat point, Mat lines, int lines_max, int threshold, double min_rho, double max_rho, double rho_step, double min_theta, double max_theta, double theta_step)Finds lines in a set of points using the standard Hough transform.static voidImgproc. HoughLinesWithAccumulator(Mat image, Mat lines, double rho, double theta, int threshold)Finds lines in a binary image using the standard Hough transform and get accumulator.static voidImgproc. HoughLinesWithAccumulator(Mat image, Mat lines, double rho, double theta, int threshold, double srn)Finds lines in a binary image using the standard Hough transform and get accumulator.static voidImgproc. HoughLinesWithAccumulator(Mat image, Mat lines, double rho, double theta, int threshold, double srn, double stn)Finds lines in a binary image using the standard Hough transform and get accumulator.static voidImgproc. HoughLinesWithAccumulator(Mat image, Mat lines, double rho, double theta, int threshold, double srn, double stn, double min_theta)Finds lines in a binary image using the standard Hough transform and get accumulator.static voidImgproc. HoughLinesWithAccumulator(Mat image, Mat lines, double rho, double theta, int threshold, double srn, double stn, double min_theta, double max_theta)Finds lines in a binary image using the standard Hough transform and get accumulator.static voidImgproc. HuMoments(Moments m, Mat hu)static voidImgproc. integral(Mat src, Mat sum)static voidImgproc. integral(Mat src, Mat sum, int sdepth)static voidImgproc. integral2(Mat src, Mat sum, Mat sqsum)static voidImgproc. integral2(Mat src, Mat sum, Mat sqsum, int sdepth)static voidImgproc. integral2(Mat src, Mat sum, Mat sqsum, int sdepth, int sqdepth)static voidImgproc. integral3(Mat src, Mat sum, Mat sqsum, Mat tilted)Calculates the integral of an image.static voidImgproc. integral3(Mat src, Mat sum, Mat sqsum, Mat tilted, int sdepth)Calculates the integral of an image.static voidImgproc. integral3(Mat src, Mat sum, Mat sqsum, Mat tilted, int sdepth, int sqdepth)Calculates the integral of an image.static floatImgproc. intersectConvexConvex(Mat p1, Mat p2, Mat p12)Finds intersection of two convex polygonsstatic floatImgproc. intersectConvexConvex(Mat p1, Mat p2, Mat p12, boolean handleNested)Finds intersection of two convex polygonsstatic voidImgproc. invertAffineTransform(Mat M, Mat iM)Inverts an affine transformation.static voidImgproc. Laplacian(Mat src, Mat dst, int ddepth)Calculates the Laplacian of an image.static voidImgproc. Laplacian(Mat src, Mat dst, int ddepth, int ksize)Calculates the Laplacian of an image.static voidImgproc. Laplacian(Mat src, Mat dst, int ddepth, int ksize, double scale)Calculates the Laplacian of an image.static voidImgproc. Laplacian(Mat src, Mat dst, int ddepth, int ksize, double scale, double delta)Calculates the Laplacian of an image.static voidImgproc. Laplacian(Mat src, Mat dst, int ddepth, int ksize, double scale, double delta, int borderType)Calculates the Laplacian of an image.static voidImgproc. line(Mat img, Point pt1, Point pt2, Scalar color)Draws a line segment connecting two points.static voidImgproc. line(Mat img, Point pt1, Point pt2, Scalar color, int thickness)Draws a line segment connecting two points.static voidImgproc. line(Mat img, Point pt1, Point pt2, Scalar color, int thickness, int lineType)Draws a line segment connecting two points.static voidImgproc. line(Mat img, Point pt1, Point pt2, Scalar color, int thickness, int lineType, int shift)Draws a line segment connecting two points.static voidImgproc. linearPolar(Mat src, Mat dst, Point center, double maxRadius, int flags)Deprecated.This function produces same result as cv::warpPolar(src, dst, src.size(), center, maxRadius, flags) Transform the source image using the following transformation (See REF: polar_remaps_reference_image "Polar remaps reference image c)"): \(\begin{array}{l} dst( \rho , \phi ) = src(x,y) \\ dst.size() \leftarrow src.size() \end{array}\) where \(\begin{array}{l} I = (dx,dy) = (x - center.x,y - center.y) \\ \rho = Kmag \cdot \texttt{magnitude} (I) ,\\ \phi = angle \cdot \texttt{angle} (I) \end{array}\) and \(\begin{array}{l} Kx = src.cols / maxRadius \\ Ky = src.rows / 2\Pi \end{array}\)static voidImgproc. logPolar(Mat src, Mat dst, Point center, double M, int flags)Deprecated.This function produces same result as cv::warpPolar(src, dst, src.size(), center, maxRadius, flags+WARP_POLAR_LOG); Transform the source image using the following transformation (See REF: polar_remaps_reference_image "Polar remaps reference image d)"): \(\begin{array}{l} dst( \rho , \phi ) = src(x,y) \\ dst.size() \leftarrow src.size() \end{array}\) where \(\begin{array}{l} I = (dx,dy) = (x - center.x,y - center.y) \\ \rho = M \cdot log_e(\texttt{magnitude} (I)) ,\\ \phi = Kangle \cdot \texttt{angle} (I) \\ \end{array}\) and \(\begin{array}{l} M = src.cols / log_e(maxRadius) \\ Kangle = src.rows / 2\Pi \\ \end{array}\) The function emulates the human "foveal" vision and can be used for fast scale and rotation-invariant template matching, for object tracking and so forth.static doubleImgproc. matchShapes(Mat contour1, Mat contour2, int method, double parameter)Compares two shapes.static voidImgproc. matchTemplate(Mat image, Mat templ, Mat result, int method)Compares a template against overlapped image regions.static voidImgproc. matchTemplate(Mat image, Mat templ, Mat result, int method, Mat mask)Compares a template against overlapped image regions.static voidImgproc. medianBlur(Mat src, Mat dst, int ksize)Blurs an image using the median filter.static doubleImgproc. minEnclosingTriangle(Mat points, Mat triangle)Finds a triangle of minimum area enclosing a 2D point set and returns its area.static MomentsImgproc. moments(Mat array)Calculates all of the moments up to the third order of a polygon or rasterized shape.static MomentsImgproc. moments(Mat array, boolean binaryImage)Calculates all of the moments up to the third order of a polygon or rasterized shape.static voidImgproc. morphologyEx(Mat src, Mat dst, int op, Mat kernel)Performs advanced morphological transformations.static voidImgproc. morphologyEx(Mat src, Mat dst, int op, Mat kernel, Point anchor)Performs advanced morphological transformations.static voidImgproc. morphologyEx(Mat src, Mat dst, int op, Mat kernel, Point anchor, int iterations)Performs advanced morphological transformations.static voidImgproc. morphologyEx(Mat src, Mat dst, int op, Mat kernel, Point anchor, int iterations, int borderType)Performs advanced morphological transformations.static voidImgproc. morphologyEx(Mat src, Mat dst, int op, Mat kernel, Point anchor, int iterations, int borderType, Scalar borderValue)Performs advanced morphological transformations.static PointImgproc. phaseCorrelate(Mat src1, Mat src2)The function is used to detect translational shifts that occur between two images.static PointImgproc. phaseCorrelate(Mat src1, Mat src2, Mat window)The function is used to detect translational shifts that occur between two images.static PointImgproc. phaseCorrelate(Mat src1, Mat src2, Mat window, double[] response)The function is used to detect translational shifts that occur between two images.static voidImgproc. polylines(Mat img, List<MatOfPoint> pts, boolean isClosed, Scalar color)Draws several polygonal curves.static voidImgproc. polylines(Mat img, List<MatOfPoint> pts, boolean isClosed, Scalar color, int thickness)Draws several polygonal curves.static voidImgproc. polylines(Mat img, List<MatOfPoint> pts, boolean isClosed, Scalar color, int thickness, int lineType)Draws several polygonal curves.static voidImgproc. polylines(Mat img, List<MatOfPoint> pts, boolean isClosed, Scalar color, int thickness, int lineType, int shift)Draws several polygonal curves.static voidImgproc. preCornerDetect(Mat src, Mat dst, int ksize)Calculates a feature map for corner detection.static voidImgproc. preCornerDetect(Mat src, Mat dst, int ksize, int borderType)Calculates a feature map for corner detection.static voidImgproc. putText(Mat img, String text, Point org, int fontFace, double fontScale, Scalar color)Draws a text string.static voidImgproc. putText(Mat img, String text, Point org, int fontFace, double fontScale, Scalar color, int thickness)Draws a text string.static voidImgproc. putText(Mat img, String text, Point org, int fontFace, double fontScale, Scalar color, int thickness, int lineType)Draws a text string.static voidImgproc. putText(Mat img, String text, Point org, int fontFace, double fontScale, Scalar color, int thickness, int lineType, boolean bottomLeftOrigin)Draws a text string.static voidImgproc. pyrDown(Mat src, Mat dst)Blurs an image and downsamples it.static voidImgproc. pyrDown(Mat src, Mat dst, Size dstsize)Blurs an image and downsamples it.static voidImgproc. pyrDown(Mat src, Mat dst, Size dstsize, int borderType)Blurs an image and downsamples it.static voidImgproc. pyrMeanShiftFiltering(Mat src, Mat dst, double sp, double sr)Performs initial step of meanshift segmentation of an image.static voidImgproc. pyrMeanShiftFiltering(Mat src, Mat dst, double sp, double sr, int maxLevel)Performs initial step of meanshift segmentation of an image.static voidImgproc. pyrMeanShiftFiltering(Mat src, Mat dst, double sp, double sr, int maxLevel, TermCriteria termcrit)Performs initial step of meanshift segmentation of an image.static voidImgproc. pyrUp(Mat src, Mat dst)Upsamples an image and then blurs it.static voidImgproc. pyrUp(Mat src, Mat dst, Size dstsize)Upsamples an image and then blurs it.static voidImgproc. pyrUp(Mat src, Mat dst, Size dstsize, int borderType)Upsamples an image and then blurs it.static voidImgproc. rectangle(Mat img, Point pt1, Point pt2, Scalar color)Draws a simple, thick, or filled up-right rectangle.static voidImgproc. rectangle(Mat img, Point pt1, Point pt2, Scalar color, int thickness)Draws a simple, thick, or filled up-right rectangle.static voidImgproc. rectangle(Mat img, Point pt1, Point pt2, Scalar color, int thickness, int lineType)Draws a simple, thick, or filled up-right rectangle.static voidImgproc. 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 voidImgproc. rectangle(Mat img, Rect rec, Scalar color)userecparameter as alternative specification of the drawn rectangle: `r.tl() and r.br()-Point(1,1)` are opposite cornersstatic voidImgproc. rectangle(Mat img, Rect rec, Scalar color, int thickness)userecparameter as alternative specification of the drawn rectangle: `r.tl() and r.br()-Point(1,1)` are opposite cornersstatic voidImgproc. rectangle(Mat img, Rect rec, Scalar color, int thickness, int lineType)userecparameter as alternative specification of the drawn rectangle: `r.tl() and r.br()-Point(1,1)` are opposite cornersstatic voidImgproc. rectangle(Mat img, Rect rec, Scalar color, int thickness, int lineType, int shift)userecparameter as alternative specification of the drawn rectangle: `r.tl() and r.br()-Point(1,1)` are opposite cornersstatic voidImgproc. remap(Mat src, Mat dst, Mat map1, Mat map2, int interpolation)Applies a generic geometrical transformation to an image.static voidImgproc. remap(Mat src, Mat dst, Mat map1, Mat map2, int interpolation, int borderMode)Applies a generic geometrical transformation to an image.static voidImgproc. remap(Mat src, Mat dst, Mat map1, Mat map2, int interpolation, int borderMode, Scalar borderValue)Applies a generic geometrical transformation to an image.static voidImgproc. resize(Mat src, Mat dst, Size dsize)Resizes an image.static voidImgproc. resize(Mat src, Mat dst, Size dsize, double fx)Resizes an image.static voidImgproc. resize(Mat src, Mat dst, Size dsize, double fx, double fy)Resizes an image.static voidImgproc. resize(Mat src, Mat dst, Size dsize, double fx, double fy, int interpolation)Resizes an image.static intImgproc. rotatedRectangleIntersection(RotatedRect rect1, RotatedRect rect2, Mat intersectingRegion)Finds out if there is any intersection between two rotated rectangles.static voidImgproc. Scharr(Mat src, Mat dst, int ddepth, int dx, int dy)Calculates the first x- or y- image derivative using Scharr operator.static voidImgproc. Scharr(Mat src, Mat dst, int ddepth, int dx, int dy, double scale)Calculates the first x- or y- image derivative using Scharr operator.static voidImgproc. 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 voidImgproc. 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 voidImgproc. sepFilter2D(Mat src, Mat dst, int ddepth, Mat kernelX, Mat kernelY)Applies a separable linear filter to an image.static voidImgproc. sepFilter2D(Mat src, Mat dst, int ddepth, Mat kernelX, Mat kernelY, Point anchor)Applies a separable linear filter to an image.static voidImgproc. sepFilter2D(Mat src, Mat dst, int ddepth, Mat kernelX, Mat kernelY, Point anchor, double delta)Applies a separable linear filter to an image.static voidImgproc. 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.voidGeneralizedHough. setTemplate(Mat templ)voidGeneralizedHough. setTemplate(Mat edges, Mat dx, Mat dy)voidGeneralizedHough. setTemplate(Mat edges, Mat dx, Mat dy, Point templCenter)voidGeneralizedHough. setTemplate(Mat templ, Point templCenter)static voidImgproc. 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 voidImgproc. Sobel(Mat src, Mat dst, int ddepth, int dx, int dy, int ksize)Calculates the first, second, third, or mixed image derivatives using an extended Sobel operator.static voidImgproc. Sobel(Mat src, Mat dst, int ddepth, int dx, int dy, int ksize, double scale)Calculates the first, second, third, or mixed image derivatives using an extended Sobel operator.static voidImgproc. 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 voidImgproc. 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 voidImgproc. spatialGradient(Mat src, Mat dx, Mat dy)Calculates the first order image derivative in both x and y using a Sobel operator Equivalent to calling:Sobel( src, dx, CV_16SC1, 1, 0, 3 ); Sobel( src, dy, CV_16SC1, 0, 1, 3 );static voidImgproc. spatialGradient(Mat src, Mat dx, Mat dy, int ksize)Calculates the first order image derivative in both x and y using a Sobel operator Equivalent to calling:Sobel( src, dx, CV_16SC1, 1, 0, 3 ); Sobel( src, dy, CV_16SC1, 0, 1, 3 );static voidImgproc. spatialGradient(Mat src, Mat dx, Mat dy, int ksize, int borderType)Calculates the first order image derivative in both x and y using a Sobel operator Equivalent to calling:Sobel( src, dx, CV_16SC1, 1, 0, 3 ); Sobel( src, dy, CV_16SC1, 0, 1, 3 );static voidImgproc. sqrBoxFilter(Mat src, Mat dst, int ddepth, Size ksize)Calculates the normalized sum of squares of the pixel values overlapping the filter.static voidImgproc. sqrBoxFilter(Mat src, Mat dst, int ddepth, Size ksize, Point anchor)Calculates the normalized sum of squares of the pixel values overlapping the filter.static voidImgproc. sqrBoxFilter(Mat src, Mat dst, int ddepth, Size ksize, Point anchor, boolean normalize)Calculates the normalized sum of squares of the pixel values overlapping the filter.static voidImgproc. sqrBoxFilter(Mat src, Mat dst, int ddepth, Size ksize, Point anchor, boolean normalize, int borderType)Calculates the normalized sum of squares of the pixel values overlapping the filter.static doubleImgproc. threshold(Mat src, Mat dst, double thresh, double maxval, int type)Applies a fixed-level threshold to each array element.static voidImgproc. warpAffine(Mat src, Mat dst, Mat M, Size dsize)Applies an affine transformation to an image.static voidImgproc. warpAffine(Mat src, Mat dst, Mat M, Size dsize, int flags)Applies an affine transformation to an image.static voidImgproc. warpAffine(Mat src, Mat dst, Mat M, Size dsize, int flags, int borderMode)Applies an affine transformation to an image.static voidImgproc. warpAffine(Mat src, Mat dst, Mat M, Size dsize, int flags, int borderMode, Scalar borderValue)Applies an affine transformation to an image.static voidImgproc. warpPerspective(Mat src, Mat dst, Mat M, Size dsize)Applies a perspective transformation to an image.static voidImgproc. warpPerspective(Mat src, Mat dst, Mat M, Size dsize, int flags)Applies a perspective transformation to an image.static voidImgproc. warpPerspective(Mat src, Mat dst, Mat M, Size dsize, int flags, int borderMode)Applies a perspective transformation to an image.static voidImgproc. warpPerspective(Mat src, Mat dst, Mat M, Size dsize, int flags, int borderMode, Scalar borderValue)Applies a perspective transformation to an image.static voidImgproc. warpPolar(Mat src, Mat dst, Size dsize, Point center, double maxRadius, int flags)Remaps an image to polar or semilog-polar coordinates space polar_remaps_reference_image  Transform the source image using the following transformation: \( dst(\rho , \phi ) = src(x,y) \) where \( \begin{array}{l} \vec{I} = (x - center.x, \;y - center.y) \\ \phi = Kangle \cdot \texttt{angle} (\vec{I}) \\ \rho = \left\{\begin{matrix} Klin \cdot \texttt{magnitude} (\vec{I}) & default \\ Klog \cdot log_e(\texttt{magnitude} (\vec{I})) & if \; semilog \\ \end{matrix}\right.static voidImgproc. watershed(Mat image, Mat markers)Performs a marker-based image segmentation using the watershed algorithm.Method parameters in org.opencv.imgproc with type arguments of type Mat Modifier and Type Method Description static voidImgproc. calcBackProject(List<Mat> images, MatOfInt channels, Mat hist, Mat dst, MatOfFloat ranges, double scale)static voidImgproc. calcHist(List<Mat> images, MatOfInt channels, Mat mask, Mat hist, MatOfInt histSize, MatOfFloat ranges)static voidImgproc. calcHist(List<Mat> images, MatOfInt channels, Mat mask, Mat hist, MatOfInt histSize, MatOfFloat ranges, boolean accumulate) -
Uses of Mat in org.opencv.ml
Methods in org.opencv.ml that return Mat Modifier and Type Method Description MatLogisticRegression. get_learnt_thetas()This function returns the trained parameters arranged across rows.MatTrainData. getCatMap()MatTrainData. getCatOfs()MatTrainData. getClassLabels()Returns the vector of class labels The function returns vector of unique labels occurred in the responses.MatSVM. getClassWeights()SEE: setClassWeightsMatTrainData. getDefaultSubstValues()MatANN_MLP. getLayerSizes()Integer vector specifying the number of neurons in each layer including the input and output layers.MatEM. getMeans()Returns the cluster centers (means of the Gaussian mixture) Returns matrix with the number of rows equal to the number of mixtures and number of columns equal to the space dimensionality.MatTrainData. getMissing()MatTrainData. getNormCatResponses()MatDTrees. getPriors()SEE: setPriorsMatTrainData. getResponses()MatTrainData. getSamples()MatTrainData. getSampleWeights()static MatTrainData. getSubMatrix(Mat matrix, Mat idx, int layout)Extract from matrix rows/cols specified by passed indexes.static MatTrainData. getSubVector(Mat vec, Mat idx)Extract from 1D vector elements specified by passed indexes.MatSVM. getSupportVectors()Retrieves all the support vectors The method returns all the support vectors as a floating-point matrix, where support vectors are stored as matrix rows.MatTrainData. getTestNormCatResponses()MatTrainData. getTestResponses()MatTrainData. getTestSampleIdx()MatTrainData. getTestSamples()Returns matrix of test samplesMatTrainData. getTestSampleWeights()MatTrainData. getTrainNormCatResponses()Returns the vector of normalized categorical responses The function returns vector of responses.MatTrainData. getTrainResponses()Returns the vector of responses The function returns ordered or the original categorical responses.MatTrainData. getTrainSampleIdx()MatTrainData. getTrainSamples()Returns matrix of train samples transposed.MatTrainData. getTrainSamples(int layout)Returns matrix of train samplesMatTrainData. getTrainSamples(int layout, boolean compressSamples)Returns matrix of train samplesMatTrainData. getTrainSamples(int layout, boolean compressSamples, boolean compressVars)Returns matrix of train samplesMatTrainData. getTrainSampleWeights()MatSVM. getUncompressedSupportVectors()Retrieves all the uncompressed support vectors of a linear %SVM The method returns all the uncompressed support vectors of a linear %SVM that the compressed support vector, used for prediction, was derived from.MatTrainData. getVarIdx()MatRTrees. getVarImportance()Returns the variable importance array.MatTrainData. getVarSymbolFlags()MatTrainData. getVarType()MatANN_MLP. getWeights(int layerIdx)MatEM. getWeights()Returns weights of the mixtures Returns vector with the number of elements equal to the number of mixtures.MatSVMSGD. getWeights()Methods in org.opencv.ml with parameters of type Mat Modifier and Type Method Description floatStatModel. calcError(TrainData data, boolean test, Mat resp)Computes error on the training or test datasetstatic TrainDataTrainData. create(Mat samples, int layout, Mat responses)Creates training data from in-memory arrays.static TrainDataTrainData. create(Mat samples, int layout, Mat responses, Mat varIdx)Creates training data from in-memory arrays.static TrainDataTrainData. create(Mat samples, int layout, Mat responses, Mat varIdx, Mat sampleIdx)Creates training data from in-memory arrays.static TrainDataTrainData. create(Mat samples, int layout, Mat responses, Mat varIdx, Mat sampleIdx, Mat sampleWeights)Creates training data from in-memory arrays.static TrainDataTrainData. create(Mat samples, int layout, Mat responses, Mat varIdx, Mat sampleIdx, Mat sampleWeights, Mat varType)Creates training data from in-memory arrays.floatKNearest. findNearest(Mat samples, int k, Mat results)Finds the neighbors and predicts responses for input vectors.floatKNearest. findNearest(Mat samples, int k, Mat results, Mat neighborResponses)Finds the neighbors and predicts responses for input vectors.floatKNearest. findNearest(Mat samples, int k, Mat results, Mat neighborResponses, Mat dist)Finds the neighbors and predicts responses for input vectors.doubleSVM. getDecisionFunction(int i, Mat alpha, Mat svidx)Retrieves the decision functionvoidTrainData. getSample(Mat varIdx, int sidx, float buf)static MatTrainData. getSubMatrix(Mat matrix, Mat idx, int layout)Extract from matrix rows/cols specified by passed indexes.static MatTrainData. getSubVector(Mat vec, Mat idx)Extract from 1D vector elements specified by passed indexes.voidTrainData. getValues(int vi, Mat sidx, float values)voidRTrees. getVotes(Mat samples, Mat results, int flags)Returns the result of each individual tree in the forest.floatEM. predict(Mat samples)Returns posterior probabilities for the provided samplesfloatEM. predict(Mat samples, Mat results)Returns posterior probabilities for the provided samplesfloatEM. predict(Mat samples, Mat results, int flags)Returns posterior probabilities for the provided samplesfloatLogisticRegression. predict(Mat samples)Predicts responses for input samples and returns a float type.floatLogisticRegression. predict(Mat samples, Mat results)Predicts responses for input samples and returns a float type.floatLogisticRegression. predict(Mat samples, Mat results, int flags)Predicts responses for input samples and returns a float type.floatStatModel. predict(Mat samples)Predicts response(s) for the provided sample(s)floatStatModel. predict(Mat samples, Mat results)Predicts response(s) for the provided sample(s)floatStatModel. predict(Mat samples, Mat results, int flags)Predicts response(s) for the provided sample(s)double[]EM. predict2(Mat sample, Mat probs)Returns a likelihood logarithm value and an index of the most probable mixture component for the given sample.floatNormalBayesClassifier. predictProb(Mat inputs, Mat outputs, Mat outputProbs)Predicts the response for sample(s).floatNormalBayesClassifier. predictProb(Mat inputs, Mat outputs, Mat outputProbs, int flags)Predicts the response for sample(s).voidSVM. setClassWeights(Mat val)getClassWeights SEE: getClassWeightsvoidANN_MLP. setLayerSizes(Mat _layer_sizes)Integer vector specifying the number of neurons in each layer including the input and output layers.voidDTrees. setPriors(Mat val)getPriors SEE: getPriorsbooleanStatModel. train(Mat samples, int layout, Mat responses)Trains the statistical modelbooleanSVM. trainAuto(Mat samples, int layout, Mat responses)Trains an %SVM with optimal parametersbooleanSVM. trainAuto(Mat samples, int layout, Mat responses, int kFold)Trains an %SVM with optimal parametersbooleanSVM. trainAuto(Mat samples, int layout, Mat responses, int kFold, ParamGrid Cgrid)Trains an %SVM with optimal parametersbooleanSVM. trainAuto(Mat samples, int layout, Mat responses, int kFold, ParamGrid Cgrid, ParamGrid gammaGrid)Trains an %SVM with optimal parametersbooleanSVM. trainAuto(Mat samples, int layout, Mat responses, int kFold, ParamGrid Cgrid, ParamGrid gammaGrid, ParamGrid pGrid)Trains an %SVM with optimal parametersbooleanSVM. trainAuto(Mat samples, int layout, Mat responses, int kFold, ParamGrid Cgrid, ParamGrid gammaGrid, ParamGrid pGrid, ParamGrid nuGrid)Trains an %SVM with optimal parametersbooleanSVM. trainAuto(Mat samples, int layout, Mat responses, int kFold, ParamGrid Cgrid, ParamGrid gammaGrid, ParamGrid pGrid, ParamGrid nuGrid, ParamGrid coeffGrid)Trains an %SVM with optimal parametersbooleanSVM. trainAuto(Mat samples, int layout, Mat responses, int kFold, ParamGrid Cgrid, ParamGrid gammaGrid, ParamGrid pGrid, ParamGrid nuGrid, ParamGrid coeffGrid, ParamGrid degreeGrid)Trains an %SVM with optimal parametersbooleanSVM. trainAuto(Mat samples, int layout, Mat responses, int kFold, ParamGrid Cgrid, ParamGrid gammaGrid, ParamGrid pGrid, ParamGrid nuGrid, ParamGrid coeffGrid, ParamGrid degreeGrid, boolean balanced)Trains an %SVM with optimal parametersbooleanEM. trainE(Mat samples, Mat means0)Estimate the Gaussian mixture parameters from a samples set.booleanEM. trainE(Mat samples, Mat means0, Mat covs0)Estimate the Gaussian mixture parameters from a samples set.booleanEM. trainE(Mat samples, Mat means0, Mat covs0, Mat weights0)Estimate the Gaussian mixture parameters from a samples set.booleanEM. trainE(Mat samples, Mat means0, Mat covs0, Mat weights0, Mat logLikelihoods)Estimate the Gaussian mixture parameters from a samples set.booleanEM. trainE(Mat samples, Mat means0, Mat covs0, Mat weights0, Mat logLikelihoods, Mat labels)Estimate the Gaussian mixture parameters from a samples set.booleanEM. trainE(Mat samples, Mat means0, Mat covs0, Mat weights0, Mat logLikelihoods, Mat labels, Mat probs)Estimate the Gaussian mixture parameters from a samples set.booleanEM. trainEM(Mat samples)Estimate the Gaussian mixture parameters from a samples set.booleanEM. trainEM(Mat samples, Mat logLikelihoods)Estimate the Gaussian mixture parameters from a samples set.booleanEM. trainEM(Mat samples, Mat logLikelihoods, Mat labels)Estimate the Gaussian mixture parameters from a samples set.booleanEM. trainEM(Mat samples, Mat logLikelihoods, Mat labels, Mat probs)Estimate the Gaussian mixture parameters from a samples set.booleanEM. trainM(Mat samples, Mat probs0)Estimate the Gaussian mixture parameters from a samples set.booleanEM. trainM(Mat samples, Mat probs0, Mat logLikelihoods)Estimate the Gaussian mixture parameters from a samples set.booleanEM. trainM(Mat samples, Mat probs0, Mat logLikelihoods, Mat labels)Estimate the Gaussian mixture parameters from a samples set.booleanEM. trainM(Mat samples, Mat probs0, Mat logLikelihoods, Mat labels, Mat probs)Estimate the Gaussian mixture parameters from a samples set.Method parameters in org.opencv.ml with type arguments of type Mat Modifier and Type Method Description voidEM. getCovs(List<Mat> covs)Returns covariation matrices Returns vector of covariation matrices. -
Uses of Mat in org.opencv.objdetect
Methods in org.opencv.objdetect with parameters of type Mat Modifier and Type Method Description voidHOGDescriptor. compute(Mat img, MatOfFloat descriptors)Computes HOG descriptors of given image.voidHOGDescriptor. compute(Mat img, MatOfFloat descriptors, Size winStride)Computes HOG descriptors of given image.voidHOGDescriptor. compute(Mat img, MatOfFloat descriptors, Size winStride, Size padding)Computes HOG descriptors of given image.voidHOGDescriptor. compute(Mat img, MatOfFloat descriptors, Size winStride, Size padding, MatOfPoint locations)Computes HOG descriptors of given image.voidHOGDescriptor. computeGradient(Mat img, Mat grad, Mat angleOfs)Computes gradients and quantized gradient orientations.voidHOGDescriptor. computeGradient(Mat img, Mat grad, Mat angleOfs, Size paddingTL)Computes gradients and quantized gradient orientations.voidHOGDescriptor. computeGradient(Mat img, Mat grad, Mat angleOfs, Size paddingTL, Size paddingBR)Computes gradients and quantized gradient orientations.StringQRCodeDetector. decode(Mat img, Mat points)Decodes QR code in image once it's found by the detect() method.StringQRCodeDetector. decode(Mat img, Mat points, Mat straight_qrcode)Decodes QR code in image once it's found by the detect() method.StringQRCodeDetector. decodeCurved(Mat img, Mat points)Decodes QR code on a curved surface in image once it's found by the detect() method.StringQRCodeDetector. decodeCurved(Mat img, Mat points, Mat straight_qrcode)Decodes QR code on a curved surface in image once it's found by the detect() method.booleanQRCodeDetector. decodeMulti(Mat img, Mat points, List<String> decoded_info)Decodes QR codes in image once it's found by the detect() method.booleanQRCodeDetector. decodeMulti(Mat img, Mat points, List<String> decoded_info, List<Mat> straight_qrcode)Decodes QR codes in image once it's found by the detect() method.voidHOGDescriptor. detect(Mat img, MatOfPoint foundLocations, MatOfDouble weights)Performs object detection without a multi-scale window.voidHOGDescriptor. detect(Mat img, MatOfPoint foundLocations, MatOfDouble weights, double hitThreshold)Performs object detection without a multi-scale window.voidHOGDescriptor. detect(Mat img, MatOfPoint foundLocations, MatOfDouble weights, double hitThreshold, Size winStride)Performs object detection without a multi-scale window.voidHOGDescriptor. detect(Mat img, MatOfPoint foundLocations, MatOfDouble weights, double hitThreshold, Size winStride, Size padding)Performs object detection without a multi-scale window.voidHOGDescriptor. detect(Mat img, MatOfPoint foundLocations, MatOfDouble weights, double hitThreshold, Size winStride, Size padding, MatOfPoint searchLocations)Performs object detection without a multi-scale window.booleanQRCodeDetector. detect(Mat img, Mat points)Detects QR code in image and returns the quadrangle containing the code.StringQRCodeDetector. detectAndDecode(Mat img)Both detects and decodes QR codeStringQRCodeDetector. detectAndDecode(Mat img, Mat points)Both detects and decodes QR codeStringQRCodeDetector. detectAndDecode(Mat img, Mat points, Mat straight_qrcode)Both detects and decodes QR codeStringQRCodeDetector. detectAndDecodeCurved(Mat img)Both detects and decodes QR code on a curved surfaceStringQRCodeDetector. detectAndDecodeCurved(Mat img, Mat points)Both detects and decodes QR code on a curved surfaceStringQRCodeDetector. detectAndDecodeCurved(Mat img, Mat points, Mat straight_qrcode)Both detects and decodes QR code on a curved surfacebooleanQRCodeDetector. detectAndDecodeMulti(Mat img, List<String> decoded_info)Both detects and decodes QR codesbooleanQRCodeDetector. detectAndDecodeMulti(Mat img, List<String> decoded_info, Mat points)Both detects and decodes QR codesbooleanQRCodeDetector. detectAndDecodeMulti(Mat img, List<String> decoded_info, Mat points, List<Mat> straight_qrcode)Both detects and decodes QR codesbooleanQRCodeDetector. detectMulti(Mat img, Mat points)Detects QR codes in image and returns the vector of the quadrangles containing the codes.voidCascadeClassifier. detectMultiScale(Mat image, MatOfRect objects)Detects objects of different sizes in the input image.voidCascadeClassifier. detectMultiScale(Mat image, MatOfRect objects, double scaleFactor)Detects objects of different sizes in the input image.voidCascadeClassifier. detectMultiScale(Mat image, MatOfRect objects, double scaleFactor, int minNeighbors)Detects objects of different sizes in the input image.voidCascadeClassifier. detectMultiScale(Mat image, MatOfRect objects, double scaleFactor, int minNeighbors, int flags)Detects objects of different sizes in the input image.voidCascadeClassifier. detectMultiScale(Mat image, MatOfRect objects, double scaleFactor, int minNeighbors, int flags, Size minSize)Detects objects of different sizes in the input image.voidCascadeClassifier. detectMultiScale(Mat image, MatOfRect objects, double scaleFactor, int minNeighbors, int flags, Size minSize, Size maxSize)Detects objects of different sizes in the input image.voidHOGDescriptor. detectMultiScale(Mat img, MatOfRect foundLocations, MatOfDouble foundWeights)Detects objects of different sizes in the input image.voidHOGDescriptor. detectMultiScale(Mat img, MatOfRect foundLocations, MatOfDouble foundWeights, double hitThreshold)Detects objects of different sizes in the input image.voidHOGDescriptor. detectMultiScale(Mat img, MatOfRect foundLocations, MatOfDouble foundWeights, double hitThreshold, Size winStride)Detects objects of different sizes in the input image.voidHOGDescriptor. detectMultiScale(Mat img, MatOfRect foundLocations, MatOfDouble foundWeights, double hitThreshold, Size winStride, Size padding)Detects objects of different sizes in the input image.voidHOGDescriptor. detectMultiScale(Mat img, MatOfRect foundLocations, MatOfDouble foundWeights, double hitThreshold, Size winStride, Size padding, double scale)Detects objects of different sizes in the input image.voidHOGDescriptor. detectMultiScale(Mat img, MatOfRect foundLocations, MatOfDouble foundWeights, double hitThreshold, Size winStride, Size padding, double scale, double finalThreshold)Detects objects of different sizes in the input image.voidHOGDescriptor. detectMultiScale(Mat img, MatOfRect foundLocations, MatOfDouble foundWeights, double hitThreshold, Size winStride, Size padding, double scale, double finalThreshold, boolean useMeanshiftGrouping)Detects objects of different sizes in the input image.voidCascadeClassifier. detectMultiScale2(Mat image, MatOfRect objects, MatOfInt numDetections)voidCascadeClassifier. detectMultiScale2(Mat image, MatOfRect objects, MatOfInt numDetections, double scaleFactor)voidCascadeClassifier. detectMultiScale2(Mat image, MatOfRect objects, MatOfInt numDetections, double scaleFactor, int minNeighbors)voidCascadeClassifier. detectMultiScale2(Mat image, MatOfRect objects, MatOfInt numDetections, double scaleFactor, int minNeighbors, int flags)voidCascadeClassifier. detectMultiScale2(Mat image, MatOfRect objects, MatOfInt numDetections, double scaleFactor, int minNeighbors, int flags, Size minSize)voidCascadeClassifier. detectMultiScale2(Mat image, MatOfRect objects, MatOfInt numDetections, double scaleFactor, int minNeighbors, int flags, Size minSize, Size maxSize)voidCascadeClassifier. detectMultiScale3(Mat image, MatOfRect objects, MatOfInt rejectLevels, MatOfDouble levelWeights)This function allows you to retrieve the final stage decision certainty of classification.voidCascadeClassifier. detectMultiScale3(Mat image, MatOfRect objects, MatOfInt rejectLevels, MatOfDouble levelWeights, double scaleFactor)This function allows you to retrieve the final stage decision certainty of classification.voidCascadeClassifier. detectMultiScale3(Mat image, MatOfRect objects, MatOfInt rejectLevels, MatOfDouble levelWeights, double scaleFactor, int minNeighbors)This function allows you to retrieve the final stage decision certainty of classification.voidCascadeClassifier. detectMultiScale3(Mat image, MatOfRect objects, MatOfInt rejectLevels, MatOfDouble levelWeights, double scaleFactor, int minNeighbors, int flags)This function allows you to retrieve the final stage decision certainty of classification.voidCascadeClassifier. detectMultiScale3(Mat image, MatOfRect objects, MatOfInt rejectLevels, MatOfDouble levelWeights, double scaleFactor, int minNeighbors, int flags, Size minSize)This function allows you to retrieve the final stage decision certainty of classification.voidCascadeClassifier. detectMultiScale3(Mat image, MatOfRect objects, MatOfInt rejectLevels, MatOfDouble levelWeights, double scaleFactor, int minNeighbors, int flags, Size minSize, Size maxSize)This function allows you to retrieve the final stage decision certainty of classification.voidCascadeClassifier. detectMultiScale3(Mat image, MatOfRect objects, MatOfInt rejectLevels, MatOfDouble levelWeights, double scaleFactor, int minNeighbors, int flags, Size minSize, Size maxSize, boolean outputRejectLevels)This function allows you to retrieve the final stage decision certainty of classification.voidHOGDescriptor. setSVMDetector(Mat svmdetector)Sets coefficients for the linear SVM classifier. -
Uses of Mat in org.opencv.phase_unwrapping
Methods in org.opencv.phase_unwrapping with parameters of type Mat Modifier and Type Method Description voidHistogramPhaseUnwrapping. getInverseReliabilityMap(Mat reliabilityMap)Get the reliability map computed from the wrapped phase map.voidPhaseUnwrapping. unwrapPhaseMap(Mat wrappedPhaseMap, Mat unwrappedPhaseMap)Unwraps a 2D phase map.voidPhaseUnwrapping. unwrapPhaseMap(Mat wrappedPhaseMap, Mat unwrappedPhaseMap, Mat shadowMask)Unwraps a 2D phase map. -
Uses of Mat in org.opencv.photo
Methods in org.opencv.photo that return Mat Modifier and Type Method Description MatCalibrateRobertson. getRadiance()Methods in org.opencv.photo with parameters of type Mat Modifier and Type Method Description PointAlignMTB. calculateShift(Mat img0, Mat img1)Calculates shift between two images, i.static voidPhoto. colorChange(Mat src, Mat mask, Mat dst)Given an original color image, two differently colored versions of this image can be mixed seamlessly.static voidPhoto. colorChange(Mat src, Mat mask, Mat dst, float red_mul)Given an original color image, two differently colored versions of this image can be mixed seamlessly.static voidPhoto. colorChange(Mat src, Mat mask, Mat dst, float red_mul, float green_mul)Given an original color image, two differently colored versions of this image can be mixed seamlessly.static voidPhoto. colorChange(Mat src, Mat mask, Mat dst, float red_mul, float green_mul, float blue_mul)Given an original color image, two differently colored versions of this image can be mixed seamlessly.voidAlignMTB. computeBitmaps(Mat img, Mat tb, Mat eb)Computes median threshold and exclude bitmaps of given image.static voidPhoto. decolor(Mat src, Mat grayscale, Mat color_boost)Transforms a color image to a grayscale image.static voidPhoto. denoise_TVL1(List<Mat> observations, Mat result)Primal-dual algorithm is an algorithm for solving special types of variational problems (that is, finding a function to minimize some functional).static voidPhoto. denoise_TVL1(List<Mat> observations, Mat result, double lambda)Primal-dual algorithm is an algorithm for solving special types of variational problems (that is, finding a function to minimize some functional).static voidPhoto. denoise_TVL1(List<Mat> observations, Mat result, double lambda, int niters)Primal-dual algorithm is an algorithm for solving special types of variational problems (that is, finding a function to minimize some functional).static voidPhoto. detailEnhance(Mat src, Mat dst)This filter enhances the details of a particular image.static voidPhoto. detailEnhance(Mat src, Mat dst, float sigma_s)This filter enhances the details of a particular image.static voidPhoto. detailEnhance(Mat src, Mat dst, float sigma_s, float sigma_r)This filter enhances the details of a particular image.static voidPhoto. edgePreservingFilter(Mat src, Mat dst)Filtering is the fundamental operation in image and video processing.static voidPhoto. edgePreservingFilter(Mat src, Mat dst, int flags)Filtering is the fundamental operation in image and video processing.static voidPhoto. edgePreservingFilter(Mat src, Mat dst, int flags, float sigma_s)Filtering is the fundamental operation in image and video processing.static voidPhoto. edgePreservingFilter(Mat src, Mat dst, int flags, float sigma_s, float sigma_r)Filtering is the fundamental operation in image and video processing.static voidPhoto. 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 voidPhoto. fastNlMeansDenoising(Mat src, Mat dst, float h)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 voidPhoto. fastNlMeansDenoising(Mat src, Mat dst, float h, int templateWindowSize)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 voidPhoto. 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 voidPhoto. fastNlMeansDenoising(Mat src, Mat dst, MatOfFloat h)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 voidPhoto. fastNlMeansDenoising(Mat src, Mat dst, MatOfFloat h, int templateWindowSize)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 voidPhoto. fastNlMeansDenoising(Mat src, Mat dst, MatOfFloat 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 voidPhoto. fastNlMeansDenoising(Mat src, Mat dst, MatOfFloat h, int templateWindowSize, int searchWindowSize, int normType)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 voidPhoto. fastNlMeansDenoisingColored(Mat src, Mat dst)Modification of fastNlMeansDenoising function for colored imagesstatic voidPhoto. fastNlMeansDenoisingColored(Mat src, Mat dst, float h)Modification of fastNlMeansDenoising function for colored imagesstatic voidPhoto. fastNlMeansDenoisingColored(Mat src, Mat dst, float h, float hColor)Modification of fastNlMeansDenoising function for colored imagesstatic voidPhoto. fastNlMeansDenoisingColored(Mat src, Mat dst, float h, float hColor, int templateWindowSize)Modification of fastNlMeansDenoising function for colored imagesstatic voidPhoto. fastNlMeansDenoisingColored(Mat src, Mat dst, float h, float hColor, int templateWindowSize, int searchWindowSize)Modification of fastNlMeansDenoising function for colored imagesstatic voidPhoto. fastNlMeansDenoisingColoredMulti(List<Mat> srcImgs, Mat dst, int imgToDenoiseIndex, int temporalWindowSize)Modification of fastNlMeansDenoisingMulti function for colored images sequencesstatic voidPhoto. fastNlMeansDenoisingColoredMulti(List<Mat> srcImgs, Mat dst, int imgToDenoiseIndex, int temporalWindowSize, float h)Modification of fastNlMeansDenoisingMulti function for colored images sequencesstatic voidPhoto. fastNlMeansDenoisingColoredMulti(List<Mat> srcImgs, Mat dst, int imgToDenoiseIndex, int temporalWindowSize, float h, float hColor)Modification of fastNlMeansDenoisingMulti function for colored images sequencesstatic voidPhoto. fastNlMeansDenoisingColoredMulti(List<Mat> srcImgs, Mat dst, int imgToDenoiseIndex, int temporalWindowSize, float h, float hColor, int templateWindowSize)Modification of fastNlMeansDenoisingMulti function for colored images sequencesstatic voidPhoto. 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 sequencesstatic voidPhoto. fastNlMeansDenoisingMulti(List<Mat> srcImgs, Mat dst, int imgToDenoiseIndex, int temporalWindowSize)Modification of fastNlMeansDenoising function for images sequence where consecutive images have been captured in small period of time.static voidPhoto. fastNlMeansDenoisingMulti(List<Mat> srcImgs, Mat dst, int imgToDenoiseIndex, int temporalWindowSize, float h)Modification of fastNlMeansDenoising function for images sequence where consecutive images have been captured in small period of time.static voidPhoto. fastNlMeansDenoisingMulti(List<Mat> srcImgs, Mat dst, int imgToDenoiseIndex, int temporalWindowSize, float h, int templateWindowSize)Modification of fastNlMeansDenoising function for images sequence where consecutive images have been captured in small period of time.static voidPhoto. fastNlMeansDenoisingMulti(List<Mat> srcImgs, Mat dst, int imgToDenoiseIndex, int temporalWindowSize, float h, int templateWindowSize, int searchWindowSize)Modification of fastNlMeansDenoising function for images sequence where consecutive images have been captured in small period of time.static voidPhoto. fastNlMeansDenoisingMulti(List<Mat> srcImgs, Mat dst, int imgToDenoiseIndex, int temporalWindowSize, MatOfFloat h)Modification of fastNlMeansDenoising function for images sequence where consecutive images have been captured in small period of time.static voidPhoto. fastNlMeansDenoisingMulti(List<Mat> srcImgs, Mat dst, int imgToDenoiseIndex, int temporalWindowSize, MatOfFloat h, int templateWindowSize)Modification of fastNlMeansDenoising function for images sequence where consecutive images have been captured in small period of time.static voidPhoto. fastNlMeansDenoisingMulti(List<Mat> srcImgs, Mat dst, int imgToDenoiseIndex, int temporalWindowSize, MatOfFloat h, int templateWindowSize, int searchWindowSize)Modification of fastNlMeansDenoising function for images sequence where consecutive images have been captured in small period of time.static voidPhoto. fastNlMeansDenoisingMulti(List<Mat> srcImgs, Mat dst, int imgToDenoiseIndex, int temporalWindowSize, MatOfFloat h, int templateWindowSize, int searchWindowSize, int normType)Modification of fastNlMeansDenoising function for images sequence where consecutive images have been captured in small period of time.static voidPhoto. illuminationChange(Mat src, Mat mask, Mat dst)Applying an appropriate non-linear transformation to the gradient field inside the selection and then integrating back with a Poisson solver, modifies locally the apparent illumination of an image.static voidPhoto. illuminationChange(Mat src, Mat mask, Mat dst, float alpha)Applying an appropriate non-linear transformation to the gradient field inside the selection and then integrating back with a Poisson solver, modifies locally the apparent illumination of an image.static voidPhoto. illuminationChange(Mat src, Mat mask, Mat dst, float alpha, float beta)Applying an appropriate non-linear transformation to the gradient field inside the selection and then integrating back with a Poisson solver, modifies locally the apparent illumination of an image.static voidPhoto. inpaint(Mat src, Mat inpaintMask, Mat dst, double inpaintRadius, int flags)Restores the selected region in an image using the region neighborhood.static voidPhoto. pencilSketch(Mat src, Mat dst1, Mat dst2)Pencil-like non-photorealistic line drawingstatic voidPhoto. pencilSketch(Mat src, Mat dst1, Mat dst2, float sigma_s)Pencil-like non-photorealistic line drawingstatic voidPhoto. pencilSketch(Mat src, Mat dst1, Mat dst2, float sigma_s, float sigma_r)Pencil-like non-photorealistic line drawingstatic voidPhoto. pencilSketch(Mat src, Mat dst1, Mat dst2, float sigma_s, float sigma_r, float shade_factor)Pencil-like non-photorealistic line drawingvoidAlignExposures. process(List<Mat> src, List<Mat> dst, Mat times, Mat response)Aligns imagesvoidAlignMTB. process(List<Mat> src, List<Mat> dst, Mat times, Mat response)voidCalibrateCRF. process(List<Mat> src, Mat dst, Mat times)Recovers inverse camera response.voidMergeDebevec. process(List<Mat> src, Mat dst, Mat times)voidMergeDebevec. process(List<Mat> src, Mat dst, Mat times, Mat response)voidMergeExposures. process(List<Mat> src, Mat dst, Mat times, Mat response)Merges images.voidMergeMertens. process(List<Mat> src, Mat dst)Short version of process, that doesn't take extra arguments.voidMergeMertens. process(List<Mat> src, Mat dst, Mat times, Mat response)voidMergeRobertson. process(List<Mat> src, Mat dst, Mat times)voidMergeRobertson. process(List<Mat> src, Mat dst, Mat times, Mat response)voidTonemap. process(Mat src, Mat dst)Tonemaps imagestatic voidPhoto. seamlessClone(Mat src, Mat dst, Mat mask, Point p, Mat blend, int flags)Image editing tasks concern either global changes (color/intensity corrections, filters, deformations) or local changes concerned to a selection.voidAlignMTB. shiftMat(Mat src, Mat dst, Point shift)Helper function, that shift Mat filling new regions with zeros.static voidPhoto. stylization(Mat src, Mat dst)Stylization aims to produce digital imagery with a wide variety of effects not focused on photorealism.static voidPhoto. stylization(Mat src, Mat dst, float sigma_s)Stylization aims to produce digital imagery with a wide variety of effects not focused on photorealism.static voidPhoto. stylization(Mat src, Mat dst, float sigma_s, float sigma_r)Stylization aims to produce digital imagery with a wide variety of effects not focused on photorealism.static voidPhoto. textureFlattening(Mat src, Mat mask, Mat dst)By retaining only the gradients at edge locations, before integrating with the Poisson solver, one washes out the texture of the selected region, giving its contents a flat aspect.static voidPhoto. textureFlattening(Mat src, Mat mask, Mat dst, float low_threshold)By retaining only the gradients at edge locations, before integrating with the Poisson solver, one washes out the texture of the selected region, giving its contents a flat aspect.static voidPhoto. textureFlattening(Mat src, Mat mask, Mat dst, float low_threshold, float high_threshold)By retaining only the gradients at edge locations, before integrating with the Poisson solver, one washes out the texture of the selected region, giving its contents a flat aspect.static voidPhoto. textureFlattening(Mat src, Mat mask, Mat dst, float low_threshold, float high_threshold, int kernel_size)By retaining only the gradients at edge locations, before integrating with the Poisson solver, one washes out the texture of the selected region, giving its contents a flat aspect.Method parameters in org.opencv.photo with type arguments of type Mat Modifier and Type Method Description static voidPhoto. denoise_TVL1(List<Mat> observations, Mat result)Primal-dual algorithm is an algorithm for solving special types of variational problems (that is, finding a function to minimize some functional).static voidPhoto. denoise_TVL1(List<Mat> observations, Mat result, double lambda)Primal-dual algorithm is an algorithm for solving special types of variational problems (that is, finding a function to minimize some functional).static voidPhoto. denoise_TVL1(List<Mat> observations, Mat result, double lambda, int niters)Primal-dual algorithm is an algorithm for solving special types of variational problems (that is, finding a function to minimize some functional).static voidPhoto. fastNlMeansDenoisingColoredMulti(List<Mat> srcImgs, Mat dst, int imgToDenoiseIndex, int temporalWindowSize)Modification of fastNlMeansDenoisingMulti function for colored images sequencesstatic voidPhoto. fastNlMeansDenoisingColoredMulti(List<Mat> srcImgs, Mat dst, int imgToDenoiseIndex, int temporalWindowSize, float h)Modification of fastNlMeansDenoisingMulti function for colored images sequencesstatic voidPhoto. fastNlMeansDenoisingColoredMulti(List<Mat> srcImgs, Mat dst, int imgToDenoiseIndex, int temporalWindowSize, float h, float hColor)Modification of fastNlMeansDenoisingMulti function for colored images sequencesstatic voidPhoto. fastNlMeansDenoisingColoredMulti(List<Mat> srcImgs, Mat dst, int imgToDenoiseIndex, int temporalWindowSize, float h, float hColor, int templateWindowSize)Modification of fastNlMeansDenoisingMulti function for colored images sequencesstatic voidPhoto. 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 sequencesstatic voidPhoto. fastNlMeansDenoisingMulti(List<Mat> srcImgs, Mat dst, int imgToDenoiseIndex, int temporalWindowSize)Modification of fastNlMeansDenoising function for images sequence where consecutive images have been captured in small period of time.static voidPhoto. fastNlMeansDenoisingMulti(List<Mat> srcImgs, Mat dst, int imgToDenoiseIndex, int temporalWindowSize, float h)Modification of fastNlMeansDenoising function for images sequence where consecutive images have been captured in small period of time.static voidPhoto. fastNlMeansDenoisingMulti(List<Mat> srcImgs, Mat dst, int imgToDenoiseIndex, int temporalWindowSize, float h, int templateWindowSize)Modification of fastNlMeansDenoising function for images sequence where consecutive images have been captured in small period of time.static voidPhoto. fastNlMeansDenoisingMulti(List<Mat> srcImgs, Mat dst, int imgToDenoiseIndex, int temporalWindowSize, float h, int templateWindowSize, int searchWindowSize)Modification of fastNlMeansDenoising function for images sequence where consecutive images have been captured in small period of time.static voidPhoto. fastNlMeansDenoisingMulti(List<Mat> srcImgs, Mat dst, int imgToDenoiseIndex, int temporalWindowSize, MatOfFloat h)Modification of fastNlMeansDenoising function for images sequence where consecutive images have been captured in small period of time.static voidPhoto. fastNlMeansDenoisingMulti(List<Mat> srcImgs, Mat dst, int imgToDenoiseIndex, int temporalWindowSize, MatOfFloat h, int templateWindowSize)Modification of fastNlMeansDenoising function for images sequence where consecutive images have been captured in small period of time.static voidPhoto. fastNlMeansDenoisingMulti(List<Mat> srcImgs, Mat dst, int imgToDenoiseIndex, int temporalWindowSize, MatOfFloat h, int templateWindowSize, int searchWindowSize)Modification of fastNlMeansDenoising function for images sequence where consecutive images have been captured in small period of time.static voidPhoto. fastNlMeansDenoisingMulti(List<Mat> srcImgs, Mat dst, int imgToDenoiseIndex, int temporalWindowSize, MatOfFloat h, int templateWindowSize, int searchWindowSize, int normType)Modification of fastNlMeansDenoising function for images sequence where consecutive images have been captured in small period of time.voidAlignExposures. process(List<Mat> src, List<Mat> dst, Mat times, Mat response)Aligns imagesvoidAlignMTB. process(List<Mat> src, List<Mat> dst)Short version of process, that doesn't take extra arguments.voidAlignMTB. process(List<Mat> src, List<Mat> dst, Mat times, Mat response)voidCalibrateCRF. process(List<Mat> src, Mat dst, Mat times)Recovers inverse camera response.voidMergeDebevec. process(List<Mat> src, Mat dst, Mat times)voidMergeDebevec. process(List<Mat> src, Mat dst, Mat times, Mat response)voidMergeExposures. process(List<Mat> src, Mat dst, Mat times, Mat response)Merges images.voidMergeMertens. process(List<Mat> src, Mat dst)Short version of process, that doesn't take extra arguments.voidMergeMertens. process(List<Mat> src, Mat dst, Mat times, Mat response)voidMergeRobertson. process(List<Mat> src, Mat dst, Mat times)voidMergeRobertson. process(List<Mat> src, Mat dst, Mat times, Mat response) -
Uses of Mat in org.opencv.plot
Methods in org.opencv.plot with parameters of type Mat Modifier and Type Method Description static Plot2dPlot2d. create(Mat data)Creates Plot2d objectstatic Plot2dPlot2d. create(Mat dataX, Mat dataY)Creates Plot2d objectvoidPlot2d. render(Mat _plotResult) -
Uses of Mat in org.opencv.structured_light
Methods in org.opencv.structured_light with parameters of type Mat Modifier and Type Method Description voidSinusoidalPattern. computeDataModulationTerm(List<Mat> patternImages, Mat dataModulationTerm, Mat shadowMask)compute the data modulation term.voidSinusoidalPattern. computePhaseMap(List<Mat> patternImages, Mat wrappedPhaseMap)Compute a wrapped phase map from sinusoidal patterns.voidSinusoidalPattern. computePhaseMap(List<Mat> patternImages, Mat wrappedPhaseMap, Mat shadowMask)Compute a wrapped phase map from sinusoidal patterns.voidSinusoidalPattern. computePhaseMap(List<Mat> patternImages, Mat wrappedPhaseMap, Mat shadowMask, Mat fundamental)Compute a wrapped phase map from sinusoidal patterns.voidSinusoidalPattern. findProCamMatches(Mat projUnwrappedPhaseMap, Mat camUnwrappedPhaseMap, List<Mat> matches)Find correspondences between the two devices thanks to unwrapped phase maps.voidGrayCodePattern. getImagesForShadowMasks(Mat blackImage, Mat whiteImage)Generates the all-black and all-white images needed for shadowMasks computation.voidSinusoidalPattern. unwrapPhaseMap(Mat wrappedPhaseMap, Mat unwrappedPhaseMap, Size camSize)Unwrap the wrapped phase map to remove phase ambiguities.voidSinusoidalPattern. unwrapPhaseMap(Mat wrappedPhaseMap, Mat unwrappedPhaseMap, Size camSize, Mat shadowMask)Unwrap the wrapped phase map to remove phase ambiguities.Method parameters in org.opencv.structured_light with type arguments of type Mat Modifier and Type Method Description voidSinusoidalPattern. computeDataModulationTerm(List<Mat> patternImages, Mat dataModulationTerm, Mat shadowMask)compute the data modulation term.voidSinusoidalPattern. computePhaseMap(List<Mat> patternImages, Mat wrappedPhaseMap)Compute a wrapped phase map from sinusoidal patterns.voidSinusoidalPattern. computePhaseMap(List<Mat> patternImages, Mat wrappedPhaseMap, Mat shadowMask)Compute a wrapped phase map from sinusoidal patterns.voidSinusoidalPattern. computePhaseMap(List<Mat> patternImages, Mat wrappedPhaseMap, Mat shadowMask, Mat fundamental)Compute a wrapped phase map from sinusoidal patterns.voidSinusoidalPattern. findProCamMatches(Mat projUnwrappedPhaseMap, Mat camUnwrappedPhaseMap, List<Mat> matches)Find correspondences between the two devices thanks to unwrapped phase maps.booleanStructuredLightPattern. generate(List<Mat> patternImages)Generates the structured light pattern to project.booleanGrayCodePattern. getProjPixel(List<Mat> patternImages, int x, int y, Point projPix)For a (x,y) pixel of a camera returns the corresponding projector pixel. -
Uses of Mat in org.opencv.text
Methods in org.opencv.text that return Mat Modifier and Type Method Description static MatText. createOCRHMMTransitionsTable(String vocabulary, List<String> lexicon)Utility function to create a tailored language model transitions table from a given list of words (lexicon).Methods in org.opencv.text with parameters of type Mat Modifier and Type Method Description static voidText. computeNMChannels(Mat _src, List<Mat> _channels)Compute the different channels to be processed independently in the N&M algorithm CITE: Neumann12.static voidText. computeNMChannels(Mat _src, List<Mat> _channels, int _mode)Compute the different channels to be processed independently in the N&M algorithm CITE: Neumann12.static OCRBeamSearchDecoderOCRBeamSearchDecoder. create(OCRBeamSearchDecoder_ClassifierCallback classifier, String vocabulary, Mat transition_probabilities_table, Mat emission_probabilities_table)Creates an instance of the OCRBeamSearchDecoder class.static OCRBeamSearchDecoderOCRBeamSearchDecoder. create(OCRBeamSearchDecoder_ClassifierCallback classifier, String vocabulary, Mat transition_probabilities_table, Mat emission_probabilities_table, int mode)Creates an instance of the OCRBeamSearchDecoder class.static OCRBeamSearchDecoderOCRBeamSearchDecoder. create(OCRBeamSearchDecoder_ClassifierCallback classifier, String vocabulary, Mat transition_probabilities_table, Mat emission_probabilities_table, int mode, int beam_size)Creates an instance of the OCRBeamSearchDecoder class.static OCRHMMDecoderOCRHMMDecoder. create(String filename, String vocabulary, Mat transition_probabilities_table, Mat emission_probabilities_table)Creates an instance of the OCRHMMDecoder class.static OCRHMMDecoderOCRHMMDecoder. create(String filename, String vocabulary, Mat transition_probabilities_table, Mat emission_probabilities_table, int mode)Creates an instance of the OCRHMMDecoder class.static OCRHMMDecoderOCRHMMDecoder. create(String filename, String vocabulary, Mat transition_probabilities_table, Mat emission_probabilities_table, int mode, int classifier)Creates an instance of the OCRHMMDecoder class.static OCRHMMDecoderOCRHMMDecoder. create(OCRHMMDecoder_ClassifierCallback classifier, String vocabulary, Mat transition_probabilities_table, Mat emission_probabilities_table)Creates an instance of the OCRHMMDecoder class.static OCRHMMDecoderOCRHMMDecoder. create(OCRHMMDecoder_ClassifierCallback classifier, String vocabulary, Mat transition_probabilities_table, Mat emission_probabilities_table, int mode)Creates an instance of the OCRHMMDecoder class.voidTextDetector. detect(Mat inputImage, MatOfRect Bbox, MatOfFloat confidence)Method that provides a quick and simple interface to detect text inside an imagevoidTextDetectorCNN. detect(Mat inputImage, MatOfRect Bbox, MatOfFloat confidence)static voidText. detectRegions(Mat image, ERFilter er_filter1, ERFilter er_filter2, List<MatOfPoint> regions)Converts MSER contours (vector<Point>) to ERStat regions.static voidText. detectRegions(Mat image, ERFilter er_filter1, ERFilter er_filter2, MatOfRect groups_rects)Extracts text regions from image.static voidText. detectRegions(Mat image, ERFilter er_filter1, ERFilter er_filter2, MatOfRect groups_rects, int method)Extracts text regions from image.static voidText. detectRegions(Mat image, ERFilter er_filter1, ERFilter er_filter2, MatOfRect groups_rects, int method, String filename)Extracts text regions from image.static voidText. detectRegions(Mat image, ERFilter er_filter1, ERFilter er_filter2, MatOfRect groups_rects, int method, String filename, float minProbability)Extracts text regions from image.static voidText. detectTextSWT(Mat input, MatOfRect result, boolean dark_on_light)Applies the Stroke Width Transform operator followed by filtering of connected components of similar Stroke Widths to return letter candidates.static voidText. detectTextSWT(Mat input, MatOfRect result, boolean dark_on_light, Mat draw)Applies the Stroke Width Transform operator followed by filtering of connected components of similar Stroke Widths to return letter candidates.static voidText. detectTextSWT(Mat input, MatOfRect result, boolean dark_on_light, Mat draw, Mat chainBBs)Applies the Stroke Width Transform operator followed by filtering of connected components of similar Stroke Widths to return letter candidates.static voidText. erGrouping(Mat image, Mat channel, List<MatOfPoint> regions, MatOfRect groups_rects)Find groups of Extremal Regions that are organized as text blocks.static voidText. erGrouping(Mat image, Mat channel, List<MatOfPoint> regions, MatOfRect groups_rects, int method)Find groups of Extremal Regions that are organized as text blocks.static voidText. erGrouping(Mat image, Mat channel, List<MatOfPoint> regions, MatOfRect groups_rects, int method, String filename)Find groups of Extremal Regions that are organized as text blocks.static voidText. erGrouping(Mat image, Mat channel, List<MatOfPoint> regions, MatOfRect groups_rects, int method, String filename, float minProbablity)Find groups of Extremal Regions that are organized as text blocks.StringOCRBeamSearchDecoder. run(Mat image, int min_confidence)Recognize text using Beam Search.StringOCRBeamSearchDecoder. run(Mat image, int min_confidence, int component_level)Recognize text using Beam Search.StringOCRBeamSearchDecoder. run(Mat image, Mat mask, int min_confidence)StringOCRBeamSearchDecoder. run(Mat image, Mat mask, int min_confidence, int component_level)StringOCRHMMDecoder. run(Mat image, int min_confidence)Recognize text using HMM.StringOCRHMMDecoder. run(Mat image, int min_confidence, int component_level)Recognize text using HMM.StringOCRHMMDecoder. run(Mat image, Mat mask, int min_confidence)StringOCRHMMDecoder. run(Mat image, Mat mask, int min_confidence, int component_level)StringOCRTesseract. run(Mat image, int min_confidence)Recognize text using the tesseract-ocr API.StringOCRTesseract. run(Mat image, int min_confidence, int component_level)Recognize text using the tesseract-ocr API.StringOCRTesseract. run(Mat image, Mat mask, int min_confidence)StringOCRTesseract. run(Mat image, Mat mask, int min_confidence, int component_level)Method parameters in org.opencv.text with type arguments of type Mat Modifier and Type Method Description static voidText. computeNMChannels(Mat _src, List<Mat> _channels)Compute the different channels to be processed independently in the N&M algorithm CITE: Neumann12.static voidText. computeNMChannels(Mat _src, List<Mat> _channels, int _mode)Compute the different channels to be processed independently in the N&M algorithm CITE: Neumann12. -
Uses of Mat in org.opencv.tracking
Methods in org.opencv.tracking with parameters of type Mat Modifier and Type Method Description booleanlegacy_MultiTracker. add(legacy_Tracker newTracker, Mat image, Rect2d boundingBox)Add a new object to be tracked.booleanlegacy_Tracker. init(Mat image, Rect2d boundingBox)Initialize the tracker with a known bounding box that surrounded the targetvoidlegacy_TrackerCSRT. setInitialMask(Mat mask)voidTrackerCSRT. setInitialMask(Mat mask)booleanlegacy_MultiTracker. update(Mat image, MatOfRect2d boundingBox)Update the current tracking status.booleanlegacy_Tracker. update(Mat image, Rect2d boundingBox)Update the tracker, find the new most likely bounding box for the target -
Uses of Mat in org.opencv.utils
Methods in org.opencv.utils with parameters of type Mat Modifier and Type Method Description static voidConverters. Mat_to_vector_char(Mat m, List<Byte> bs)static voidConverters. Mat_to_vector_DMatch(Mat m, List<DMatch> matches)static voidConverters. Mat_to_vector_double(Mat m, List<Double> ds)static voidConverters. Mat_to_vector_float(Mat m, List<Float> fs)static voidConverters. Mat_to_vector_int(Mat m, List<Integer> is)static voidConverters. Mat_to_vector_KeyPoint(Mat m, List<KeyPoint> kps)static voidConverters. Mat_to_vector_Mat(Mat m, List<Mat> mats)static voidConverters. Mat_to_vector_Point(Mat m, List<Point> pts)static voidConverters. Mat_to_vector_Point2d(Mat m, List<Point> pts)static voidConverters. Mat_to_vector_Point2f(Mat m, List<Point> pts)static voidConverters. Mat_to_vector_Point3(Mat m, List<Point3> pts)static voidConverters. Mat_to_vector_Point3d(Mat m, List<Point3> pts)static voidConverters. Mat_to_vector_Point3f(Mat m, List<Point3> pts)static voidConverters. Mat_to_vector_Point3i(Mat m, List<Point3> pts)static voidConverters. Mat_to_vector_Rect(Mat m, List<Rect> rs)static voidConverters. Mat_to_vector_Rect2d(Mat m, List<Rect2d> rs)static voidConverters. Mat_to_vector_RotatedRect(Mat m, List<RotatedRect> rs)static voidConverters. Mat_to_vector_uchar(Mat m, List<Byte> us)static voidConverters. Mat_to_vector_vector_char(Mat m, List<List<Byte>> llb)static voidConverters. Mat_to_vector_vector_DMatch(Mat m, List<MatOfDMatch> lvdm)static voidConverters. Mat_to_vector_vector_KeyPoint(Mat m, List<MatOfKeyPoint> kps)static voidConverters. Mat_to_vector_vector_Point(Mat m, List<MatOfPoint> pts)static voidConverters. Mat_to_vector_vector_Point2f(Mat m, List<MatOfPoint2f> pts)static voidConverters. Mat_to_vector_vector_Point3f(Mat m, List<MatOfPoint3f> pts)Method parameters in org.opencv.utils with type arguments of type Mat Modifier and Type Method Description static voidConverters. Mat_to_vector_Mat(Mat m, List<Mat> mats)static MatConverters. vector_Mat_to_Mat(List<Mat> mats) -
Uses of Mat in org.opencv.video
Methods in org.opencv.video that return Mat Modifier and Type Method Description MatKalmanFilter. correct(Mat measurement)Updates the predicted state from the measurement.MatKalmanFilter. get_controlMatrix()MatKalmanFilter. get_errorCovPost()MatKalmanFilter. get_errorCovPre()MatKalmanFilter. get_gain()MatKalmanFilter. get_measurementMatrix()MatKalmanFilter. get_measurementNoiseCov()MatKalmanFilter. get_processNoiseCov()MatKalmanFilter. get_statePost()MatKalmanFilter. get_statePre()MatKalmanFilter. get_transitionMatrix()MatKalmanFilter. predict()Computes a predicted state.MatKalmanFilter. predict(Mat control)Computes a predicted state.static MatVideo. readOpticalFlow(String path)Read a .flo fileMethods in org.opencv.video with parameters of type Mat Modifier and Type Method Description voidBackgroundSubtractor. apply(Mat image, Mat fgmask)Computes a foreground mask.voidBackgroundSubtractor. apply(Mat image, Mat fgmask, double learningRate)Computes a foreground mask.voidBackgroundSubtractorMOG2. apply(Mat image, Mat fgmask)Computes a foreground mask.voidBackgroundSubtractorMOG2. apply(Mat image, Mat fgmask, double learningRate)Computes a foreground mask.static intVideo. buildOpticalFlowPyramid(Mat img, List<Mat> pyramid, Size winSize, int maxLevel)Constructs the image pyramid which can be passed to calcOpticalFlowPyrLK.static intVideo. buildOpticalFlowPyramid(Mat img, List<Mat> pyramid, Size winSize, int maxLevel, boolean withDerivatives)Constructs the image pyramid which can be passed to calcOpticalFlowPyrLK.static intVideo. buildOpticalFlowPyramid(Mat img, List<Mat> pyramid, Size winSize, int maxLevel, boolean withDerivatives, int pyrBorder)Constructs the image pyramid which can be passed to calcOpticalFlowPyrLK.static intVideo. buildOpticalFlowPyramid(Mat img, List<Mat> pyramid, Size winSize, int maxLevel, boolean withDerivatives, int pyrBorder, int derivBorder)Constructs the image pyramid which can be passed to calcOpticalFlowPyrLK.static intVideo. 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.voidDenseOpticalFlow. calc(Mat I0, Mat I1, Mat flow)Calculates an optical flow.voidSparseOpticalFlow. calc(Mat prevImg, Mat nextImg, Mat prevPts, Mat nextPts, Mat status)Calculates a sparse optical flow.voidSparseOpticalFlow. calc(Mat prevImg, Mat nextImg, Mat prevPts, Mat nextPts, Mat status, Mat err)Calculates a sparse optical flow.static voidVideo. 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 voidVideo. 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 voidVideo. calcOpticalFlowPyrLK(Mat prevImg, Mat nextImg, MatOfPoint2f prevPts, MatOfPoint2f nextPts, MatOfByte status, MatOfFloat err, Size winSize)Calculates an optical flow for a sparse feature set using the iterative Lucas-Kanade method with pyramids.static voidVideo. 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 voidVideo. calcOpticalFlowPyrLK(Mat prevImg, Mat nextImg, MatOfPoint2f prevPts, MatOfPoint2f nextPts, MatOfByte status, MatOfFloat err, Size winSize, int maxLevel, TermCriteria criteria)Calculates an optical flow for a sparse feature set using the iterative Lucas-Kanade method with pyramids.static voidVideo. calcOpticalFlowPyrLK(Mat prevImg, Mat nextImg, MatOfPoint2f prevPts, MatOfPoint2f nextPts, MatOfByte status, MatOfFloat err, Size winSize, int maxLevel, TermCriteria criteria, int flags)Calculates an optical flow for a sparse feature set using the iterative Lucas-Kanade method with pyramids.static voidVideo. 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.voidVariationalRefinement. calcUV(Mat I0, Mat I1, Mat flow_u, Mat flow_v)REF: calc function overload to handle separate horizontal (u) and vertical (v) flow components (to avoid extra splits/merges)static RotatedRectVideo. CamShift(Mat probImage, Rect window, TermCriteria criteria)Finds an object center, size, and orientation.static doubleVideo. computeECC(Mat templateImage, Mat inputImage)Computes the Enhanced Correlation Coefficient value between two images CITE: EP08 .static doubleVideo. computeECC(Mat templateImage, Mat inputImage, Mat inputMask)Computes the Enhanced Correlation Coefficient value between two images CITE: EP08 .MatKalmanFilter. correct(Mat measurement)Updates the predicted state from the measurement.static doubleVideo. findTransformECC(Mat templateImage, Mat inputImage, Mat warpMatrix)static doubleVideo. findTransformECC(Mat templateImage, Mat inputImage, Mat warpMatrix, int motionType)static doubleVideo. findTransformECC(Mat templateImage, Mat inputImage, Mat warpMatrix, int motionType, TermCriteria criteria)static doubleVideo. findTransformECC(Mat templateImage, Mat inputImage, Mat warpMatrix, int motionType, TermCriteria criteria, Mat inputMask)static doubleVideo. findTransformECC(Mat templateImage, Mat inputImage, Mat warpMatrix, int motionType, TermCriteria criteria, Mat inputMask, int gaussFiltSize)Finds the geometric transform (warp) between two images in terms of the ECC criterion CITE: EP08 .voidBackgroundSubtractor. getBackgroundImage(Mat backgroundImage)Computes a background image.voidTracker. init(Mat image, Rect boundingBox)Initialize the tracker with a known bounding box that surrounded the targetstatic intVideo. meanShift(Mat probImage, Rect window, TermCriteria criteria)Finds an object on a back projection image.MatKalmanFilter. predict(Mat control)Computes a predicted state.voidKalmanFilter. set_controlMatrix(Mat controlMatrix)voidKalmanFilter. set_errorCovPost(Mat errorCovPost)voidKalmanFilter. set_errorCovPre(Mat errorCovPre)voidKalmanFilter. set_gain(Mat gain)voidKalmanFilter. set_measurementMatrix(Mat measurementMatrix)voidKalmanFilter. set_measurementNoiseCov(Mat measurementNoiseCov)voidKalmanFilter. set_processNoiseCov(Mat processNoiseCov)voidKalmanFilter. set_statePost(Mat statePost)voidKalmanFilter. set_statePre(Mat statePre)voidKalmanFilter. set_transitionMatrix(Mat transitionMatrix)booleanTracker. update(Mat image, Rect boundingBox)Update the tracker, find the new most likely bounding box for the targetstatic booleanVideo. writeOpticalFlow(String path, Mat flow)Write a .flo to diskMethod parameters in org.opencv.video with type arguments of type Mat Modifier and Type Method Description static intVideo. buildOpticalFlowPyramid(Mat img, List<Mat> pyramid, Size winSize, int maxLevel)Constructs the image pyramid which can be passed to calcOpticalFlowPyrLK.static intVideo. buildOpticalFlowPyramid(Mat img, List<Mat> pyramid, Size winSize, int maxLevel, boolean withDerivatives)Constructs the image pyramid which can be passed to calcOpticalFlowPyrLK.static intVideo. buildOpticalFlowPyramid(Mat img, List<Mat> pyramid, Size winSize, int maxLevel, boolean withDerivatives, int pyrBorder)Constructs the image pyramid which can be passed to calcOpticalFlowPyrLK.static intVideo. buildOpticalFlowPyramid(Mat img, List<Mat> pyramid, Size winSize, int maxLevel, boolean withDerivatives, int pyrBorder, int derivBorder)Constructs the image pyramid which can be passed to calcOpticalFlowPyrLK.static intVideo. 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. -
Uses of Mat in org.opencv.videoio
Methods in org.opencv.videoio with parameters of type Mat Modifier and Type Method Description booleanVideoCapture. read(Mat image)Grabs, decodes and returns the next video frame.booleanVideoCapture. retrieve(Mat image)Decodes and returns the grabbed video frame.booleanVideoCapture. retrieve(Mat image, int flag)Decodes and returns the grabbed video frame.voidVideoWriter. write(Mat image)Writes the next video frame -
Uses of Mat in org.opencv.wechat_qrcode
Methods in org.opencv.wechat_qrcode with parameters of type Mat Modifier and Type Method Description List<String>WeChatQRCode. detectAndDecode(Mat img)Both detects and decodes QR code.List<String>WeChatQRCode. detectAndDecode(Mat img, List<Mat> points)Both detects and decodes QR code.Method parameters in org.opencv.wechat_qrcode with type arguments of type Mat Modifier and Type Method Description List<String>WeChatQRCode. detectAndDecode(Mat img, List<Mat> points)Both detects and decodes QR code. -
Uses of Mat in org.opencv.xfeatures2d
Methods in org.opencv.xfeatures2d with parameters of type Mat Modifier and Type Method Description floatPCTSignaturesSQFD. computeQuadraticFormDistance(Mat _signature0, Mat _signature1)Computes Signature Quadratic Form Distance of two signatures.voidPCTSignaturesSQFD. computeQuadraticFormDistances(Mat sourceSignature, List<Mat> imageSignatures, MatOfFloat distances)Computes Signature Quadratic Form Distance between the reference signature and each of the other image signatures.voidPCTSignatures. computeSignature(Mat image, Mat signature)Computes signature of given image.static DAISYDAISY. create(float radius, int q_radius, int q_theta, int q_hist, Mat H)static DAISYDAISY. create(float radius, int q_radius, int q_theta, int q_hist, Mat H, boolean interpolation)static DAISYDAISY. create(float radius, int q_radius, int q_theta, int q_hist, Mat H, boolean interpolation, boolean use_orientation)static voidPCTSignatures. drawSignature(Mat source, Mat signature, Mat result)Draws signature in the source image and outputs the result.static voidPCTSignatures. drawSignature(Mat source, Mat signature, Mat result, float radiusToShorterSideRatio)Draws signature in the source image and outputs the result.static voidPCTSignatures. drawSignature(Mat source, Mat signature, Mat result, float radiusToShorterSideRatio, int borderThickness)Draws signature in the source image and outputs the result.Method parameters in org.opencv.xfeatures2d with type arguments of type Mat Modifier and Type Method Description voidPCTSignaturesSQFD. computeQuadraticFormDistances(Mat sourceSignature, List<Mat> imageSignatures, MatOfFloat distances)Computes Signature Quadratic Form Distance between the reference signature and each of the other image signatures.voidPCTSignatures. computeSignatures(List<Mat> images, List<Mat> signatures)Computes signatures for multiple images in parallel. -
Uses of Mat in org.opencv.ximgproc
Methods in org.opencv.ximgproc that return Mat Modifier and Type Method Description MatDisparityWLSFilter. getConfidenceMap()Get the confidence map that was used in the last filter call.Methods in org.opencv.ximgproc with parameters of type Mat Modifier and Type Method Description voidSelectiveSearchSegmentation. addImage(Mat img)Add a new image in the list of images to process.static voidXimgproc. amFilter(Mat joint, Mat src, Mat dst, double sigma_s, double sigma_r)Simple one-line Adaptive Manifold Filter call.static voidXimgproc. amFilter(Mat joint, Mat src, Mat dst, double sigma_s, double sigma_r, boolean adjust_outliers)Simple one-line Adaptive Manifold Filter call.static voidXimgproc. anisotropicDiffusion(Mat src, Mat dst, float alpha, float K, int niters)Performs anisotropic diffusion on an image.static voidXimgproc. bilateralTextureFilter(Mat src, Mat dst)Applies the bilateral texture filter to an image.static voidXimgproc. bilateralTextureFilter(Mat src, Mat dst, int fr)Applies the bilateral texture filter to an image.static voidXimgproc. bilateralTextureFilter(Mat src, Mat dst, int fr, int numIter)Applies the bilateral texture filter to an image.static voidXimgproc. bilateralTextureFilter(Mat src, Mat dst, int fr, int numIter, double sigmaAlpha)Applies the bilateral texture filter to an image.static voidXimgproc. bilateralTextureFilter(Mat src, Mat dst, int fr, int numIter, double sigmaAlpha, double sigmaAvg)Applies the bilateral texture filter to an image.static voidXimgproc. colorMatchTemplate(Mat img, Mat templ, Mat result)Compares a color template against overlapped color image regions.static doubleXimgproc. computeBadPixelPercent(Mat GT, Mat src, Rect ROI)Function for computing the percent of "bad" pixels in the disparity map (pixels where error is higher than a specified threshold)static doubleXimgproc. computeBadPixelPercent(Mat GT, Mat src, Rect ROI, int thresh)Function for computing the percent of "bad" pixels in the disparity map (pixels where error is higher than a specified threshold)static doubleXimgproc. computeMSE(Mat GT, Mat src, Rect ROI)Function for computing mean square error for disparity mapsvoidStructuredEdgeDetection. computeOrientation(Mat _src, Mat _dst)The function computes orientation from edge image.static voidXimgproc. contourSampling(Mat src, Mat out, int nbElt)Contour sampling .static voidXimgproc. covarianceEstimation(Mat src, Mat dst, int windowRows, int windowCols)Computes the estimated covariance matrix of an image using the sliding window forumlation.static DTFilterXimgproc. createDTFilter(Mat guide, double sigmaSpatial, double sigmaColor)Factory method, create instance of DTFilter and produce initialization routines.static DTFilterXimgproc. createDTFilter(Mat guide, double sigmaSpatial, double sigmaColor, int mode)Factory method, create instance of DTFilter and produce initialization routines.static DTFilterXimgproc. createDTFilter(Mat guide, double sigmaSpatial, double sigmaColor, int mode, int numIters)Factory method, create instance of DTFilter and produce initialization routines.static FastBilateralSolverFilterXimgproc. createFastBilateralSolverFilter(Mat guide, double sigma_spatial, double sigma_luma, double sigma_chroma)Factory method, create instance of FastBilateralSolverFilter and execute the initialization routines.static FastBilateralSolverFilterXimgproc. createFastBilateralSolverFilter(Mat guide, double sigma_spatial, double sigma_luma, double sigma_chroma, double lambda)Factory method, create instance of FastBilateralSolverFilter and execute the initialization routines.static FastBilateralSolverFilterXimgproc. createFastBilateralSolverFilter(Mat guide, double sigma_spatial, double sigma_luma, double sigma_chroma, double lambda, int num_iter)Factory method, create instance of FastBilateralSolverFilter and execute the initialization routines.static FastBilateralSolverFilterXimgproc. createFastBilateralSolverFilter(Mat guide, double sigma_spatial, double sigma_luma, double sigma_chroma, double lambda, int num_iter, double max_tol)Factory method, create instance of FastBilateralSolverFilter and execute the initialization routines.static FastGlobalSmootherFilterXimgproc. createFastGlobalSmootherFilter(Mat guide, double lambda, double sigma_color)Factory method, create instance of FastGlobalSmootherFilter and execute the initialization routines.static FastGlobalSmootherFilterXimgproc. createFastGlobalSmootherFilter(Mat guide, double lambda, double sigma_color, double lambda_attenuation)Factory method, create instance of FastGlobalSmootherFilter and execute the initialization routines.static FastGlobalSmootherFilterXimgproc. createFastGlobalSmootherFilter(Mat guide, double lambda, double sigma_color, double lambda_attenuation, int num_iter)Factory method, create instance of FastGlobalSmootherFilter and execute the initialization routines.static GuidedFilterXimgproc. createGuidedFilter(Mat guide, int radius, double eps)Factory method, create instance of GuidedFilter and produce initialization routines.static voidXimgproc. createQuaternionImage(Mat img, Mat qimg)creates a quaternion image.static SuperpixelLSCXimgproc. createSuperpixelLSC(Mat image)Class implementing the LSC (Linear Spectral Clustering) superpixelsstatic SuperpixelLSCXimgproc. createSuperpixelLSC(Mat image, int region_size)Class implementing the LSC (Linear Spectral Clustering) superpixelsstatic SuperpixelLSCXimgproc. createSuperpixelLSC(Mat image, int region_size, float ratio)Class implementing the LSC (Linear Spectral Clustering) superpixelsstatic SuperpixelSLICXimgproc. createSuperpixelSLIC(Mat image)Initialize a SuperpixelSLIC objectstatic SuperpixelSLICXimgproc. createSuperpixelSLIC(Mat image, int algorithm)Initialize a SuperpixelSLIC objectstatic SuperpixelSLICXimgproc. createSuperpixelSLIC(Mat image, int algorithm, int region_size)Initialize a SuperpixelSLIC objectstatic SuperpixelSLICXimgproc. createSuperpixelSLIC(Mat image, int algorithm, int region_size, float ruler)Initialize a SuperpixelSLIC objectvoidFastLineDetector. detect(Mat image, Mat lines)Finds lines in the input image.voidEdgeDrawing. detectEdges(Mat src)Detects edges and prepares them to detect lines and ellipses.voidStructuredEdgeDetection. detectEdges(Mat _src, Mat _dst)The function detects edges in src and draw them to dst.voidEdgeDrawing. detectEllipses(Mat ellipses)Detects circles and ellipses.voidEdgeDrawing. detectLines(Mat lines)Detects lines.voidFastLineDetector. drawSegments(Mat image, Mat lines)Draws the line segments on a given image.voidFastLineDetector. drawSegments(Mat image, Mat lines, boolean draw_arrow)Draws the line segments on a given image.voidFastLineDetector. drawSegments(Mat image, Mat lines, boolean draw_arrow, Scalar linecolor)Draws the line segments on a given image.voidFastLineDetector. drawSegments(Mat image, Mat lines, boolean draw_arrow, Scalar linecolor, int linethickness)Draws the line segments on a given image.static voidXimgproc. dtFilter(Mat guide, Mat src, Mat dst, double sigmaSpatial, double sigmaColor)Simple one-line Domain Transform filter call.static voidXimgproc. dtFilter(Mat guide, Mat src, Mat dst, double sigmaSpatial, double sigmaColor, int mode)Simple one-line Domain Transform filter call.static voidXimgproc. dtFilter(Mat guide, Mat src, Mat dst, double sigmaSpatial, double sigmaColor, int mode, int numIters)Simple one-line Domain Transform filter call.static voidXimgproc. edgePreservingFilter(Mat src, Mat dst, int d, double threshold)Smoothes an image using the Edge-Preserving filter.voidStructuredEdgeDetection. edgesNms(Mat edge_image, Mat orientation_image, Mat _dst)The function edgenms in edge image and suppress edges where edge is stronger in orthogonal direction.voidStructuredEdgeDetection. edgesNms(Mat edge_image, Mat orientation_image, Mat _dst, int r)The function edgenms in edge image and suppress edges where edge is stronger in orthogonal direction.voidStructuredEdgeDetection. edgesNms(Mat edge_image, Mat orientation_image, Mat _dst, int r, int s)The function edgenms in edge image and suppress edges where edge is stronger in orthogonal direction.voidStructuredEdgeDetection. edgesNms(Mat edge_image, Mat orientation_image, Mat _dst, int r, int s, float m)The function edgenms in edge image and suppress edges where edge is stronger in orthogonal direction.voidStructuredEdgeDetection. edgesNms(Mat edge_image, Mat orientation_image, Mat _dst, int r, int s, float m, boolean isParallel)The function edgenms in edge image and suppress edges where edge is stronger in orthogonal direction.voidContourFitting. estimateTransformation(Mat src, Mat dst, Mat alphaPhiST, double[] dist)Fit two closed curves using fourier descriptors.voidContourFitting. estimateTransformation(Mat src, Mat dst, Mat alphaPhiST, double[] dist, boolean fdContour)Fit two closed curves using fourier descriptors.static voidXimgproc. fastBilateralSolverFilter(Mat guide, Mat src, Mat confidence, Mat dst)Simple one-line Fast Bilateral Solver filter call.static voidXimgproc. fastBilateralSolverFilter(Mat guide, Mat src, Mat confidence, Mat dst, double sigma_spatial)Simple one-line Fast Bilateral Solver filter call.static voidXimgproc. fastBilateralSolverFilter(Mat guide, Mat src, Mat confidence, Mat dst, double sigma_spatial, double sigma_luma)Simple one-line Fast Bilateral Solver filter call.static voidXimgproc. fastBilateralSolverFilter(Mat guide, Mat src, Mat confidence, Mat dst, double sigma_spatial, double sigma_luma, double sigma_chroma)Simple one-line Fast Bilateral Solver filter call.static voidXimgproc. fastBilateralSolverFilter(Mat guide, Mat src, Mat confidence, Mat dst, double sigma_spatial, double sigma_luma, double sigma_chroma, double lambda)Simple one-line Fast Bilateral Solver filter call.static voidXimgproc. fastBilateralSolverFilter(Mat guide, Mat src, Mat confidence, Mat dst, double sigma_spatial, double sigma_luma, double sigma_chroma, double lambda, int num_iter)Simple one-line Fast Bilateral Solver filter call.static voidXimgproc. fastBilateralSolverFilter(Mat guide, Mat src, Mat confidence, Mat dst, double sigma_spatial, double sigma_luma, double sigma_chroma, double lambda, int num_iter, double max_tol)Simple one-line Fast Bilateral Solver filter call.static voidXimgproc. fastGlobalSmootherFilter(Mat guide, Mat src, Mat dst, double lambda, double sigma_color)Simple one-line Fast Global Smoother filter call.static voidXimgproc. fastGlobalSmootherFilter(Mat guide, Mat src, Mat dst, double lambda, double sigma_color, double lambda_attenuation)Simple one-line Fast Global Smoother filter call.static voidXimgproc. fastGlobalSmootherFilter(Mat guide, Mat src, Mat dst, double lambda, double sigma_color, double lambda_attenuation, int num_iter)Simple one-line Fast Global Smoother filter call.static voidXimgproc. FastHoughTransform(Mat src, Mat dst, int dstMatDepth)Calculates 2D Fast Hough transform of an image.static voidXimgproc. FastHoughTransform(Mat src, Mat dst, int dstMatDepth, int angleRange)Calculates 2D Fast Hough transform of an image.static voidXimgproc. FastHoughTransform(Mat src, Mat dst, int dstMatDepth, int angleRange, int op)Calculates 2D Fast Hough transform of an image.static voidXimgproc. FastHoughTransform(Mat src, Mat dst, int dstMatDepth, int angleRange, int op, int makeSkew)Calculates 2D Fast Hough transform of an image.voidAdaptiveManifoldFilter. filter(Mat src, Mat dst)Apply high-dimensional filtering using adaptive manifolds.voidAdaptiveManifoldFilter. filter(Mat src, Mat dst, Mat joint)Apply high-dimensional filtering using adaptive manifolds.voidDisparityFilter. filter(Mat disparity_map_left, Mat left_view, Mat filtered_disparity_map)Apply filtering to the disparity map.voidDisparityFilter. filter(Mat disparity_map_left, Mat left_view, Mat filtered_disparity_map, Mat disparity_map_right)Apply filtering to the disparity map.voidDisparityFilter. filter(Mat disparity_map_left, Mat left_view, Mat filtered_disparity_map, Mat disparity_map_right, Rect ROI)Apply filtering to the disparity map.voidDisparityFilter. filter(Mat disparity_map_left, Mat left_view, Mat filtered_disparity_map, Mat disparity_map_right, Rect ROI, Mat right_view)Apply filtering to the disparity map.voidDTFilter. filter(Mat src, Mat dst)Produce domain transform filtering operation on source image.voidDTFilter. filter(Mat src, Mat dst, int dDepth)Produce domain transform filtering operation on source image.voidFastBilateralSolverFilter. filter(Mat src, Mat confidence, Mat dst)Apply smoothing operation to the source image.voidFastGlobalSmootherFilter. filter(Mat src, Mat dst)Apply smoothing operation to the source image.voidGuidedFilter. filter(Mat src, Mat dst)Apply Guided Filter to the filtering image.voidGuidedFilter. filter(Mat src, Mat dst, int dDepth)Apply Guided Filter to the filtering image.static voidXimgproc. fourierDescriptor(Mat src, Mat dst)Fourier descriptors for planed closed curves For more details about this implementation, please see CITE: PersoonFu1977static voidXimgproc. fourierDescriptor(Mat src, Mat dst, int nbElt)Fourier descriptors for planed closed curves For more details about this implementation, please see CITE: PersoonFu1977static voidXimgproc. fourierDescriptor(Mat src, Mat dst, int nbElt, int nbFD)Fourier descriptors for planed closed curves For more details about this implementation, please see CITE: PersoonFu1977voidEdgeBoxes. getBoundingBoxes(Mat edge_map, Mat orientation_map, MatOfRect boxes)Returns array containing proposal boxes.voidEdgeBoxes. getBoundingBoxes(Mat edge_map, Mat orientation_map, MatOfRect boxes, Mat scores)Returns array containing proposal boxes.static voidXimgproc. getDisparityVis(Mat src, Mat dst)Function for creating a disparity map visualization (clamped CV_8U image)static voidXimgproc. getDisparityVis(Mat src, Mat dst, double scale)Function for creating a disparity map visualization (clamped CV_8U image)voidEdgeDrawing. getEdgeImage(Mat dst)voidRFFeatureGetter. getFeatures(Mat src, Mat features, int gnrmRad, int gsmthRad, int shrink, int outNum, int gradNum)voidEdgeDrawing. getGradientImage(Mat dst)voidSuperpixelLSC. getLabelContourMask(Mat image)Returns the mask of the superpixel segmentation stored in SuperpixelLSC object.voidSuperpixelLSC. getLabelContourMask(Mat image, boolean thick_line)Returns the mask of the superpixel segmentation stored in SuperpixelLSC object.voidSuperpixelSEEDS. getLabelContourMask(Mat image)Returns the mask of the superpixel segmentation stored in SuperpixelSEEDS object.voidSuperpixelSEEDS. getLabelContourMask(Mat image, boolean thick_line)Returns the mask of the superpixel segmentation stored in SuperpixelSEEDS object.voidSuperpixelSLIC. getLabelContourMask(Mat image)Returns the mask of the superpixel segmentation stored in SuperpixelSLIC object.voidSuperpixelSLIC. getLabelContourMask(Mat image, boolean thick_line)Returns the mask of the superpixel segmentation stored in SuperpixelSLIC object.voidSuperpixelLSC. getLabels(Mat labels_out)Returns the segmentation labeling of the image.voidSuperpixelSEEDS. getLabels(Mat labels_out)Returns the segmentation labeling of the image.voidSuperpixelSLIC. getLabels(Mat labels_out)Returns the segmentation labeling of the image.voidRidgeDetectionFilter. getRidgeFilteredImage(Mat _img, Mat out)Apply Ridge detection filter on input image.static voidXimgproc. GradientDericheX(Mat op, Mat dst, double alpha, double omega)Applies X Deriche filter to an image.static voidXimgproc. GradientDericheY(Mat op, Mat dst, double alpha, double omega)Applies Y Deriche filter to an image.static voidXimgproc. guidedFilter(Mat guide, Mat src, Mat dst, int radius, double eps)Simple one-line Guided Filter call.static voidXimgproc. guidedFilter(Mat guide, Mat src, Mat dst, int radius, double eps, int dDepth)Simple one-line Guided Filter call.voidSparseMatchInterpolator. interpolate(Mat from_image, Mat from_points, Mat to_image, Mat to_points, Mat dense_flow)Interpolate input sparse matches.voidSuperpixelSEEDS. iterate(Mat img)Calculates the superpixel segmentation on a given image with the initialized parameters in the SuperpixelSEEDS object.voidSuperpixelSEEDS. iterate(Mat img, int num_iterations)Calculates the superpixel segmentation on a given image with the initialized parameters in the SuperpixelSEEDS object.static voidXimgproc. jointBilateralFilter(Mat joint, Mat src, Mat dst, int d, double sigmaColor, double sigmaSpace)Applies the joint bilateral filter to an image.static voidXimgproc. jointBilateralFilter(Mat joint, Mat src, Mat dst, int d, double sigmaColor, double sigmaSpace, int borderType)Applies the joint bilateral filter to an image.static voidXimgproc. l0Smooth(Mat src, Mat dst)Global image smoothing via L0 gradient minimization.static voidXimgproc. l0Smooth(Mat src, Mat dst, double lambda)Global image smoothing via L0 gradient minimization.static voidXimgproc. l0Smooth(Mat src, Mat dst, double lambda, double kappa)Global image smoothing via L0 gradient minimization.static voidXimgproc. niBlackThreshold(Mat _src, Mat _dst, double maxValue, int type, int blockSize, double k)Performs thresholding on input images using Niblack's technique or some of the popular variations it inspired.static voidXimgproc. niBlackThreshold(Mat _src, Mat _dst, double maxValue, int type, int blockSize, double k, int binarizationMethod)Performs thresholding on input images using Niblack's technique or some of the popular variations it inspired.static voidXimgproc. niBlackThreshold(Mat _src, Mat _dst, double maxValue, int type, int blockSize, double k, int binarizationMethod, double r)Performs thresholding on input images using Niblack's technique or some of the popular variations it inspired.static voidXimgproc. PeiLinNormalization(Mat I, Mat T)voidGraphSegmentation. processImage(Mat src, Mat dst)Segment an image and store output in dststatic voidXimgproc. qconj(Mat qimg, Mat qcimg)calculates conjugate of a quaternion image.static voidXimgproc. qdft(Mat img, Mat qimg, int flags, boolean sideLeft)Performs a forward or inverse Discrete quaternion Fourier transform of a 2D quaternion array.static voidXimgproc. qmultiply(Mat src1, Mat src2, Mat dst)Calculates the per-element quaternion product of two arraysstatic voidXimgproc. qunitary(Mat qimg, Mat qnimg)divides each element by its modulus.static intXimgproc. readGT(String src_path, Mat dst)Function for reading ground truth disparity maps.static voidXimgproc. rollingGuidanceFilter(Mat src, Mat dst)Applies the rolling guidance filter to an image.static voidXimgproc. rollingGuidanceFilter(Mat src, Mat dst, int d)Applies the rolling guidance filter to an image.static voidXimgproc. rollingGuidanceFilter(Mat src, Mat dst, int d, double sigmaColor)Applies the rolling guidance filter to an image.static voidXimgproc. rollingGuidanceFilter(Mat src, Mat dst, int d, double sigmaColor, double sigmaSpace)Applies the rolling guidance filter to an image.static voidXimgproc. rollingGuidanceFilter(Mat src, Mat dst, int d, double sigmaColor, double sigmaSpace, int numOfIter)Applies the rolling guidance filter to an image.static voidXimgproc. rollingGuidanceFilter(Mat src, Mat dst, int d, double sigmaColor, double sigmaSpace, int numOfIter, int borderType)Applies the rolling guidance filter to an image.voidSelectiveSearchSegmentation. setBaseImage(Mat img)Set a image used by switch* functions to initialize the classvoidEdgeAwareInterpolator. setCostMap(Mat _costMap)Interface to provide a more elaborated cost map, i.e.voidRICInterpolator. setCostMap(Mat costMap)Interface to provide a more elaborated cost map, i.e.voidSelectiveSearchSegmentationStrategy. setImage(Mat img, Mat regions, Mat sizes)Set a initial image, with a segmentation.voidSelectiveSearchSegmentationStrategy. setImage(Mat img, Mat regions, Mat sizes, int image_id)Set a initial image, with a segmentation.static voidXimgproc. thinning(Mat src, Mat dst)Applies a binary blob thinning operation, to achieve a skeletization of the input image.static voidXimgproc. thinning(Mat src, Mat dst, int thinningType)Applies a binary blob thinning operation, to achieve a skeletization of the input image.static voidXimgproc. transformFD(Mat src, Mat t, Mat dst)transform a contourstatic voidXimgproc. transformFD(Mat src, Mat t, Mat dst, boolean fdContour)transform a contourstatic voidXimgproc. weightedMedianFilter(Mat joint, Mat src, Mat dst, int r)Applies weighted median filter to an image.static voidXimgproc. weightedMedianFilter(Mat joint, Mat src, Mat dst, int r, double sigma)Applies weighted median filter to an image.static voidXimgproc. weightedMedianFilter(Mat joint, Mat src, Mat dst, int r, double sigma, int weightType)Applies weighted median filter to an image.static voidXimgproc. weightedMedianFilter(Mat joint, Mat src, Mat dst, int r, double sigma, int weightType, Mat mask)Applies weighted median filter to an image. -
Uses of Mat in org.opencv.xphoto
Methods in org.opencv.xphoto with parameters of type Mat Modifier and Type Method Description static voidXphoto. applyChannelGains(Mat src, Mat dst, float gainB, float gainG, float gainR)Implements an efficient fixed-point approximation for applying channel gains, which is the last step of multiple white balance algorithms.voidWhiteBalancer. balanceWhite(Mat src, Mat dst)Applies white balancing to the input imagestatic voidXphoto. bm3dDenoising(Mat src, Mat dst)Performs image denoising using the Block-Matching and 3D-filtering algorithm <http://www.cs.tut.fi/~foi/GCF-BM3D/BM3D_TIP_2007.pdf> with several computational optimizations.static voidXphoto. bm3dDenoising(Mat src, Mat dst, float h)Performs image denoising using the Block-Matching and 3D-filtering algorithm <http://www.cs.tut.fi/~foi/GCF-BM3D/BM3D_TIP_2007.pdf> with several computational optimizations.static voidXphoto. bm3dDenoising(Mat src, Mat dst, float h, int templateWindowSize)Performs image denoising using the Block-Matching and 3D-filtering algorithm <http://www.cs.tut.fi/~foi/GCF-BM3D/BM3D_TIP_2007.pdf> with several computational optimizations.static voidXphoto. bm3dDenoising(Mat src, Mat dst, float h, int templateWindowSize, int searchWindowSize)Performs image denoising using the Block-Matching and 3D-filtering algorithm <http://www.cs.tut.fi/~foi/GCF-BM3D/BM3D_TIP_2007.pdf> with several computational optimizations.static voidXphoto. bm3dDenoising(Mat src, Mat dst, float h, int templateWindowSize, int searchWindowSize, int blockMatchingStep1)Performs image denoising using the Block-Matching and 3D-filtering algorithm <http://www.cs.tut.fi/~foi/GCF-BM3D/BM3D_TIP_2007.pdf> with several computational optimizations.static voidXphoto. bm3dDenoising(Mat src, Mat dst, float h, int templateWindowSize, int searchWindowSize, int blockMatchingStep1, int blockMatchingStep2)Performs image denoising using the Block-Matching and 3D-filtering algorithm <http://www.cs.tut.fi/~foi/GCF-BM3D/BM3D_TIP_2007.pdf> with several computational optimizations.static voidXphoto. bm3dDenoising(Mat src, Mat dst, float h, int templateWindowSize, int searchWindowSize, int blockMatchingStep1, int blockMatchingStep2, int groupSize)Performs image denoising using the Block-Matching and 3D-filtering algorithm <http://www.cs.tut.fi/~foi/GCF-BM3D/BM3D_TIP_2007.pdf> with several computational optimizations.static voidXphoto. bm3dDenoising(Mat src, Mat dst, float h, int templateWindowSize, int searchWindowSize, int blockMatchingStep1, int blockMatchingStep2, int groupSize, int slidingStep)Performs image denoising using the Block-Matching and 3D-filtering algorithm <http://www.cs.tut.fi/~foi/GCF-BM3D/BM3D_TIP_2007.pdf> with several computational optimizations.static voidXphoto. bm3dDenoising(Mat src, Mat dst, float h, int templateWindowSize, int searchWindowSize, int blockMatchingStep1, int blockMatchingStep2, int groupSize, int slidingStep, float beta)Performs image denoising using the Block-Matching and 3D-filtering algorithm <http://www.cs.tut.fi/~foi/GCF-BM3D/BM3D_TIP_2007.pdf> with several computational optimizations.static voidXphoto. bm3dDenoising(Mat src, Mat dst, float h, int templateWindowSize, int searchWindowSize, int blockMatchingStep1, int blockMatchingStep2, int groupSize, int slidingStep, float beta, int normType)Performs image denoising using the Block-Matching and 3D-filtering algorithm <http://www.cs.tut.fi/~foi/GCF-BM3D/BM3D_TIP_2007.pdf> with several computational optimizations.static voidXphoto. bm3dDenoising(Mat src, Mat dst, float h, int templateWindowSize, int searchWindowSize, int blockMatchingStep1, int blockMatchingStep2, int groupSize, int slidingStep, float beta, int normType, int step)Performs image denoising using the Block-Matching and 3D-filtering algorithm <http://www.cs.tut.fi/~foi/GCF-BM3D/BM3D_TIP_2007.pdf> with several computational optimizations.static voidXphoto. bm3dDenoising(Mat src, Mat dst, float h, int templateWindowSize, int searchWindowSize, int blockMatchingStep1, int blockMatchingStep2, int groupSize, int slidingStep, float beta, int normType, int step, int transformType)Performs image denoising using the Block-Matching and 3D-filtering algorithm <http://www.cs.tut.fi/~foi/GCF-BM3D/BM3D_TIP_2007.pdf> with several computational optimizations.static voidXphoto. bm3dDenoising(Mat src, Mat dstStep1, Mat dstStep2)Performs image denoising using the Block-Matching and 3D-filtering algorithm <http://www.cs.tut.fi/~foi/GCF-BM3D/BM3D_TIP_2007.pdf> with several computational optimizations.static voidXphoto. bm3dDenoising(Mat src, Mat dstStep1, Mat dstStep2, float h)Performs image denoising using the Block-Matching and 3D-filtering algorithm <http://www.cs.tut.fi/~foi/GCF-BM3D/BM3D_TIP_2007.pdf> with several computational optimizations.static voidXphoto. bm3dDenoising(Mat src, Mat dstStep1, Mat dstStep2, float h, int templateWindowSize)Performs image denoising using the Block-Matching and 3D-filtering algorithm <http://www.cs.tut.fi/~foi/GCF-BM3D/BM3D_TIP_2007.pdf> with several computational optimizations.static voidXphoto. bm3dDenoising(Mat src, Mat dstStep1, Mat dstStep2, float h, int templateWindowSize, int searchWindowSize)Performs image denoising using the Block-Matching and 3D-filtering algorithm <http://www.cs.tut.fi/~foi/GCF-BM3D/BM3D_TIP_2007.pdf> with several computational optimizations.static voidXphoto. bm3dDenoising(Mat src, Mat dstStep1, Mat dstStep2, float h, int templateWindowSize, int searchWindowSize, int blockMatchingStep1)Performs image denoising using the Block-Matching and 3D-filtering algorithm <http://www.cs.tut.fi/~foi/GCF-BM3D/BM3D_TIP_2007.pdf> with several computational optimizations.static voidXphoto. bm3dDenoising(Mat src, Mat dstStep1, Mat dstStep2, float h, int templateWindowSize, int searchWindowSize, int blockMatchingStep1, int blockMatchingStep2)Performs image denoising using the Block-Matching and 3D-filtering algorithm <http://www.cs.tut.fi/~foi/GCF-BM3D/BM3D_TIP_2007.pdf> with several computational optimizations.static voidXphoto. bm3dDenoising(Mat src, Mat dstStep1, Mat dstStep2, float h, int templateWindowSize, int searchWindowSize, int blockMatchingStep1, int blockMatchingStep2, int groupSize)Performs image denoising using the Block-Matching and 3D-filtering algorithm <http://www.cs.tut.fi/~foi/GCF-BM3D/BM3D_TIP_2007.pdf> with several computational optimizations.static voidXphoto. bm3dDenoising(Mat src, Mat dstStep1, Mat dstStep2, float h, int templateWindowSize, int searchWindowSize, int blockMatchingStep1, int blockMatchingStep2, int groupSize, int slidingStep)Performs image denoising using the Block-Matching and 3D-filtering algorithm <http://www.cs.tut.fi/~foi/GCF-BM3D/BM3D_TIP_2007.pdf> with several computational optimizations.static voidXphoto. bm3dDenoising(Mat src, Mat dstStep1, Mat dstStep2, float h, int templateWindowSize, int searchWindowSize, int blockMatchingStep1, int blockMatchingStep2, int groupSize, int slidingStep, float beta)Performs image denoising using the Block-Matching and 3D-filtering algorithm <http://www.cs.tut.fi/~foi/GCF-BM3D/BM3D_TIP_2007.pdf> with several computational optimizations.static voidXphoto. bm3dDenoising(Mat src, Mat dstStep1, Mat dstStep2, float h, int templateWindowSize, int searchWindowSize, int blockMatchingStep1, int blockMatchingStep2, int groupSize, int slidingStep, float beta, int normType)Performs image denoising using the Block-Matching and 3D-filtering algorithm <http://www.cs.tut.fi/~foi/GCF-BM3D/BM3D_TIP_2007.pdf> with several computational optimizations.static voidXphoto. bm3dDenoising(Mat src, Mat dstStep1, Mat dstStep2, float h, int templateWindowSize, int searchWindowSize, int blockMatchingStep1, int blockMatchingStep2, int groupSize, int slidingStep, float beta, int normType, int step)Performs image denoising using the Block-Matching and 3D-filtering algorithm <http://www.cs.tut.fi/~foi/GCF-BM3D/BM3D_TIP_2007.pdf> with several computational optimizations.static voidXphoto. bm3dDenoising(Mat src, Mat dstStep1, Mat dstStep2, float h, int templateWindowSize, int searchWindowSize, int blockMatchingStep1, int blockMatchingStep2, int groupSize, int slidingStep, float beta, int normType, int step, int transformType)Performs image denoising using the Block-Matching and 3D-filtering algorithm <http://www.cs.tut.fi/~foi/GCF-BM3D/BM3D_TIP_2007.pdf> with several computational optimizations.static voidXphoto. dctDenoising(Mat src, Mat dst, double sigma)The function implements simple dct-based denoising <http://www.ipol.im/pub/art/2011/ys-dct/>.static voidXphoto. dctDenoising(Mat src, Mat dst, double sigma, int psize)The function implements simple dct-based denoising <http://www.ipol.im/pub/art/2011/ys-dct/>.voidLearningBasedWB. extractSimpleFeatures(Mat src, Mat dst)Implements the feature extraction part of the algorithm.static voidXphoto. inpaint(Mat src, Mat mask, Mat dst, int algorithmType)The function implements different single-image inpainting algorithms.static voidXphoto. oilPainting(Mat src, Mat dst, int size, int dynRatio)oilPainting See the book CITE: Holzmann1988 for details.static voidXphoto. oilPainting(Mat src, Mat dst, int size, int dynRatio, int code)oilPainting See the book CITE: Holzmann1988 for details.
-