--- /srv/rebuilderd/tmp/rebuilderdhHqNVL/inputs/opencv-doc_4.10.0+dfsg-6_all.deb +++ /srv/rebuilderd/tmp/rebuilderdhHqNVL/out/opencv-doc_4.10.0+dfsg-6_all.deb ├── file list │ @@ -1,3 +1,3 @@ │ -rw-r--r-- 0 0 0 4 2025-09-27 14:40:00.000000 debian-binary │ --rw-r--r-- 0 0 0 239084 2025-09-27 14:40:00.000000 control.tar.xz │ --rw-r--r-- 0 0 0 97917340 2025-09-27 14:40:00.000000 data.tar.xz │ +-rw-r--r-- 0 0 0 239140 2025-09-27 14:40:00.000000 control.tar.xz │ +-rw-r--r-- 0 0 0 97798964 2025-09-27 14:40:00.000000 data.tar.xz ├── control.tar.xz │ ├── control.tar │ │ ├── ./control │ │ │ @@ -1,13 +1,13 @@ │ │ │ Package: opencv-doc │ │ │ Source: opencv │ │ │ Version: 4.10.0+dfsg-6 │ │ │ Architecture: all │ │ │ Maintainer: Debian Science Team │ │ │ -Installed-Size: 327189 │ │ │ +Installed-Size: 327075 │ │ │ Depends: libjs-jquery, libjs-mathjax │ │ │ Section: doc │ │ │ Priority: optional │ │ │ Multi-Arch: foreign │ │ │ Homepage: https://opencv.org │ │ │ Description: OpenCV documentation and examples │ │ │ This package contains the OpenCV documentation and example programs. │ │ ├── ./md5sums │ │ │ ├── ./md5sums │ │ │ │┄ Files differ ├── data.tar.xz │ ├── data.tar │ │ ├── file list │ │ │ @@ -11742,15 +11742,15 @@ │ │ │ -rw-r--r-- 0 root (0) root (0) 8955 2025-09-27 14:40:00.000000 ./usr/share/doc/opencv-doc/opencv4/html/oc_1d_testdata.png │ │ │ -rw-r--r-- 0 root (0) root (0) 10486 2025-09-27 14:40:00.000000 ./usr/share/doc/opencv-doc/opencv4/html/oc_2d_clustered.jpg │ │ │ -rw-r--r-- 0 root (0) root (0) 31684 2025-09-27 14:40:00.000000 ./usr/share/doc/opencv-doc/opencv4/html/oc_color_quantization.jpg │ │ │ -rw-r--r-- 0 root (0) root (0) 12012 2025-09-27 14:40:00.000000 ./usr/share/doc/opencv-doc/opencv4/html/oc_feature_representation.jpg │ │ │ -rw-r--r-- 0 root (0) root (0) 123 2025-09-27 14:40:00.000000 ./usr/share/doc/opencv-doc/opencv4/html/open.png │ │ │ -rw-r--r-- 0 root (0) root (0) 2155 2025-09-27 14:40:00.000000 ./usr/share/doc/opencv-doc/opencv4/html/opencv-logo-small.png │ │ │ -rw-r--r-- 0 root (0) root (0) 1114 2025-09-27 14:40:00.000000 ./usr/share/doc/opencv-doc/opencv4/html/opencv.ico.gz │ │ │ --rw-r--r-- 0 root (0) root (0) 1967950 2025-09-27 14:40:00.000000 ./usr/share/doc/opencv-doc/opencv4/html/opencv.tag.gz │ │ │ +-rw-r--r-- 0 root (0) root (0) 1967961 2025-09-27 14:40:00.000000 ./usr/share/doc/opencv-doc/opencv4/html/opencv.tag.gz │ │ │ -rw-r--r-- 0 root (0) root (0) 83154 2025-09-27 14:40:00.000000 ./usr/share/doc/opencv-doc/opencv4/html/opencv_bus_res.jpg │ │ │ -rw-r--r-- 0 root (0) root (0) 5327 2025-09-27 14:40:00.000000 ./usr/share/doc/opencv-doc/opencv4/html/opencv_logo.jpg │ │ │ -rw-r--r-- 0 root (0) root (0) 60324 2025-09-27 14:40:00.000000 ./usr/share/doc/opencv-doc/opencv4/html/opencv_resnet50_test_res_c.jpg │ │ │ -rw-r--r-- 0 root (0) root (0) 2082 2025-09-27 14:40:00.000000 ./usr/share/doc/opencv-doc/opencv4/html/opening.png │ │ │ -rw-r--r-- 0 root (0) root (0) 6146 2025-09-27 14:40:00.000000 ./usr/share/doc/opencv-doc/opencv4/html/optical_flow_basic1.jpg │ │ │ -rw-r--r-- 0 root (0) root (0) 24600 2025-09-27 14:40:00.000000 ./usr/share/doc/opencv-doc/opencv4/html/opticalfb.jpg │ │ │ -rw-r--r-- 0 root (0) root (0) 22792 2025-09-27 14:40:00.000000 ./usr/share/doc/opencv-doc/opencv4/html/opticalflow_lk.jpg │ │ │ @@ -11828,15 +11828,15 @@ │ │ │ -rw-r--r-- 0 root (0) root (0) 40188 2025-09-27 14:40:00.000000 ./usr/share/doc/opencv-doc/opencv4/html/resultOutputWideoWrite.png │ │ │ -rw-r--r-- 0 root (0) root (0) 11120 2025-09-27 14:40:00.000000 ./usr/share/doc/opencv-doc/opencv4/html/result_normal.jpg │ │ │ -rw-r--r-- 0 root (0) root (0) 12503 2025-09-27 14:40:00.000000 ./usr/share/doc/opencv-doc/opencv4/html/result_rotated.jpg │ │ │ -rw-r--r-- 0 root (0) root (0) 13646 2025-09-27 14:40:00.000000 ./usr/share/doc/opencv-doc/opencv4/html/retinaInput.jpg │ │ │ -rw-r--r-- 0 root (0) root (0) 22461 2025-09-27 14:40:00.000000 ./usr/share/doc/opencv-doc/opencv4/html/retinaOutput_default.jpg │ │ │ -rw-r--r-- 0 root (0) root (0) 19131 2025-09-27 14:40:00.000000 ./usr/share/doc/opencv-doc/opencv4/html/retinaOutput_realistic.jpg │ │ │ -rw-r--r-- 0 root (0) root (0) 150688 2025-09-27 14:40:00.000000 ./usr/share/doc/opencv-doc/opencv4/html/retina_TreeHdr_retina.jpg │ │ │ --rw-r--r-- 0 root (0) root (0) 166872 2025-09-27 14:40:00.000000 ./usr/share/doc/opencv-doc/opencv4/html/retina_TreeHdr_small.jpg │ │ │ +-rw-r--r-- 0 root (0) root (0) 50051 2025-09-27 14:40:00.000000 ./usr/share/doc/opencv-doc/opencv4/html/retina_TreeHdr_small.jpg │ │ │ -rw-r--r-- 0 root (0) root (0) 23978 2025-09-27 14:40:00.000000 ./usr/share/doc/opencv-doc/opencv4/html/robot-world_hand-eye_figure.png │ │ │ -rw-r--r-- 0 root (0) root (0) 27080 2025-09-27 14:40:00.000000 ./usr/share/doc/opencv-doc/opencv4/html/roi.jpg │ │ │ -rw-r--r-- 0 root (0) root (0) 28547 2025-09-27 14:40:00.000000 ./usr/share/doc/opencv-doc/opencv4/html/root_group_single_channel.png │ │ │ -rw-r--r-- 0 root (0) root (0) 1831 2025-09-27 14:40:00.000000 ./usr/share/doc/opencv-doc/opencv4/html/rotatedrect.png │ │ │ -rw-r--r-- 0 root (0) root (0) 24109 2025-09-27 14:40:00.000000 ./usr/share/doc/opencv-doc/opencv4/html/rotation.jpg │ │ │ -rw-r--r-- 0 root (0) root (0) 14301 2025-09-27 14:40:00.000000 ./usr/share/doc/opencv-doc/opencv4/html/run_app.png │ │ │ -rw-r--r-- 0 root (0) root (0) 29564 2025-09-27 14:40:00.000000 ./usr/share/doc/opencv-doc/opencv4/html/sagrada_familia_input.jpg │ │ ├── ./usr/share/doc/opencv-doc/opencv4/html/javadoc/org/opencv/aruco/Aruco.html │ │ │┄ Ordering differences only │ │ │ @@ -1424,334 +1424,14 @@ │ │ │
charucoIds - automatically generated
│ │ │
Returns:
│ │ │
automatically generated
│ │ │ │ │ │ │ │ │ │ │ │
  • │ │ │ -
    │ │ │ -

    interpolateCornersCharuco

    │ │ │ -
    @Deprecated │ │ │ -public static int interpolateCornersCharuco(List<Mat> markerCorners, │ │ │ - Mat markerIds, │ │ │ - Mat image, │ │ │ - CharucoBoard board, │ │ │ - Mat charucoCorners, │ │ │ - Mat charucoIds, │ │ │ - Mat cameraMatrix, │ │ │ - Mat distCoeffs, │ │ │ - int minMarkers)
    │ │ │ -
    Deprecated. │ │ │ -
    Use CharucoDetector::detectBoard
    │ │ │ -
    │ │ │ -
    Interpolate position of ChArUco board corners
    │ │ │ -
    │ │ │ -
    Parameters:
    │ │ │ -
    markerCorners - vector of already detected markers corners. For each marker, its four │ │ │ - corners are provided, (e.g std::vector<std::vector<cv::Point2f> > ). For N detected markers, the │ │ │ - dimensions of this array should be Nx4. The order of the corners should be clockwise.
    │ │ │ -
    markerIds - list of identifiers for each marker in corners
    │ │ │ -
    image - input image necesary for corner refinement. Note that markers are not detected and │ │ │ - should be sent in corners and ids parameters.
    │ │ │ -
    board - layout of ChArUco board.
    │ │ │ -
    charucoCorners - interpolated chessboard corners
    │ │ │ -
    charucoIds - interpolated chessboard corners identifiers
    │ │ │ -
    cameraMatrix - optional 3x3 floating-point camera matrix │ │ │ - \(A = \vecthreethree{f_x}{0}{c_x}{0}{f_y}{c_y}{0}{0}{1}\)
    │ │ │ -
    distCoeffs - optional vector of distortion coefficients │ │ │ - \((k_1, k_2, p_1, p_2[, k_3[, k_4, k_5, k_6],[s_1, s_2, s_3, s_4]])\) of 4, 5, 8 or 12 elements
    │ │ │ -
    minMarkers - number of adjacent markers that must be detected to return a charuco corner │ │ │ - │ │ │ - This function receives the detected markers and returns the 2D position of the chessboard corners │ │ │ - from a ChArUco board using the detected Aruco markers. If camera parameters are provided, │ │ │ - the process is based in an approximated pose estimation, else it is based on local homography. │ │ │ - Only visible corners are returned. For each corner, its corresponding identifier is │ │ │ - also returned in charucoIds. │ │ │ - The function returns the number of interpolated corners.
    │ │ │ -
    Returns:
    │ │ │ -
    automatically generated
    │ │ │ -
    │ │ │ -
    │ │ │ -
  • │ │ │ -
  • │ │ │ -
    │ │ │ -

    interpolateCornersCharuco

    │ │ │ -
    @Deprecated │ │ │ -public static int interpolateCornersCharuco(List<Mat> markerCorners, │ │ │ - Mat markerIds, │ │ │ - Mat image, │ │ │ - CharucoBoard board, │ │ │ - Mat charucoCorners, │ │ │ - Mat charucoIds, │ │ │ - Mat cameraMatrix, │ │ │ - Mat distCoeffs)
    │ │ │ -
    Deprecated. │ │ │ -
    Use CharucoDetector::detectBoard
    │ │ │ -
    │ │ │ -
    Interpolate position of ChArUco board corners
    │ │ │ -
    │ │ │ -
    Parameters:
    │ │ │ -
    markerCorners - vector of already detected markers corners. For each marker, its four │ │ │ - corners are provided, (e.g std::vector<std::vector<cv::Point2f> > ). For N detected markers, the │ │ │ - dimensions of this array should be Nx4. The order of the corners should be clockwise.
    │ │ │ -
    markerIds - list of identifiers for each marker in corners
    │ │ │ -
    image - input image necesary for corner refinement. Note that markers are not detected and │ │ │ - should be sent in corners and ids parameters.
    │ │ │ -
    board - layout of ChArUco board.
    │ │ │ -
    charucoCorners - interpolated chessboard corners
    │ │ │ -
    charucoIds - interpolated chessboard corners identifiers
    │ │ │ -
    cameraMatrix - optional 3x3 floating-point camera matrix │ │ │ - \(A = \vecthreethree{f_x}{0}{c_x}{0}{f_y}{c_y}{0}{0}{1}\)
    │ │ │ -
    distCoeffs - optional vector of distortion coefficients │ │ │ - \((k_1, k_2, p_1, p_2[, k_3[, k_4, k_5, k_6],[s_1, s_2, s_3, s_4]])\) of 4, 5, 8 or 12 elements │ │ │ - │ │ │ - This function receives the detected markers and returns the 2D position of the chessboard corners │ │ │ - from a ChArUco board using the detected Aruco markers. If camera parameters are provided, │ │ │ - the process is based in an approximated pose estimation, else it is based on local homography. │ │ │ - Only visible corners are returned. For each corner, its corresponding identifier is │ │ │ - also returned in charucoIds. │ │ │ - The function returns the number of interpolated corners.
    │ │ │ -
    Returns:
    │ │ │ -
    automatically generated
    │ │ │ -
    │ │ │ -
    │ │ │ -
  • │ │ │ -
  • │ │ │ -
    │ │ │ -

    interpolateCornersCharuco

    │ │ │ -
    @Deprecated │ │ │ -public static int interpolateCornersCharuco(List<Mat> markerCorners, │ │ │ - Mat markerIds, │ │ │ - Mat image, │ │ │ - CharucoBoard board, │ │ │ - Mat charucoCorners, │ │ │ - Mat charucoIds, │ │ │ - Mat cameraMatrix)
    │ │ │ -
    Deprecated. │ │ │ -
    Use CharucoDetector::detectBoard
    │ │ │ -
    │ │ │ -
    Interpolate position of ChArUco board corners
    │ │ │ -
    │ │ │ -
    Parameters:
    │ │ │ -
    markerCorners - vector of already detected markers corners. For each marker, its four │ │ │ - corners are provided, (e.g std::vector<std::vector<cv::Point2f> > ). For N detected markers, the │ │ │ - dimensions of this array should be Nx4. The order of the corners should be clockwise.
    │ │ │ -
    markerIds - list of identifiers for each marker in corners
    │ │ │ -
    image - input image necesary for corner refinement. Note that markers are not detected and │ │ │ - should be sent in corners and ids parameters.
    │ │ │ -
    board - layout of ChArUco board.
    │ │ │ -
    charucoCorners - interpolated chessboard corners
    │ │ │ -
    charucoIds - interpolated chessboard corners identifiers
    │ │ │ -
    cameraMatrix - optional 3x3 floating-point camera matrix │ │ │ - \(A = \vecthreethree{f_x}{0}{c_x}{0}{f_y}{c_y}{0}{0}{1}\) │ │ │ - \((k_1, k_2, p_1, p_2[, k_3[, k_4, k_5, k_6],[s_1, s_2, s_3, s_4]])\) of 4, 5, 8 or 12 elements │ │ │ - │ │ │ - This function receives the detected markers and returns the 2D position of the chessboard corners │ │ │ - from a ChArUco board using the detected Aruco markers. If camera parameters are provided, │ │ │ - the process is based in an approximated pose estimation, else it is based on local homography. │ │ │ - Only visible corners are returned. For each corner, its corresponding identifier is │ │ │ - also returned in charucoIds. │ │ │ - The function returns the number of interpolated corners.
    │ │ │ -
    Returns:
    │ │ │ -
    automatically generated
    │ │ │ -
    │ │ │ -
    │ │ │ -
  • │ │ │ -
  • │ │ │ -
    │ │ │ -

    interpolateCornersCharuco

    │ │ │ -
    @Deprecated │ │ │ -public static int interpolateCornersCharuco(List<Mat> markerCorners, │ │ │ - Mat markerIds, │ │ │ - Mat image, │ │ │ - CharucoBoard board, │ │ │ - Mat charucoCorners, │ │ │ - Mat charucoIds)
    │ │ │ -
    Deprecated. │ │ │ -
    Use CharucoDetector::detectBoard
    │ │ │ -
    │ │ │ -
    Interpolate position of ChArUco board corners
    │ │ │ -
    │ │ │ -
    Parameters:
    │ │ │ -
    markerCorners - vector of already detected markers corners. For each marker, its four │ │ │ - corners are provided, (e.g std::vector<std::vector<cv::Point2f> > ). For N detected markers, the │ │ │ - dimensions of this array should be Nx4. The order of the corners should be clockwise.
    │ │ │ -
    markerIds - list of identifiers for each marker in corners
    │ │ │ -
    image - input image necesary for corner refinement. Note that markers are not detected and │ │ │ - should be sent in corners and ids parameters.
    │ │ │ -
    board - layout of ChArUco board.
    │ │ │ -
    charucoCorners - interpolated chessboard corners
    │ │ │ -
    charucoIds - interpolated chessboard corners identifiers │ │ │ - \(A = \vecthreethree{f_x}{0}{c_x}{0}{f_y}{c_y}{0}{0}{1}\) │ │ │ - \((k_1, k_2, p_1, p_2[, k_3[, k_4, k_5, k_6],[s_1, s_2, s_3, s_4]])\) of 4, 5, 8 or 12 elements │ │ │ - │ │ │ - This function receives the detected markers and returns the 2D position of the chessboard corners │ │ │ - from a ChArUco board using the detected Aruco markers. If camera parameters are provided, │ │ │ - the process is based in an approximated pose estimation, else it is based on local homography. │ │ │ - Only visible corners are returned. For each corner, its corresponding identifier is │ │ │ - also returned in charucoIds. │ │ │ - The function returns the number of interpolated corners.
    │ │ │ -
    Returns:
    │ │ │ -
    automatically generated
    │ │ │ -
    │ │ │ -
    │ │ │ -
  • │ │ │ -
  • │ │ │ -
    │ │ │ -

    detectCharucoDiamond

    │ │ │ -
    @Deprecated │ │ │ -public static void detectCharucoDiamond(Mat image, │ │ │ - List<Mat> markerCorners, │ │ │ - Mat markerIds, │ │ │ - float squareMarkerLengthRate, │ │ │ - List<Mat> diamondCorners, │ │ │ - Mat diamondIds, │ │ │ - Mat cameraMatrix, │ │ │ - Mat distCoeffs, │ │ │ - Dictionary dictionary)
    │ │ │ -
    Deprecated. │ │ │ -
    Use CharucoDetector::detectDiamonds
    │ │ │ -
    │ │ │ -
    Detect ChArUco Diamond markers
    │ │ │ -
    │ │ │ -
    Parameters:
    │ │ │ -
    image - input image necessary for corner subpixel.
    │ │ │ -
    markerCorners - list of detected marker corners from detectMarkers function.
    │ │ │ -
    markerIds - list of marker ids in markerCorners.
    │ │ │ -
    squareMarkerLengthRate - rate between square and marker length: │ │ │ - squareMarkerLengthRate = squareLength/markerLength. The real units are not necessary.
    │ │ │ -
    diamondCorners - output list of detected diamond corners (4 corners per diamond). The order │ │ │ - is the same than in marker corners: top left, top right, bottom right and bottom left. Similar │ │ │ - format than the corners returned by detectMarkers (e.g std::vector<std::vector<cv::Point2f> > ).
    │ │ │ -
    diamondIds - ids of the diamonds in diamondCorners. The id of each diamond is in fact of │ │ │ - type Vec4i, so each diamond has 4 ids, which are the ids of the aruco markers composing the │ │ │ - diamond.
    │ │ │ -
    cameraMatrix - Optional camera calibration matrix.
    │ │ │ -
    distCoeffs - Optional camera distortion coefficients.
    │ │ │ -
    dictionary - dictionary of markers indicating the type of markers. │ │ │ - │ │ │ - This function detects Diamond markers from the previous detected ArUco markers. The diamonds │ │ │ - are returned in the diamondCorners and diamondIds parameters. If camera calibration parameters │ │ │ - are provided, the diamond search is based on reprojection. If not, diamond search is based on │ │ │ - homography. Homography is faster than reprojection, but less accurate.
    │ │ │ -
    │ │ │ -
    │ │ │ -
  • │ │ │ -
  • │ │ │ -
    │ │ │ -

    detectCharucoDiamond

    │ │ │ -
    @Deprecated │ │ │ -public static void detectCharucoDiamond(Mat image, │ │ │ - List<Mat> markerCorners, │ │ │ - Mat markerIds, │ │ │ - float squareMarkerLengthRate, │ │ │ - List<Mat> diamondCorners, │ │ │ - Mat diamondIds, │ │ │ - Mat cameraMatrix, │ │ │ - Mat distCoeffs)
    │ │ │ -
    Deprecated. │ │ │ -
    Use CharucoDetector::detectDiamonds
    │ │ │ -
    │ │ │ -
    Detect ChArUco Diamond markers
    │ │ │ -
    │ │ │ -
    Parameters:
    │ │ │ -
    image - input image necessary for corner subpixel.
    │ │ │ -
    markerCorners - list of detected marker corners from detectMarkers function.
    │ │ │ -
    markerIds - list of marker ids in markerCorners.
    │ │ │ -
    squareMarkerLengthRate - rate between square and marker length: │ │ │ - squareMarkerLengthRate = squareLength/markerLength. The real units are not necessary.
    │ │ │ -
    diamondCorners - output list of detected diamond corners (4 corners per diamond). The order │ │ │ - is the same than in marker corners: top left, top right, bottom right and bottom left. Similar │ │ │ - format than the corners returned by detectMarkers (e.g std::vector<std::vector<cv::Point2f> > ).
    │ │ │ -
    diamondIds - ids of the diamonds in diamondCorners. The id of each diamond is in fact of │ │ │ - type Vec4i, so each diamond has 4 ids, which are the ids of the aruco markers composing the │ │ │ - diamond.
    │ │ │ -
    cameraMatrix - Optional camera calibration matrix.
    │ │ │ -
    distCoeffs - Optional camera distortion coefficients. │ │ │ - │ │ │ - This function detects Diamond markers from the previous detected ArUco markers. The diamonds │ │ │ - are returned in the diamondCorners and diamondIds parameters. If camera calibration parameters │ │ │ - are provided, the diamond search is based on reprojection. If not, diamond search is based on │ │ │ - homography. Homography is faster than reprojection, but less accurate.
    │ │ │ -
    │ │ │ -
    │ │ │ -
  • │ │ │ -
  • │ │ │ -
    │ │ │ -

    detectCharucoDiamond

    │ │ │ -
    @Deprecated │ │ │ -public static void detectCharucoDiamond(Mat image, │ │ │ - List<Mat> markerCorners, │ │ │ - Mat markerIds, │ │ │ - float squareMarkerLengthRate, │ │ │ - List<Mat> diamondCorners, │ │ │ - Mat diamondIds, │ │ │ - Mat cameraMatrix)
    │ │ │ -
    Deprecated. │ │ │ -
    Use CharucoDetector::detectDiamonds
    │ │ │ -
    │ │ │ -
    Detect ChArUco Diamond markers
    │ │ │ -
    │ │ │ -
    Parameters:
    │ │ │ -
    image - input image necessary for corner subpixel.
    │ │ │ -
    markerCorners - list of detected marker corners from detectMarkers function.
    │ │ │ -
    markerIds - list of marker ids in markerCorners.
    │ │ │ -
    squareMarkerLengthRate - rate between square and marker length: │ │ │ - squareMarkerLengthRate = squareLength/markerLength. The real units are not necessary.
    │ │ │ -
    diamondCorners - output list of detected diamond corners (4 corners per diamond). The order │ │ │ - is the same than in marker corners: top left, top right, bottom right and bottom left. Similar │ │ │ - format than the corners returned by detectMarkers (e.g std::vector<std::vector<cv::Point2f> > ).
    │ │ │ -
    diamondIds - ids of the diamonds in diamondCorners. The id of each diamond is in fact of │ │ │ - type Vec4i, so each diamond has 4 ids, which are the ids of the aruco markers composing the │ │ │ - diamond.
    │ │ │ -
    cameraMatrix - Optional camera calibration matrix. │ │ │ - │ │ │ - This function detects Diamond markers from the previous detected ArUco markers. The diamonds │ │ │ - are returned in the diamondCorners and diamondIds parameters. If camera calibration parameters │ │ │ - are provided, the diamond search is based on reprojection. If not, diamond search is based on │ │ │ - homography. Homography is faster than reprojection, but less accurate.
    │ │ │ -
    │ │ │ -
    │ │ │ -
  • │ │ │ -
  • │ │ │ -
    │ │ │ -

    detectCharucoDiamond

    │ │ │ -
    @Deprecated │ │ │ -public static void detectCharucoDiamond(Mat image, │ │ │ - List<Mat> markerCorners, │ │ │ - Mat markerIds, │ │ │ - float squareMarkerLengthRate, │ │ │ - List<Mat> diamondCorners, │ │ │ - Mat diamondIds)
    │ │ │ -
    Deprecated. │ │ │ -
    Use CharucoDetector::detectDiamonds
    │ │ │ -
    │ │ │ -
    Detect ChArUco Diamond markers
    │ │ │ -
    │ │ │ -
    Parameters:
    │ │ │ -
    image - input image necessary for corner subpixel.
    │ │ │ -
    markerCorners - list of detected marker corners from detectMarkers function.
    │ │ │ -
    markerIds - list of marker ids in markerCorners.
    │ │ │ -
    squareMarkerLengthRate - rate between square and marker length: │ │ │ - squareMarkerLengthRate = squareLength/markerLength. The real units are not necessary.
    │ │ │ -
    diamondCorners - output list of detected diamond corners (4 corners per diamond). The order │ │ │ - is the same than in marker corners: top left, top right, bottom right and bottom left. Similar │ │ │ - format than the corners returned by detectMarkers (e.g std::vector<std::vector<cv::Point2f> > ).
    │ │ │ -
    diamondIds - ids of the diamonds in diamondCorners. The id of each diamond is in fact of │ │ │ - type Vec4i, so each diamond has 4 ids, which are the ids of the aruco markers composing the │ │ │ - diamond. │ │ │ - │ │ │ - This function detects Diamond markers from the previous detected ArUco markers. The diamonds │ │ │ - are returned in the diamondCorners and diamondIds parameters. If camera calibration parameters │ │ │ - are provided, the diamond search is based on reprojection. If not, diamond search is based on │ │ │ - homography. Homography is faster than reprojection, but less accurate.
    │ │ │ -
    │ │ │ -
    │ │ │ -
  • │ │ │ -
  • │ │ │
    │ │ │

    calibrateCameraArucoExtended

    │ │ │
    @Deprecated │ │ │ public static double calibrateCameraArucoExtended(List<Mat> corners, │ │ │ Mat ids, │ │ │ Mat counter, │ │ │ Board board, │ │ │ @@ -2408,14 +2088,334 @@ │ │ │
    cameraMatrix - automatically generated
    │ │ │
    distCoeffs - automatically generated
    │ │ │
    Returns:
    │ │ │
    automatically generated
    │ │ │ │ │ │
    │ │ │
  • │ │ │ +
  • │ │ │ +
    │ │ │ +

    interpolateCornersCharuco

    │ │ │ +
    @Deprecated │ │ │ +public static int interpolateCornersCharuco(List<Mat> markerCorners, │ │ │ + Mat markerIds, │ │ │ + Mat image, │ │ │ + CharucoBoard board, │ │ │ + Mat charucoCorners, │ │ │ + Mat charucoIds, │ │ │ + Mat cameraMatrix, │ │ │ + Mat distCoeffs, │ │ │ + int minMarkers)
    │ │ │ +
    Deprecated. │ │ │ +
    Use CharucoDetector::detectBoard
    │ │ │ +
    │ │ │ +
    Interpolate position of ChArUco board corners
    │ │ │ +
    │ │ │ +
    Parameters:
    │ │ │ +
    markerCorners - vector of already detected markers corners. For each marker, its four │ │ │ + corners are provided, (e.g std::vector<std::vector<cv::Point2f> > ). For N detected markers, the │ │ │ + dimensions of this array should be Nx4. The order of the corners should be clockwise.
    │ │ │ +
    markerIds - list of identifiers for each marker in corners
    │ │ │ +
    image - input image necesary for corner refinement. Note that markers are not detected and │ │ │ + should be sent in corners and ids parameters.
    │ │ │ +
    board - layout of ChArUco board.
    │ │ │ +
    charucoCorners - interpolated chessboard corners
    │ │ │ +
    charucoIds - interpolated chessboard corners identifiers
    │ │ │ +
    cameraMatrix - optional 3x3 floating-point camera matrix │ │ │ + \(A = \vecthreethree{f_x}{0}{c_x}{0}{f_y}{c_y}{0}{0}{1}\)
    │ │ │ +
    distCoeffs - optional vector of distortion coefficients │ │ │ + \((k_1, k_2, p_1, p_2[, k_3[, k_4, k_5, k_6],[s_1, s_2, s_3, s_4]])\) of 4, 5, 8 or 12 elements
    │ │ │ +
    minMarkers - number of adjacent markers that must be detected to return a charuco corner │ │ │ + │ │ │ + This function receives the detected markers and returns the 2D position of the chessboard corners │ │ │ + from a ChArUco board using the detected Aruco markers. If camera parameters are provided, │ │ │ + the process is based in an approximated pose estimation, else it is based on local homography. │ │ │ + Only visible corners are returned. For each corner, its corresponding identifier is │ │ │ + also returned in charucoIds. │ │ │ + The function returns the number of interpolated corners.
    │ │ │ +
    Returns:
    │ │ │ +
    automatically generated
    │ │ │ +
    │ │ │ +
    │ │ │ +
  • │ │ │ +
  • │ │ │ +
    │ │ │ +

    interpolateCornersCharuco

    │ │ │ +
    @Deprecated │ │ │ +public static int interpolateCornersCharuco(List<Mat> markerCorners, │ │ │ + Mat markerIds, │ │ │ + Mat image, │ │ │ + CharucoBoard board, │ │ │ + Mat charucoCorners, │ │ │ + Mat charucoIds, │ │ │ + Mat cameraMatrix, │ │ │ + Mat distCoeffs)
    │ │ │ +
    Deprecated. │ │ │ +
    Use CharucoDetector::detectBoard
    │ │ │ +
    │ │ │ +
    Interpolate position of ChArUco board corners
    │ │ │ +
    │ │ │ +
    Parameters:
    │ │ │ +
    markerCorners - vector of already detected markers corners. For each marker, its four │ │ │ + corners are provided, (e.g std::vector<std::vector<cv::Point2f> > ). For N detected markers, the │ │ │ + dimensions of this array should be Nx4. The order of the corners should be clockwise.
    │ │ │ +
    markerIds - list of identifiers for each marker in corners
    │ │ │ +
    image - input image necesary for corner refinement. Note that markers are not detected and │ │ │ + should be sent in corners and ids parameters.
    │ │ │ +
    board - layout of ChArUco board.
    │ │ │ +
    charucoCorners - interpolated chessboard corners
    │ │ │ +
    charucoIds - interpolated chessboard corners identifiers
    │ │ │ +
    cameraMatrix - optional 3x3 floating-point camera matrix │ │ │ + \(A = \vecthreethree{f_x}{0}{c_x}{0}{f_y}{c_y}{0}{0}{1}\)
    │ │ │ +
    distCoeffs - optional vector of distortion coefficients │ │ │ + \((k_1, k_2, p_1, p_2[, k_3[, k_4, k_5, k_6],[s_1, s_2, s_3, s_4]])\) of 4, 5, 8 or 12 elements │ │ │ + │ │ │ + This function receives the detected markers and returns the 2D position of the chessboard corners │ │ │ + from a ChArUco board using the detected Aruco markers. If camera parameters are provided, │ │ │ + the process is based in an approximated pose estimation, else it is based on local homography. │ │ │ + Only visible corners are returned. For each corner, its corresponding identifier is │ │ │ + also returned in charucoIds. │ │ │ + The function returns the number of interpolated corners.
    │ │ │ +
    Returns:
    │ │ │ +
    automatically generated
    │ │ │ +
    │ │ │ +
    │ │ │ +
  • │ │ │ +
  • │ │ │ +
    │ │ │ +

    interpolateCornersCharuco

    │ │ │ +
    @Deprecated │ │ │ +public static int interpolateCornersCharuco(List<Mat> markerCorners, │ │ │ + Mat markerIds, │ │ │ + Mat image, │ │ │ + CharucoBoard board, │ │ │ + Mat charucoCorners, │ │ │ + Mat charucoIds, │ │ │ + Mat cameraMatrix)
    │ │ │ +
    Deprecated. │ │ │ +
    Use CharucoDetector::detectBoard
    │ │ │ +
    │ │ │ +
    Interpolate position of ChArUco board corners
    │ │ │ +
    │ │ │ +
    Parameters:
    │ │ │ +
    markerCorners - vector of already detected markers corners. For each marker, its four │ │ │ + corners are provided, (e.g std::vector<std::vector<cv::Point2f> > ). For N detected markers, the │ │ │ + dimensions of this array should be Nx4. The order of the corners should be clockwise.
    │ │ │ +
    markerIds - list of identifiers for each marker in corners
    │ │ │ +
    image - input image necesary for corner refinement. Note that markers are not detected and │ │ │ + should be sent in corners and ids parameters.
    │ │ │ +
    board - layout of ChArUco board.
    │ │ │ +
    charucoCorners - interpolated chessboard corners
    │ │ │ +
    charucoIds - interpolated chessboard corners identifiers
    │ │ │ +
    cameraMatrix - optional 3x3 floating-point camera matrix │ │ │ + \(A = \vecthreethree{f_x}{0}{c_x}{0}{f_y}{c_y}{0}{0}{1}\) │ │ │ + \((k_1, k_2, p_1, p_2[, k_3[, k_4, k_5, k_6],[s_1, s_2, s_3, s_4]])\) of 4, 5, 8 or 12 elements │ │ │ + │ │ │ + This function receives the detected markers and returns the 2D position of the chessboard corners │ │ │ + from a ChArUco board using the detected Aruco markers. If camera parameters are provided, │ │ │ + the process is based in an approximated pose estimation, else it is based on local homography. │ │ │ + Only visible corners are returned. For each corner, its corresponding identifier is │ │ │ + also returned in charucoIds. │ │ │ + The function returns the number of interpolated corners.
    │ │ │ +
    Returns:
    │ │ │ +
    automatically generated
    │ │ │ +
    │ │ │ +
    │ │ │ +
  • │ │ │ +
  • │ │ │ +
    │ │ │ +

    interpolateCornersCharuco

    │ │ │ +
    @Deprecated │ │ │ +public static int interpolateCornersCharuco(List<Mat> markerCorners, │ │ │ + Mat markerIds, │ │ │ + Mat image, │ │ │ + CharucoBoard board, │ │ │ + Mat charucoCorners, │ │ │ + Mat charucoIds)
    │ │ │ +
    Deprecated. │ │ │ +
    Use CharucoDetector::detectBoard
    │ │ │ +
    │ │ │ +
    Interpolate position of ChArUco board corners
    │ │ │ +
    │ │ │ +
    Parameters:
    │ │ │ +
    markerCorners - vector of already detected markers corners. For each marker, its four │ │ │ + corners are provided, (e.g std::vector<std::vector<cv::Point2f> > ). For N detected markers, the │ │ │ + dimensions of this array should be Nx4. The order of the corners should be clockwise.
    │ │ │ +
    markerIds - list of identifiers for each marker in corners
    │ │ │ +
    image - input image necesary for corner refinement. Note that markers are not detected and │ │ │ + should be sent in corners and ids parameters.
    │ │ │ +
    board - layout of ChArUco board.
    │ │ │ +
    charucoCorners - interpolated chessboard corners
    │ │ │ +
    charucoIds - interpolated chessboard corners identifiers │ │ │ + \(A = \vecthreethree{f_x}{0}{c_x}{0}{f_y}{c_y}{0}{0}{1}\) │ │ │ + \((k_1, k_2, p_1, p_2[, k_3[, k_4, k_5, k_6],[s_1, s_2, s_3, s_4]])\) of 4, 5, 8 or 12 elements │ │ │ + │ │ │ + This function receives the detected markers and returns the 2D position of the chessboard corners │ │ │ + from a ChArUco board using the detected Aruco markers. If camera parameters are provided, │ │ │ + the process is based in an approximated pose estimation, else it is based on local homography. │ │ │ + Only visible corners are returned. For each corner, its corresponding identifier is │ │ │ + also returned in charucoIds. │ │ │ + The function returns the number of interpolated corners.
    │ │ │ +
    Returns:
    │ │ │ +
    automatically generated
    │ │ │ +
    │ │ │ +
    │ │ │ +
  • │ │ │ +
  • │ │ │ +
    │ │ │ +

    detectCharucoDiamond

    │ │ │ +
    @Deprecated │ │ │ +public static void detectCharucoDiamond(Mat image, │ │ │ + List<Mat> markerCorners, │ │ │ + Mat markerIds, │ │ │ + float squareMarkerLengthRate, │ │ │ + List<Mat> diamondCorners, │ │ │ + Mat diamondIds, │ │ │ + Mat cameraMatrix, │ │ │ + Mat distCoeffs, │ │ │ + Dictionary dictionary)
    │ │ │ +
    Deprecated. │ │ │ +
    Use CharucoDetector::detectDiamonds
    │ │ │ +
    │ │ │ +
    Detect ChArUco Diamond markers
    │ │ │ +
    │ │ │ +
    Parameters:
    │ │ │ +
    image - input image necessary for corner subpixel.
    │ │ │ +
    markerCorners - list of detected marker corners from detectMarkers function.
    │ │ │ +
    markerIds - list of marker ids in markerCorners.
    │ │ │ +
    squareMarkerLengthRate - rate between square and marker length: │ │ │ + squareMarkerLengthRate = squareLength/markerLength. The real units are not necessary.
    │ │ │ +
    diamondCorners - output list of detected diamond corners (4 corners per diamond). The order │ │ │ + is the same than in marker corners: top left, top right, bottom right and bottom left. Similar │ │ │ + format than the corners returned by detectMarkers (e.g std::vector<std::vector<cv::Point2f> > ).
    │ │ │ +
    diamondIds - ids of the diamonds in diamondCorners. The id of each diamond is in fact of │ │ │ + type Vec4i, so each diamond has 4 ids, which are the ids of the aruco markers composing the │ │ │ + diamond.
    │ │ │ +
    cameraMatrix - Optional camera calibration matrix.
    │ │ │ +
    distCoeffs - Optional camera distortion coefficients.
    │ │ │ +
    dictionary - dictionary of markers indicating the type of markers. │ │ │ + │ │ │ + This function detects Diamond markers from the previous detected ArUco markers. The diamonds │ │ │ + are returned in the diamondCorners and diamondIds parameters. If camera calibration parameters │ │ │ + are provided, the diamond search is based on reprojection. If not, diamond search is based on │ │ │ + homography. Homography is faster than reprojection, but less accurate.
    │ │ │ +
    │ │ │ +
    │ │ │ +
  • │ │ │ +
  • │ │ │ +
    │ │ │ +

    detectCharucoDiamond

    │ │ │ +
    @Deprecated │ │ │ +public static void detectCharucoDiamond(Mat image, │ │ │ + List<Mat> markerCorners, │ │ │ + Mat markerIds, │ │ │ + float squareMarkerLengthRate, │ │ │ + List<Mat> diamondCorners, │ │ │ + Mat diamondIds, │ │ │ + Mat cameraMatrix, │ │ │ + Mat distCoeffs)
    │ │ │ +
    Deprecated. │ │ │ +
    Use CharucoDetector::detectDiamonds
    │ │ │ +
    │ │ │ +
    Detect ChArUco Diamond markers
    │ │ │ +
    │ │ │ +
    Parameters:
    │ │ │ +
    image - input image necessary for corner subpixel.
    │ │ │ +
    markerCorners - list of detected marker corners from detectMarkers function.
    │ │ │ +
    markerIds - list of marker ids in markerCorners.
    │ │ │ +
    squareMarkerLengthRate - rate between square and marker length: │ │ │ + squareMarkerLengthRate = squareLength/markerLength. The real units are not necessary.
    │ │ │ +
    diamondCorners - output list of detected diamond corners (4 corners per diamond). The order │ │ │ + is the same than in marker corners: top left, top right, bottom right and bottom left. Similar │ │ │ + format than the corners returned by detectMarkers (e.g std::vector<std::vector<cv::Point2f> > ).
    │ │ │ +
    diamondIds - ids of the diamonds in diamondCorners. The id of each diamond is in fact of │ │ │ + type Vec4i, so each diamond has 4 ids, which are the ids of the aruco markers composing the │ │ │ + diamond.
    │ │ │ +
    cameraMatrix - Optional camera calibration matrix.
    │ │ │ +
    distCoeffs - Optional camera distortion coefficients. │ │ │ + │ │ │ + This function detects Diamond markers from the previous detected ArUco markers. The diamonds │ │ │ + are returned in the diamondCorners and diamondIds parameters. If camera calibration parameters │ │ │ + are provided, the diamond search is based on reprojection. If not, diamond search is based on │ │ │ + homography. Homography is faster than reprojection, but less accurate.
    │ │ │ +
    │ │ │ +
    │ │ │ +
  • │ │ │ +
  • │ │ │ +
    │ │ │ +

    detectCharucoDiamond

    │ │ │ +
    @Deprecated │ │ │ +public static void detectCharucoDiamond(Mat image, │ │ │ + List<Mat> markerCorners, │ │ │ + Mat markerIds, │ │ │ + float squareMarkerLengthRate, │ │ │ + List<Mat> diamondCorners, │ │ │ + Mat diamondIds, │ │ │ + Mat cameraMatrix)
    │ │ │ +
    Deprecated. │ │ │ +
    Use CharucoDetector::detectDiamonds
    │ │ │ +
    │ │ │ +
    Detect ChArUco Diamond markers
    │ │ │ +
    │ │ │ +
    Parameters:
    │ │ │ +
    image - input image necessary for corner subpixel.
    │ │ │ +
    markerCorners - list of detected marker corners from detectMarkers function.
    │ │ │ +
    markerIds - list of marker ids in markerCorners.
    │ │ │ +
    squareMarkerLengthRate - rate between square and marker length: │ │ │ + squareMarkerLengthRate = squareLength/markerLength. The real units are not necessary.
    │ │ │ +
    diamondCorners - output list of detected diamond corners (4 corners per diamond). The order │ │ │ + is the same than in marker corners: top left, top right, bottom right and bottom left. Similar │ │ │ + format than the corners returned by detectMarkers (e.g std::vector<std::vector<cv::Point2f> > ).
    │ │ │ +
    diamondIds - ids of the diamonds in diamondCorners. The id of each diamond is in fact of │ │ │ + type Vec4i, so each diamond has 4 ids, which are the ids of the aruco markers composing the │ │ │ + diamond.
    │ │ │ +
    cameraMatrix - Optional camera calibration matrix. │ │ │ + │ │ │ + This function detects Diamond markers from the previous detected ArUco markers. The diamonds │ │ │ + are returned in the diamondCorners and diamondIds parameters. If camera calibration parameters │ │ │ + are provided, the diamond search is based on reprojection. If not, diamond search is based on │ │ │ + homography. Homography is faster than reprojection, but less accurate.
    │ │ │ +
    │ │ │ +
    │ │ │ +
  • │ │ │ +
  • │ │ │ +
    │ │ │ +

    detectCharucoDiamond

    │ │ │ +
    @Deprecated │ │ │ +public static void detectCharucoDiamond(Mat image, │ │ │ + List<Mat> markerCorners, │ │ │ + Mat markerIds, │ │ │ + float squareMarkerLengthRate, │ │ │ + List<Mat> diamondCorners, │ │ │ + Mat diamondIds)
    │ │ │ +
    Deprecated. │ │ │ +
    Use CharucoDetector::detectDiamonds
    │ │ │ +
    │ │ │ +
    Detect ChArUco Diamond markers
    │ │ │ +
    │ │ │ +
    Parameters:
    │ │ │ +
    image - input image necessary for corner subpixel.
    │ │ │ +
    markerCorners - list of detected marker corners from detectMarkers function.
    │ │ │ +
    markerIds - list of marker ids in markerCorners.
    │ │ │ +
    squareMarkerLengthRate - rate between square and marker length: │ │ │ + squareMarkerLengthRate = squareLength/markerLength. The real units are not necessary.
    │ │ │ +
    diamondCorners - output list of detected diamond corners (4 corners per diamond). The order │ │ │ + is the same than in marker corners: top left, top right, bottom right and bottom left. Similar │ │ │ + format than the corners returned by detectMarkers (e.g std::vector<std::vector<cv::Point2f> > ).
    │ │ │ +
    diamondIds - ids of the diamonds in diamondCorners. The id of each diamond is in fact of │ │ │ + type Vec4i, so each diamond has 4 ids, which are the ids of the aruco markers composing the │ │ │ + diamond. │ │ │ + │ │ │ + This function detects Diamond markers from the previous detected ArUco markers. The diamonds │ │ │ + are returned in the diamondCorners and diamondIds parameters. If camera calibration parameters │ │ │ + are provided, the diamond search is based on reprojection. If not, diamond search is based on │ │ │ + homography. Homography is faster than reprojection, but less accurate.
    │ │ │ +
    │ │ │ +
    │ │ │ +
  • │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ ├── html2text {} │ │ │ │ @@ -684,290 +684,14 @@ │ │ │ │ Deprecated. │ │ │ │ Use CharucoBoard::checkCharucoCornersCollinear │ │ │ │ Parameters: │ │ │ │ board - automatically generated │ │ │ │ charucoIds - automatically generated │ │ │ │ Returns: │ │ │ │ automatically generated │ │ │ │ - o ******** iinntteerrppoollaatteeCCoorrnneerrssCChhaarruuccoo ******** │ │ │ │ - _@_D_e_p_r_e_c_a_t_e_d public static int interpolateCornersCharuco │ │ │ │ - (_L_i_s_t<_M_a_t> markerCorners, _M_a_t markerIds, _M_a_t image, │ │ │ │ - _C_h_a_r_u_c_o_B_o_a_r_d board, _M_a_t charucoCorners, _M_a_t charucoIds, │ │ │ │ - _M_a_t cameraMatrix, _M_a_t distCoeffs, int minMarkers) │ │ │ │ - Deprecated. │ │ │ │ - Use CharucoDetector::detectBoard │ │ │ │ - Interpolate position of ChArUco board corners │ │ │ │ - Parameters: │ │ │ │ - markerCorners - vector of already detected markers corners. │ │ │ │ - For each marker, its four corners are provided, (e.g std:: │ │ │ │ - vector > ). For N detected markers, │ │ │ │ - the dimensions of this array should be Nx4. The order of the │ │ │ │ - corners should be clockwise. │ │ │ │ - markerIds - list of identifiers for each marker in corners │ │ │ │ - image - input image necesary for corner refinement. Note that │ │ │ │ - markers are not detected and should be sent in corners and │ │ │ │ - ids parameters. │ │ │ │ - board - layout of ChArUco board. │ │ │ │ - charucoCorners - interpolated chessboard corners │ │ │ │ - charucoIds - interpolated chessboard corners identifiers │ │ │ │ - cameraMatrix - optional 3x3 floating-point camera matrix \(A │ │ │ │ - = \vecthreethree{f_x}{0}{c_x}{0}{f_y}{c_y}{0}{0}{1}\) │ │ │ │ - distCoeffs - optional vector of distortion coefficients \( │ │ │ │ - (k_1, k_2, p_1, p_2[, k_3[, k_4, k_5, k_6],[s_1, s_2, s_3, │ │ │ │ - s_4]])\) of 4, 5, 8 or 12 elements │ │ │ │ - minMarkers - number of adjacent markers that must be detected │ │ │ │ - to return a charuco corner This function receives the │ │ │ │ - detected markers and returns the 2D position of the │ │ │ │ - chessboard corners from a ChArUco board using the detected │ │ │ │ - Aruco markers. If camera parameters are provided, the process │ │ │ │ - is based in an approximated pose estimation, else it is based │ │ │ │ - on local homography. Only visible corners are returned. For │ │ │ │ - each corner, its corresponding identifier is also returned in │ │ │ │ - charucoIds. The function returns the number of interpolated │ │ │ │ - corners. │ │ │ │ - Returns: │ │ │ │ - automatically generated │ │ │ │ - o ******** iinntteerrppoollaatteeCCoorrnneerrssCChhaarruuccoo ******** │ │ │ │ - _@_D_e_p_r_e_c_a_t_e_d public static int interpolateCornersCharuco │ │ │ │ - (_L_i_s_t<_M_a_t> markerCorners, _M_a_t markerIds, _M_a_t image, │ │ │ │ - _C_h_a_r_u_c_o_B_o_a_r_d board, _M_a_t charucoCorners, _M_a_t charucoIds, │ │ │ │ - _M_a_t cameraMatrix, _M_a_t distCoeffs) │ │ │ │ - Deprecated. │ │ │ │ - Use CharucoDetector::detectBoard │ │ │ │ - Interpolate position of ChArUco board corners │ │ │ │ - Parameters: │ │ │ │ - markerCorners - vector of already detected markers corners. │ │ │ │ - For each marker, its four corners are provided, (e.g std:: │ │ │ │ - vector > ). For N detected markers, │ │ │ │ - the dimensions of this array should be Nx4. The order of the │ │ │ │ - corners should be clockwise. │ │ │ │ - markerIds - list of identifiers for each marker in corners │ │ │ │ - image - input image necesary for corner refinement. Note that │ │ │ │ - markers are not detected and should be sent in corners and │ │ │ │ - ids parameters. │ │ │ │ - board - layout of ChArUco board. │ │ │ │ - charucoCorners - interpolated chessboard corners │ │ │ │ - charucoIds - interpolated chessboard corners identifiers │ │ │ │ - cameraMatrix - optional 3x3 floating-point camera matrix \(A │ │ │ │ - = \vecthreethree{f_x}{0}{c_x}{0}{f_y}{c_y}{0}{0}{1}\) │ │ │ │ - distCoeffs - optional vector of distortion coefficients \( │ │ │ │ - (k_1, k_2, p_1, p_2[, k_3[, k_4, k_5, k_6],[s_1, s_2, s_3, │ │ │ │ - s_4]])\) of 4, 5, 8 or 12 elements This function receives the │ │ │ │ - detected markers and returns the 2D position of the │ │ │ │ - chessboard corners from a ChArUco board using the detected │ │ │ │ - Aruco markers. If camera parameters are provided, the process │ │ │ │ - is based in an approximated pose estimation, else it is based │ │ │ │ - on local homography. Only visible corners are returned. For │ │ │ │ - each corner, its corresponding identifier is also returned in │ │ │ │ - charucoIds. The function returns the number of interpolated │ │ │ │ - corners. │ │ │ │ - Returns: │ │ │ │ - automatically generated │ │ │ │ - o ******** iinntteerrppoollaatteeCCoorrnneerrssCChhaarruuccoo ******** │ │ │ │ - _@_D_e_p_r_e_c_a_t_e_d public static int interpolateCornersCharuco │ │ │ │ - (_L_i_s_t<_M_a_t> markerCorners, _M_a_t markerIds, _M_a_t image, │ │ │ │ - _C_h_a_r_u_c_o_B_o_a_r_d board, _M_a_t charucoCorners, _M_a_t charucoIds, │ │ │ │ - _M_a_t cameraMatrix) │ │ │ │ - Deprecated. │ │ │ │ - Use CharucoDetector::detectBoard │ │ │ │ - Interpolate position of ChArUco board corners │ │ │ │ - Parameters: │ │ │ │ - markerCorners - vector of already detected markers corners. │ │ │ │ - For each marker, its four corners are provided, (e.g std:: │ │ │ │ - vector > ). For N detected markers, │ │ │ │ - the dimensions of this array should be Nx4. The order of the │ │ │ │ - corners should be clockwise. │ │ │ │ - markerIds - list of identifiers for each marker in corners │ │ │ │ - image - input image necesary for corner refinement. Note that │ │ │ │ - markers are not detected and should be sent in corners and │ │ │ │ - ids parameters. │ │ │ │ - board - layout of ChArUco board. │ │ │ │ - charucoCorners - interpolated chessboard corners │ │ │ │ - charucoIds - interpolated chessboard corners identifiers │ │ │ │ - cameraMatrix - optional 3x3 floating-point camera matrix \(A │ │ │ │ - = \vecthreethree{f_x}{0}{c_x}{0}{f_y}{c_y}{0}{0}{1}\) \((k_1, │ │ │ │ - k_2, p_1, p_2[, k_3[, k_4, k_5, k_6],[s_1, s_2, s_3, s_4]])\) │ │ │ │ - of 4, 5, 8 or 12 elements This function receives the detected │ │ │ │ - markers and returns the 2D position of the chessboard corners │ │ │ │ - from a ChArUco board using the detected Aruco markers. If │ │ │ │ - camera parameters are provided, the process is based in an │ │ │ │ - approximated pose estimation, else it is based on local │ │ │ │ - homography. Only visible corners are returned. For each │ │ │ │ - corner, its corresponding identifier is also returned in │ │ │ │ - charucoIds. The function returns the number of interpolated │ │ │ │ - corners. │ │ │ │ - Returns: │ │ │ │ - automatically generated │ │ │ │ - o ******** iinntteerrppoollaatteeCCoorrnneerrssCChhaarruuccoo ******** │ │ │ │ - _@_D_e_p_r_e_c_a_t_e_d public static int interpolateCornersCharuco │ │ │ │ - (_L_i_s_t<_M_a_t> markerCorners, _M_a_t markerIds, _M_a_t image, │ │ │ │ - _C_h_a_r_u_c_o_B_o_a_r_d board, _M_a_t charucoCorners, _M_a_t charucoIds) │ │ │ │ - Deprecated. │ │ │ │ - Use CharucoDetector::detectBoard │ │ │ │ - Interpolate position of ChArUco board corners │ │ │ │ - Parameters: │ │ │ │ - markerCorners - vector of already detected markers corners. │ │ │ │ - For each marker, its four corners are provided, (e.g std:: │ │ │ │ - vector > ). For N detected markers, │ │ │ │ - the dimensions of this array should be Nx4. The order of the │ │ │ │ - corners should be clockwise. │ │ │ │ - markerIds - list of identifiers for each marker in corners │ │ │ │ - image - input image necesary for corner refinement. Note that │ │ │ │ - markers are not detected and should be sent in corners and │ │ │ │ - ids parameters. │ │ │ │ - board - layout of ChArUco board. │ │ │ │ - charucoCorners - interpolated chessboard corners │ │ │ │ - charucoIds - interpolated chessboard corners identifiers \(A │ │ │ │ - = \vecthreethree{f_x}{0}{c_x}{0}{f_y}{c_y}{0}{0}{1}\) \((k_1, │ │ │ │ - k_2, p_1, p_2[, k_3[, k_4, k_5, k_6],[s_1, s_2, s_3, s_4]])\) │ │ │ │ - of 4, 5, 8 or 12 elements This function receives the detected │ │ │ │ - markers and returns the 2D position of the chessboard corners │ │ │ │ - from a ChArUco board using the detected Aruco markers. If │ │ │ │ - camera parameters are provided, the process is based in an │ │ │ │ - approximated pose estimation, else it is based on local │ │ │ │ - homography. Only visible corners are returned. For each │ │ │ │ - corner, its corresponding identifier is also returned in │ │ │ │ - charucoIds. The function returns the number of interpolated │ │ │ │ - corners. │ │ │ │ - Returns: │ │ │ │ - automatically generated │ │ │ │ - o ******** ddeetteeccttCChhaarruuccooDDiiaammoonndd ******** │ │ │ │ - _@_D_e_p_r_e_c_a_t_e_d public static void detectCharucoDiamond(_M_a_t image, │ │ │ │ - _L_i_s_t<_M_a_t> markerCorners, _M_a_t markerIds, │ │ │ │ - float squareMarkerLengthRate, _L_i_s_t<_M_a_t> diamondCorners, │ │ │ │ - _M_a_t diamondIds, _M_a_t cameraMatrix, _M_a_t distCoeffs, │ │ │ │ - _D_i_c_t_i_o_n_a_r_y dictionary) │ │ │ │ - Deprecated. │ │ │ │ - Use CharucoDetector::detectDiamonds │ │ │ │ - Detect ChArUco Diamond markers │ │ │ │ - Parameters: │ │ │ │ - image - input image necessary for corner subpixel. │ │ │ │ - markerCorners - list of detected marker corners from │ │ │ │ - detectMarkers function. │ │ │ │ - markerIds - list of marker ids in markerCorners. │ │ │ │ - squareMarkerLengthRate - rate between square and marker │ │ │ │ - length: squareMarkerLengthRate = squareLength/markerLength. │ │ │ │ - The real units are not necessary. │ │ │ │ - diamondCorners - output list of detected diamond corners (4 │ │ │ │ - corners per diamond). The order is the same than in marker │ │ │ │ - corners: top left, top right, bottom right and bottom left. │ │ │ │ - Similar format than the corners returned by detectMarkers │ │ │ │ - (e.g std::vector > ). │ │ │ │ - diamondIds - ids of the diamonds in diamondCorners. The id of │ │ │ │ - each diamond is in fact of type Vec4i, so each diamond has 4 │ │ │ │ - ids, which are the ids of the aruco markers composing the │ │ │ │ - diamond. │ │ │ │ - cameraMatrix - Optional camera calibration matrix. │ │ │ │ - distCoeffs - Optional camera distortion coefficients. │ │ │ │ - dictionary - dictionary of markers indicating the type of │ │ │ │ - markers. This function detects Diamond markers from the │ │ │ │ - previous detected ArUco markers. The diamonds are returned in │ │ │ │ - the diamondCorners and diamondIds parameters. If camera │ │ │ │ - calibration parameters are provided, the diamond search is │ │ │ │ - based on reprojection. If not, diamond search is based on │ │ │ │ - homography. Homography is faster than reprojection, but less │ │ │ │ - accurate. │ │ │ │ - o ******** ddeetteeccttCChhaarruuccooDDiiaammoonndd ******** │ │ │ │ - _@_D_e_p_r_e_c_a_t_e_d public static void detectCharucoDiamond(_M_a_t image, │ │ │ │ - _L_i_s_t<_M_a_t> markerCorners, _M_a_t markerIds, │ │ │ │ - float squareMarkerLengthRate, _L_i_s_t<_M_a_t> diamondCorners, │ │ │ │ - _M_a_t diamondIds, _M_a_t cameraMatrix, _M_a_t distCoeffs) │ │ │ │ - Deprecated. │ │ │ │ - Use CharucoDetector::detectDiamonds │ │ │ │ - Detect ChArUco Diamond markers │ │ │ │ - Parameters: │ │ │ │ - image - input image necessary for corner subpixel. │ │ │ │ - markerCorners - list of detected marker corners from │ │ │ │ - detectMarkers function. │ │ │ │ - markerIds - list of marker ids in markerCorners. │ │ │ │ - squareMarkerLengthRate - rate between square and marker │ │ │ │ - length: squareMarkerLengthRate = squareLength/markerLength. │ │ │ │ - The real units are not necessary. │ │ │ │ - diamondCorners - output list of detected diamond corners (4 │ │ │ │ - corners per diamond). The order is the same than in marker │ │ │ │ - corners: top left, top right, bottom right and bottom left. │ │ │ │ - Similar format than the corners returned by detectMarkers │ │ │ │ - (e.g std::vector > ). │ │ │ │ - diamondIds - ids of the diamonds in diamondCorners. The id of │ │ │ │ - each diamond is in fact of type Vec4i, so each diamond has 4 │ │ │ │ - ids, which are the ids of the aruco markers composing the │ │ │ │ - diamond. │ │ │ │ - cameraMatrix - Optional camera calibration matrix. │ │ │ │ - distCoeffs - Optional camera distortion coefficients. This │ │ │ │ - function detects Diamond markers from the previous detected │ │ │ │ - ArUco markers. The diamonds are returned in the │ │ │ │ - diamondCorners and diamondIds parameters. If camera │ │ │ │ - calibration parameters are provided, the diamond search is │ │ │ │ - based on reprojection. If not, diamond search is based on │ │ │ │ - homography. Homography is faster than reprojection, but less │ │ │ │ - accurate. │ │ │ │ - o ******** ddeetteeccttCChhaarruuccooDDiiaammoonndd ******** │ │ │ │ - _@_D_e_p_r_e_c_a_t_e_d public static void detectCharucoDiamond(_M_a_t image, │ │ │ │ - _L_i_s_t<_M_a_t> markerCorners, _M_a_t markerIds, │ │ │ │ - float squareMarkerLengthRate, _L_i_s_t<_M_a_t> diamondCorners, │ │ │ │ - _M_a_t diamondIds, _M_a_t cameraMatrix) │ │ │ │ - Deprecated. │ │ │ │ - Use CharucoDetector::detectDiamonds │ │ │ │ - Detect ChArUco Diamond markers │ │ │ │ - Parameters: │ │ │ │ - image - input image necessary for corner subpixel. │ │ │ │ - markerCorners - list of detected marker corners from │ │ │ │ - detectMarkers function. │ │ │ │ - markerIds - list of marker ids in markerCorners. │ │ │ │ - squareMarkerLengthRate - rate between square and marker │ │ │ │ - length: squareMarkerLengthRate = squareLength/markerLength. │ │ │ │ - The real units are not necessary. │ │ │ │ - diamondCorners - output list of detected diamond corners (4 │ │ │ │ - corners per diamond). The order is the same than in marker │ │ │ │ - corners: top left, top right, bottom right and bottom left. │ │ │ │ - Similar format than the corners returned by detectMarkers │ │ │ │ - (e.g std::vector > ). │ │ │ │ - diamondIds - ids of the diamonds in diamondCorners. The id of │ │ │ │ - each diamond is in fact of type Vec4i, so each diamond has 4 │ │ │ │ - ids, which are the ids of the aruco markers composing the │ │ │ │ - diamond. │ │ │ │ - cameraMatrix - Optional camera calibration matrix. This │ │ │ │ - function detects Diamond markers from the previous detected │ │ │ │ - ArUco markers. The diamonds are returned in the │ │ │ │ - diamondCorners and diamondIds parameters. If camera │ │ │ │ - calibration parameters are provided, the diamond search is │ │ │ │ - based on reprojection. If not, diamond search is based on │ │ │ │ - homography. Homography is faster than reprojection, but less │ │ │ │ - accurate. │ │ │ │ - o ******** ddeetteeccttCChhaarruuccooDDiiaammoonndd ******** │ │ │ │ - _@_D_e_p_r_e_c_a_t_e_d public static void detectCharucoDiamond(_M_a_t image, │ │ │ │ - _L_i_s_t<_M_a_t> markerCorners, _M_a_t markerIds, │ │ │ │ - float squareMarkerLengthRate, _L_i_s_t<_M_a_t> diamondCorners, │ │ │ │ - _M_a_t diamondIds) │ │ │ │ - Deprecated. │ │ │ │ - Use CharucoDetector::detectDiamonds │ │ │ │ - Detect ChArUco Diamond markers │ │ │ │ - Parameters: │ │ │ │ - image - input image necessary for corner subpixel. │ │ │ │ - markerCorners - list of detected marker corners from │ │ │ │ - detectMarkers function. │ │ │ │ - markerIds - list of marker ids in markerCorners. │ │ │ │ - squareMarkerLengthRate - rate between square and marker │ │ │ │ - length: squareMarkerLengthRate = squareLength/markerLength. │ │ │ │ - The real units are not necessary. │ │ │ │ - diamondCorners - output list of detected diamond corners (4 │ │ │ │ - corners per diamond). The order is the same than in marker │ │ │ │ - corners: top left, top right, bottom right and bottom left. │ │ │ │ - Similar format than the corners returned by detectMarkers │ │ │ │ - (e.g std::vector > ). │ │ │ │ - diamondIds - ids of the diamonds in diamondCorners. The id of │ │ │ │ - each diamond is in fact of type Vec4i, so each diamond has 4 │ │ │ │ - ids, which are the ids of the aruco markers composing the │ │ │ │ - diamond. This function detects Diamond markers from the │ │ │ │ - previous detected ArUco markers. The diamonds are returned in │ │ │ │ - the diamondCorners and diamondIds parameters. If camera │ │ │ │ - calibration parameters are provided, the diamond search is │ │ │ │ - based on reprojection. If not, diamond search is based on │ │ │ │ - homography. Homography is faster than reprojection, but less │ │ │ │ - accurate. │ │ │ │ o ******** ccaalliibbrraatteeCCaammeerraaAArruuccooEExxtteennddeedd ******** │ │ │ │ _@_D_e_p_r_e_c_a_t_e_d public static double calibrateCameraArucoExtended │ │ │ │ (_L_i_s_t<_M_a_t> corners, _M_a_t ids, _M_a_t counter, _B_o_a_r_d board, │ │ │ │ _S_i_z_e imageSize, _M_a_t cameraMatrix, _M_a_t distCoeffs, _L_i_s_t<_M_a_t> rvecs, │ │ │ │ _L_i_s_t<_M_a_t> tvecs, _M_a_t stdDeviationsIntrinsics, │ │ │ │ _M_a_t stdDeviationsExtrinsics, _M_a_t perViewErrors, int flags, │ │ │ │ _T_e_r_m_C_r_i_t_e_r_i_a criteria) │ │ │ │ @@ -1505,8 +1229,284 @@ │ │ │ │ charucoIds - automatically generated │ │ │ │ board - automatically generated │ │ │ │ imageSize - automatically generated │ │ │ │ cameraMatrix - automatically generated │ │ │ │ distCoeffs - automatically generated │ │ │ │ Returns: │ │ │ │ automatically generated │ │ │ │ + o ******** iinntteerrppoollaatteeCCoorrnneerrssCChhaarruuccoo ******** │ │ │ │ + _@_D_e_p_r_e_c_a_t_e_d public static int interpolateCornersCharuco │ │ │ │ + (_L_i_s_t<_M_a_t> markerCorners, _M_a_t markerIds, _M_a_t image, │ │ │ │ + _C_h_a_r_u_c_o_B_o_a_r_d board, _M_a_t charucoCorners, _M_a_t charucoIds, │ │ │ │ + _M_a_t cameraMatrix, _M_a_t distCoeffs, int minMarkers) │ │ │ │ + Deprecated. │ │ │ │ + Use CharucoDetector::detectBoard │ │ │ │ + Interpolate position of ChArUco board corners │ │ │ │ + Parameters: │ │ │ │ + markerCorners - vector of already detected markers corners. │ │ │ │ + For each marker, its four corners are provided, (e.g std:: │ │ │ │ + vector > ). For N detected markers, │ │ │ │ + the dimensions of this array should be Nx4. The order of the │ │ │ │ + corners should be clockwise. │ │ │ │ + markerIds - list of identifiers for each marker in corners │ │ │ │ + image - input image necesary for corner refinement. Note that │ │ │ │ + markers are not detected and should be sent in corners and │ │ │ │ + ids parameters. │ │ │ │ + board - layout of ChArUco board. │ │ │ │ + charucoCorners - interpolated chessboard corners │ │ │ │ + charucoIds - interpolated chessboard corners identifiers │ │ │ │ + cameraMatrix - optional 3x3 floating-point camera matrix \(A │ │ │ │ + = \vecthreethree{f_x}{0}{c_x}{0}{f_y}{c_y}{0}{0}{1}\) │ │ │ │ + distCoeffs - optional vector of distortion coefficients \( │ │ │ │ + (k_1, k_2, p_1, p_2[, k_3[, k_4, k_5, k_6],[s_1, s_2, s_3, │ │ │ │ + s_4]])\) of 4, 5, 8 or 12 elements │ │ │ │ + minMarkers - number of adjacent markers that must be detected │ │ │ │ + to return a charuco corner This function receives the │ │ │ │ + detected markers and returns the 2D position of the │ │ │ │ + chessboard corners from a ChArUco board using the detected │ │ │ │ + Aruco markers. If camera parameters are provided, the process │ │ │ │ + is based in an approximated pose estimation, else it is based │ │ │ │ + on local homography. Only visible corners are returned. For │ │ │ │ + each corner, its corresponding identifier is also returned in │ │ │ │ + charucoIds. The function returns the number of interpolated │ │ │ │ + corners. │ │ │ │ + Returns: │ │ │ │ + automatically generated │ │ │ │ + o ******** iinntteerrppoollaatteeCCoorrnneerrssCChhaarruuccoo ******** │ │ │ │ + _@_D_e_p_r_e_c_a_t_e_d public static int interpolateCornersCharuco │ │ │ │ + (_L_i_s_t<_M_a_t> markerCorners, _M_a_t markerIds, _M_a_t image, │ │ │ │ + _C_h_a_r_u_c_o_B_o_a_r_d board, _M_a_t charucoCorners, _M_a_t charucoIds, │ │ │ │ + _M_a_t cameraMatrix, _M_a_t distCoeffs) │ │ │ │ + Deprecated. │ │ │ │ + Use CharucoDetector::detectBoard │ │ │ │ + Interpolate position of ChArUco board corners │ │ │ │ + Parameters: │ │ │ │ + markerCorners - vector of already detected markers corners. │ │ │ │ + For each marker, its four corners are provided, (e.g std:: │ │ │ │ + vector > ). For N detected markers, │ │ │ │ + the dimensions of this array should be Nx4. The order of the │ │ │ │ + corners should be clockwise. │ │ │ │ + markerIds - list of identifiers for each marker in corners │ │ │ │ + image - input image necesary for corner refinement. Note that │ │ │ │ + markers are not detected and should be sent in corners and │ │ │ │ + ids parameters. │ │ │ │ + board - layout of ChArUco board. │ │ │ │ + charucoCorners - interpolated chessboard corners │ │ │ │ + charucoIds - interpolated chessboard corners identifiers │ │ │ │ + cameraMatrix - optional 3x3 floating-point camera matrix \(A │ │ │ │ + = \vecthreethree{f_x}{0}{c_x}{0}{f_y}{c_y}{0}{0}{1}\) │ │ │ │ + distCoeffs - optional vector of distortion coefficients \( │ │ │ │ + (k_1, k_2, p_1, p_2[, k_3[, k_4, k_5, k_6],[s_1, s_2, s_3, │ │ │ │ + s_4]])\) of 4, 5, 8 or 12 elements This function receives the │ │ │ │ + detected markers and returns the 2D position of the │ │ │ │ + chessboard corners from a ChArUco board using the detected │ │ │ │ + Aruco markers. If camera parameters are provided, the process │ │ │ │ + is based in an approximated pose estimation, else it is based │ │ │ │ + on local homography. Only visible corners are returned. For │ │ │ │ + each corner, its corresponding identifier is also returned in │ │ │ │ + charucoIds. The function returns the number of interpolated │ │ │ │ + corners. │ │ │ │ + Returns: │ │ │ │ + automatically generated │ │ │ │ + o ******** iinntteerrppoollaatteeCCoorrnneerrssCChhaarruuccoo ******** │ │ │ │ + _@_D_e_p_r_e_c_a_t_e_d public static int interpolateCornersCharuco │ │ │ │ + (_L_i_s_t<_M_a_t> markerCorners, _M_a_t markerIds, _M_a_t image, │ │ │ │ + _C_h_a_r_u_c_o_B_o_a_r_d board, _M_a_t charucoCorners, _M_a_t charucoIds, │ │ │ │ + _M_a_t cameraMatrix) │ │ │ │ + Deprecated. │ │ │ │ + Use CharucoDetector::detectBoard │ │ │ │ + Interpolate position of ChArUco board corners │ │ │ │ + Parameters: │ │ │ │ + markerCorners - vector of already detected markers corners. │ │ │ │ + For each marker, its four corners are provided, (e.g std:: │ │ │ │ + vector > ). For N detected markers, │ │ │ │ + the dimensions of this array should be Nx4. The order of the │ │ │ │ + corners should be clockwise. │ │ │ │ + markerIds - list of identifiers for each marker in corners │ │ │ │ + image - input image necesary for corner refinement. Note that │ │ │ │ + markers are not detected and should be sent in corners and │ │ │ │ + ids parameters. │ │ │ │ + board - layout of ChArUco board. │ │ │ │ + charucoCorners - interpolated chessboard corners │ │ │ │ + charucoIds - interpolated chessboard corners identifiers │ │ │ │ + cameraMatrix - optional 3x3 floating-point camera matrix \(A │ │ │ │ + = \vecthreethree{f_x}{0}{c_x}{0}{f_y}{c_y}{0}{0}{1}\) \((k_1, │ │ │ │ + k_2, p_1, p_2[, k_3[, k_4, k_5, k_6],[s_1, s_2, s_3, s_4]])\) │ │ │ │ + of 4, 5, 8 or 12 elements This function receives the detected │ │ │ │ + markers and returns the 2D position of the chessboard corners │ │ │ │ + from a ChArUco board using the detected Aruco markers. If │ │ │ │ + camera parameters are provided, the process is based in an │ │ │ │ + approximated pose estimation, else it is based on local │ │ │ │ + homography. Only visible corners are returned. For each │ │ │ │ + corner, its corresponding identifier is also returned in │ │ │ │ + charucoIds. The function returns the number of interpolated │ │ │ │ + corners. │ │ │ │ + Returns: │ │ │ │ + automatically generated │ │ │ │ + o ******** iinntteerrppoollaatteeCCoorrnneerrssCChhaarruuccoo ******** │ │ │ │ + _@_D_e_p_r_e_c_a_t_e_d public static int interpolateCornersCharuco │ │ │ │ + (_L_i_s_t<_M_a_t> markerCorners, _M_a_t markerIds, _M_a_t image, │ │ │ │ + _C_h_a_r_u_c_o_B_o_a_r_d board, _M_a_t charucoCorners, _M_a_t charucoIds) │ │ │ │ + Deprecated. │ │ │ │ + Use CharucoDetector::detectBoard │ │ │ │ + Interpolate position of ChArUco board corners │ │ │ │ + Parameters: │ │ │ │ + markerCorners - vector of already detected markers corners. │ │ │ │ + For each marker, its four corners are provided, (e.g std:: │ │ │ │ + vector > ). For N detected markers, │ │ │ │ + the dimensions of this array should be Nx4. The order of the │ │ │ │ + corners should be clockwise. │ │ │ │ + markerIds - list of identifiers for each marker in corners │ │ │ │ + image - input image necesary for corner refinement. Note that │ │ │ │ + markers are not detected and should be sent in corners and │ │ │ │ + ids parameters. │ │ │ │ + board - layout of ChArUco board. │ │ │ │ + charucoCorners - interpolated chessboard corners │ │ │ │ + charucoIds - interpolated chessboard corners identifiers \(A │ │ │ │ + = \vecthreethree{f_x}{0}{c_x}{0}{f_y}{c_y}{0}{0}{1}\) \((k_1, │ │ │ │ + k_2, p_1, p_2[, k_3[, k_4, k_5, k_6],[s_1, s_2, s_3, s_4]])\) │ │ │ │ + of 4, 5, 8 or 12 elements This function receives the detected │ │ │ │ + markers and returns the 2D position of the chessboard corners │ │ │ │ + from a ChArUco board using the detected Aruco markers. If │ │ │ │ + camera parameters are provided, the process is based in an │ │ │ │ + approximated pose estimation, else it is based on local │ │ │ │ + homography. Only visible corners are returned. For each │ │ │ │ + corner, its corresponding identifier is also returned in │ │ │ │ + charucoIds. The function returns the number of interpolated │ │ │ │ + corners. │ │ │ │ + Returns: │ │ │ │ + automatically generated │ │ │ │ + o ******** ddeetteeccttCChhaarruuccooDDiiaammoonndd ******** │ │ │ │ + _@_D_e_p_r_e_c_a_t_e_d public static void detectCharucoDiamond(_M_a_t image, │ │ │ │ + _L_i_s_t<_M_a_t> markerCorners, _M_a_t markerIds, │ │ │ │ + float squareMarkerLengthRate, _L_i_s_t<_M_a_t> diamondCorners, │ │ │ │ + _M_a_t diamondIds, _M_a_t cameraMatrix, _M_a_t distCoeffs, │ │ │ │ + _D_i_c_t_i_o_n_a_r_y dictionary) │ │ │ │ + Deprecated. │ │ │ │ + Use CharucoDetector::detectDiamonds │ │ │ │ + Detect ChArUco Diamond markers │ │ │ │ + Parameters: │ │ │ │ + image - input image necessary for corner subpixel. │ │ │ │ + markerCorners - list of detected marker corners from │ │ │ │ + detectMarkers function. │ │ │ │ + markerIds - list of marker ids in markerCorners. │ │ │ │ + squareMarkerLengthRate - rate between square and marker │ │ │ │ + length: squareMarkerLengthRate = squareLength/markerLength. │ │ │ │ + The real units are not necessary. │ │ │ │ + diamondCorners - output list of detected diamond corners (4 │ │ │ │ + corners per diamond). The order is the same than in marker │ │ │ │ + corners: top left, top right, bottom right and bottom left. │ │ │ │ + Similar format than the corners returned by detectMarkers │ │ │ │ + (e.g std::vector > ). │ │ │ │ + diamondIds - ids of the diamonds in diamondCorners. The id of │ │ │ │ + each diamond is in fact of type Vec4i, so each diamond has 4 │ │ │ │ + ids, which are the ids of the aruco markers composing the │ │ │ │ + diamond. │ │ │ │ + cameraMatrix - Optional camera calibration matrix. │ │ │ │ + distCoeffs - Optional camera distortion coefficients. │ │ │ │ + dictionary - dictionary of markers indicating the type of │ │ │ │ + markers. This function detects Diamond markers from the │ │ │ │ + previous detected ArUco markers. The diamonds are returned in │ │ │ │ + the diamondCorners and diamondIds parameters. If camera │ │ │ │ + calibration parameters are provided, the diamond search is │ │ │ │ + based on reprojection. If not, diamond search is based on │ │ │ │ + homography. Homography is faster than reprojection, but less │ │ │ │ + accurate. │ │ │ │ + o ******** ddeetteeccttCChhaarruuccooDDiiaammoonndd ******** │ │ │ │ + _@_D_e_p_r_e_c_a_t_e_d public static void detectCharucoDiamond(_M_a_t image, │ │ │ │ + _L_i_s_t<_M_a_t> markerCorners, _M_a_t markerIds, │ │ │ │ + float squareMarkerLengthRate, _L_i_s_t<_M_a_t> diamondCorners, │ │ │ │ + _M_a_t diamondIds, _M_a_t cameraMatrix, _M_a_t distCoeffs) │ │ │ │ + Deprecated. │ │ │ │ + Use CharucoDetector::detectDiamonds │ │ │ │ + Detect ChArUco Diamond markers │ │ │ │ + Parameters: │ │ │ │ + image - input image necessary for corner subpixel. │ │ │ │ + markerCorners - list of detected marker corners from │ │ │ │ + detectMarkers function. │ │ │ │ + markerIds - list of marker ids in markerCorners. │ │ │ │ + squareMarkerLengthRate - rate between square and marker │ │ │ │ + length: squareMarkerLengthRate = squareLength/markerLength. │ │ │ │ + The real units are not necessary. │ │ │ │ + diamondCorners - output list of detected diamond corners (4 │ │ │ │ + corners per diamond). The order is the same than in marker │ │ │ │ + corners: top left, top right, bottom right and bottom left. │ │ │ │ + Similar format than the corners returned by detectMarkers │ │ │ │ + (e.g std::vector > ). │ │ │ │ + diamondIds - ids of the diamonds in diamondCorners. The id of │ │ │ │ + each diamond is in fact of type Vec4i, so each diamond has 4 │ │ │ │ + ids, which are the ids of the aruco markers composing the │ │ │ │ + diamond. │ │ │ │ + cameraMatrix - Optional camera calibration matrix. │ │ │ │ + distCoeffs - Optional camera distortion coefficients. This │ │ │ │ + function detects Diamond markers from the previous detected │ │ │ │ + ArUco markers. The diamonds are returned in the │ │ │ │ + diamondCorners and diamondIds parameters. If camera │ │ │ │ + calibration parameters are provided, the diamond search is │ │ │ │ + based on reprojection. If not, diamond search is based on │ │ │ │ + homography. Homography is faster than reprojection, but less │ │ │ │ + accurate. │ │ │ │ + o ******** ddeetteeccttCChhaarruuccooDDiiaammoonndd ******** │ │ │ │ + _@_D_e_p_r_e_c_a_t_e_d public static void detectCharucoDiamond(_M_a_t image, │ │ │ │ + _L_i_s_t<_M_a_t> markerCorners, _M_a_t markerIds, │ │ │ │ + float squareMarkerLengthRate, _L_i_s_t<_M_a_t> diamondCorners, │ │ │ │ + _M_a_t diamondIds, _M_a_t cameraMatrix) │ │ │ │ + Deprecated. │ │ │ │ + Use CharucoDetector::detectDiamonds │ │ │ │ + Detect ChArUco Diamond markers │ │ │ │ + Parameters: │ │ │ │ + image - input image necessary for corner subpixel. │ │ │ │ + markerCorners - list of detected marker corners from │ │ │ │ + detectMarkers function. │ │ │ │ + markerIds - list of marker ids in markerCorners. │ │ │ │ + squareMarkerLengthRate - rate between square and marker │ │ │ │ + length: squareMarkerLengthRate = squareLength/markerLength. │ │ │ │ + The real units are not necessary. │ │ │ │ + diamondCorners - output list of detected diamond corners (4 │ │ │ │ + corners per diamond). The order is the same than in marker │ │ │ │ + corners: top left, top right, bottom right and bottom left. │ │ │ │ + Similar format than the corners returned by detectMarkers │ │ │ │ + (e.g std::vector > ). │ │ │ │ + diamondIds - ids of the diamonds in diamondCorners. The id of │ │ │ │ + each diamond is in fact of type Vec4i, so each diamond has 4 │ │ │ │ + ids, which are the ids of the aruco markers composing the │ │ │ │ + diamond. │ │ │ │ + cameraMatrix - Optional camera calibration matrix. This │ │ │ │ + function detects Diamond markers from the previous detected │ │ │ │ + ArUco markers. The diamonds are returned in the │ │ │ │ + diamondCorners and diamondIds parameters. If camera │ │ │ │ + calibration parameters are provided, the diamond search is │ │ │ │ + based on reprojection. If not, diamond search is based on │ │ │ │ + homography. Homography is faster than reprojection, but less │ │ │ │ + accurate. │ │ │ │ + o ******** ddeetteeccttCChhaarruuccooDDiiaammoonndd ******** │ │ │ │ + _@_D_e_p_r_e_c_a_t_e_d public static void detectCharucoDiamond(_M_a_t image, │ │ │ │ + _L_i_s_t<_M_a_t> markerCorners, _M_a_t markerIds, │ │ │ │ + float squareMarkerLengthRate, _L_i_s_t<_M_a_t> diamondCorners, │ │ │ │ + _M_a_t diamondIds) │ │ │ │ + Deprecated. │ │ │ │ + Use CharucoDetector::detectDiamonds │ │ │ │ + Detect ChArUco Diamond markers │ │ │ │ + Parameters: │ │ │ │ + image - input image necessary for corner subpixel. │ │ │ │ + markerCorners - list of detected marker corners from │ │ │ │ + detectMarkers function. │ │ │ │ + markerIds - list of marker ids in markerCorners. │ │ │ │ + squareMarkerLengthRate - rate between square and marker │ │ │ │ + length: squareMarkerLengthRate = squareLength/markerLength. │ │ │ │ + The real units are not necessary. │ │ │ │ + diamondCorners - output list of detected diamond corners (4 │ │ │ │ + corners per diamond). The order is the same than in marker │ │ │ │ + corners: top left, top right, bottom right and bottom left. │ │ │ │ + Similar format than the corners returned by detectMarkers │ │ │ │ + (e.g std::vector > ). │ │ │ │ + diamondIds - ids of the diamonds in diamondCorners. The id of │ │ │ │ + each diamond is in fact of type Vec4i, so each diamond has 4 │ │ │ │ + ids, which are the ids of the aruco markers composing the │ │ │ │ + diamond. This function detects Diamond markers from the │ │ │ │ + previous detected ArUco markers. The diamonds are returned in │ │ │ │ + the diamondCorners and diamondIds parameters. If camera │ │ │ │ + calibration parameters are provided, the diamond search is │ │ │ │ + based on reprojection. If not, diamond search is based on │ │ │ │ + homography. Homography is faster than reprojection, but less │ │ │ │ + accurate. │ │ │ │ =============================================================================== │ │ ├── ./usr/share/doc/opencv-doc/opencv4/html/javadoc/org/opencv/face/Face.html │ │ │┄ Ordering differences only │ │ │ @@ -246,14 +246,32 @@ │ │ │ │ │ │ │ │ │
  • │ │ │
    │ │ │

    Method Details

    │ │ │
      │ │ │
    • │ │ │ +
      │ │ │ +

      createFacemarkAAM

      │ │ │ +
      public static Facemark createFacemarkAAM()
      │ │ │ +
      │ │ │ +
    • │ │ │ +
    • │ │ │ +
      │ │ │ +

      createFacemarkLBF

      │ │ │ +
      public static Facemark createFacemarkLBF()
      │ │ │ +
      │ │ │ +
    • │ │ │ +
    • │ │ │ +
      │ │ │ +

      createFacemarkKazemi

      │ │ │ +
      public static Facemark createFacemarkKazemi()
      │ │ │ +
      │ │ │ +
    • │ │ │ +
    • │ │ │
      │ │ │

      getFacesHAAR

      │ │ │
      public static boolean getFacesHAAR(Mat image, │ │ │ Mat faces, │ │ │ String face_cascade_name)
      │ │ │
      Default face detector │ │ │ This function is mainly utilized by the implementation of a Facemark Algorithm. │ │ │ @@ -655,32 +673,14 @@ │ │ │ for(int j=0;j<rects.size();j++){ │ │ │ face::drawFacemarks(frame, landmarks[j], Scalar(0,0,255)); │ │ │ } │ │ │ │ │ │ │ │ │
      │ │ │
    • │ │ │ -
    • │ │ │ -
      │ │ │ -

      createFacemarkAAM

      │ │ │ -
      public static Facemark createFacemarkAAM()
      │ │ │ -
      │ │ │ -
    • │ │ │ -
    • │ │ │ -
      │ │ │ -

      createFacemarkLBF

      │ │ │ -
      public static Facemark createFacemarkLBF()
      │ │ │ -
      │ │ │ -
    • │ │ │ -
    • │ │ │ -
      │ │ │ -

      createFacemarkKazemi

      │ │ │ -
      public static Facemark createFacemarkKazemi()
      │ │ │ -
      │ │ │ -
    • │ │ │
    │ │ │
    │ │ │
  • │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ ├── html2text {} │ │ │ │ @@ -100,14 +100,20 @@ │ │ │ │ ******** MMeetthhooddss iinnhheerriitteedd ffrroomm ccllaassss? jjaavvaa..llaanngg.._OO_bb_jj_ee_cc_tt ******** │ │ │ │ _c_l_o_n_e, _e_q_u_a_l_s, _f_i_n_a_l_i_z_e, _g_e_t_C_l_a_s_s, _h_a_s_h_C_o_d_e, _n_o_t_i_f_y, _n_o_t_i_f_y_A_l_l, _t_o_S_t_r_i_n_g, │ │ │ │ _w_a_i_t, _w_a_i_t, _w_a_i_t │ │ │ │ * ********** CCoonnssttrruuccttoorr DDeettaaiillss ********** │ │ │ │ o ******** FFaaccee ******** │ │ │ │ public Face() │ │ │ │ * ********** MMeetthhoodd DDeettaaiillss ********** │ │ │ │ + o ******** ccrreeaatteeFFaacceemmaarrkkAAAAMM ******** │ │ │ │ + public static _F_a_c_e_m_a_r_k createFacemarkAAM() │ │ │ │ + o ******** ccrreeaatteeFFaacceemmaarrkkLLBBFF ******** │ │ │ │ + public static _F_a_c_e_m_a_r_k createFacemarkLBF() │ │ │ │ + o ******** ccrreeaatteeFFaacceemmaarrkkKKaazzeemmii ******** │ │ │ │ + public static _F_a_c_e_m_a_r_k createFacemarkKazemi() │ │ │ │ o ******** ggeettFFaacceessHHAAAARR ******** │ │ │ │ public static boolean getFacesHAAR(_M_a_t image, _M_a_t faces, │ │ │ │ _S_t_r_i_n_g face_cascade_name) │ │ │ │ Default face detector This function is mainly utilized by the │ │ │ │ implementation of a Facemark Algorithm. End users are advised to │ │ │ │ use function Facemark::getFaces which can be manually defined and │ │ │ │ circumvented to the algorithm by Facemark::setFaceDetector. │ │ │ │ @@ -351,14 +357,8 @@ │ │ │ │ image - The input image to be processed. │ │ │ │ points - Contains the data of points which will be drawn. │ │ │ │ Example of usage std::vector faces; std:: │ │ │ │ vector > landmarks; facemark->getFaces │ │ │ │ (img, faces); facemark->fit(img, faces, landmarks); for(int │ │ │ │ j=0;j │ │ │ │ │ │
  • │ │ │
    │ │ │

    Method Details

    │ │ │
      │ │ │
    • │ │ │ -
      │ │ │ -

      radialVarianceHash

      │ │ │ -
      public static void radialVarianceHash(Mat inputArr, │ │ │ - Mat outputArr, │ │ │ - double sigma, │ │ │ - int numOfAngleLine)
      │ │ │ -
      Computes radial variance hash of the input image
      │ │ │ -
      │ │ │ -
      Parameters:
      │ │ │ -
      inputArr - input image want to compute hash value, │ │ │ - type should be CV_8UC4, CV_8UC3, CV_8UC1.
      │ │ │ -
      outputArr - Hash value of input
      │ │ │ -
      sigma - Gaussian kernel standard deviation
      │ │ │ -
      numOfAngleLine - The number of angles to consider
      │ │ │ -
      │ │ │ -
      │ │ │ -
    • │ │ │ -
    • │ │ │ -
      │ │ │ -

      radialVarianceHash

      │ │ │ -
      public static void radialVarianceHash(Mat inputArr, │ │ │ - Mat outputArr, │ │ │ - double sigma)
      │ │ │ -
      Computes radial variance hash of the input image
      │ │ │ -
      │ │ │ -
      Parameters:
      │ │ │ -
      inputArr - input image want to compute hash value, │ │ │ - type should be CV_8UC4, CV_8UC3, CV_8UC1.
      │ │ │ -
      outputArr - Hash value of input
      │ │ │ -
      sigma - Gaussian kernel standard deviation
      │ │ │ -
      │ │ │ -
      │ │ │ -
    • │ │ │ -
    • │ │ │ -
      │ │ │ -

      radialVarianceHash

      │ │ │ -
      public static void radialVarianceHash(Mat inputArr, │ │ │ - Mat outputArr)
      │ │ │ -
      Computes radial variance hash of the input image
      │ │ │ -
      │ │ │ -
      Parameters:
      │ │ │ -
      inputArr - input image want to compute hash value, │ │ │ - type should be CV_8UC4, CV_8UC3, CV_8UC1.
      │ │ │ -
      outputArr - Hash value of input
      │ │ │ -
      │ │ │ -
      │ │ │ -
    • │ │ │ -
    • │ │ │ -
      │ │ │ -

      pHash

      │ │ │ -
      public static void pHash(Mat inputArr, │ │ │ - Mat outputArr)
      │ │ │ -
      Computes pHash value of the input image
      │ │ │ -
      │ │ │ -
      Parameters:
      │ │ │ -
      inputArr - input image want to compute hash value, │ │ │ - type should be CV_8UC4, CV_8UC3, CV_8UC1.
      │ │ │ -
      outputArr - Hash value of input, it will contain 8 uchar value
      │ │ │ -
      │ │ │ -
      │ │ │ -
    • │ │ │ -
    • │ │ │
      │ │ │

      marrHildrethHash

      │ │ │
      public static void marrHildrethHash(Mat inputArr, │ │ │ Mat outputArr, │ │ │ float alpha, │ │ │ float scale)
      │ │ │
      Computes average hash value of the input image
      │ │ │ @@ -389,26 +327,58 @@ │ │ │ type should be CV_8UC4, CV_8UC3, CV_8UC1. │ │ │
      outputArr - Hash value of input, it will contain 16 hex │ │ │ decimal number, return type is CV_8U
      │ │ │ │ │ │
      │ │ │
    • │ │ │
    • │ │ │ -
      │ │ │ -

      colorMomentHash

      │ │ │ -
      public static void colorMomentHash(Mat inputArr, │ │ │ +
      │ │ │ +

      radialVarianceHash

      │ │ │ +
      public static void radialVarianceHash(Mat inputArr, │ │ │ + Mat outputArr, │ │ │ + double sigma, │ │ │ + int numOfAngleLine)
      │ │ │ +
      Computes radial variance hash of the input image
      │ │ │ +
      │ │ │ +
      Parameters:
      │ │ │ +
      inputArr - input image want to compute hash value, │ │ │ + type should be CV_8UC4, CV_8UC3, CV_8UC1.
      │ │ │ +
      outputArr - Hash value of input
      │ │ │ +
      sigma - Gaussian kernel standard deviation
      │ │ │ +
      numOfAngleLine - The number of angles to consider
      │ │ │ +
      │ │ │ +
      │ │ │ +
    • │ │ │ +
    • │ │ │ +
      │ │ │ +

      radialVarianceHash

      │ │ │ +
      public static void radialVarianceHash(Mat inputArr, │ │ │ + Mat outputArr, │ │ │ + double sigma)
      │ │ │ +
      Computes radial variance hash of the input image
      │ │ │ +
      │ │ │ +
      Parameters:
      │ │ │ +
      inputArr - input image want to compute hash value, │ │ │ + type should be CV_8UC4, CV_8UC3, CV_8UC1.
      │ │ │ +
      outputArr - Hash value of input
      │ │ │ +
      sigma - Gaussian kernel standard deviation
      │ │ │ +
      │ │ │ +
      │ │ │ +
    • │ │ │ +
    • │ │ │ +
      │ │ │ +

      radialVarianceHash

      │ │ │ +
      public static void radialVarianceHash(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"
      │ │ │ +
      Computes radial variance hash of the input image
      │ │ │
      │ │ │
      Parameters:
      │ │ │
      inputArr - input image want to compute hash value, │ │ │ - type should be CV_8UC4, CV_8UC3 or CV_8UC1.
      │ │ │ -
      outputArr - 42 hash values with type CV_64F(double)
      │ │ │ + type should be CV_8UC4, CV_8UC3, CV_8UC1. │ │ │ +
      outputArr - Hash value of input
      │ │ │
      │ │ │
      │ │ │
    • │ │ │
    • │ │ │
      │ │ │

      blockMeanHash

      │ │ │
      public static void blockMeanHash(Mat inputArr, │ │ │ @@ -433,26 +403,56 @@ │ │ │
      Parameters:
      │ │ │
      inputArr - input image want to compute hash value, type should be CV_8UC4, CV_8UC3 or CV_8UC1.
      │ │ │
      outputArr - Hash value of input, it will contain 16 hex decimal number, return type is CV_8U
      │ │ │ │ │ │
      │ │ │
    • │ │ │
    • │ │ │ +
      │ │ │ +

      pHash

      │ │ │ +
      public static void pHash(Mat inputArr, │ │ │ + Mat outputArr)
      │ │ │ +
      Computes pHash value of the input image
      │ │ │ +
      │ │ │ +
      Parameters:
      │ │ │ +
      inputArr - input image want to compute hash value, │ │ │ + type should be CV_8UC4, CV_8UC3, CV_8UC1.
      │ │ │ +
      outputArr - Hash value of input, it will contain 8 uchar value
      │ │ │ +
      │ │ │ +
      │ │ │ +
    • │ │ │ +
    • │ │ │
      │ │ │

      averageHash

      │ │ │
      public static void averageHash(Mat inputArr, │ │ │ Mat outputArr)
      │ │ │
      Calculates img_hash::AverageHash in one call
      │ │ │
      │ │ │
      Parameters:
      │ │ │
      inputArr - input image want to compute hash value, type should be CV_8UC4, CV_8UC3 or CV_8UC1.
      │ │ │
      outputArr - Hash value of input, it will contain 16 hex decimal number, return type is CV_8U
      │ │ │
      │ │ │
      │ │ │
    • │ │ │ +
    • │ │ │ +
      │ │ │ +

      colorMomentHash

      │ │ │ +
      public static void 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"
      │ │ │ +
      │ │ │ +
      Parameters:
      │ │ │ +
      inputArr - input image want to compute hash value, │ │ │ + type should be CV_8UC4, CV_8UC3 or CV_8UC1.
      │ │ │ +
      outputArr - 42 hash values with type CV_64F(double)
      │ │ │ +
      │ │ │ +
      │ │ │ +
    • │ │ │
    │ │ │
    │ │ │
  • │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ ├── html2text {} │ │ │ │ @@ -102,48 +102,14 @@ │ │ │ │ public static final int BLOCK_MEAN_HASH_MODE_1 │ │ │ │ See Also: │ │ │ │ # _C_o_n_s_t_a_n_t_ _F_i_e_l_d_ _V_a_l_u_e_s │ │ │ │ * ********** CCoonnssttrruuccttoorr DDeettaaiillss ********** │ │ │ │ o ******** IImmgg__hhaasshh ******** │ │ │ │ public Img_hash() │ │ │ │ * ********** MMeetthhoodd DDeettaaiillss ********** │ │ │ │ - o ******** rraaddiiaallVVaarriiaanncceeHHaasshh ******** │ │ │ │ - public static void radialVarianceHash(_M_a_t inputArr, _M_a_t outputArr, │ │ │ │ - double sigma, int numOfAngleLine) │ │ │ │ - Computes radial variance hash of the input image │ │ │ │ - Parameters: │ │ │ │ - inputArr - input image want to compute hash value, type │ │ │ │ - should be CV_8UC4, CV_8UC3, CV_8UC1. │ │ │ │ - outputArr - Hash value of input │ │ │ │ - sigma - Gaussian kernel standard deviation │ │ │ │ - numOfAngleLine - The number of angles to consider │ │ │ │ - o ******** rraaddiiaallVVaarriiaanncceeHHaasshh ******** │ │ │ │ - public static void radialVarianceHash(_M_a_t inputArr, _M_a_t outputArr, │ │ │ │ - double sigma) │ │ │ │ - Computes radial variance hash of the input image │ │ │ │ - Parameters: │ │ │ │ - inputArr - input image want to compute hash value, type │ │ │ │ - should be CV_8UC4, CV_8UC3, CV_8UC1. │ │ │ │ - outputArr - Hash value of input │ │ │ │ - sigma - Gaussian kernel standard deviation │ │ │ │ - o ******** rraaddiiaallVVaarriiaanncceeHHaasshh ******** │ │ │ │ - public static void radialVarianceHash(_M_a_t inputArr, _M_a_t outputArr) │ │ │ │ - Computes radial variance hash of the input image │ │ │ │ - Parameters: │ │ │ │ - inputArr - input image want to compute hash value, type │ │ │ │ - should be CV_8UC4, CV_8UC3, CV_8UC1. │ │ │ │ - outputArr - Hash value of input │ │ │ │ - o ******** ppHHaasshh ******** │ │ │ │ - public static void pHash(_M_a_t inputArr, _M_a_t outputArr) │ │ │ │ - Computes pHash value of the input image │ │ │ │ - Parameters: │ │ │ │ - inputArr - input image want to compute hash value, type │ │ │ │ - should be CV_8UC4, CV_8UC3, CV_8UC1. │ │ │ │ - outputArr - Hash value of input, it will contain 8 uchar │ │ │ │ - value │ │ │ │ o ******** mmaarrrrHHiillddrreetthhHHaasshh ******** │ │ │ │ public static void marrHildrethHash(_M_a_t inputArr, _M_a_t outputArr, │ │ │ │ float alpha, float scale) │ │ │ │ Computes average hash value of the input image │ │ │ │ Parameters: │ │ │ │ inputArr - input image want to compute hash value, type │ │ │ │ should be CV_8UC4, CV_8UC3, CV_8UC1. │ │ │ │ @@ -165,23 +131,40 @@ │ │ │ │ public static void marrHildrethHash(_M_a_t inputArr, _M_a_t outputArr) │ │ │ │ Computes average hash value of the input image │ │ │ │ Parameters: │ │ │ │ inputArr - input image want to compute hash value, type │ │ │ │ should be CV_8UC4, CV_8UC3, CV_8UC1. │ │ │ │ outputArr - Hash value of input, it will contain 16 hex │ │ │ │ decimal number, return type is CV_8U │ │ │ │ - o ******** ccoolloorrMMoommeennttHHaasshh ******** │ │ │ │ - public static void colorMomentHash(_M_a_t inputArr, _M_a_t outputArr) │ │ │ │ - Computes color moment hash of the input, the algorithm is come from │ │ │ │ - the paper "Perceptual Hashing for Color Images Using Invariant │ │ │ │ - Moments" │ │ │ │ + o ******** rraaddiiaallVVaarriiaanncceeHHaasshh ******** │ │ │ │ + public static void radialVarianceHash(_M_a_t inputArr, _M_a_t outputArr, │ │ │ │ + double sigma, int numOfAngleLine) │ │ │ │ + Computes radial variance hash of the input image │ │ │ │ Parameters: │ │ │ │ inputArr - input image want to compute hash value, type │ │ │ │ - should be CV_8UC4, CV_8UC3 or CV_8UC1. │ │ │ │ - outputArr - 42 hash values with type CV_64F(double) │ │ │ │ + should be CV_8UC4, CV_8UC3, CV_8UC1. │ │ │ │ + outputArr - Hash value of input │ │ │ │ + sigma - Gaussian kernel standard deviation │ │ │ │ + numOfAngleLine - The number of angles to consider │ │ │ │ + o ******** rraaddiiaallVVaarriiaanncceeHHaasshh ******** │ │ │ │ + public static void radialVarianceHash(_M_a_t inputArr, _M_a_t outputArr, │ │ │ │ + double sigma) │ │ │ │ + Computes radial variance hash of the input image │ │ │ │ + Parameters: │ │ │ │ + inputArr - input image want to compute hash value, type │ │ │ │ + should be CV_8UC4, CV_8UC3, CV_8UC1. │ │ │ │ + outputArr - Hash value of input │ │ │ │ + sigma - Gaussian kernel standard deviation │ │ │ │ + o ******** rraaddiiaallVVaarriiaanncceeHHaasshh ******** │ │ │ │ + public static void radialVarianceHash(_M_a_t inputArr, _M_a_t outputArr) │ │ │ │ + Computes radial variance hash of the input image │ │ │ │ + Parameters: │ │ │ │ + inputArr - input image want to compute hash value, type │ │ │ │ + should be CV_8UC4, CV_8UC3, CV_8UC1. │ │ │ │ + outputArr - Hash value of input │ │ │ │ o ******** bblloocckkMMeeaannHHaasshh ******** │ │ │ │ public static void blockMeanHash(_M_a_t inputArr, _M_a_t outputArr, │ │ │ │ int mode) │ │ │ │ Computes block mean hash of the input image │ │ │ │ Parameters: │ │ │ │ inputArr - input image want to compute hash value, type │ │ │ │ should be CV_8UC4, CV_8UC3 or CV_8UC1. │ │ │ │ @@ -192,16 +175,33 @@ │ │ │ │ public static void blockMeanHash(_M_a_t inputArr, _M_a_t outputArr) │ │ │ │ Computes block mean hash of the input image │ │ │ │ Parameters: │ │ │ │ inputArr - input image want to compute hash value, type │ │ │ │ should be CV_8UC4, CV_8UC3 or CV_8UC1. │ │ │ │ outputArr - Hash value of input, it will contain 16 hex │ │ │ │ decimal number, return type is CV_8U │ │ │ │ + o ******** ppHHaasshh ******** │ │ │ │ + public static void pHash(_M_a_t inputArr, _M_a_t outputArr) │ │ │ │ + Computes pHash value of the input image │ │ │ │ + Parameters: │ │ │ │ + inputArr - input image want to compute hash value, type │ │ │ │ + should be CV_8UC4, CV_8UC3, CV_8UC1. │ │ │ │ + outputArr - Hash value of input, it will contain 8 uchar │ │ │ │ + value │ │ │ │ o ******** aavveerraaggeeHHaasshh ******** │ │ │ │ public static void averageHash(_M_a_t inputArr, _M_a_t outputArr) │ │ │ │ Calculates img_hash::AverageHash in one call │ │ │ │ Parameters: │ │ │ │ inputArr - input image want to compute hash value, type │ │ │ │ should be CV_8UC4, CV_8UC3 or CV_8UC1. │ │ │ │ outputArr - Hash value of input, it will contain 16 hex │ │ │ │ decimal number, return type is CV_8U │ │ │ │ + o ******** ccoolloorrMMoommeennttHHaasshh ******** │ │ │ │ + public static void colorMomentHash(_M_a_t inputArr, _M_a_t outputArr) │ │ │ │ + Computes color moment hash of the input, the algorithm is come from │ │ │ │ + the paper "Perceptual Hashing for Color Images Using Invariant │ │ │ │ + Moments" │ │ │ │ + Parameters: │ │ │ │ + inputArr - input image want to compute hash value, type │ │ │ │ + should be CV_8UC4, CV_8UC3 or CV_8UC1. │ │ │ │ + outputArr - 42 hash values with type CV_64F(double) │ │ │ │ =============================================================================== │ │ ├── ./usr/share/doc/opencv-doc/opencv4/html/javadoc/org/opencv/objdetect/Objdetect.html │ │ │┄ Ordering differences only │ │ │ @@ -1011,93 +1011,14 @@ │ │ │ Given an array of detected diamonds, this functions draws them in the image. The marker borders │ │ │ are painted and the markers identifiers if provided. │ │ │ Useful for debugging purposes. │ │ │ │ │ │ │ │ │ │ │ │
  • │ │ │ -
    │ │ │ -

    getPredefinedDictionary

    │ │ │ -
    public static Dictionary getPredefinedDictionary(int dict)
    │ │ │ -
    Returns one of the predefined dictionaries referenced by DICT_*.
    │ │ │ -
    │ │ │ -
    Parameters:
    │ │ │ -
    dict - automatically generated
    │ │ │ -
    Returns:
    │ │ │ -
    automatically generated
    │ │ │ -
    │ │ │ -
    │ │ │ -
  • │ │ │ -
  • │ │ │ -
    │ │ │ -

    extendDictionary

    │ │ │ -
    public static Dictionary extendDictionary(int nMarkers, │ │ │ - int markerSize, │ │ │ - Dictionary baseDictionary, │ │ │ - int randomSeed)
    │ │ │ -
    Extend base dictionary by new nMarkers
    │ │ │ -
    │ │ │ -
    Parameters:
    │ │ │ -
    nMarkers - number of markers in the dictionary
    │ │ │ -
    markerSize - number of bits per dimension of each markers
    │ │ │ -
    baseDictionary - Include the markers in this dictionary at the beginning (optional)
    │ │ │ -
    randomSeed - a user supplied seed for theRNG() │ │ │ - │ │ │ - This function creates a new dictionary composed by nMarkers markers and each markers composed │ │ │ - by markerSize x markerSize bits. If baseDictionary is provided, its markers are directly │ │ │ - included and the rest are generated based on them. If the size of baseDictionary is higher │ │ │ - than nMarkers, only the first nMarkers in baseDictionary are taken and no new marker is added.
    │ │ │ -
    Returns:
    │ │ │ -
    automatically generated
    │ │ │ -
    │ │ │ -
    │ │ │ -
  • │ │ │ -
  • │ │ │ -
    │ │ │ -

    extendDictionary

    │ │ │ -
    public static Dictionary extendDictionary(int nMarkers, │ │ │ - int markerSize, │ │ │ - Dictionary baseDictionary)
    │ │ │ -
    Extend base dictionary by new nMarkers
    │ │ │ -
    │ │ │ -
    Parameters:
    │ │ │ -
    nMarkers - number of markers in the dictionary
    │ │ │ -
    markerSize - number of bits per dimension of each markers
    │ │ │ -
    baseDictionary - Include the markers in this dictionary at the beginning (optional) │ │ │ - │ │ │ - This function creates a new dictionary composed by nMarkers markers and each markers composed │ │ │ - by markerSize x markerSize bits. If baseDictionary is provided, its markers are directly │ │ │ - included and the rest are generated based on them. If the size of baseDictionary is higher │ │ │ - than nMarkers, only the first nMarkers in baseDictionary are taken and no new marker is added.
    │ │ │ -
    Returns:
    │ │ │ -
    automatically generated
    │ │ │ -
    │ │ │ -
    │ │ │ -
  • │ │ │ -
  • │ │ │ -
    │ │ │ -

    extendDictionary

    │ │ │ -
    public static Dictionary extendDictionary(int nMarkers, │ │ │ - int markerSize)
    │ │ │ -
    Extend base dictionary by new nMarkers
    │ │ │ -
    │ │ │ -
    Parameters:
    │ │ │ -
    nMarkers - number of markers in the dictionary
    │ │ │ -
    markerSize - number of bits per dimension of each markers │ │ │ - │ │ │ - This function creates a new dictionary composed by nMarkers markers and each markers composed │ │ │ - by markerSize x markerSize bits. If baseDictionary is provided, its markers are directly │ │ │ - included and the rest are generated based on them. If the size of baseDictionary is higher │ │ │ - than nMarkers, only the first nMarkers in baseDictionary are taken and no new marker is added.
    │ │ │ -
    Returns:
    │ │ │ -
    automatically generated
    │ │ │ -
    │ │ │ -
    │ │ │ -
  • │ │ │ -
  • │ │ │
    │ │ │

    drawDetectedMarkers

    │ │ │
    public static void drawDetectedMarkers(Mat image, │ │ │ List<Mat> corners, │ │ │ Mat ids, │ │ │ Scalar borderColor)
    │ │ │
    Draw detected markers in image
    │ │ │ @@ -1198,14 +1119,93 @@ │ │ │
    sidePixels - size of the image in pixels
    │ │ │
    img - output image with the marker │ │ │ │ │ │ This function returns a marker image in its canonical form (i.e. ready to be printed)
    │ │ │ │ │ │
    │ │ │
  • │ │ │ +
  • │ │ │ +
    │ │ │ +

    getPredefinedDictionary

    │ │ │ +
    public static Dictionary getPredefinedDictionary(int dict)
    │ │ │ +
    Returns one of the predefined dictionaries referenced by DICT_*.
    │ │ │ +
    │ │ │ +
    Parameters:
    │ │ │ +
    dict - automatically generated
    │ │ │ +
    Returns:
    │ │ │ +
    automatically generated
    │ │ │ +
    │ │ │ +
    │ │ │ +
  • │ │ │ +
  • │ │ │ +
    │ │ │ +

    extendDictionary

    │ │ │ +
    public static Dictionary extendDictionary(int nMarkers, │ │ │ + int markerSize, │ │ │ + Dictionary baseDictionary, │ │ │ + int randomSeed)
    │ │ │ +
    Extend base dictionary by new nMarkers
    │ │ │ +
    │ │ │ +
    Parameters:
    │ │ │ +
    nMarkers - number of markers in the dictionary
    │ │ │ +
    markerSize - number of bits per dimension of each markers
    │ │ │ +
    baseDictionary - Include the markers in this dictionary at the beginning (optional)
    │ │ │ +
    randomSeed - a user supplied seed for theRNG() │ │ │ + │ │ │ + This function creates a new dictionary composed by nMarkers markers and each markers composed │ │ │ + by markerSize x markerSize bits. If baseDictionary is provided, its markers are directly │ │ │ + included and the rest are generated based on them. If the size of baseDictionary is higher │ │ │ + than nMarkers, only the first nMarkers in baseDictionary are taken and no new marker is added.
    │ │ │ +
    Returns:
    │ │ │ +
    automatically generated
    │ │ │ +
    │ │ │ +
    │ │ │ +
  • │ │ │ +
  • │ │ │ +
    │ │ │ +

    extendDictionary

    │ │ │ +
    public static Dictionary extendDictionary(int nMarkers, │ │ │ + int markerSize, │ │ │ + Dictionary baseDictionary)
    │ │ │ +
    Extend base dictionary by new nMarkers
    │ │ │ +
    │ │ │ +
    Parameters:
    │ │ │ +
    nMarkers - number of markers in the dictionary
    │ │ │ +
    markerSize - number of bits per dimension of each markers
    │ │ │ +
    baseDictionary - Include the markers in this dictionary at the beginning (optional) │ │ │ + │ │ │ + This function creates a new dictionary composed by nMarkers markers and each markers composed │ │ │ + by markerSize x markerSize bits. If baseDictionary is provided, its markers are directly │ │ │ + included and the rest are generated based on them. If the size of baseDictionary is higher │ │ │ + than nMarkers, only the first nMarkers in baseDictionary are taken and no new marker is added.
    │ │ │ +
    Returns:
    │ │ │ +
    automatically generated
    │ │ │ +
    │ │ │ +
    │ │ │ +
  • │ │ │ +
  • │ │ │ +
    │ │ │ +

    extendDictionary

    │ │ │ +
    public static Dictionary extendDictionary(int nMarkers, │ │ │ + int markerSize)
    │ │ │ +
    Extend base dictionary by new nMarkers
    │ │ │ +
    │ │ │ +
    Parameters:
    │ │ │ +
    nMarkers - number of markers in the dictionary
    │ │ │ +
    markerSize - number of bits per dimension of each markers │ │ │ + │ │ │ + This function creates a new dictionary composed by nMarkers markers and each markers composed │ │ │ + by markerSize x markerSize bits. If baseDictionary is provided, its markers are directly │ │ │ + included and the rest are generated based on them. If the size of baseDictionary is higher │ │ │ + than nMarkers, only the first nMarkers in baseDictionary are taken and no new marker is added.
    │ │ │ +
    Returns:
    │ │ │ +
    automatically generated
    │ │ │ +
    │ │ │ +
    │ │ │ +
  • │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ ├── html2text {} │ │ │ │ @@ -453,73 +453,14 @@ │ │ │ │ the dimensions of this array should be Nx4. The order of the │ │ │ │ corners should be clockwise. returned by detectCharucoDiamond │ │ │ │ () (e.g. std::vector). Optional, if not provided, ids │ │ │ │ are not painted. are calculated based on this one. Given an │ │ │ │ array of detected diamonds, this functions draws them in the │ │ │ │ image. The marker borders are painted and the markers │ │ │ │ identifiers if provided. Useful for debugging purposes. │ │ │ │ - o ******** ggeettPPrreeddeeffiinneeddDDiiccttiioonnaarryy ******** │ │ │ │ - public static _D_i_c_t_i_o_n_a_r_y getPredefinedDictionary(int dict) │ │ │ │ - Returns one of the predefined dictionaries referenced by DICT_*. │ │ │ │ - Parameters: │ │ │ │ - dict - automatically generated │ │ │ │ - Returns: │ │ │ │ - automatically generated │ │ │ │ - o ******** eexxtteennddDDiiccttiioonnaarryy ******** │ │ │ │ - public static _D_i_c_t_i_o_n_a_r_y extendDictionary(int nMarkers, │ │ │ │ - int markerSize, _D_i_c_t_i_o_n_a_r_y baseDictionary, int randomSeed) │ │ │ │ - Extend base dictionary by new nMarkers │ │ │ │ - Parameters: │ │ │ │ - nMarkers - number of markers in the dictionary │ │ │ │ - markerSize - number of bits per dimension of each markers │ │ │ │ - baseDictionary - Include the markers in this dictionary at │ │ │ │ - the beginning (optional) │ │ │ │ - randomSeed - a user supplied seed for theRNG() This function │ │ │ │ - creates a new dictionary composed by nMarkers markers and │ │ │ │ - each markers composed by markerSize x markerSize bits. If │ │ │ │ - baseDictionary is provided, its markers are directly included │ │ │ │ - and the rest are generated based on them. If the size of │ │ │ │ - baseDictionary is higher than nMarkers, only the first │ │ │ │ - nMarkers in baseDictionary are taken and no new marker is │ │ │ │ - added. │ │ │ │ - Returns: │ │ │ │ - automatically generated │ │ │ │ - o ******** eexxtteennddDDiiccttiioonnaarryy ******** │ │ │ │ - public static _D_i_c_t_i_o_n_a_r_y extendDictionary(int nMarkers, │ │ │ │ - int markerSize, _D_i_c_t_i_o_n_a_r_y baseDictionary) │ │ │ │ - Extend base dictionary by new nMarkers │ │ │ │ - Parameters: │ │ │ │ - nMarkers - number of markers in the dictionary │ │ │ │ - markerSize - number of bits per dimension of each markers │ │ │ │ - baseDictionary - Include the markers in this dictionary at │ │ │ │ - the beginning (optional) This function creates a new │ │ │ │ - dictionary composed by nMarkers markers and each markers │ │ │ │ - composed by markerSize x markerSize bits. If baseDictionary │ │ │ │ - is provided, its markers are directly included and the rest │ │ │ │ - are generated based on them. If the size of baseDictionary is │ │ │ │ - higher than nMarkers, only the first nMarkers in │ │ │ │ - baseDictionary are taken and no new marker is added. │ │ │ │ - Returns: │ │ │ │ - automatically generated │ │ │ │ - o ******** eexxtteennddDDiiccttiioonnaarryy ******** │ │ │ │ - public static _D_i_c_t_i_o_n_a_r_y extendDictionary(int nMarkers, │ │ │ │ - int markerSize) │ │ │ │ - Extend base dictionary by new nMarkers │ │ │ │ - Parameters: │ │ │ │ - nMarkers - number of markers in the dictionary │ │ │ │ - markerSize - number of bits per dimension of each markers │ │ │ │ - This function creates a new dictionary composed by nMarkers │ │ │ │ - markers and each markers composed by markerSize x markerSize │ │ │ │ - bits. If baseDictionary is provided, its markers are directly │ │ │ │ - included and the rest are generated based on them. If the │ │ │ │ - size of baseDictionary is higher than nMarkers, only the │ │ │ │ - first nMarkers in baseDictionary are taken and no new marker │ │ │ │ - is added. │ │ │ │ - Returns: │ │ │ │ - automatically generated │ │ │ │ o ******** ddrraawwDDeetteecctteeddMMaarrkkeerrss ******** │ │ │ │ public static void drawDetectedMarkers(_M_a_t image, │ │ │ │ _L_i_s_t<_M_a_t> corners, _M_a_t ids, _S_c_a_l_a_r borderColor) │ │ │ │ Draw detected markers in image │ │ │ │ Parameters: │ │ │ │ image - input/output image. It must have 1 or 3 channels. The │ │ │ │ number of channels is not altered. │ │ │ │ @@ -593,8 +534,67 @@ │ │ │ │ dictionary - dictionary of markers indicating the type of │ │ │ │ markers │ │ │ │ id - identifier of the marker that will be returned. It has │ │ │ │ to be a valid id in the specified dictionary. │ │ │ │ sidePixels - size of the image in pixels │ │ │ │ img - output image with the marker This function returns a │ │ │ │ marker image in its canonical form (i.e. ready to be printed) │ │ │ │ + o ******** ggeettPPrreeddeeffiinneeddDDiiccttiioonnaarryy ******** │ │ │ │ + public static _D_i_c_t_i_o_n_a_r_y getPredefinedDictionary(int dict) │ │ │ │ + Returns one of the predefined dictionaries referenced by DICT_*. │ │ │ │ + Parameters: │ │ │ │ + dict - automatically generated │ │ │ │ + Returns: │ │ │ │ + automatically generated │ │ │ │ + o ******** eexxtteennddDDiiccttiioonnaarryy ******** │ │ │ │ + public static _D_i_c_t_i_o_n_a_r_y extendDictionary(int nMarkers, │ │ │ │ + int markerSize, _D_i_c_t_i_o_n_a_r_y baseDictionary, int randomSeed) │ │ │ │ + Extend base dictionary by new nMarkers │ │ │ │ + Parameters: │ │ │ │ + nMarkers - number of markers in the dictionary │ │ │ │ + markerSize - number of bits per dimension of each markers │ │ │ │ + baseDictionary - Include the markers in this dictionary at │ │ │ │ + the beginning (optional) │ │ │ │ + randomSeed - a user supplied seed for theRNG() This function │ │ │ │ + creates a new dictionary composed by nMarkers markers and │ │ │ │ + each markers composed by markerSize x markerSize bits. If │ │ │ │ + baseDictionary is provided, its markers are directly included │ │ │ │ + and the rest are generated based on them. If the size of │ │ │ │ + baseDictionary is higher than nMarkers, only the first │ │ │ │ + nMarkers in baseDictionary are taken and no new marker is │ │ │ │ + added. │ │ │ │ + Returns: │ │ │ │ + automatically generated │ │ │ │ + o ******** eexxtteennddDDiiccttiioonnaarryy ******** │ │ │ │ + public static _D_i_c_t_i_o_n_a_r_y extendDictionary(int nMarkers, │ │ │ │ + int markerSize, _D_i_c_t_i_o_n_a_r_y baseDictionary) │ │ │ │ + Extend base dictionary by new nMarkers │ │ │ │ + Parameters: │ │ │ │ + nMarkers - number of markers in the dictionary │ │ │ │ + markerSize - number of bits per dimension of each markers │ │ │ │ + baseDictionary - Include the markers in this dictionary at │ │ │ │ + the beginning (optional) This function creates a new │ │ │ │ + dictionary composed by nMarkers markers and each markers │ │ │ │ + composed by markerSize x markerSize bits. If baseDictionary │ │ │ │ + is provided, its markers are directly included and the rest │ │ │ │ + are generated based on them. If the size of baseDictionary is │ │ │ │ + higher than nMarkers, only the first nMarkers in │ │ │ │ + baseDictionary are taken and no new marker is added. │ │ │ │ + Returns: │ │ │ │ + automatically generated │ │ │ │ + o ******** eexxtteennddDDiiccttiioonnaarryy ******** │ │ │ │ + public static _D_i_c_t_i_o_n_a_r_y extendDictionary(int nMarkers, │ │ │ │ + int markerSize) │ │ │ │ + Extend base dictionary by new nMarkers │ │ │ │ + Parameters: │ │ │ │ + nMarkers - number of markers in the dictionary │ │ │ │ + markerSize - number of bits per dimension of each markers │ │ │ │ + This function creates a new dictionary composed by nMarkers │ │ │ │ + markers and each markers composed by markerSize x markerSize │ │ │ │ + bits. If baseDictionary is provided, its markers are directly │ │ │ │ + included and the rest are generated based on them. If the │ │ │ │ + size of baseDictionary is higher than nMarkers, only the │ │ │ │ + first nMarkers in baseDictionary are taken and no new marker │ │ │ │ + is added. │ │ │ │ + Returns: │ │ │ │ + automatically generated │ │ │ │ =============================================================================== │ │ ├── ./usr/share/doc/opencv-doc/opencv4/html/javadoc/org/opencv/text/Text.html │ │ │ @@ -3429,129 +3429,129 @@ │ │ │ 0000d640: 3d22 6669 656c 642d 6465 7461 696c 7322 ="field-details" │ │ │ 0000d650: 2069 643d 2266 6965 6c64 2d64 6574 6169 id="field-detai │ │ │ 0000d660: 6c22 3e0a 3c68 323e 4669 656c 6420 4465 l">.

    Field De │ │ │ 0000d670: 7461 696c 733c 2f68 323e 0a3c 756c 2063 tails

    .
      .
    • ..

      OCR_LE │ │ │ -0000d6d0: 5645 4c5f 574f 5244 3c2f 6833 3e0a 3c64 VEL_WORD

      .public stati │ │ │ -0000d720: 6320 6669 6e61 6c3c 2f73 7061 6e3e 266e c final&n │ │ │ -0000d730: 6273 703b 3c73 7061 6e20 636c 6173 733d bsp;in │ │ │ -0000d750: 743c 2f73 7061 6e3e 266e 6273 703b 3c73 t OCR_LEV │ │ │ -0000d780: 454c 5f57 4f52 443c 2f73 7061 6e3e 3c2f EL_WORD.
      .
      See │ │ │ -0000d7b0: 416c 736f 3a3c 2f64 743e 0a3c 6464 3e0a Also:
      .
      . │ │ │ -0000d7c0: 3c75 6c20 636c 6173 733d 2274 6167 2d6c .
      │ │ │ -0000d850: 0a3c 2f64 6c3e 0a3c 2f73 6563 7469 6f6e .
      ..
    • .
    • ..OCR_LEVEL_TEXT │ │ │ -0000d8b0: 4c49 4e45 3c2f 6833 3e0a 3c64 6976 2063 LINE.
      │ │ │ -0000d8f0: 7075 626c 6963 2073 7461 7469 6320 6669 public static fi │ │ │ -0000d900: 6e61 6c3c 2f73 7061 6e3e 266e 6273 703b nal  │ │ │ -0000d910: 3c73 7061 6e20 636c 6173 733d 2272 6574 int OCR_LEVEL_T │ │ │ -0000d960: 4558 544c 494e 453c 2f73 7061 6e3e 3c2f EXTLINE.
      .
      See │ │ │ -0000d990: 416c 736f 3a3c 2f64 743e 0a3c 6464 3e0a Also:
      .
      . │ │ │ -0000d9a0: 3c75 6c20 636c 6173 733d 2274 6167 2d6c .< │ │ │ -0000da30: 2f64 643e 0a3c 2f64 6c3e 0a3c 2f73 6563 /dd>.
      ..
    • .
    • │ │ │ -0000da50: 0a3c 7365 6374 696f 6e20 636c 6173 733d .
      .

      ERFILTER │ │ │ -0000da90: 5f4e 4d5f 5247 424c 4772 6164 3c2f 6833 _NM_RGBLGrad

      .
      │ │ │ -0000dac0: 3c73 7061 6e20 636c 6173 733d 226d 6f64 public s │ │ │ -0000dae0: 7461 7469 6320 6669 6e61 6c3c 2f73 7061 tatic final int&nbs │ │ │ -0000db20: 703b 3c73 7061 6e20 636c 6173 733d 2265 p;ERF │ │ │ -0000db40: 494c 5445 525f 4e4d 5f52 4742 4c47 7261 ILTER_NM_RGBLGra │ │ │ -0000db50: 643c 2f73 7061 6e3e 3c2f 6469 763e 0a3c d
      .< │ │ │ -0000db60: 646c 2063 6c61 7373 3d22 6e6f 7465 7322 dl class="notes" │ │ │ -0000db70: 3e0a 3c64 743e 5365 6520 416c 736f 3a3c >.
      See Also:< │ │ │ -0000db80: 2f64 743e 0a3c 6464 3e0a 3c75 6c20 636c /dt>.
      ..
      │ │ │ -0000dc20: 0a3c 2f64 6c3e 0a3c 2f73 6563 7469 6f6e ..
      .
    • .
    • ..< │ │ │ -0000dc70: 6833 3e45 5246 494c 5445 525f 4e4d 5f49 h3>ERFILTER_NM_I │ │ │ -0000dc80: 4853 4772 6164 3c2f 6833 3e0a 3c64 6976 HSGrad.
      public static │ │ │ -0000dcd0: 6669 6e61 6c3c 2f73 7061 6e3e 266e 6273 final&nbs │ │ │ -0000dce0: 703b 3c73 7061 6e20 636c 6173 733d 2272 p;int< │ │ │ -0000dd00: 2f73 7061 6e3e 266e 6273 703b 3c73 7061 /span> ERFILTER_ │ │ │ -0000dd30: 4e4d 5f49 4853 4772 6164 3c2f 7370 616e NM_IHSGrad
      .
      .
      S │ │ │ -0000dd60: 6565 2041 6c73 6f3a 3c2f 6474 3e0a 3c64 ee Also:
      ..
      .< │ │ │ 00011760: 2f73 6563 7469 6f6e 3e0a 3c2f 6c69 3e0a /section>.
    • . │ │ │ 00011770: 3c6c 693e 0a3c 7365 6374 696f 6e20 636c
    • .
      .

      │ │ │ -000117c0: 6c6f 6164 4f43 5248 4d4d 436c 6173 7369 loadOCRHMMClassi │ │ │ -000117d0: 6669 6572 4e4d 3c2f 6833 3e0a 3c64 6976 fierNM

      . │ │ │ -00011ac0: 0a3c 6469 7620 636c 6173 733d 2264 6570 .
      │ │ │ -00011ae0: 3c73 7061 6e20 636c 6173 733d 2264 6570 D │ │ │ -00011b00: 6570 7265 6361 7465 642e 3c2f 7370 616e eprecated..
      loadOCRHMMCla │ │ │ -00011b40: 7373 6966 6965 7220 696e 7374 6561 643c ssifier instead< │ │ │ -00011b50: 2f64 6976 3e0a 3c2f 6469 763e 0a3c 6469 /div>.
      . │ │ │ -00011b70: 416c 6c6f 7720 746f 2069 6d70 6c69 6369 Allow to implici │ │ │ -00011b80: 746c 7920 6c6f 6164 2074 6865 2064 6566 tly load the def │ │ │ -00011b90: 6175 6c74 2063 6861 7261 6374 6572 2063 ault character c │ │ │ -00011ba0: 6c61 7373 6966 6965 7220 7768 656e 2063 lassifier when c │ │ │ -00011bb0: 7265 6174 696e 6720 616e 204f 4352 484d reating an OCRHM │ │ │ -00011bc0: 4d44 6563 6f64 6572 206f 626a 6563 742e MDecoder object. │ │ │ -00011bd0: 3c2f 6469 763e 0a3c 646c 2063 6c61 7373
      .
      .
      Pa │ │ │ -00011bf0: 7261 6d65 7465 7273 3a3c 2f64 743e 0a3c rameters:
      .< │ │ │ -00011c00: 6464 3e3c 636f 6465 3e66 696c 656e 616d dd>filenam │ │ │ -00011c10: 653c 2f63 6f64 653e 202d 2054 6865 2058 e - The X │ │ │ -00011c20: 4d4c 206f 7220 5941 4d4c 2066 696c 6520 ML or YAML file │ │ │ -00011c30: 7769 7468 2074 6865 2063 6c61 7373 6966 with the classif │ │ │ -00011c40: 6965 7220 6d6f 6465 6c20 2865 2e67 2e20 ier model (e.g. │ │ │ -00011c50: 4f43 5248 4d4d 5f6b 6e6e 5f6d 6f64 656c OCRHMM_knn_model │ │ │ -00011c60: 5f64 6174 612e 786d 6c29 0a0a 2054 6865 _data.xml).. The │ │ │ -00011c70: 204b 4e4e 2064 6566 6175 6c74 2063 6c61 KNN default cla │ │ │ -00011c80: 7373 6966 6965 7220 6973 2062 6173 6564 ssifier is based │ │ │ -00011c90: 2069 6e20 7468 6520 7363 656e 6520 7465 in the scene te │ │ │ -00011ca0: 7874 2072 6563 6f67 6e69 7469 6f6e 206d xt recognition m │ │ │ -00011cb0: 6574 686f 6420 7072 6f70 6f73 6564 2062 ethod proposed b │ │ │ -00011cc0: 7920 4c75 6bc3 a173 204e 6575 6d61 6e6e y Luk..s Neumann │ │ │ -00011cd0: 2026 616d 703b 0a20 4a69 7269 204d 6174 &. Jiri Mat │ │ │ -00011ce0: 6173 2069 6e20 5b4e 6575 6d61 6e6e 3131 as in [Neumann11 │ │ │ -00011cf0: 625d 2e20 4261 7369 6361 6c6c 792c 2074 b]. Basically, t │ │ │ -00011d00: 6865 2072 6567 696f 6e20 2863 6f6e 746f he region (conto │ │ │ -00011d10: 7572 2920 696e 2074 6865 2069 6e70 7574 ur) in the input │ │ │ -00011d20: 2069 6d61 6765 2069 7320 6e6f 726d 616c image is normal │ │ │ -00011d30: 697a 6564 2074 6f20 610a 2066 6978 6564 ized to a. fixed │ │ │ -00011d40: 2073 697a 652c 2077 6869 6c65 2072 6574 size, while ret │ │ │ -00011d50: 6169 6e69 6e67 2074 6865 2063 656e 7472 aining the centr │ │ │ -00011d60: 6f69 6420 616e 6420 6173 7065 6374 2072 oid and aspect r │ │ │ -00011d70: 6174 696f 2c20 696e 206f 7264 6572 2074 atio, in order t │ │ │ -00011d80: 6f20 6578 7472 6163 7420 6120 6665 6174 o extract a feat │ │ │ -00011d90: 7572 6520 7665 6374 6f72 0a20 6261 7365 ure vector. base │ │ │ -00011da0: 6420 6f6e 2067 7261 6469 656e 7420 6f72 d on gradient or │ │ │ -00011db0: 6965 6e74 6174 696f 6e73 2061 6c6f 6e67 ientations along │ │ │ -00011dc0: 2074 6865 2063 6861 696e 2d63 6f64 6520 the chain-code │ │ │ -00011dd0: 6f66 2069 7473 2070 6572 696d 6574 6572 of its perimeter │ │ │ -00011de0: 2e20 5468 656e 2c20 7468 6520 7265 6769 . Then, the regi │ │ │ -00011df0: 6f6e 2069 7320 636c 6173 7369 6669 6564 on is classified │ │ │ -00011e00: 0a20 7573 696e 6720 6120 4b4e 4e20 6d6f . using a KNN mo │ │ │ -00011e10: 6465 6c20 7472 6169 6e65 6420 7769 7468 del trained with │ │ │ -00011e20: 2073 796e 7468 6574 6963 2064 6174 6120 synthetic data │ │ │ -00011e30: 6f66 2072 656e 6465 7265 6420 6368 6172 of rendered char │ │ │ -00011e40: 6163 7465 7273 2077 6974 6820 6469 6666 acters with diff │ │ │ -00011e50: 6572 656e 7420 7374 616e 6461 7264 2066 erent standard f │ │ │ -00011e60: 6f6e 740a 2074 7970 6573 2e3c 2f64 643e ont. types. │ │ │ -00011e70: 0a3c 6474 3e52 6574 7572 6e73 3a3c 2f64 .
      Returns:.
      automatic │ │ │ -00011e90: 616c 6c79 2067 656e 6572 6174 6564 3c2f ally generated.
      ..
    • .
    • . │ │ │ -00011ec0: 3c73 6563 7469 6f6e 2063 6c61 7373 3d22
      .

      load │ │ │ -00011f10: 4f43 5248 4d4d 436c 6173 7369 6669 6572 OCRHMMClassifier │ │ │ -00011f20: 434e 4e3c 2f68 333e 0a3c 6469 7620 636c CNN

      .
      @Depreca │ │ │ -00012010: 7465 643c 2f61 3e0a 3c2f 7370 616e 3e3c ted.< │ │ │ -00012020: 7370 616e 2063 6c61 7373 3d22 6d6f 6469 span class="modi │ │ │ -00012030: 6669 6572 7322 3e70 7562 6c69 6320 7374 fiers">public st │ │ │ -00012040: 6174 6963 3c2f 7370 616e 3e26 6e62 7370 atic  │ │ │ -00012050: 3b3c 7370 616e 2063 6c61 7373 3d22 7265 ;OCRH │ │ │ -000120c0: 4d4d 4465 636f 6465 725f 436c 6173 7369 MMDecoder_Classi │ │ │ -000120d0: 6669 6572 4361 6c6c 6261 636b 3c2f 613e fierCallback │ │ │ -000120e0: 3c2f 7370 616e 3e26 6e62 7370 3b3c 7370  loadOCRH │ │ │ -00012110: 4d4d 436c 6173 7369 6669 6572 434e 4e3c MMClassifierCNN< │ │ │ -00012120: 2f73 7061 6e3e 3c77 6272 3e3c 7370 616e /span>(String filename │ │ │ -00012200: 293c 2f73 7061 6e3e 3c2f 6469 763e 0a3c )
      .< │ │ │ -00012210: 6469 7620 636c 6173 733d 2264 6570 7265 div class="depre │ │ │ -00012220: 6361 7469 6f6e 2d62 6c6f 636b 223e 3c73 cation-block">Dep │ │ │ -00012250: 7265 6361 7465 642e 3c2f 7370 616e 3e0a recated.. │ │ │ -00012260: 3c64 6976 2063 6c61 7373 3d22 6465 7072
      use loadOCRHMMC │ │ │ -00012290: 6c61 7373 6966 6965 7220 696e 7374 6561 lassifier instea │ │ │ -000122a0: 643c 2f64 6976 3e0a 3c2f 6469 763e 0a3c d
      ..< │ │ │ -000122b0: 6469 7620 636c 6173 733d 2262 6c6f 636b div class="block │ │ │ -000122c0: 223e 416c 6c6f 7720 746f 2069 6d70 6c69 ">Allow to impli │ │ │ -000122d0: 6369 746c 7920 6c6f 6164 2074 6865 2064 citly load the d │ │ │ -000122e0: 6566 6175 6c74 2063 6861 7261 6374 6572 efault character │ │ │ -000122f0: 2063 6c61 7373 6966 6965 7220 7768 656e classifier when │ │ │ -00012300: 2063 7265 6174 696e 6720 616e 204f 4352 creating an OCR │ │ │ -00012310: 484d 4d44 6563 6f64 6572 206f 626a 6563 HMMDecoder objec │ │ │ -00012320: 742e 3c2f 6469 763e 0a3c 646c 2063 6c61 t..
      .
      │ │ │ -00012340: 5061 7261 6d65 7465 7273 3a3c 2f64 743e Parameters:
      │ │ │ -00012350: 0a3c 6464 3e3c 636f 6465 3e66 696c 656e .
      filen │ │ │ -00012360: 616d 653c 2f63 6f64 653e 202d 2054 6865 ame - The │ │ │ -00012370: 2058 4d4c 206f 7220 5941 4d4c 2066 696c XML or YAML fil │ │ │ -00012380: 6520 7769 7468 2074 6865 2063 6c61 7373 e with the class │ │ │ -00012390: 6966 6965 7220 6d6f 6465 6c20 2865 2e67 ifier model (e.g │ │ │ -000123a0: 2e20 4f43 5242 6561 6d53 6561 7263 685f . OCRBeamSearch_ │ │ │ -000123b0: 434e 4e5f 6d6f 6465 6c5f 6461 7461 2e78 CNN_model_data.x │ │ │ -000123c0: 6d6c 2e67 7a29 0a0a 2054 6865 2043 4e4e ml.gz).. The CNN │ │ │ -000123d0: 2064 6566 6175 6c74 2063 6c61 7373 6966 default classif │ │ │ -000123e0: 6965 7220 6973 2062 6173 6564 2069 6e20 ier is based in │ │ │ -000123f0: 7468 6520 7363 656e 6520 7465 7874 2072 the scene text r │ │ │ -00012400: 6563 6f67 6e69 7469 6f6e 206d 6574 686f ecognition metho │ │ │ -00012410: 6420 7072 6f70 6f73 6564 2062 7920 4164 d proposed by Ad │ │ │ -00012420: 616d 2043 6f61 7465 7320 2661 6d70 3b0a am Coates &. │ │ │ -00012430: 2041 6e64 7265 7720 4e47 2069 6e20 5b43 Andrew NG in [C │ │ │ -00012440: 6f61 7465 7331 3161 5d2e 2054 6865 2063 oates11a]. The c │ │ │ -00012450: 6861 7261 6374 6572 2063 6c61 7373 6966 haracter classif │ │ │ -00012460: 6965 7220 636f 6e73 6973 7473 2069 6e20 ier consists in │ │ │ -00012470: 6120 5369 6e67 6c65 204c 6179 6572 2043 a Single Layer C │ │ │ -00012480: 6f6e 766f 6c75 7469 6f6e 616c 204e 6575 onvolutional Neu │ │ │ -00012490: 7261 6c20 4e65 7477 6f72 6b20 616e 640a ral Network and. │ │ │ -000124a0: 2061 206c 696e 6561 7220 636c 6173 7369 a linear classi │ │ │ -000124b0: 6669 6572 2e20 4974 2069 7320 6170 706c fier. It is appl │ │ │ -000124c0: 6965 6420 746f 2074 6865 2069 6e70 7574 ied to the input │ │ │ -000124d0: 2069 6d61 6765 2069 6e20 6120 736c 6964 image in a slid │ │ │ -000124e0: 696e 6720 7769 6e64 6f77 2066 6173 6869 ing window fashi │ │ │ -000124f0: 6f6e 2c20 7072 6f76 6964 696e 6720 6120 on, providing a │ │ │ -00012500: 7365 7420 6f66 2072 6563 6f67 6e69 7469 set of recogniti │ │ │ -00012510: 6f6e 730a 2061 7420 6561 6368 2077 696e ons. at each win │ │ │ -00012520: 646f 7720 6c6f 6361 7469 6f6e 2e3c 2f64 dow location..
      Returns:< │ │ │ -00012540: 2f64 743e 0a3c 6464 3e61 7574 6f6d 6174 /dt>.
      automat │ │ │ -00012550: 6963 616c 6c79 2067 656e 6572 6174 6564 ically generated │ │ │ -00012560: 3c2f 6464 3e0a 3c2f 646c 3e0a 3c2f 7365
      .
      ..
    • .
    • .
      .

      l │ │ │ -000125d0: 6f61 644f 4352 484d 4d43 6c61 7373 6966 oadOCRHMMClassif │ │ │ -000125e0: 6965 723c 2f68 333e 0a3c 6469 7620 636c ier

      .
      p │ │ │ -00012620: 7562 6c69 6320 7374 6174 6963 3c2f 7370 ublic static OCRHMMDecode │ │ │ -000126b0: 725f 436c 6173 7369 6669 6572 4361 6c6c r_ClassifierCall │ │ │ -000126c0: 6261 636b 3c2f 613e 3c2f 7370 616e 3e26 back& │ │ │ -000126d0: 6e62 7370 3b3c 7370 616e 2063 6c61 7373 nbsp; │ │ │ -000126f0: 6c6f 6164 4f43 5248 4d4d 436c 6173 7369 loadOCRHMMClassi │ │ │ -00012700: 6669 6572 3c2f 7370 616e 3e3c 7762 723e fier │ │ │ -00012710: 3c73 7061 6e20 636c 6173 733d 2270 6172 (Str │ │ │ -000127d0: 696e 673c 2f61 3e26 6e62 7370 3b66 696c ing fil │ │ │ -000127e0: 656e 616d 652c 0a20 696e 7426 6e62 7370 ename,. int  │ │ │ -000127f0: 3b63 6c61 7373 6966 6965 7229 3c2f 7370 ;classifier)
      .
      All │ │ │ -00012820: 6f77 2074 6f20 696d 706c 6963 6974 6c79 ow to implicitly │ │ │ -00012830: 206c 6f61 6420 7468 6520 6465 6661 756c load the defaul │ │ │ -00012840: 7420 6368 6172 6163 7465 7220 636c 6173 t character clas │ │ │ -00012850: 7369 6669 6572 2077 6865 6e20 6372 6561 sifier when crea │ │ │ -00012860: 7469 6e67 2061 6e20 4f43 5248 4d4d 4465 ting an OCRHMMDe │ │ │ -00012870: 636f 6465 7220 6f62 6a65 6374 2e3c 2f64 coder object..
      .
      Param │ │ │ -000128a0: 6574 6572 733a 3c2f 6474 3e0a 3c64 643e eters:
      .
      │ │ │ -000128b0: 3c63 6f64 653e 6669 6c65 6e61 6d65 3c2f filename - The XML │ │ │ -000128d0: 6f72 2059 414d 4c20 6669 6c65 2077 6974 or YAML file wit │ │ │ -000128e0: 6820 7468 6520 636c 6173 7369 6669 6572 h the classifier │ │ │ -000128f0: 206d 6f64 656c 2028 652e 672e 204f 4352 model (e.g. OCR │ │ │ -00012900: 4265 616d 5365 6172 6368 5f43 4e4e 5f6d BeamSearch_CNN_m │ │ │ -00012910: 6f64 656c 5f64 6174 612e 786d 6c2e 677a odel_data.xml.gz │ │ │ -00012920: 293c 2f64 643e 0a3c 6464 3e3c 636f 6465 )
      .
      classifier - Can be one │ │ │ -00012950: 6f66 2063 6c61 7373 6966 6965 725f 7479 of classifier_ty │ │ │ -00012960: 7065 2065 6e75 6d20 7661 6c75 6573 2e3c pe enum values.< │ │ │ -00012970: 2f64 643e 0a3c 6474 3e52 6574 7572 6e73 /dd>.
      Returns │ │ │ -00012980: 3a3c 2f64 743e 0a3c 6464 3e61 7574 6f6d :
      .
      autom │ │ │ -00012990: 6174 6963 616c 6c79 2067 656e 6572 6174 atically generat │ │ │ -000129a0: 6564 3c2f 6464 3e0a 3c2f 646c 3e0a 3c2f ed
      .
      ..
    • .< │ │ │ -000129c0: 6c69 3e0a 3c73 6563 7469 6f6e 2063 6c61 li>.
      . │ │ │ -00012a20: 3c68 333e 6372 6561 7465 4f43 5248 4d4d

      createOCRHMM │ │ │ -00012a30: 5472 616e 7369 7469 6f6e 7354 6162 6c65 TransitionsTable │ │ │ -00012a40: 3c2f 6833 3e0a 3c64 6976 2063 6c61 7373

      .
      publ │ │ │ -00012a80: 6963 2073 7461 7469 633c 2f73 7061 6e3e ic static │ │ │ -00012a90: 266e 6273 703b 3c73 7061 6e20 636c 6173   │ │ │ -00012ab0: 3c61 2068 7265 663d 222e 2e2f 636f 7265 Mat< │ │ │ -00012af0: 2f61 3e3c 2f73 7061 6e3e 266e 6273 703b /a>  │ │ │ -00012b00: 3c73 7061 6e20 636c 6173 733d 2265 6c65 creat │ │ │ -00012b20: 654f 4352 484d 4d54 7261 6e73 6974 696f eOCRHMMTransitio │ │ │ -00012b30: 6e73 5461 626c 653c 2f73 7061 6e3e 3c77 nsTable( │ │ │ -00012c00: 5374 7269 6e67 3c2f 613e 266e 6273 703b String  │ │ │ -00012c10: 766f 6361 6275 6c61 7279 2c0a 203c 6120 vocabulary,. Li │ │ │ -00012cc0: 7374 3c2f 613e 266c 743b 3c61 2068 7265 st<Str │ │ │ -00012d70: 696e 673c 2f61 3e26 6774 3b26 6e62 7370 ing>  │ │ │ -00012d80: 3b6c 6578 6963 6f6e 293c 2f73 7061 6e3e ;lexicon) │ │ │ -00012d90: 3c2f 6469 763e 0a3c 6469 7620 636c 6173
      .
      Utilit │ │ │ -00012db0: 7920 6675 6e63 7469 6f6e 2074 6f20 6372 y function to cr │ │ │ -00012dc0: 6561 7465 2061 2074 6169 6c6f 7265 6420 eate a tailored │ │ │ -00012dd0: 6c61 6e67 7561 6765 206d 6f64 656c 2074 language model t │ │ │ -00012de0: 7261 6e73 6974 696f 6e73 2074 6162 6c65 ransitions table │ │ │ -00012df0: 2066 726f 6d20 6120 6769 7665 6e20 6c69 from a given li │ │ │ -00012e00: 7374 206f 6620 776f 7264 7320 286c 6578 st of words (lex │ │ │ -00012e10: 6963 6f6e 292e 3c2f 6469 763e 0a3c 646c icon).
      .
      . │ │ │ -00012e30: 3c64 743e 5061 7261 6d65 7465 7273 3a3c
      Parameters:< │ │ │ -00012e40: 2f64 743e 0a3c 6464 3e3c 636f 6465 3e76 /dt>.
      v │ │ │ -00012e50: 6f63 6162 756c 6172 793c 2f63 6f64 653e ocabulary │ │ │ -00012e60: 202d 2054 6865 206c 616e 6775 6167 6520 - The language │ │ │ -00012e70: 766f 6361 6275 6c61 7279 2028 6368 6172 vocabulary (char │ │ │ -00012e80: 7320 7768 656e 2041 5343 4949 2045 6e67 s when ASCII Eng │ │ │ -00012e90: 6c69 7368 2074 6578 7429 2e3c 2f64 643e lish text).
      │ │ │ -00012ea0: 0a3c 6464 3e3c 636f 6465 3e6c 6578 6963 .
      lexic │ │ │ -00012eb0: 6f6e 3c2f 636f 6465 3e20 2d20 5468 6520 on - The │ │ │ -00012ec0: 6c69 7374 206f 6620 776f 7264 7320 7468 list of words th │ │ │ -00012ed0: 6174 2061 7265 2065 7870 6563 7465 6420 at are expected │ │ │ -00012ee0: 746f 2062 6520 666f 756e 6420 696e 2061 to be found in a │ │ │ -00012ef0: 2070 6172 7469 6375 6c61 7220 696d 6167 particular imag │ │ │ -00012f00: 652e 0a0a 0a20 5468 6520 6675 6e63 7469 e.... The functi │ │ │ -00012f10: 6f6e 2063 616c 6375 6c61 7465 2066 7265 on calculate fre │ │ │ -00012f20: 7175 656e 6379 2073 7461 7469 7374 6963 quency statistic │ │ │ -00012f30: 7320 6f66 2063 6861 7261 6374 6572 2070 s of character p │ │ │ -00012f40: 6169 7273 2066 726f 6d20 7468 6520 6769 airs from the gi │ │ │ -00012f50: 7665 6e20 6c65 7869 636f 6e20 616e 6420 ven lexicon and │ │ │ -00012f60: 6669 6c6c 7320 7468 6520 6f75 7470 7574 fills the output │ │ │ -00012f70: 2074 7261 6e73 6974 696f 6e5f 7072 6f62 transition_prob │ │ │ -00012f80: 6162 696c 6974 6965 735f 7461 626c 6520 abilities_table │ │ │ -00012f90: 7769 7468 2074 6865 6d2e 2054 6865 2074 with them. The t │ │ │ -00012fa0: 7261 6e73 6974 696f 6e5f 7072 6f62 6162 ransition_probab │ │ │ -00012fb0: 696c 6974 6965 735f 7461 626c 6520 6361 ilities_table ca │ │ │ -00012fc0: 6e20 6265 2075 7365 6420 6173 2069 6e70 n be used as inp │ │ │ -00012fd0: 7574 2069 6e20 7468 6520 4f43 5248 4d4d ut in the OCRHMM │ │ │ -00012fe0: 4465 636f 6465 723a 3a63 7265 6174 6528 Decoder::create( │ │ │ -00012ff0: 2920 616e 6420 4f43 5242 6561 6d53 6561 ) and OCRBeamSea │ │ │ -00013000: 7263 6844 6563 6f64 6572 3a3a 6372 6561 rchDecoder::crea │ │ │ -00013010: 7465 2829 206d 6574 686f 6473 2e0a 203c te() methods.. < │ │ │ -00013020: 623e 4e6f 7465 3a3c 2f62 3e0a 202d 2020 b>Note:. - │ │ │ -00013030: 2028 432b 2b29 2041 6e20 616c 7465 726e (C++) An altern │ │ │ -00013040: 6174 6976 6520 776f 756c 6420 6265 2074 ative would be t │ │ │ -00013050: 6f20 6c6f 6164 2074 6865 2064 6566 6175 o load the defau │ │ │ -00013060: 6c74 2067 656e 6572 6963 206c 616e 6775 lt generic langu │ │ │ -00013070: 6167 6520 7472 616e 7369 7469 6f6e 2074 age transition t │ │ │ -00013080: 6162 6c65 2070 726f 7669 6465 6420 696e able provided in │ │ │ -00013090: 2074 6865 2074 6578 7420 6d6f 6475 6c65 the text module │ │ │ -000130a0: 2073 616d 706c 6573 2066 6f6c 6465 7220 samples folder │ │ │ -000130b0: 2863 7265 6174 6564 2066 726f 6d20 6973 (created from is │ │ │ -000130c0: 7065 6c6c 2034 3238 3639 2065 6e67 6c69 pell 42869 engli │ │ │ -000130d0: 7368 2077 6f72 6473 206c 6973 7429 203a sh words list) : │ │ │ -000130e0: 0a20 266c 743b 6874 7470 733a 2f2f 6769 . <https://gi │ │ │ -000130f0: 7468 7562 2e63 6f6d 2f6f 7065 6e63 762f thub.com/opencv/ │ │ │ -00013100: 6f70 656e 6376 5f63 6f6e 7472 6962 2f62 opencv_contrib/b │ │ │ -00013110: 6c6f 622f 6d61 7374 6572 2f6d 6f64 756c lob/master/modul │ │ │ -00013120: 6573 2f74 6578 742f 7361 6d70 6c65 732f es/text/samples/ │ │ │ -00013130: 4f43 5248 4d4d 5f74 7261 6e73 6974 696f OCRHMM_transitio │ │ │ -00013140: 6e73 5f74 6162 6c65 2e78 6d6c 2667 743b ns_table.xml> │ │ │ -00013150: 3c2f 6464 3e0a 3c64 743e 5265 7475 726e
      .
      Return │ │ │ -00013160: 733a 3c2f 6474 3e0a 3c64 643e 6175 746f s:
      .
      auto │ │ │ -00013170: 6d61 7469 6361 6c6c 7920 6765 6e65 7261 matically genera │ │ │ -00013180: 7465 643c 2f64 643e 0a3c 2f64 6c3e 0a3c ted
      .
      .< │ │ │ -00013190: 2f73 6563 7469 6f6e 3e0a 3c2f 6c69 3e0a /section>.. │ │ │ -000131a0: 3c6c 693e 0a3c 7365 6374 696f 6e20 636c
    • .
      .

      loadOCRB │ │ │ -00013200: 6561 6d53 6561 7263 6843 6c61 7373 6966 eamSearchClassif │ │ │ -00013210: 6965 7243 4e4e 3c2f 6833 3e0a 3c64 6976 ierCNN

      .
      public static< │ │ │ -00013260: 2f73 7061 6e3e 266e 6273 703b 3c73 7061 /span> OC │ │ │ -000132e0: 5242 6561 6d53 6561 7263 6844 6563 6f64 RBeamSearchDecod │ │ │ -000132f0: 6572 5f43 6c61 7373 6966 6965 7243 616c er_ClassifierCal │ │ │ -00013300: 6c62 6163 6b3c 2f61 3e3c 2f73 7061 6e3e lback │ │ │ -00013310: 266e 6273 703b 3c73 7061 6e20 636c 6173  loadOCRBeamSear │ │ │ -00013340: 6368 436c 6173 7369 6669 6572 434e 4e3c chClassifierCNN< │ │ │ -00013350: 2f73 7061 6e3e 3c77 6272 3e3c 7370 616e /span>(String filename │ │ │ -00013430: 293c 2f73 7061 6e3e 3c2f 6469 763e 0a3c )
      .< │ │ │ -00013440: 6469 7620 636c 6173 733d 2262 6c6f 636b div class="block │ │ │ -00013450: 223e 416c 6c6f 7720 746f 2069 6d70 6c69 ">Allow to impli │ │ │ -00013460: 6369 746c 7920 6c6f 6164 2074 6865 2064 citly load the d │ │ │ -00013470: 6566 6175 6c74 2063 6861 7261 6374 6572 efault character │ │ │ -00013480: 2063 6c61 7373 6966 6965 7220 7768 656e classifier when │ │ │ -00013490: 2063 7265 6174 696e 6720 616e 204f 4352 creating an OCR │ │ │ -000134a0: 4265 616d 5365 6172 6368 4465 636f 6465 BeamSearchDecode │ │ │ -000134b0: 7220 6f62 6a65 6374 2e3c 2f64 6976 3e0a r object.. │ │ │ -000134c0: 3c64 6c20 636c 6173 733d 226e 6f74 6573
      .
      Parameter │ │ │ -000134e0: 733a 3c2f 6474 3e0a 3c64 643e 3c63 6f64 s:
      .
      filename - The XML or Y │ │ │ -00013510: 414d 4c20 6669 6c65 2077 6974 6820 7468 AML file with th │ │ │ -00013520: 6520 636c 6173 7369 6669 6572 206d 6f64 e classifier mod │ │ │ -00013530: 656c 2028 652e 672e 204f 4352 4265 616d el (e.g. OCRBeam │ │ │ -00013540: 5365 6172 6368 5f43 4e4e 5f6d 6f64 656c Search_CNN_model │ │ │ -00013550: 5f64 6174 612e 786d 6c2e 677a 290a 0a20 _data.xml.gz).. │ │ │ -00013560: 5468 6520 434e 4e20 6465 6661 756c 7420 The CNN default │ │ │ -00013570: 636c 6173 7369 6669 6572 2069 7320 6261 classifier is ba │ │ │ -00013580: 7365 6420 696e 2074 6865 2073 6365 6e65 sed in the scene │ │ │ -00013590: 2074 6578 7420 7265 636f 676e 6974 696f text recognitio │ │ │ -000135a0: 6e20 6d65 7468 6f64 2070 726f 706f 7365 n method propose │ │ │ -000135b0: 6420 6279 2041 6461 6d20 436f 6174 6573 d by Adam Coates │ │ │ -000135c0: 2026 616d 703b 0a20 416e 6472 6577 204e &. Andrew N │ │ │ -000135d0: 4720 696e 205b 436f 6174 6573 3131 615d G in [Coates11a] │ │ │ -000135e0: 2e20 5468 6520 6368 6172 6163 7465 7220 . The character │ │ │ -000135f0: 636c 6173 7369 6669 6572 2063 6f6e 7369 classifier consi │ │ │ -00013600: 7374 7320 696e 2061 2053 696e 676c 6520 sts in a Single │ │ │ -00013610: 4c61 7965 7220 436f 6e76 6f6c 7574 696f Layer Convolutio │ │ │ -00013620: 6e61 6c20 4e65 7572 616c 204e 6574 776f nal Neural Netwo │ │ │ -00013630: 726b 2061 6e64 0a20 6120 6c69 6e65 6172 rk and. a linear │ │ │ -00013640: 2063 6c61 7373 6966 6965 722e 2049 7420 classifier. It │ │ │ -00013650: 6973 2061 7070 6c69 6564 2074 6f20 7468 is applied to th │ │ │ -00013660: 6520 696e 7075 7420 696d 6167 6520 696e e input image in │ │ │ -00013670: 2061 2073 6c69 6469 6e67 2077 696e 646f a sliding windo │ │ │ -00013680: 7720 6661 7368 696f 6e2c 2070 726f 7669 w fashion, provi │ │ │ -00013690: 6469 6e67 2061 2073 6574 206f 6620 7265 ding a set of re │ │ │ -000136a0: 636f 676e 6974 696f 6e73 0a20 6174 2065 cognitions. at e │ │ │ -000136b0: 6163 6820 7769 6e64 6f77 206c 6f63 6174 ach window locat │ │ │ -000136c0: 696f 6e2e 3c2f 6464 3e0a 3c64 743e 5265 ion.
      .
      Re │ │ │ -000136d0: 7475 726e 733a 3c2f 6474 3e0a 3c64 643e turns:
      .
      │ │ │ -000136e0: 6175 746f 6d61 7469 6361 6c6c 7920 6765 automatically ge │ │ │ -000136f0: 6e65 7261 7465 643c 2f64 643e 0a3c 2f64 nerated
      ..
      ..
    • .. │ │ │ -00013790: 3c68 333e 6372 6561 7465 4552 4669 6c74

      createERFilt │ │ │ -000137a0: 6572 4e4d 313c 2f68 333e 0a3c 6469 7620 erNM1

      .
      public static ER │ │ │ -00013850: 4669 6c74 6572 3c2f 613e 3c2f 7370 616e Filter createERFilter │ │ │ -00013890: 4e4d 313c 2f73 7061 6e3e 3c77 6272 3e3c NM1< │ │ │ -000138a0: 7370 616e 2063 6c61 7373 3d22 7061 7261 span class="para │ │ │ -000138b0: 6d65 7465 7273 223e 283c 6120 6872 6566 meters">(ERFil │ │ │ -00013900: 7465 725f 4361 6c6c 6261 636b 3c2f 613e ter_Callback │ │ │ -00013910: 266e 6273 703b 6362 2c0a 2069 6e74 266e  cb,. int&n │ │ │ -00013920: 6273 703b 7468 7265 7368 6f6c 6444 656c bsp;thresholdDel │ │ │ -00013930: 7461 2c0a 2066 6c6f 6174 266e 6273 703b ta,. float  │ │ │ -00013940: 6d69 6e41 7265 612c 0a20 666c 6f61 7426 minArea,. float& │ │ │ -00013950: 6e62 7370 3b6d 6178 4172 6561 2c0a 2066 nbsp;maxArea,. f │ │ │ -00013960: 6c6f 6174 266e 6273 703b 6d69 6e50 726f loat minPro │ │ │ -00013970: 6261 6269 6c69 7479 2c0a 2062 6f6f 6c65 bability,. boole │ │ │ -00013980: 616e 266e 6273 703b 6e6f 6e4d 6178 5375 an nonMaxSu │ │ │ -00013990: 7070 7265 7373 696f 6e2c 0a20 666c 6f61 ppression,. floa │ │ │ -000139a0: 7426 6e62 7370 3b6d 696e 5072 6f62 6162 t minProbab │ │ │ -000139b0: 696c 6974 7944 6966 6629 3c2f 7370 616e ilityDiff)
      .
      Creat │ │ │ -000139e0: 6520 616e 2045 7874 7265 6d61 6c20 5265 e an Extremal Re │ │ │ -000139f0: 6769 6f6e 2046 696c 7465 7220 666f 7220 gion Filter for │ │ │ -00013a00: 7468 6520 3173 7420 7374 6167 6520 636c the 1st stage cl │ │ │ -00013a10: 6173 7369 6669 6572 206f 6620 4e26 616d assifier of N&am │ │ │ -00013a20: 703b 4d20 616c 676f 7269 7468 6d20 4349 p;M algorithm CI │ │ │ -00013a30: 5445 3a20 4e65 756d 616e 6e31 322e 0a0a TE: Neumann12... │ │ │ -00013a40: 206c 6f61 6443 6c61 7373 6966 6965 724e loadClassifierN │ │ │ -00013a50: 4d31 2c20 652e 672e 2066 726f 6d20 6669 M1, e.g. from fi │ │ │ -00013a60: 6c65 2069 6e20 7361 6d70 6c65 732f 6370 le in samples/cp │ │ │ -00013a70: 702f 7472 6169 6e65 645f 636c 6173 7369 p/trained_classi │ │ │ -00013a80: 6669 6572 4e4d 312e 786d 6c0a 0a20 5468 fierNM1.xml.. Th │ │ │ -00013a90: 6520 636f 6d70 6f6e 656e 7420 7472 6565 e component tree │ │ │ -00013aa0: 206f 6620 7468 6520 696d 6167 6520 6973 of the image is │ │ │ -00013ab0: 2065 7874 7261 6374 6564 2062 7920 6120 extracted by a │ │ │ -00013ac0: 7468 7265 7368 6f6c 6420 696e 6372 6561 threshold increa │ │ │ -00013ad0: 7365 6420 7374 6570 2062 7920 7374 6570 sed step by step │ │ │ -00013ae0: 2066 726f 6d20 3020 746f 2032 3535 2c0a from 0 to 255,. │ │ │ -00013af0: 2069 6e63 7265 6d65 6e74 616c 6c79 2063 incrementally c │ │ │ -00013b00: 6f6d 7075 7461 626c 6520 6465 7363 7269 omputable descri │ │ │ -00013b10: 7074 6f72 7320 2861 7370 6563 745f 7261 ptors (aspect_ra │ │ │ -00013b20: 7469 6f2c 2063 6f6d 7061 6374 6e65 7373 tio, compactness │ │ │ -00013b30: 2c20 6e75 6d62 6572 206f 6620 686f 6c65 , number of hole │ │ │ -00013b40: 732c 2061 6e64 206e 756d 6265 7220 6f66 s, and number of │ │ │ -00013b50: 0a20 686f 7269 7a6f 6e74 616c 2063 726f . horizontal cro │ │ │ -00013b60: 7373 696e 6773 2920 6172 6520 636f 6d70 ssings) are comp │ │ │ -00013b70: 7574 6564 2066 6f72 2065 6163 6820 4552 uted for each ER │ │ │ -00013b80: 2061 6e64 2075 7365 6420 6173 2066 6561 and used as fea │ │ │ -00013b90: 7475 7265 7320 666f 7220 6120 636c 6173 tures for a clas │ │ │ -00013ba0: 7369 6669 6572 2077 6869 6368 2065 7374 sifier which est │ │ │ -00013bb0: 696d 6174 6573 0a20 7468 6520 636c 6173 imates. the clas │ │ │ -00013bc0: 732d 636f 6e64 6974 696f 6e61 6c20 7072 s-conditional pr │ │ │ -00013bd0: 6f62 6162 696c 6974 7920 5028 6572 7c63 obability P(er|c │ │ │ -00013be0: 6861 7261 6374 6572 292e 2054 6865 2076 haracter). The v │ │ │ -00013bf0: 616c 7565 206f 6620 5028 6572 7c63 6861 alue of P(er|cha │ │ │ -00013c00: 7261 6374 6572 2920 6973 2074 7261 636b racter) is track │ │ │ -00013c10: 6564 2075 7369 6e67 2074 6865 0a20 696e ed using the. in │ │ │ -00013c20: 636c 7573 696f 6e20 7265 6c61 7469 6f6e clusion relation │ │ │ -00013c30: 206f 6620 4552 2061 6372 6f73 7320 616c of ER across al │ │ │ -00013c40: 6c20 7468 7265 7368 6f6c 6473 2061 6e64 l thresholds and │ │ │ -00013c50: 206f 6e6c 7920 7468 6520 4552 7320 7768 only the ERs wh │ │ │ -00013c60: 6963 6820 636f 7272 6573 706f 6e64 2074 ich correspond t │ │ │ -00013c70: 6f20 6c6f 6361 6c20 6d61 7869 6d75 6d20 o local maximum │ │ │ -00013c80: 6f66 0a20 7468 6520 7072 6f62 6162 696c of. the probabil │ │ │ -00013c90: 6974 7920 5028 6572 7c63 6861 7261 6374 ity P(er|charact │ │ │ -00013ca0: 6572 2920 6172 6520 7365 6c65 6374 6564 er) are selected │ │ │ -00013cb0: 2028 6966 2074 6865 206c 6f63 616c 206d (if the local m │ │ │ -00013cc0: 6178 696d 756d 206f 6620 7468 6520 7072 aximum of the pr │ │ │ -00013cd0: 6f62 6162 696c 6974 7920 6973 2061 626f obability is abo │ │ │ -00013ce0: 7665 2061 0a20 676c 6f62 616c 206c 696d ve a. global lim │ │ │ -00013cf0: 6974 2070 6d69 6e20 616e 6420 7468 6520 it pmin and the │ │ │ -00013d00: 6469 6666 6572 656e 6365 2062 6574 7765 difference betwe │ │ │ -00013d10: 656e 206c 6f63 616c 206d 6178 696d 756d en local maximum │ │ │ -00013d20: 2061 6e64 206c 6f63 616c 206d 696e 696d and local minim │ │ │ -00013d30: 756d 2069 7320 6772 6561 7465 7220 7468 um is greater th │ │ │ -00013d40: 616e 0a20 6d69 6e50 726f 6261 6269 6c69 an. minProbabili │ │ │ -00013d50: 7479 4469 6666 292e 3c2f 6469 763e 0a3c tyDiff).
      .< │ │ │ -00013d60: 646c 2063 6c61 7373 3d22 6e6f 7465 7322 dl class="notes" │ │ │ -00013d70: 3e0a 3c64 743e 5061 7261 6d65 7465 7273 >.
      Parameters │ │ │ -00013d80: 3a3c 2f64 743e 0a3c 6464 3e3c 636f 6465 :
      .
      cb - aut │ │ │ -00013da0: 6f6d 6174 6963 616c 6c79 2067 656e 6572 omatically gener │ │ │ -00013db0: 6174 6564 3c2f 6464 3e0a 3c64 643e 3c63 ated
      .
      thresholdDel │ │ │ -00013dd0: 7461 3c2f 636f 6465 3e20 2d20 6175 746f ta - auto │ │ │ -00013de0: 6d61 7469 6361 6c6c 7920 6765 6e65 7261 matically genera │ │ │ -00013df0: 7465 643c 2f64 643e 0a3c 6464 3e3c 636f ted
      .
      minArea - automaticall │ │ │ -00013e20: 7920 6765 6e65 7261 7465 643c 2f64 643e y generated
      │ │ │ -00013e30: 0a3c 6464 3e3c 636f 6465 3e6d 6178 4172 .
      maxAr │ │ │ -00013e40: 6561 3c2f 636f 6465 3e20 2d20 6175 746f ea - auto │ │ │ -00013e50: 6d61 7469 6361 6c6c 7920 6765 6e65 7261 matically genera │ │ │ -00013e60: 7465 643c 2f64 643e 0a3c 6464 3e3c 636f ted
      .
      minProbabilit │ │ │ -00013e80: 793c 2f63 6f64 653e 202d 2061 7574 6f6d y - autom │ │ │ -00013e90: 6174 6963 616c 6c79 2067 656e 6572 6174 atically generat │ │ │ -00013ea0: 6564 3c2f 6464 3e0a 3c64 643e 3c63 6f64 ed
      .
      nonMaxSuppress │ │ │ -00013ec0: 696f 6e3c 2f63 6f64 653e 202d 2061 7574 ion - aut │ │ │ -00013ed0: 6f6d 6174 6963 616c 6c79 2067 656e 6572 omatically gener │ │ │ -00013ee0: 6174 6564 3c2f 6464 3e0a 3c64 643e 3c63 ated
      .
      minProbabili │ │ │ -00013f00: 7479 4469 6666 3c2f 636f 6465 3e20 2d20 tyDiff - │ │ │ -00013f10: 6175 746f 6d61 7469 6361 6c6c 7920 6765 automatically ge │ │ │ -00013f20: 6e65 7261 7465 643c 2f64 643e 0a3c 6474 nerated
      .
      Returns:
      .< │ │ │ -00013f40: 6464 3e61 7574 6f6d 6174 6963 616c 6c79 dd>automatically │ │ │ -00013f50: 2067 656e 6572 6174 6564 3c2f 6464 3e0a generated. │ │ │ -00013f60: 3c2f 646c 3e0a 3c2f 7365 6374 696f 6e3e .
    • │ │ │ -00013f70: 0a3c 2f6c 693e 0a3c 6c69 3e0a 3c73 6563 ..
    • ..

      createERFilterN │ │ │ -00014000: 4d31 3c2f 6833 3e0a 3c64 6976 2063 6c61 M1

      .
      pu │ │ │ -00014040: 626c 6963 2073 7461 7469 633c 2f73 7061 blic static ERFil │ │ │ -000140b0: 7465 723c 2f61 3e3c 2f73 7061 6e3e 266e ter&n │ │ │ -000140c0: 6273 703b 3c73 7061 6e20 636c 6173 733d bsp;c │ │ │ -000140e0: 7265 6174 6545 5246 696c 7465 724e 4d31 reateERFilterNM1 │ │ │ -000140f0: 3c2f 7370 616e 3e3c 7762 723e 3c73 7061 (ERFilter │ │ │ -00014160: 5f43 616c 6c62 6163 6b3c 2f61 3e26 6e62 _Callback&nb │ │ │ -00014170: 7370 3b63 622c 0a20 696e 7426 6e62 7370 sp;cb,. int  │ │ │ -00014180: 3b74 6872 6573 686f 6c64 4465 6c74 612c ;thresholdDelta, │ │ │ -00014190: 0a20 666c 6f61 7426 6e62 7370 3b6d 696e . float min │ │ │ -000141a0: 4172 6561 2c0a 2066 6c6f 6174 266e 6273 Area,. float&nbs │ │ │ -000141b0: 703b 6d61 7841 7265 612c 0a20 666c 6f61 p;maxArea,. floa │ │ │ -000141c0: 7426 6e62 7370 3b6d 696e 5072 6f62 6162 t minProbab │ │ │ -000141d0: 696c 6974 792c 0a20 626f 6f6c 6561 6e26 ility,. boolean& │ │ │ -000141e0: 6e62 7370 3b6e 6f6e 4d61 7853 7570 7072 nbsp;nonMaxSuppr │ │ │ -000141f0: 6573 7369 6f6e 293c 2f73 7061 6e3e 3c2f ession).
      Create a │ │ │ -00014220: 6e20 4578 7472 656d 616c 2052 6567 696f n Extremal Regio │ │ │ -00014230: 6e20 4669 6c74 6572 2066 6f72 2074 6865 n Filter for the │ │ │ -00014240: 2031 7374 2073 7461 6765 2063 6c61 7373 1st stage class │ │ │ -00014250: 6966 6965 7220 6f66 204e 2661 6d70 3b4d ifier of N&M │ │ │ -00014260: 2061 6c67 6f72 6974 686d 2043 4954 453a algorithm CITE: │ │ │ -00014270: 204e 6575 6d61 6e6e 3132 2e0a 0a20 6c6f Neumann12... lo │ │ │ -00014280: 6164 436c 6173 7369 6669 6572 4e4d 312c adClassifierNM1, │ │ │ -00014290: 2065 2e67 2e20 6672 6f6d 2066 696c 6520 e.g. from file │ │ │ -000142a0: 696e 2073 616d 706c 6573 2f63 7070 2f74 in samples/cpp/t │ │ │ -000142b0: 7261 696e 6564 5f63 6c61 7373 6966 6965 rained_classifie │ │ │ -000142c0: 724e 4d31 2e78 6d6c 0a0a 2054 6865 2063 rNM1.xml.. The c │ │ │ -000142d0: 6f6d 706f 6e65 6e74 2074 7265 6520 6f66 omponent tree of │ │ │ -000142e0: 2074 6865 2069 6d61 6765 2069 7320 6578 the image is ex │ │ │ -000142f0: 7472 6163 7465 6420 6279 2061 2074 6872 tracted by a thr │ │ │ -00014300: 6573 686f 6c64 2069 6e63 7265 6173 6564 eshold increased │ │ │ -00014310: 2073 7465 7020 6279 2073 7465 7020 6672 step by step fr │ │ │ -00014320: 6f6d 2030 2074 6f20 3235 352c 0a20 696e om 0 to 255,. in │ │ │ -00014330: 6372 656d 656e 7461 6c6c 7920 636f 6d70 crementally comp │ │ │ -00014340: 7574 6162 6c65 2064 6573 6372 6970 746f utable descripto │ │ │ -00014350: 7273 2028 6173 7065 6374 5f72 6174 696f rs (aspect_ratio │ │ │ -00014360: 2c20 636f 6d70 6163 746e 6573 732c 206e , compactness, n │ │ │ -00014370: 756d 6265 7220 6f66 2068 6f6c 6573 2c20 umber of holes, │ │ │ -00014380: 616e 6420 6e75 6d62 6572 206f 660a 2068 and number of. h │ │ │ -00014390: 6f72 697a 6f6e 7461 6c20 6372 6f73 7369 orizontal crossi │ │ │ -000143a0: 6e67 7329 2061 7265 2063 6f6d 7075 7465 ngs) are compute │ │ │ -000143b0: 6420 666f 7220 6561 6368 2045 5220 616e d for each ER an │ │ │ -000143c0: 6420 7573 6564 2061 7320 6665 6174 7572 d used as featur │ │ │ -000143d0: 6573 2066 6f72 2061 2063 6c61 7373 6966 es for a classif │ │ │ -000143e0: 6965 7220 7768 6963 6820 6573 7469 6d61 ier which estima │ │ │ -000143f0: 7465 730a 2074 6865 2063 6c61 7373 2d63 tes. the class-c │ │ │ -00014400: 6f6e 6469 7469 6f6e 616c 2070 726f 6261 onditional proba │ │ │ -00014410: 6269 6c69 7479 2050 2865 727c 6368 6172 bility P(er|char │ │ │ -00014420: 6163 7465 7229 2e20 5468 6520 7661 6c75 acter). The valu │ │ │ -00014430: 6520 6f66 2050 2865 727c 6368 6172 6163 e of P(er|charac │ │ │ -00014440: 7465 7229 2069 7320 7472 6163 6b65 6420 ter) is tracked │ │ │ -00014450: 7573 696e 6720 7468 650a 2069 6e63 6c75 using the. inclu │ │ │ -00014460: 7369 6f6e 2072 656c 6174 696f 6e20 6f66 sion relation of │ │ │ -00014470: 2045 5220 6163 726f 7373 2061 6c6c 2074 ER across all t │ │ │ -00014480: 6872 6573 686f 6c64 7320 616e 6420 6f6e hresholds and on │ │ │ -00014490: 6c79 2074 6865 2045 5273 2077 6869 6368 ly the ERs which │ │ │ -000144a0: 2063 6f72 7265 7370 6f6e 6420 746f 206c correspond to l │ │ │ -000144b0: 6f63 616c 206d 6178 696d 756d 206f 660a ocal maximum of. │ │ │ -000144c0: 2074 6865 2070 726f 6261 6269 6c69 7479 the probability │ │ │ -000144d0: 2050 2865 727c 6368 6172 6163 7465 7229 P(er|character) │ │ │ -000144e0: 2061 7265 2073 656c 6563 7465 6420 2869 are selected (i │ │ │ -000144f0: 6620 7468 6520 6c6f 6361 6c20 6d61 7869 f the local maxi │ │ │ -00014500: 6d75 6d20 6f66 2074 6865 2070 726f 6261 mum of the proba │ │ │ -00014510: 6269 6c69 7479 2069 7320 6162 6f76 6520 bility is above │ │ │ -00014520: 610a 2067 6c6f 6261 6c20 6c69 6d69 7420 a. global limit │ │ │ -00014530: 706d 696e 2061 6e64 2074 6865 2064 6966 pmin and the dif │ │ │ -00014540: 6665 7265 6e63 6520 6265 7477 6565 6e20 ference between │ │ │ -00014550: 6c6f 6361 6c20 6d61 7869 6d75 6d20 616e local maximum an │ │ │ -00014560: 6420 6c6f 6361 6c20 6d69 6e69 6d75 6d20 d local minimum │ │ │ -00014570: 6973 2067 7265 6174 6572 2074 6861 6e0a is greater than. │ │ │ -00014580: 206d 696e 5072 6f62 6162 696c 6974 7944 minProbabilityD │ │ │ -00014590: 6966 6629 2e3c 2f64 6976 3e0a 3c64 6c20 iff).
      .
      .< │ │ │ -000145b0: 6474 3e50 6172 616d 6574 6572 733a 3c2f dt>Parameters:.
      cb │ │ │ -000145d0: 3c2f 636f 6465 3e20 2d20 6175 746f 6d61 - automa │ │ │ -000145e0: 7469 6361 6c6c 7920 6765 6e65 7261 7465 tically generate │ │ │ -000145f0: 643c 2f64 643e 0a3c 6464 3e3c 636f 6465 d
      .
      thresholdDelta< │ │ │ -00014610: 2f63 6f64 653e 202d 2061 7574 6f6d 6174 /code> - automat │ │ │ -00014620: 6963 616c 6c79 2067 656e 6572 6174 6564 ically generated │ │ │ -00014630: 3c2f 6464 3e0a 3c64 643e 3c63 6f64 653e
      .
      │ │ │ -00014640: 6d69 6e41 7265 613c 2f63 6f64 653e 202d minArea - │ │ │ -00014650: 2061 7574 6f6d 6174 6963 616c 6c79 2067 automatically g │ │ │ -00014660: 656e 6572 6174 6564 3c2f 6464 3e0a 3c64 enerated
      .maxArea< │ │ │ -00014680: 2f63 6f64 653e 202d 2061 7574 6f6d 6174 /code> - automat │ │ │ -00014690: 6963 616c 6c79 2067 656e 6572 6174 6564 ically generated │ │ │ -000146a0: 3c2f 6464 3e0a 3c64 643e 3c63 6f64 653e .
      │ │ │ -000146b0: 6d69 6e50 726f 6261 6269 6c69 7479 3c2f minProbability - automati │ │ │ -000146d0: 6361 6c6c 7920 6765 6e65 7261 7465 643c cally generated< │ │ │ -000146e0: 2f64 643e 0a3c 6464 3e3c 636f 6465 3e6e /dd>.
      n │ │ │ -000146f0: 6f6e 4d61 7853 7570 7072 6573 7369 6f6e onMaxSuppression │ │ │ -00014700: 3c2f 636f 6465 3e20 2d20 6175 746f 6d61 - automa │ │ │ -00014710: 7469 6361 6c6c 7920 6765 6e65 7261 7465 tically generate │ │ │ -00014720: 643c 2f64 643e 0a3c 6474 3e52 6574 7572 d
      .
      Retur │ │ │ -00014730: 6e73 3a3c 2f64 743e 0a3c 6464 3e61 7574 ns:
      .
      aut │ │ │ -00014740: 6f6d 6174 6963 616c 6c79 2067 656e 6572 omatically gener │ │ │ -00014750: 6174 6564 3c2f 6464 3e0a 3c2f 646c 3e0a ated
      .
      . │ │ │ -00014760: 3c2f 7365 6374 696f 6e3e 0a3c 2f6c 693e .
    • │ │ │ -00014770: 0a3c 6c69 3e0a 3c73 6563 7469 6f6e 2063 .
    • .
      .< │ │ │ -000147e0: 6833 3e63 7265 6174 6545 5246 696c 7465 h3>createERFilte │ │ │ -000147f0: 724e 4d31 3c2f 6833 3e0a 3c64 6976 2063 rNM1.
      │ │ │ -00014830: 7075 626c 6963 2073 7461 7469 633c 2f73 public static ERF │ │ │ -000148a0: 696c 7465 723c 2f61 3e3c 2f73 7061 6e3e ilter │ │ │ -000148b0: 266e 6273 703b 3c73 7061 6e20 636c 6173  createERFilterN │ │ │ -000148e0: 4d31 3c2f 7370 616e 3e3c 7762 723e 3c73 M1(ERFilt │ │ │ -00014950: 6572 5f43 616c 6c62 6163 6b3c 2f61 3e26 er_Callback& │ │ │ -00014960: 6e62 7370 3b63 622c 0a20 696e 7426 6e62 nbsp;cb,. int&nb │ │ │ -00014970: 7370 3b74 6872 6573 686f 6c64 4465 6c74 sp;thresholdDelt │ │ │ -00014980: 612c 0a20 666c 6f61 7426 6e62 7370 3b6d a,. float m │ │ │ -00014990: 696e 4172 6561 2c0a 2066 6c6f 6174 266e inArea,. float&n │ │ │ -000149a0: 6273 703b 6d61 7841 7265 612c 0a20 666c bsp;maxArea,. fl │ │ │ -000149b0: 6f61 7426 6e62 7370 3b6d 696e 5072 6f62 oat minProb │ │ │ -000149c0: 6162 696c 6974 7929 3c2f 7370 616e 3e3c ability)< │ │ │ -000149d0: 2f64 6976 3e0a 3c64 6976 2063 6c61 7373 /div>.
      Create │ │ │ -000149f0: 616e 2045 7874 7265 6d61 6c20 5265 6769 an Extremal Regi │ │ │ -00014a00: 6f6e 2046 696c 7465 7220 666f 7220 7468 on Filter for th │ │ │ -00014a10: 6520 3173 7420 7374 6167 6520 636c 6173 e 1st stage clas │ │ │ -00014a20: 7369 6669 6572 206f 6620 4e26 616d 703b sifier of N& │ │ │ -00014a30: 4d20 616c 676f 7269 7468 6d20 4349 5445 M algorithm CITE │ │ │ -00014a40: 3a20 4e65 756d 616e 6e31 322e 0a0a 206c : Neumann12... l │ │ │ -00014a50: 6f61 6443 6c61 7373 6966 6965 724e 4d31 oadClassifierNM1 │ │ │ -00014a60: 2c20 652e 672e 2066 726f 6d20 6669 6c65 , e.g. from file │ │ │ -00014a70: 2069 6e20 7361 6d70 6c65 732f 6370 702f in samples/cpp/ │ │ │ -00014a80: 7472 6169 6e65 645f 636c 6173 7369 6669 trained_classifi │ │ │ -00014a90: 6572 4e4d 312e 786d 6c0a 0a20 5468 6520 erNM1.xml.. The │ │ │ -00014aa0: 636f 6d70 6f6e 656e 7420 7472 6565 206f component tree o │ │ │ -00014ab0: 6620 7468 6520 696d 6167 6520 6973 2065 f the image is e │ │ │ -00014ac0: 7874 7261 6374 6564 2062 7920 6120 7468 xtracted by a th │ │ │ -00014ad0: 7265 7368 6f6c 6420 696e 6372 6561 7365 reshold increase │ │ │ -00014ae0: 6420 7374 6570 2062 7920 7374 6570 2066 d step by step f │ │ │ -00014af0: 726f 6d20 3020 746f 2032 3535 2c0a 2069 rom 0 to 255,. i │ │ │ -00014b00: 6e63 7265 6d65 6e74 616c 6c79 2063 6f6d ncrementally com │ │ │ -00014b10: 7075 7461 626c 6520 6465 7363 7269 7074 putable descript │ │ │ -00014b20: 6f72 7320 2861 7370 6563 745f 7261 7469 ors (aspect_rati │ │ │ -00014b30: 6f2c 2063 6f6d 7061 6374 6e65 7373 2c20 o, compactness, │ │ │ -00014b40: 6e75 6d62 6572 206f 6620 686f 6c65 732c number of holes, │ │ │ -00014b50: 2061 6e64 206e 756d 6265 7220 6f66 0a20 and number of. │ │ │ -00014b60: 686f 7269 7a6f 6e74 616c 2063 726f 7373 horizontal cross │ │ │ -00014b70: 696e 6773 2920 6172 6520 636f 6d70 7574 ings) are comput │ │ │ -00014b80: 6564 2066 6f72 2065 6163 6820 4552 2061 ed for each ER a │ │ │ -00014b90: 6e64 2075 7365 6420 6173 2066 6561 7475 nd used as featu │ │ │ -00014ba0: 7265 7320 666f 7220 6120 636c 6173 7369 res for a classi │ │ │ -00014bb0: 6669 6572 2077 6869 6368 2065 7374 696d fier which estim │ │ │ -00014bc0: 6174 6573 0a20 7468 6520 636c 6173 732d ates. the class- │ │ │ -00014bd0: 636f 6e64 6974 696f 6e61 6c20 7072 6f62 conditional prob │ │ │ -00014be0: 6162 696c 6974 7920 5028 6572 7c63 6861 ability P(er|cha │ │ │ -00014bf0: 7261 6374 6572 292e 2054 6865 2076 616c racter). The val │ │ │ -00014c00: 7565 206f 6620 5028 6572 7c63 6861 7261 ue of P(er|chara │ │ │ -00014c10: 6374 6572 2920 6973 2074 7261 636b 6564 cter) is tracked │ │ │ -00014c20: 2075 7369 6e67 2074 6865 0a20 696e 636c using the. incl │ │ │ -00014c30: 7573 696f 6e20 7265 6c61 7469 6f6e 206f usion relation o │ │ │ -00014c40: 6620 4552 2061 6372 6f73 7320 616c 6c20 f ER across all │ │ │ -00014c50: 7468 7265 7368 6f6c 6473 2061 6e64 206f thresholds and o │ │ │ -00014c60: 6e6c 7920 7468 6520 4552 7320 7768 6963 nly the ERs whic │ │ │ -00014c70: 6820 636f 7272 6573 706f 6e64 2074 6f20 h correspond to │ │ │ -00014c80: 6c6f 6361 6c20 6d61 7869 6d75 6d20 6f66 local maximum of │ │ │ -00014c90: 0a20 7468 6520 7072 6f62 6162 696c 6974 . the probabilit │ │ │ -00014ca0: 7920 5028 6572 7c63 6861 7261 6374 6572 y P(er|character │ │ │ -00014cb0: 2920 6172 6520 7365 6c65 6374 6564 2028 ) are selected ( │ │ │ -00014cc0: 6966 2074 6865 206c 6f63 616c 206d 6178 if the local max │ │ │ -00014cd0: 696d 756d 206f 6620 7468 6520 7072 6f62 imum of the prob │ │ │ -00014ce0: 6162 696c 6974 7920 6973 2061 626f 7665 ability is above │ │ │ -00014cf0: 2061 0a20 676c 6f62 616c 206c 696d 6974 a. global limit │ │ │ -00014d00: 2070 6d69 6e20 616e 6420 7468 6520 6469 pmin and the di │ │ │ -00014d10: 6666 6572 656e 6365 2062 6574 7765 656e fference between │ │ │ -00014d20: 206c 6f63 616c 206d 6178 696d 756d 2061 local maximum a │ │ │ -00014d30: 6e64 206c 6f63 616c 206d 696e 696d 756d nd local minimum │ │ │ -00014d40: 2069 7320 6772 6561 7465 7220 7468 616e is greater than │ │ │ -00014d50: 0a20 6d69 6e50 726f 6261 6269 6c69 7479 . minProbability │ │ │ -00014d60: 4469 6666 292e 3c2f 6469 763e 0a3c 646c Diff).
      .
      . │ │ │ -00014d80: 3c64 743e 5061 7261 6d65 7465 7273 3a3c
      Parameters:< │ │ │ -00014d90: 2f64 743e 0a3c 6464 3e3c 636f 6465 3e63 /dt>.
      c │ │ │ -00014da0: 623c 2f63 6f64 653e 202d 2061 7574 6f6d b - autom │ │ │ -00014db0: 6174 6963 616c 6c79 2067 656e 6572 6174 atically generat │ │ │ -00014dc0: 6564 3c2f 6464 3e0a 3c64 643e 3c63 6f64 ed
      .
      thresholdDelta │ │ │ -00014de0: 3c2f 636f 6465 3e20 2d20 6175 746f 6d61 - automa │ │ │ -00014df0: 7469 6361 6c6c 7920 6765 6e65 7261 7465 tically generate │ │ │ -00014e00: 643c 2f64 643e 0a3c 6464 3e3c 636f 6465 d
      .
      minArea │ │ │ -00014e20: 2d20 6175 746f 6d61 7469 6361 6c6c 7920 - automatically │ │ │ -00014e30: 6765 6e65 7261 7465 643c 2f64 643e 0a3c generated
      .< │ │ │ -00014e40: 6464 3e3c 636f 6465 3e6d 6178 4172 6561 dd>maxArea │ │ │ -00014e50: 3c2f 636f 6465 3e20 2d20 6175 746f 6d61 - automa │ │ │ -00014e60: 7469 6361 6c6c 7920 6765 6e65 7261 7465 tically generate │ │ │ -00014e70: 643c 2f64 643e 0a3c 6464 3e3c 636f 6465 d.
      minProbability< │ │ │ -00014e90: 2f63 6f64 653e 202d 2061 7574 6f6d 6174 /code> - automat │ │ │ -00014ea0: 6963 616c 6c79 2067 656e 6572 6174 6564 ically generated │ │ │ -00014eb0: 3c2f 6464 3e0a 3c64 743e 5265 7475 726e
      .
      Return │ │ │ -00014ec0: 733a 3c2f 6474 3e0a 3c64 643e 6175 746f s:
      .
      auto │ │ │ -00014ed0: 6d61 7469 6361 6c6c 7920 6765 6e65 7261 matically genera │ │ │ -00014ee0: 7465 643c 2f64 643e 0a3c 2f64 6c3e 0a3c ted
      .
      .< │ │ │ -00014ef0: 2f73 6563 7469 6f6e 3e0a 3c2f 6c69 3e0a /section>.
    • . │ │ │ -00014f00: 3c6c 693e 0a3c 7365 6374 696f 6e20 636c
    • .
      .

      crea │ │ │ -00014f70: 7465 4552 4669 6c74 6572 4e4d 313c 2f68 teERFilterNM1.
      public │ │ │ -00014fc0: 7374 6174 6963 3c2f 7370 616e 3e26 6e62 static&nb │ │ │ -00014fd0: 7370 3b3c 7370 616e 2063 6c61 7373 3d22 sp;ERFilter < │ │ │ -00015040: 7370 616e 2063 6c61 7373 3d22 656c 656d span class="elem │ │ │ -00015050: 656e 742d 6e61 6d65 223e 6372 6561 7465 ent-name">create │ │ │ -00015060: 4552 4669 6c74 6572 4e4d 313c 2f73 7061 ERFilterNM1 │ │ │ -00015090: 283c 6120 6872 6566 3d22 4552 4669 6c74 (ERFilter_Call │ │ │ -000150e0: 6261 636b 3c2f 613e 266e 6273 703b 6362 back cb │ │ │ -000150f0: 2c0a 2069 6e74 266e 6273 703b 7468 7265 ,. int thre │ │ │ -00015100: 7368 6f6c 6444 656c 7461 2c0a 2066 6c6f sholdDelta,. flo │ │ │ -00015110: 6174 266e 6273 703b 6d69 6e41 7265 612c at minArea, │ │ │ -00015120: 0a20 666c 6f61 7426 6e62 7370 3b6d 6178 . float max │ │ │ -00015130: 4172 6561 293c 2f73 7061 6e3e 3c2f 6469 Area).
      Create an │ │ │ -00015160: 4578 7472 656d 616c 2052 6567 696f 6e20 Extremal Region │ │ │ -00015170: 4669 6c74 6572 2066 6f72 2074 6865 2031 Filter for the 1 │ │ │ -00015180: 7374 2073 7461 6765 2063 6c61 7373 6966 st stage classif │ │ │ -00015190: 6965 7220 6f66 204e 2661 6d70 3b4d 2061 ier of N&M a │ │ │ -000151a0: 6c67 6f72 6974 686d 2043 4954 453a 204e lgorithm CITE: N │ │ │ -000151b0: 6575 6d61 6e6e 3132 2e0a 0a20 6c6f 6164 eumann12... load │ │ │ -000151c0: 436c 6173 7369 6669 6572 4e4d 312c 2065 ClassifierNM1, e │ │ │ -000151d0: 2e67 2e20 6672 6f6d 2066 696c 6520 696e .g. from file in │ │ │ -000151e0: 2073 616d 706c 6573 2f63 7070 2f74 7261 samples/cpp/tra │ │ │ -000151f0: 696e 6564 5f63 6c61 7373 6966 6965 724e ined_classifierN │ │ │ -00015200: 4d31 2e78 6d6c 0a0a 2054 6865 2063 6f6d M1.xml.. The com │ │ │ -00015210: 706f 6e65 6e74 2074 7265 6520 6f66 2074 ponent tree of t │ │ │ -00015220: 6865 2069 6d61 6765 2069 7320 6578 7472 he image is extr │ │ │ -00015230: 6163 7465 6420 6279 2061 2074 6872 6573 acted by a thres │ │ │ -00015240: 686f 6c64 2069 6e63 7265 6173 6564 2073 hold increased s │ │ │ -00015250: 7465 7020 6279 2073 7465 7020 6672 6f6d tep by step from │ │ │ -00015260: 2030 2074 6f20 3235 352c 0a20 696e 6372 0 to 255,. incr │ │ │ -00015270: 656d 656e 7461 6c6c 7920 636f 6d70 7574 ementally comput │ │ │ -00015280: 6162 6c65 2064 6573 6372 6970 746f 7273 able descriptors │ │ │ -00015290: 2028 6173 7065 6374 5f72 6174 696f 2c20 (aspect_ratio, │ │ │ -000152a0: 636f 6d70 6163 746e 6573 732c 206e 756d compactness, num │ │ │ -000152b0: 6265 7220 6f66 2068 6f6c 6573 2c20 616e ber of holes, an │ │ │ -000152c0: 6420 6e75 6d62 6572 206f 660a 2068 6f72 d number of. hor │ │ │ -000152d0: 697a 6f6e 7461 6c20 6372 6f73 7369 6e67 izontal crossing │ │ │ -000152e0: 7329 2061 7265 2063 6f6d 7075 7465 6420 s) are computed │ │ │ -000152f0: 666f 7220 6561 6368 2045 5220 616e 6420 for each ER and │ │ │ -00015300: 7573 6564 2061 7320 6665 6174 7572 6573 used as features │ │ │ -00015310: 2066 6f72 2061 2063 6c61 7373 6966 6965 for a classifie │ │ │ -00015320: 7220 7768 6963 6820 6573 7469 6d61 7465 r which estimate │ │ │ -00015330: 730a 2074 6865 2063 6c61 7373 2d63 6f6e s. the class-con │ │ │ -00015340: 6469 7469 6f6e 616c 2070 726f 6261 6269 ditional probabi │ │ │ -00015350: 6c69 7479 2050 2865 727c 6368 6172 6163 lity P(er|charac │ │ │ -00015360: 7465 7229 2e20 5468 6520 7661 6c75 6520 ter). The value │ │ │ -00015370: 6f66 2050 2865 727c 6368 6172 6163 7465 of P(er|characte │ │ │ -00015380: 7229 2069 7320 7472 6163 6b65 6420 7573 r) is tracked us │ │ │ -00015390: 696e 6720 7468 650a 2069 6e63 6c75 7369 ing the. inclusi │ │ │ -000153a0: 6f6e 2072 656c 6174 696f 6e20 6f66 2045 on relation of E │ │ │ -000153b0: 5220 6163 726f 7373 2061 6c6c 2074 6872 R across all thr │ │ │ -000153c0: 6573 686f 6c64 7320 616e 6420 6f6e 6c79 esholds and only │ │ │ -000153d0: 2074 6865 2045 5273 2077 6869 6368 2063 the ERs which c │ │ │ -000153e0: 6f72 7265 7370 6f6e 6420 746f 206c 6f63 orrespond to loc │ │ │ -000153f0: 616c 206d 6178 696d 756d 206f 660a 2074 al maximum of. t │ │ │ -00015400: 6865 2070 726f 6261 6269 6c69 7479 2050 he probability P │ │ │ -00015410: 2865 727c 6368 6172 6163 7465 7229 2061 (er|character) a │ │ │ -00015420: 7265 2073 656c 6563 7465 6420 2869 6620 re selected (if │ │ │ -00015430: 7468 6520 6c6f 6361 6c20 6d61 7869 6d75 the local maximu │ │ │ -00015440: 6d20 6f66 2074 6865 2070 726f 6261 6269 m of the probabi │ │ │ -00015450: 6c69 7479 2069 7320 6162 6f76 6520 610a lity is above a. │ │ │ -00015460: 2067 6c6f 6261 6c20 6c69 6d69 7420 706d global limit pm │ │ │ -00015470: 696e 2061 6e64 2074 6865 2064 6966 6665 in and the diffe │ │ │ -00015480: 7265 6e63 6520 6265 7477 6565 6e20 6c6f rence between lo │ │ │ -00015490: 6361 6c20 6d61 7869 6d75 6d20 616e 6420 cal maximum and │ │ │ -000154a0: 6c6f 6361 6c20 6d69 6e69 6d75 6d20 6973 local minimum is │ │ │ -000154b0: 2067 7265 6174 6572 2074 6861 6e0a 206d greater than. m │ │ │ -000154c0: 696e 5072 6f62 6162 696c 6974 7944 6966 inProbabilityDif │ │ │ -000154d0: 6629 2e3c 2f64 6976 3e0a 3c64 6c20 636c f).
      .
      .
      Parameters:
      .
      cb - automati │ │ │ -00015520: 6361 6c6c 7920 6765 6e65 7261 7465 643c cally generated< │ │ │ -00015530: 2f64 643e 0a3c 6464 3e3c 636f 6465 3e74 /dd>.
      t │ │ │ -00015540: 6872 6573 686f 6c64 4465 6c74 613c 2f63 hresholdDelta - automatic │ │ │ -00015560: 616c 6c79 2067 656e 6572 6174 6564 3c2f ally generated.
      mi │ │ │ -00015580: 6e41 7265 613c 2f63 6f64 653e 202d 2061 nArea - a │ │ │ -00015590: 7574 6f6d 6174 6963 616c 6c79 2067 656e utomatically gen │ │ │ -000155a0: 6572 6174 6564 3c2f 6464 3e0a 3c64 643e erated
      .
      │ │ │ -000155b0: 3c63 6f64 653e 6d61 7841 7265 613c 2f63 maxArea - automatic │ │ │ -000155d0: 616c 6c79 2067 656e 6572 6174 6564 3c2f ally generated.
      Returns: │ │ │ -000155f0: 3c2f 6474 3e0a 3c64 643e 6175 746f 6d61
      .
      automa │ │ │ -00015600: 7469 6361 6c6c 7920 6765 6e65 7261 7465 tically generate │ │ │ -00015610: 643c 2f64 643e 0a3c 2f64 6c3e 0a3c 2f73 d
      .
      .
      .

    • ..
      . │ │ │ -00015690: 3c68 333e 6372 6561 7465 4552 4669 6c74

      createERFilt │ │ │ -000156a0: 6572 4e4d 313c 2f68 333e 0a3c 6469 7620 erNM1

      .
      public static ER │ │ │ -00015750: 4669 6c74 6572 3c2f 613e 3c2f 7370 616e Filter createERFilter │ │ │ -00015790: 4e4d 313c 2f73 7061 6e3e 3c77 6272 3e3c NM1< │ │ │ -000157a0: 7370 616e 2063 6c61 7373 3d22 7061 7261 span class="para │ │ │ -000157b0: 6d65 7465 7273 223e 283c 6120 6872 6566 meters">(ERFil │ │ │ -00015800: 7465 725f 4361 6c6c 6261 636b 3c2f 613e ter_Callback │ │ │ -00015810: 266e 6273 703b 6362 2c0a 2069 6e74 266e  cb,. int&n │ │ │ -00015820: 6273 703b 7468 7265 7368 6f6c 6444 656c bsp;thresholdDel │ │ │ -00015830: 7461 2c0a 2066 6c6f 6174 266e 6273 703b ta,. float  │ │ │ -00015840: 6d69 6e41 7265 6129 3c2f 7370 616e 3e3c minArea)< │ │ │ -00015850: 2f64 6976 3e0a 3c64 6976 2063 6c61 7373 /div>.
      Create │ │ │ -00015870: 616e 2045 7874 7265 6d61 6c20 5265 6769 an Extremal Regi │ │ │ -00015880: 6f6e 2046 696c 7465 7220 666f 7220 7468 on Filter for th │ │ │ -00015890: 6520 3173 7420 7374 6167 6520 636c 6173 e 1st stage clas │ │ │ -000158a0: 7369 6669 6572 206f 6620 4e26 616d 703b sifier of N& │ │ │ -000158b0: 4d20 616c 676f 7269 7468 6d20 4349 5445 M algorithm CITE │ │ │ -000158c0: 3a20 4e65 756d 616e 6e31 322e 0a0a 206c : Neumann12... l │ │ │ -000158d0: 6f61 6443 6c61 7373 6966 6965 724e 4d31 oadClassifierNM1 │ │ │ -000158e0: 2c20 652e 672e 2066 726f 6d20 6669 6c65 , e.g. from file │ │ │ -000158f0: 2069 6e20 7361 6d70 6c65 732f 6370 702f in samples/cpp/ │ │ │ -00015900: 7472 6169 6e65 645f 636c 6173 7369 6669 trained_classifi │ │ │ -00015910: 6572 4e4d 312e 786d 6c0a 0a20 5468 6520 erNM1.xml.. The │ │ │ -00015920: 636f 6d70 6f6e 656e 7420 7472 6565 206f component tree o │ │ │ -00015930: 6620 7468 6520 696d 6167 6520 6973 2065 f the image is e │ │ │ -00015940: 7874 7261 6374 6564 2062 7920 6120 7468 xtracted by a th │ │ │ -00015950: 7265 7368 6f6c 6420 696e 6372 6561 7365 reshold increase │ │ │ -00015960: 6420 7374 6570 2062 7920 7374 6570 2066 d step by step f │ │ │ -00015970: 726f 6d20 3020 746f 2032 3535 2c0a 2069 rom 0 to 255,. i │ │ │ -00015980: 6e63 7265 6d65 6e74 616c 6c79 2063 6f6d ncrementally com │ │ │ -00015990: 7075 7461 626c 6520 6465 7363 7269 7074 putable descript │ │ │ -000159a0: 6f72 7320 2861 7370 6563 745f 7261 7469 ors (aspect_rati │ │ │ -000159b0: 6f2c 2063 6f6d 7061 6374 6e65 7373 2c20 o, compactness, │ │ │ -000159c0: 6e75 6d62 6572 206f 6620 686f 6c65 732c number of holes, │ │ │ -000159d0: 2061 6e64 206e 756d 6265 7220 6f66 0a20 and number of. │ │ │ -000159e0: 686f 7269 7a6f 6e74 616c 2063 726f 7373 horizontal cross │ │ │ -000159f0: 696e 6773 2920 6172 6520 636f 6d70 7574 ings) are comput │ │ │ -00015a00: 6564 2066 6f72 2065 6163 6820 4552 2061 ed for each ER a │ │ │ -00015a10: 6e64 2075 7365 6420 6173 2066 6561 7475 nd used as featu │ │ │ -00015a20: 7265 7320 666f 7220 6120 636c 6173 7369 res for a classi │ │ │ -00015a30: 6669 6572 2077 6869 6368 2065 7374 696d fier which estim │ │ │ -00015a40: 6174 6573 0a20 7468 6520 636c 6173 732d ates. the class- │ │ │ -00015a50: 636f 6e64 6974 696f 6e61 6c20 7072 6f62 conditional prob │ │ │ -00015a60: 6162 696c 6974 7920 5028 6572 7c63 6861 ability P(er|cha │ │ │ -00015a70: 7261 6374 6572 292e 2054 6865 2076 616c racter). The val │ │ │ -00015a80: 7565 206f 6620 5028 6572 7c63 6861 7261 ue of P(er|chara │ │ │ -00015a90: 6374 6572 2920 6973 2074 7261 636b 6564 cter) is tracked │ │ │ -00015aa0: 2075 7369 6e67 2074 6865 0a20 696e 636c using the. incl │ │ │ -00015ab0: 7573 696f 6e20 7265 6c61 7469 6f6e 206f usion relation o │ │ │ -00015ac0: 6620 4552 2061 6372 6f73 7320 616c 6c20 f ER across all │ │ │ -00015ad0: 7468 7265 7368 6f6c 6473 2061 6e64 206f thresholds and o │ │ │ -00015ae0: 6e6c 7920 7468 6520 4552 7320 7768 6963 nly the ERs whic │ │ │ -00015af0: 6820 636f 7272 6573 706f 6e64 2074 6f20 h correspond to │ │ │ -00015b00: 6c6f 6361 6c20 6d61 7869 6d75 6d20 6f66 local maximum of │ │ │ -00015b10: 0a20 7468 6520 7072 6f62 6162 696c 6974 . the probabilit │ │ │ -00015b20: 7920 5028 6572 7c63 6861 7261 6374 6572 y P(er|character │ │ │ -00015b30: 2920 6172 6520 7365 6c65 6374 6564 2028 ) are selected ( │ │ │ -00015b40: 6966 2074 6865 206c 6f63 616c 206d 6178 if the local max │ │ │ -00015b50: 696d 756d 206f 6620 7468 6520 7072 6f62 imum of the prob │ │ │ -00015b60: 6162 696c 6974 7920 6973 2061 626f 7665 ability is above │ │ │ -00015b70: 2061 0a20 676c 6f62 616c 206c 696d 6974 a. global limit │ │ │ -00015b80: 2070 6d69 6e20 616e 6420 7468 6520 6469 pmin and the di │ │ │ -00015b90: 6666 6572 656e 6365 2062 6574 7765 656e fference between │ │ │ -00015ba0: 206c 6f63 616c 206d 6178 696d 756d 2061 local maximum a │ │ │ -00015bb0: 6e64 206c 6f63 616c 206d 696e 696d 756d nd local minimum │ │ │ -00015bc0: 2069 7320 6772 6561 7465 7220 7468 616e is greater than │ │ │ -00015bd0: 0a20 6d69 6e50 726f 6261 6269 6c69 7479 . minProbability │ │ │ -00015be0: 4469 6666 292e 3c2f 6469 763e 0a3c 646c Diff).
      .
      . │ │ │ -00015c00: 3c64 743e 5061 7261 6d65 7465 7273 3a3c
      Parameters:< │ │ │ -00015c10: 2f64 743e 0a3c 6464 3e3c 636f 6465 3e63 /dt>.
      c │ │ │ -00015c20: 623c 2f63 6f64 653e 202d 2061 7574 6f6d b - autom │ │ │ -00015c30: 6174 6963 616c 6c79 2067 656e 6572 6174 atically generat │ │ │ -00015c40: 6564 3c2f 6464 3e0a 3c64 643e 3c63 6f64 ed
      .
      thresholdDelta │ │ │ -00015c60: 3c2f 636f 6465 3e20 2d20 6175 746f 6d61 - automa │ │ │ -00015c70: 7469 6361 6c6c 7920 6765 6e65 7261 7465 tically generate │ │ │ -00015c80: 643c 2f64 643e 0a3c 6464 3e3c 636f 6465 d
      .
      minArea │ │ │ -00015ca0: 2d20 6175 746f 6d61 7469 6361 6c6c 7920 - automatically │ │ │ -00015cb0: 6765 6e65 7261 7465 643c 2f64 643e 0a3c generated
      .< │ │ │ -00015cc0: 6474 3e52 6574 7572 6e73 3a3c 2f64 743e dt>Returns: │ │ │ -00015cd0: 0a3c 6464 3e61 7574 6f6d 6174 6963 616c .
      automatical │ │ │ -00015ce0: 6c79 2067 656e 6572 6174 6564 3c2f 6464 ly generated
      .
      ...
    • ..

      createE │ │ │ -00015d70: 5246 696c 7465 724e 4d31 3c2f 6833 3e0a RFilterNM1

      . │ │ │ -00015d80: 3c64 6976 2063 6c61 7373 3d22 6d65 6d62
      public sta │ │ │ -00015dc0: 7469 633c 2f73 7061 6e3e 266e 6273 703b tic  │ │ │ -00015dd0: 3c73 7061 6e20 636c 6173 733d 2272 6574 ERFilter< │ │ │ -00015e30: 2f73 7061 6e3e 266e 6273 703b 3c73 7061 /span> createERF │ │ │ -00015e60: 696c 7465 724e 4d31 3c2f 7370 616e 3e3c ilterNM1< │ │ │ -00015e70: 7762 723e 3c73 7061 6e20 636c 6173 733d wbr>( │ │ │ -00015ed0: 4552 4669 6c74 6572 5f43 616c 6c62 6163 ERFilter_Callbac │ │ │ -00015ee0: 6b3c 2f61 3e26 6e62 7370 3b63 622c 0a20 k cb,. │ │ │ -00015ef0: 696e 7426 6e62 7370 3b74 6872 6573 686f int thresho │ │ │ -00015f00: 6c64 4465 6c74 6129 3c2f 7370 616e 3e3c ldDelta)< │ │ │ -00015f10: 2f64 6976 3e0a 3c64 6976 2063 6c61 7373 /div>.
      Create │ │ │ -00015f30: 616e 2045 7874 7265 6d61 6c20 5265 6769 an Extremal Regi │ │ │ -00015f40: 6f6e 2046 696c 7465 7220 666f 7220 7468 on Filter for th │ │ │ -00015f50: 6520 3173 7420 7374 6167 6520 636c 6173 e 1st stage clas │ │ │ -00015f60: 7369 6669 6572 206f 6620 4e26 616d 703b sifier of N& │ │ │ -00015f70: 4d20 616c 676f 7269 7468 6d20 4349 5445 M algorithm CITE │ │ │ -00015f80: 3a20 4e65 756d 616e 6e31 322e 0a0a 206c : Neumann12... l │ │ │ -00015f90: 6f61 6443 6c61 7373 6966 6965 724e 4d31 oadClassifierNM1 │ │ │ -00015fa0: 2c20 652e 672e 2066 726f 6d20 6669 6c65 , e.g. from file │ │ │ -00015fb0: 2069 6e20 7361 6d70 6c65 732f 6370 702f in samples/cpp/ │ │ │ -00015fc0: 7472 6169 6e65 645f 636c 6173 7369 6669 trained_classifi │ │ │ -00015fd0: 6572 4e4d 312e 786d 6c0a 0a20 5468 6520 erNM1.xml.. The │ │ │ -00015fe0: 636f 6d70 6f6e 656e 7420 7472 6565 206f component tree o │ │ │ -00015ff0: 6620 7468 6520 696d 6167 6520 6973 2065 f the image is e │ │ │ -00016000: 7874 7261 6374 6564 2062 7920 6120 7468 xtracted by a th │ │ │ -00016010: 7265 7368 6f6c 6420 696e 6372 6561 7365 reshold increase │ │ │ -00016020: 6420 7374 6570 2062 7920 7374 6570 2066 d step by step f │ │ │ -00016030: 726f 6d20 3020 746f 2032 3535 2c0a 2069 rom 0 to 255,. i │ │ │ -00016040: 6e63 7265 6d65 6e74 616c 6c79 2063 6f6d ncrementally com │ │ │ -00016050: 7075 7461 626c 6520 6465 7363 7269 7074 putable descript │ │ │ -00016060: 6f72 7320 2861 7370 6563 745f 7261 7469 ors (aspect_rati │ │ │ -00016070: 6f2c 2063 6f6d 7061 6374 6e65 7373 2c20 o, compactness, │ │ │ -00016080: 6e75 6d62 6572 206f 6620 686f 6c65 732c number of holes, │ │ │ -00016090: 2061 6e64 206e 756d 6265 7220 6f66 0a20 and number of. │ │ │ -000160a0: 686f 7269 7a6f 6e74 616c 2063 726f 7373 horizontal cross │ │ │ -000160b0: 696e 6773 2920 6172 6520 636f 6d70 7574 ings) are comput │ │ │ -000160c0: 6564 2066 6f72 2065 6163 6820 4552 2061 ed for each ER a │ │ │ -000160d0: 6e64 2075 7365 6420 6173 2066 6561 7475 nd used as featu │ │ │ -000160e0: 7265 7320 666f 7220 6120 636c 6173 7369 res for a classi │ │ │ -000160f0: 6669 6572 2077 6869 6368 2065 7374 696d fier which estim │ │ │ -00016100: 6174 6573 0a20 7468 6520 636c 6173 732d ates. the class- │ │ │ -00016110: 636f 6e64 6974 696f 6e61 6c20 7072 6f62 conditional prob │ │ │ -00016120: 6162 696c 6974 7920 5028 6572 7c63 6861 ability P(er|cha │ │ │ -00016130: 7261 6374 6572 292e 2054 6865 2076 616c racter). The val │ │ │ -00016140: 7565 206f 6620 5028 6572 7c63 6861 7261 ue of P(er|chara │ │ │ -00016150: 6374 6572 2920 6973 2074 7261 636b 6564 cter) is tracked │ │ │ -00016160: 2075 7369 6e67 2074 6865 0a20 696e 636c using the. incl │ │ │ -00016170: 7573 696f 6e20 7265 6c61 7469 6f6e 206f usion relation o │ │ │ -00016180: 6620 4552 2061 6372 6f73 7320 616c 6c20 f ER across all │ │ │ -00016190: 7468 7265 7368 6f6c 6473 2061 6e64 206f thresholds and o │ │ │ -000161a0: 6e6c 7920 7468 6520 4552 7320 7768 6963 nly the ERs whic │ │ │ -000161b0: 6820 636f 7272 6573 706f 6e64 2074 6f20 h correspond to │ │ │ -000161c0: 6c6f 6361 6c20 6d61 7869 6d75 6d20 6f66 local maximum of │ │ │ -000161d0: 0a20 7468 6520 7072 6f62 6162 696c 6974 . the probabilit │ │ │ -000161e0: 7920 5028 6572 7c63 6861 7261 6374 6572 y P(er|character │ │ │ -000161f0: 2920 6172 6520 7365 6c65 6374 6564 2028 ) are selected ( │ │ │ -00016200: 6966 2074 6865 206c 6f63 616c 206d 6178 if the local max │ │ │ -00016210: 696d 756d 206f 6620 7468 6520 7072 6f62 imum of the prob │ │ │ -00016220: 6162 696c 6974 7920 6973 2061 626f 7665 ability is above │ │ │ -00016230: 2061 0a20 676c 6f62 616c 206c 696d 6974 a. global limit │ │ │ -00016240: 2070 6d69 6e20 616e 6420 7468 6520 6469 pmin and the di │ │ │ -00016250: 6666 6572 656e 6365 2062 6574 7765 656e fference between │ │ │ -00016260: 206c 6f63 616c 206d 6178 696d 756d 2061 local maximum a │ │ │ -00016270: 6e64 206c 6f63 616c 206d 696e 696d 756d nd local minimum │ │ │ -00016280: 2069 7320 6772 6561 7465 7220 7468 616e is greater than │ │ │ -00016290: 0a20 6d69 6e50 726f 6261 6269 6c69 7479 . minProbability │ │ │ -000162a0: 4469 6666 292e 3c2f 6469 763e 0a3c 646c Diff).
      .
      . │ │ │ -000162c0: 3c64 743e 5061 7261 6d65 7465 7273 3a3c
      Parameters:< │ │ │ -000162d0: 2f64 743e 0a3c 6464 3e3c 636f 6465 3e63 /dt>.
      c │ │ │ -000162e0: 623c 2f63 6f64 653e 202d 2061 7574 6f6d b - autom │ │ │ -000162f0: 6174 6963 616c 6c79 2067 656e 6572 6174 atically generat │ │ │ -00016300: 6564 3c2f 6464 3e0a 3c64 643e 3c63 6f64 ed
      .
      thresholdDelta │ │ │ -00016320: 3c2f 636f 6465 3e20 2d20 6175 746f 6d61 - automa │ │ │ -00016330: 7469 6361 6c6c 7920 6765 6e65 7261 7465 tically generate │ │ │ -00016340: 643c 2f64 643e 0a3c 6474 3e52 6574 7572 d
      .
      Retur │ │ │ -00016350: 6e73 3a3c 2f64 743e 0a3c 6464 3e61 7574 ns:
      .
      aut │ │ │ -00016360: 6f6d 6174 6963 616c 6c79 2067 656e 6572 omatically gener │ │ │ -00016370: 6174 6564 3c2f 6464 3e0a 3c2f 646c 3e0a ated
      .
      . │ │ │ -00016380: 3c2f 7365 6374 696f 6e3e 0a3c 2f6c 693e
    • . │ │ │ -00016390: 0a3c 6c69 3e0a 3c73 6563 7469 6f6e 2063 .
    • .
      .

      cre │ │ │ -000163f0: 6174 6545 5246 696c 7465 724e 4d31 3c2f ateERFilterNM1.
      public │ │ │ -00016440: 2073 7461 7469 633c 2f73 7061 6e3e 266e static&n │ │ │ -00016450: 6273 703b 3c73 7061 6e20 636c 6173 733d bsp;ERFilter< │ │ │ -000164b0: 2f61 3e3c 2f73 7061 6e3e 266e 6273 703b /a>  │ │ │ -000164c0: 3c73 7061 6e20 636c 6173 733d 2265 6c65 creat │ │ │ -000164e0: 6545 5246 696c 7465 724e 4d31 3c2f 7370 eERFilterNM1(ERFilter_Cal │ │ │ -00016560: 6c62 6163 6b3c 2f61 3e26 6e62 7370 3b63 lback c │ │ │ -00016570: 6229 3c2f 7370 616e 3e3c 2f64 6976 3e0a b)
      . │ │ │ -00016580: 3c64 6976 2063 6c61 7373 3d22 626c 6f63
      Create an Ext │ │ │ -000165a0: 7265 6d61 6c20 5265 6769 6f6e 2046 696c remal Region Fil │ │ │ -000165b0: 7465 7220 666f 7220 7468 6520 3173 7420 ter for the 1st │ │ │ -000165c0: 7374 6167 6520 636c 6173 7369 6669 6572 stage classifier │ │ │ -000165d0: 206f 6620 4e26 616d 703b 4d20 616c 676f of N&M algo │ │ │ -000165e0: 7269 7468 6d20 4349 5445 3a20 4e65 756d rithm CITE: Neum │ │ │ -000165f0: 616e 6e31 322e 0a0a 206c 6f61 6443 6c61 ann12... loadCla │ │ │ -00016600: 7373 6966 6965 724e 4d31 2c20 652e 672e ssifierNM1, e.g. │ │ │ -00016610: 2066 726f 6d20 6669 6c65 2069 6e20 7361 from file in sa │ │ │ -00016620: 6d70 6c65 732f 6370 702f 7472 6169 6e65 mples/cpp/traine │ │ │ -00016630: 645f 636c 6173 7369 6669 6572 4e4d 312e d_classifierNM1. │ │ │ -00016640: 786d 6c0a 0a20 5468 6520 636f 6d70 6f6e xml.. The compon │ │ │ -00016650: 656e 7420 7472 6565 206f 6620 7468 6520 ent tree of the │ │ │ -00016660: 696d 6167 6520 6973 2065 7874 7261 6374 image is extract │ │ │ -00016670: 6564 2062 7920 6120 7468 7265 7368 6f6c ed by a threshol │ │ │ -00016680: 6420 696e 6372 6561 7365 6420 7374 6570 d increased step │ │ │ -00016690: 2062 7920 7374 6570 2066 726f 6d20 3020 by step from 0 │ │ │ -000166a0: 746f 2032 3535 2c0a 2069 6e63 7265 6d65 to 255,. increme │ │ │ -000166b0: 6e74 616c 6c79 2063 6f6d 7075 7461 626c ntally computabl │ │ │ -000166c0: 6520 6465 7363 7269 7074 6f72 7320 2861 e descriptors (a │ │ │ -000166d0: 7370 6563 745f 7261 7469 6f2c 2063 6f6d spect_ratio, com │ │ │ -000166e0: 7061 6374 6e65 7373 2c20 6e75 6d62 6572 pactness, number │ │ │ -000166f0: 206f 6620 686f 6c65 732c 2061 6e64 206e of holes, and n │ │ │ -00016700: 756d 6265 7220 6f66 0a20 686f 7269 7a6f umber of. horizo │ │ │ -00016710: 6e74 616c 2063 726f 7373 696e 6773 2920 ntal crossings) │ │ │ -00016720: 6172 6520 636f 6d70 7574 6564 2066 6f72 are computed for │ │ │ -00016730: 2065 6163 6820 4552 2061 6e64 2075 7365 each ER and use │ │ │ -00016740: 6420 6173 2066 6561 7475 7265 7320 666f d as features fo │ │ │ -00016750: 7220 6120 636c 6173 7369 6669 6572 2077 r a classifier w │ │ │ -00016760: 6869 6368 2065 7374 696d 6174 6573 0a20 hich estimates. │ │ │ -00016770: 7468 6520 636c 6173 732d 636f 6e64 6974 the class-condit │ │ │ -00016780: 696f 6e61 6c20 7072 6f62 6162 696c 6974 ional probabilit │ │ │ -00016790: 7920 5028 6572 7c63 6861 7261 6374 6572 y P(er|character │ │ │ -000167a0: 292e 2054 6865 2076 616c 7565 206f 6620 ). The value of │ │ │ -000167b0: 5028 6572 7c63 6861 7261 6374 6572 2920 P(er|character) │ │ │ -000167c0: 6973 2074 7261 636b 6564 2075 7369 6e67 is tracked using │ │ │ -000167d0: 2074 6865 0a20 696e 636c 7573 696f 6e20 the. inclusion │ │ │ -000167e0: 7265 6c61 7469 6f6e 206f 6620 4552 2061 relation of ER a │ │ │ -000167f0: 6372 6f73 7320 616c 6c20 7468 7265 7368 cross all thresh │ │ │ -00016800: 6f6c 6473 2061 6e64 206f 6e6c 7920 7468 olds and only th │ │ │ -00016810: 6520 4552 7320 7768 6963 6820 636f 7272 e ERs which corr │ │ │ -00016820: 6573 706f 6e64 2074 6f20 6c6f 6361 6c20 espond to local │ │ │ -00016830: 6d61 7869 6d75 6d20 6f66 0a20 7468 6520 maximum of. the │ │ │ -00016840: 7072 6f62 6162 696c 6974 7920 5028 6572 probability P(er │ │ │ -00016850: 7c63 6861 7261 6374 6572 2920 6172 6520 |character) are │ │ │ -00016860: 7365 6c65 6374 6564 2028 6966 2074 6865 selected (if the │ │ │ -00016870: 206c 6f63 616c 206d 6178 696d 756d 206f local maximum o │ │ │ -00016880: 6620 7468 6520 7072 6f62 6162 696c 6974 f the probabilit │ │ │ -00016890: 7920 6973 2061 626f 7665 2061 0a20 676c y is above a. gl │ │ │ -000168a0: 6f62 616c 206c 696d 6974 2070 6d69 6e20 obal limit pmin │ │ │ -000168b0: 616e 6420 7468 6520 6469 6666 6572 656e and the differen │ │ │ -000168c0: 6365 2062 6574 7765 656e 206c 6f63 616c ce between local │ │ │ -000168d0: 206d 6178 696d 756d 2061 6e64 206c 6f63 maximum and loc │ │ │ -000168e0: 616c 206d 696e 696d 756d 2069 7320 6772 al minimum is gr │ │ │ -000168f0: 6561 7465 7220 7468 616e 0a20 6d69 6e50 eater than. minP │ │ │ -00016900: 726f 6261 6269 6c69 7479 4469 6666 292e robabilityDiff). │ │ │ -00016910: 3c2f 6469 763e 0a3c 646c 2063 6c61 7373
      .
      .
      Pa │ │ │ -00016930: 7261 6d65 7465 7273 3a3c 2f64 743e 0a3c rameters:
      .< │ │ │ -00016940: 6464 3e3c 636f 6465 3e63 623c 2f63 6f64 dd>cb - automatical │ │ │ -00016960: 6c79 2067 656e 6572 6174 6564 3c2f 6464 ly generated.
      Returns:.
      automati │ │ │ -00016990: 6361 6c6c 7920 6765 6e65 7261 7465 643c cally generated< │ │ │ -000169a0: 2f64 643e 0a3c 2f64 6c3e 0a3c 2f73 6563 /dd>.
      ..

    • .
    • │ │ │ -000169c0: 0a3c 7365 6374 696f 6e20 636c 6173 733d .
      .

      cr │ │ │ -00016a20: 6561 7465 4552 4669 6c74 6572 4e4d 323c eateERFilterNM2< │ │ │ -00016a30: 2f68 333e 0a3c 6469 7620 636c 6173 733d /h3>.
      publi │ │ │ -00016a70: 6320 7374 6174 6963 3c2f 7370 616e 3e26 c static& │ │ │ -00016a80: 6e62 7370 3b3c 7370 616e 2063 6c61 7373 nbsp;< │ │ │ -00016aa0: 6120 6872 6566 3d22 4552 4669 6c74 6572 a href="ERFilter │ │ │ -00016ab0: 2e68 746d 6c22 2074 6974 6c65 3d22 636c .html" title="cl │ │ │ -00016ac0: 6173 7320 696e 206f 7267 2e6f 7065 6e63 ass in org.openc │ │ │ -00016ad0: 762e 7465 7874 223e 4552 4669 6c74 6572 v.text">ERFilter │ │ │ -00016ae0: 3c2f 613e 3c2f 7370 616e 3e26 6e62 7370   │ │ │ -00016af0: 3b3c 7370 616e 2063 6c61 7373 3d22 656c ;crea │ │ │ -00016b10: 7465 4552 4669 6c74 6572 4e4d 323c 2f73 teERFilterNM2(ERFilter_Ca │ │ │ -00016b90: 6c6c 6261 636b 3c2f 613e 266e 6273 703b llback  │ │ │ -00016ba0: 6362 2c0a 2066 6c6f 6174 266e 6273 703b cb,. float  │ │ │ -00016bb0: 6d69 6e50 726f 6261 6269 6c69 7479 293c minProbability)< │ │ │ -00016bc0: 2f73 7061 6e3e 3c2f 6469 763e 0a3c 6469 /span>
      . │ │ │ -00016be0: 4372 6561 7465 2061 6e20 4578 7472 656d Create an Extrem │ │ │ -00016bf0: 616c 2052 6567 696f 6e20 4669 6c74 6572 al Region Filter │ │ │ -00016c00: 2066 6f72 2074 6865 2032 6e64 2073 7461 for the 2nd sta │ │ │ -00016c10: 6765 2063 6c61 7373 6966 6965 7220 6f66 ge classifier of │ │ │ -00016c20: 204e 2661 6d70 3b4d 2061 6c67 6f72 6974 N&M algorit │ │ │ -00016c30: 686d 2043 4954 453a 204e 6575 6d61 6e6e hm CITE: Neumann │ │ │ -00016c40: 3132 2e0a 0a20 6c6f 6164 436c 6173 7369 12... loadClassi │ │ │ -00016c50: 6669 6572 4e4d 322c 2065 2e67 2e20 6672 fierNM2, e.g. fr │ │ │ -00016c60: 6f6d 2066 696c 6520 696e 2073 616d 706c om file in sampl │ │ │ -00016c70: 6573 2f63 7070 2f74 7261 696e 6564 5f63 es/cpp/trained_c │ │ │ -00016c80: 6c61 7373 6966 6965 724e 4d32 2e78 6d6c lassifierNM2.xml │ │ │ -00016c90: 0a0a 2049 6e20 7468 6520 7365 636f 6e64 .. In the second │ │ │ -00016ca0: 2073 7461 6765 2c20 7468 6520 4552 7320 stage, the ERs │ │ │ -00016cb0: 7468 6174 2070 6173 7365 6420 7468 6520 that passed the │ │ │ -00016cc0: 6669 7273 7420 7374 6167 6520 6172 6520 first stage are │ │ │ -00016cd0: 636c 6173 7369 6669 6564 2069 6e74 6f20 classified into │ │ │ -00016ce0: 6368 6172 6163 7465 7220 616e 640a 206e character and. n │ │ │ -00016cf0: 6f6e 2d63 6861 7261 6374 6572 2063 6c61 on-character cla │ │ │ -00016d00: 7373 6573 2075 7369 6e67 206d 6f72 6520 sses using more │ │ │ -00016d10: 696e 666f 726d 6174 6976 6520 6275 7420 informative but │ │ │ -00016d20: 616c 736f 206d 6f72 6520 636f 6d70 7574 also more comput │ │ │ -00016d30: 6174 696f 6e61 6c6c 7920 6578 7065 6e73 ationally expens │ │ │ -00016d40: 6976 6520 6665 6174 7572 6573 2e20 5468 ive features. Th │ │ │ -00016d50: 650a 2063 6c61 7373 6966 6965 7220 7573 e. classifier us │ │ │ -00016d60: 6573 2061 6c6c 2074 6865 2066 6561 7475 es all the featu │ │ │ -00016d70: 7265 7320 6361 6c63 756c 6174 6564 2069 res calculated i │ │ │ -00016d80: 6e20 7468 6520 6669 7273 7420 7374 6167 n the first stag │ │ │ -00016d90: 6520 616e 6420 7468 6520 666f 6c6c 6f77 e and the follow │ │ │ -00016da0: 696e 6720 6164 6469 7469 6f6e 616c 0a20 ing additional. │ │ │ -00016db0: 6665 6174 7572 6573 3a20 686f 6c65 2061 features: hole a │ │ │ -00016dc0: 7265 6120 7261 7469 6f2c 2063 6f6e 7665 rea ratio, conve │ │ │ -00016dd0: 7820 6875 6c6c 2072 6174 696f 2c20 616e x hull ratio, an │ │ │ -00016de0: 6420 6e75 6d62 6572 206f 6620 6f75 7465 d number of oute │ │ │ -00016df0: 7220 696e 666c 6578 696f 6e20 706f 696e r inflexion poin │ │ │ -00016e00: 7473 2e3c 2f64 6976 3e0a 3c64 6c20 636c ts..
      .
      Parameters:
      .
      cb - automati │ │ │ -00016e50: 6361 6c6c 7920 6765 6e65 7261 7465 643c cally generated< │ │ │ -00016e60: 2f64 643e 0a3c 6464 3e3c 636f 6465 3e6d /dd>.
      m │ │ │ -00016e70: 696e 5072 6f62 6162 696c 6974 793c 2f63 inProbability - automatic │ │ │ -00016e90: 616c 6c79 2067 656e 6572 6174 6564 3c2f ally generated.
      Returns: │ │ │ -00016eb0: 3c2f 6474 3e0a 3c64 643e 6175 746f 6d61
      .
      automa │ │ │ -00016ec0: 7469 6361 6c6c 7920 6765 6e65 7261 7465 tically generate │ │ │ -00016ed0: 643c 2f64 643e 0a3c 2f64 6c3e 0a3c 2f73 d
      .
      .
      .

    • ..
      .

      create │ │ │ -00016f50: 4552 4669 6c74 6572 4e4d 323c 2f68 333e ERFilterNM2

      │ │ │ -00016f60: 0a3c 6469 7620 636c 6173 733d 226d 656d .
      < │ │ │ -00016f80: 7370 616e 2063 6c61 7373 3d22 6d6f 6469 span class="modi │ │ │ -00016f90: 6669 6572 7322 3e70 7562 6c69 6320 7374 fiers">public st │ │ │ -00016fa0: 6174 6963 3c2f 7370 616e 3e26 6e62 7370 atic  │ │ │ -00016fb0: 3b3c 7370 616e 2063 6c61 7373 3d22 7265 ;ERFilter │ │ │ -00017010: 3c2f 7370 616e 3e26 6e62 7370 3b3c 7370  createER │ │ │ -00017040: 4669 6c74 6572 4e4d 323c 2f73 7061 6e3e FilterNM2 │ │ │ -00017050: 3c77 6272 3e3c 7370 616e 2063 6c61 7373 (< │ │ │ -00017070: 6120 6872 6566 3d22 4552 4669 6c74 6572 a href="ERFilter │ │ │ -00017080: 5f43 616c 6c62 6163 6b2e 6874 6d6c 2220 _Callback.html" │ │ │ -00017090: 7469 746c 653d 2263 6c61 7373 2069 6e20 title="class in │ │ │ -000170a0: 6f72 672e 6f70 656e 6376 2e74 6578 7422 org.opencv.text" │ │ │ -000170b0: 3e45 5246 696c 7465 725f 4361 6c6c 6261 >ERFilter_Callba │ │ │ -000170c0: 636b 3c2f 613e 266e 6273 703b 6362 293c ck cb)< │ │ │ -000170d0: 2f73 7061 6e3e 3c2f 6469 763e 0a3c 6469 /span>
      . │ │ │ -000170f0: 4372 6561 7465 2061 6e20 4578 7472 656d Create an Extrem │ │ │ -00017100: 616c 2052 6567 696f 6e20 4669 6c74 6572 al Region Filter │ │ │ -00017110: 2066 6f72 2074 6865 2032 6e64 2073 7461 for the 2nd sta │ │ │ -00017120: 6765 2063 6c61 7373 6966 6965 7220 6f66 ge classifier of │ │ │ -00017130: 204e 2661 6d70 3b4d 2061 6c67 6f72 6974 N&M algorit │ │ │ -00017140: 686d 2043 4954 453a 204e 6575 6d61 6e6e hm CITE: Neumann │ │ │ -00017150: 3132 2e0a 0a20 6c6f 6164 436c 6173 7369 12... loadClassi │ │ │ -00017160: 6669 6572 4e4d 322c 2065 2e67 2e20 6672 fierNM2, e.g. fr │ │ │ -00017170: 6f6d 2066 696c 6520 696e 2073 616d 706c om file in sampl │ │ │ -00017180: 6573 2f63 7070 2f74 7261 696e 6564 5f63 es/cpp/trained_c │ │ │ -00017190: 6c61 7373 6966 6965 724e 4d32 2e78 6d6c lassifierNM2.xml │ │ │ -000171a0: 0a0a 2049 6e20 7468 6520 7365 636f 6e64 .. In the second │ │ │ -000171b0: 2073 7461 6765 2c20 7468 6520 4552 7320 stage, the ERs │ │ │ -000171c0: 7468 6174 2070 6173 7365 6420 7468 6520 that passed the │ │ │ -000171d0: 6669 7273 7420 7374 6167 6520 6172 6520 first stage are │ │ │ -000171e0: 636c 6173 7369 6669 6564 2069 6e74 6f20 classified into │ │ │ -000171f0: 6368 6172 6163 7465 7220 616e 640a 206e character and. n │ │ │ -00017200: 6f6e 2d63 6861 7261 6374 6572 2063 6c61 on-character cla │ │ │ -00017210: 7373 6573 2075 7369 6e67 206d 6f72 6520 sses using more │ │ │ -00017220: 696e 666f 726d 6174 6976 6520 6275 7420 informative but │ │ │ -00017230: 616c 736f 206d 6f72 6520 636f 6d70 7574 also more comput │ │ │ -00017240: 6174 696f 6e61 6c6c 7920 6578 7065 6e73 ationally expens │ │ │ -00017250: 6976 6520 6665 6174 7572 6573 2e20 5468 ive features. Th │ │ │ -00017260: 650a 2063 6c61 7373 6966 6965 7220 7573 e. classifier us │ │ │ -00017270: 6573 2061 6c6c 2074 6865 2066 6561 7475 es all the featu │ │ │ -00017280: 7265 7320 6361 6c63 756c 6174 6564 2069 res calculated i │ │ │ -00017290: 6e20 7468 6520 6669 7273 7420 7374 6167 n the first stag │ │ │ -000172a0: 6520 616e 6420 7468 6520 666f 6c6c 6f77 e and the follow │ │ │ -000172b0: 696e 6720 6164 6469 7469 6f6e 616c 0a20 ing additional. │ │ │ -000172c0: 6665 6174 7572 6573 3a20 686f 6c65 2061 features: hole a │ │ │ -000172d0: 7265 6120 7261 7469 6f2c 2063 6f6e 7665 rea ratio, conve │ │ │ -000172e0: 7820 6875 6c6c 2072 6174 696f 2c20 616e x hull ratio, an │ │ │ -000172f0: 6420 6e75 6d62 6572 206f 6620 6f75 7465 d number of oute │ │ │ -00017300: 7220 696e 666c 6578 696f 6e20 706f 696e r inflexion poin │ │ │ -00017310: 7473 2e3c 2f64 6976 3e0a 3c64 6c20 636c ts..
      .
      Parameters:
      .
      cb - automati │ │ │ -00017360: 6361 6c6c 7920 6765 6e65 7261 7465 643c cally generated< │ │ │ -00017370: 2f64 643e 0a3c 6474 3e52 6574 7572 6e73 /dd>.
      Returns │ │ │ -00017380: 3a3c 2f64 743e 0a3c 6464 3e61 7574 6f6d :
      .
      autom │ │ │ -00017390: 6174 6963 616c 6c79 2067 656e 6572 6174 atically generat │ │ │ -000173a0: 6564 3c2f 6464 3e0a 3c2f 646c 3e0a 3c2f ed
      .
      ...< │ │ │ -000173c0: 6c69 3e0a 3c73 6563 7469 6f6e 2063 6c61 li>.
      .

      cr │ │ │ -00017430: 6561 7465 4552 4669 6c74 6572 4e4d 313c eateERFilterNM1< │ │ │ -00017440: 2f68 333e 0a3c 6469 7620 636c 6173 733d /h3>.
      publi │ │ │ -00017480: 6320 7374 6174 6963 3c2f 7370 616e 3e26 c static& │ │ │ -00017490: 6e62 7370 3b3c 7370 616e 2063 6c61 7373 nbsp;< │ │ │ -000174b0: 6120 6872 6566 3d22 4552 4669 6c74 6572 a href="ERFilter │ │ │ -000174c0: 2e68 746d 6c22 2074 6974 6c65 3d22 636c .html" title="cl │ │ │ -000174d0: 6173 7320 696e 206f 7267 2e6f 7065 6e63 ass in org.openc │ │ │ -000174e0: 762e 7465 7874 223e 4552 4669 6c74 6572 v.text">ERFilter │ │ │ -000174f0: 3c2f 613e 3c2f 7370 616e 3e26 6e62 7370   │ │ │ -00017500: 3b3c 7370 616e 2063 6c61 7373 3d22 656c ;crea │ │ │ -00017520: 7465 4552 4669 6c74 6572 4e4d 313c 2f73 teERFilterNM1(String │ │ │ -00017600: 266e 6273 703b 6669 6c65 6e61 6d65 2c0a  filename,. │ │ │ -00017610: 2069 6e74 266e 6273 703b 7468 7265 7368 int thresh │ │ │ -00017620: 6f6c 6444 656c 7461 2c0a 2066 6c6f 6174 oldDelta,. float │ │ │ -00017630: 266e 6273 703b 6d69 6e41 7265 612c 0a20  minArea,. │ │ │ -00017640: 666c 6f61 7426 6e62 7370 3b6d 6178 4172 float maxAr │ │ │ -00017650: 6561 2c0a 2066 6c6f 6174 266e 6273 703b ea,. float  │ │ │ -00017660: 6d69 6e50 726f 6261 6269 6c69 7479 2c0a minProbability,. │ │ │ -00017670: 2062 6f6f 6c65 616e 266e 6273 703b 6e6f boolean no │ │ │ -00017680: 6e4d 6178 5375 7070 7265 7373 696f 6e2c nMaxSuppression, │ │ │ -00017690: 0a20 666c 6f61 7426 6e62 7370 3b6d 696e . float min │ │ │ -000176a0: 5072 6f62 6162 696c 6974 7944 6966 6629 ProbabilityDiff) │ │ │ -000176b0: 3c2f 7370 616e 3e3c 2f64 6976 3e0a 3c64
      .Reads an Extrem │ │ │ -000176e0: 616c 2052 6567 696f 6e20 4669 6c74 6572 al Region Filter │ │ │ -000176f0: 2066 6f72 2074 6865 2031 7374 2073 7461 for the 1st sta │ │ │ -00017700: 6765 2063 6c61 7373 6966 6965 7220 6f66 ge classifier of │ │ │ -00017710: 204e 2661 6d70 3b4d 2061 6c67 6f72 6974 N&M algorit │ │ │ -00017720: 686d 0a20 2020 2020 6672 6f6d 2074 6865 hm. from the │ │ │ -00017730: 2070 726f 7669 6465 6420 7061 7468 2065 provided path e │ │ │ -00017740: 2e67 2e20 2f70 6174 682f 746f 2f63 7070 .g. /path/to/cpp │ │ │ -00017750: 2f74 7261 696e 6564 5f63 6c61 7373 6966 /trained_classif │ │ │ -00017760: 6965 724e 4d31 2e78 6d6c 3c2f 6469 763e ierNM1.xml │ │ │ -00017770: 0a3c 646c 2063 6c61 7373 3d22 6e6f 7465 .
      .
      Paramete │ │ │ -00017790: 7273 3a3c 2f64 743e 0a3c 6464 3e3c 636f rs:
      .
      filename - automatical │ │ │ -000177c0: 6c79 2067 656e 6572 6174 6564 3c2f 6464 ly generated
      .
      thre │ │ │ -000177e0: 7368 6f6c 6444 656c 7461 3c2f 636f 6465 sholdDelta - automaticall │ │ │ -00017800: 7920 6765 6e65 7261 7465 643c 2f64 643e y generated
      │ │ │ -00017810: 0a3c 6464 3e3c 636f 6465 3e6d 696e 4172 .
      minAr │ │ │ -00017820: 6561 3c2f 636f 6465 3e20 2d20 6175 746f ea - auto │ │ │ -00017830: 6d61 7469 6361 6c6c 7920 6765 6e65 7261 matically genera │ │ │ -00017840: 7465 643c 2f64 643e 0a3c 6464 3e3c 636f ted
      .
      maxArea - automaticall │ │ │ -00017870: 7920 6765 6e65 7261 7465 643c 2f64 643e y generated
      │ │ │ -00017880: 0a3c 6464 3e3c 636f 6465 3e6d 696e 5072 .
      minPr │ │ │ -00017890: 6f62 6162 696c 6974 793c 2f63 6f64 653e obability │ │ │ -000178a0: 202d 2061 7574 6f6d 6174 6963 616c 6c79 - automatically │ │ │ -000178b0: 2067 656e 6572 6174 6564 3c2f 6464 3e0a generated
      . │ │ │ -000178c0: 3c64 643e 3c63 6f64 653e 6e6f 6e4d 6178
      nonMax │ │ │ -000178d0: 5375 7070 7265 7373 696f 6e3c 2f63 6f64 Suppression - automatical │ │ │ -000178f0: 6c79 2067 656e 6572 6174 6564 3c2f 6464 ly generated
      .
      minP │ │ │ -00017910: 726f 6261 6269 6c69 7479 4469 6666 3c2f robabilityDiff - automati │ │ │ -00017930: 6361 6c6c 7920 6765 6e65 7261 7465 643c cally generated< │ │ │ -00017940: 2f64 643e 0a3c 6474 3e52 6574 7572 6e73 /dd>.
      Returns │ │ │ -00017950: 3a3c 2f64 743e 0a3c 6464 3e61 7574 6f6d :
      .
      autom │ │ │ -00017960: 6174 6963 616c 6c79 2067 656e 6572 6174 atically generat │ │ │ -00017970: 6564 3c2f 6464 3e0a 3c2f 646c 3e0a 3c2f ed
      .
      ...< │ │ │ -00017990: 6c69 3e0a 3c73 6563 7469 6f6e 2063 6c61 li>.
      .

      createER │ │ │ -00017a00: 4669 6c74 6572 4e4d 313c 2f68 333e 0a3c FilterNM1

      .< │ │ │ -00017a10: 6469 7620 636c 6173 733d 226d 656d 6265 div class="membe │ │ │ -00017a20: 722d 7369 676e 6174 7572 6522 3e3c 7370 r-signature">public stat │ │ │ -00017a50: 6963 3c2f 7370 616e 3e26 6e62 7370 3b3c ic < │ │ │ -00017a60: 7370 616e 2063 6c61 7373 3d22 7265 7475 span class="retu │ │ │ -00017a70: 726e 2d74 7970 6522 3e3c 6120 6872 6566 rn-type">ERFilter createERFi │ │ │ -00017af0: 6c74 6572 4e4d 313c 2f73 7061 6e3e 3c77 lterNM1( │ │ │ -00017bc0: 5374 7269 6e67 3c2f 613e 266e 6273 703b String  │ │ │ -00017bd0: 6669 6c65 6e61 6d65 2c0a 2069 6e74 266e filename,. int&n │ │ │ -00017be0: 6273 703b 7468 7265 7368 6f6c 6444 656c bsp;thresholdDel │ │ │ -00017bf0: 7461 2c0a 2066 6c6f 6174 266e 6273 703b ta,. float  │ │ │ -00017c00: 6d69 6e41 7265 612c 0a20 666c 6f61 7426 minArea,. float& │ │ │ -00017c10: 6e62 7370 3b6d 6178 4172 6561 2c0a 2066 nbsp;maxArea,. f │ │ │ -00017c20: 6c6f 6174 266e 6273 703b 6d69 6e50 726f loat minPro │ │ │ -00017c30: 6261 6269 6c69 7479 2c0a 2062 6f6f 6c65 bability,. boole │ │ │ -00017c40: 616e 266e 6273 703b 6e6f 6e4d 6178 5375 an nonMaxSu │ │ │ -00017c50: 7070 7265 7373 696f 6e29 3c2f 7370 616e ppression).
      Reads │ │ │ -00017c80: 2061 6e20 4578 7472 656d 616c 2052 6567 an Extremal Reg │ │ │ -00017c90: 696f 6e20 4669 6c74 6572 2066 6f72 2074 ion Filter for t │ │ │ -00017ca0: 6865 2031 7374 2073 7461 6765 2063 6c61 he 1st stage cla │ │ │ -00017cb0: 7373 6966 6965 7220 6f66 204e 2661 6d70 ssifier of N& │ │ │ -00017cc0: 3b4d 2061 6c67 6f72 6974 686d 0a20 2020 ;M algorithm. │ │ │ -00017cd0: 2020 6672 6f6d 2074 6865 2070 726f 7669 from the provi │ │ │ -00017ce0: 6465 6420 7061 7468 2065 2e67 2e20 2f70 ded path e.g. /p │ │ │ -00017cf0: 6174 682f 746f 2f63 7070 2f74 7261 696e ath/to/cpp/train │ │ │ -00017d00: 6564 5f63 6c61 7373 6966 6965 724e 4d31 ed_classifierNM1 │ │ │ -00017d10: 2e78 6d6c 3c2f 6469 763e 0a3c 646c 2063 .xml
      .
      .Parameters:.
      fil │ │ │ -00017d50: 656e 616d 653c 2f63 6f64 653e 202d 2061 ename - a │ │ │ -00017d60: 7574 6f6d 6174 6963 616c 6c79 2067 656e utomatically gen │ │ │ -00017d70: 6572 6174 6564 3c2f 6464 3e0a 3c64 643e erated
      .
      │ │ │ -00017d80: 3c63 6f64 653e 7468 7265 7368 6f6c 6444 thresholdD │ │ │ -00017d90: 656c 7461 3c2f 636f 6465 3e20 2d20 6175 elta - au │ │ │ -00017da0: 746f 6d61 7469 6361 6c6c 7920 6765 6e65 tomatically gene │ │ │ -00017db0: 7261 7465 643c 2f64 643e 0a3c 6464 3e3c rated
      .
      < │ │ │ -00017dc0: 636f 6465 3e6d 696e 4172 6561 3c2f 636f code>minArea - automatica │ │ │ -00017de0: 6c6c 7920 6765 6e65 7261 7465 643c 2f64 lly generated.
      max │ │ │ -00017e00: 4172 6561 3c2f 636f 6465 3e20 2d20 6175 Area - au │ │ │ -00017e10: 746f 6d61 7469 6361 6c6c 7920 6765 6e65 tomatically gene │ │ │ -00017e20: 7261 7465 643c 2f64 643e 0a3c 6464 3e3c rated
      .
      < │ │ │ -00017e30: 636f 6465 3e6d 696e 5072 6f62 6162 696c code>minProbabil │ │ │ -00017e40: 6974 793c 2f63 6f64 653e 202d 2061 7574 ity - aut │ │ │ -00017e50: 6f6d 6174 6963 616c 6c79 2067 656e 6572 omatically gener │ │ │ -00017e60: 6174 6564 3c2f 6464 3e0a 3c64 643e 3c63 ated
      .
      nonMaxSuppre │ │ │ -00017e80: 7373 696f 6e3c 2f63 6f64 653e 202d 2061 ssion - a │ │ │ -00017e90: 7574 6f6d 6174 6963 616c 6c79 2067 656e utomatically gen │ │ │ -00017ea0: 6572 6174 6564 3c2f 6464 3e0a 3c64 743e erated
      .
      │ │ │ -00017eb0: 5265 7475 726e 733a 3c2f 6474 3e0a 3c64 Returns:
      .automatically │ │ │ -00017ed0: 6765 6e65 7261 7465 643c 2f64 643e 0a3c generated.< │ │ │ -00017ee0: 2f64 6c3e 0a3c 2f73 6563 7469 6f6e 3e0a /dl>.
      . │ │ │ -00017ef0: 3c2f 6c69 3e0a 3c6c 693e 0a3c 7365 6374 .
    • ..

      createERF │ │ │ -00017f60: 696c 7465 724e 4d31 3c2f 6833 3e0a 3c64 ilterNM1

      .public stati │ │ │ -00017fb0: 633c 2f73 7061 6e3e 266e 6273 703b 3c73 c ERFilter createERFil │ │ │ -00018050: 7465 724e 4d31 3c2f 7370 616e 3e3c 7762 terNM1(S │ │ │ -00018120: 7472 696e 673c 2f61 3e26 6e62 7370 3b66 tring f │ │ │ -00018130: 696c 656e 616d 652c 0a20 696e 7426 6e62 ilename,. int&nb │ │ │ -00018140: 7370 3b74 6872 6573 686f 6c64 4465 6c74 sp;thresholdDelt │ │ │ -00018150: 612c 0a20 666c 6f61 7426 6e62 7370 3b6d a,. float m │ │ │ -00018160: 696e 4172 6561 2c0a 2066 6c6f 6174 266e inArea,. float&n │ │ │ -00018170: 6273 703b 6d61 7841 7265 612c 0a20 666c bsp;maxArea,. fl │ │ │ -00018180: 6f61 7426 6e62 7370 3b6d 696e 5072 6f62 oat minProb │ │ │ -00018190: 6162 696c 6974 7929 3c2f 7370 616e 3e3c ability)< │ │ │ -000181a0: 2f64 6976 3e0a 3c64 6976 2063 6c61 7373 /div>.
      Reads a │ │ │ -000181c0: 6e20 4578 7472 656d 616c 2052 6567 696f n Extremal Regio │ │ │ -000181d0: 6e20 4669 6c74 6572 2066 6f72 2074 6865 n Filter for the │ │ │ -000181e0: 2031 7374 2073 7461 6765 2063 6c61 7373 1st stage class │ │ │ -000181f0: 6966 6965 7220 6f66 204e 2661 6d70 3b4d ifier of N&M │ │ │ -00018200: 2061 6c67 6f72 6974 686d 0a20 2020 2020 algorithm. │ │ │ -00018210: 6672 6f6d 2074 6865 2070 726f 7669 6465 from the provide │ │ │ -00018220: 6420 7061 7468 2065 2e67 2e20 2f70 6174 d path e.g. /pat │ │ │ -00018230: 682f 746f 2f63 7070 2f74 7261 696e 6564 h/to/cpp/trained │ │ │ -00018240: 5f63 6c61 7373 6966 6965 724e 4d31 2e78 _classifierNM1.x │ │ │ -00018250: 6d6c 3c2f 6469 763e 0a3c 646c 2063 6c61 ml
      .
      .
      │ │ │ -00018270: 5061 7261 6d65 7465 7273 3a3c 2f64 743e Parameters:
      │ │ │ -00018280: 0a3c 6464 3e3c 636f 6465 3e66 696c 656e .
      filen │ │ │ -00018290: 616d 653c 2f63 6f64 653e 202d 2061 7574 ame - aut │ │ │ -000182a0: 6f6d 6174 6963 616c 6c79 2067 656e 6572 omatically gener │ │ │ -000182b0: 6174 6564 3c2f 6464 3e0a 3c64 643e 3c63 ated
      .
      thresholdDel │ │ │ -000182d0: 7461 3c2f 636f 6465 3e20 2d20 6175 746f ta - auto │ │ │ -000182e0: 6d61 7469 6361 6c6c 7920 6765 6e65 7261 matically genera │ │ │ -000182f0: 7465 643c 2f64 643e 0a3c 6464 3e3c 636f ted
      .
      minArea - automaticall │ │ │ -00018320: 7920 6765 6e65 7261 7465 643c 2f64 643e y generated
      │ │ │ -00018330: 0a3c 6464 3e3c 636f 6465 3e6d 6178 4172 .
      maxAr │ │ │ -00018340: 6561 3c2f 636f 6465 3e20 2d20 6175 746f ea - auto │ │ │ -00018350: 6d61 7469 6361 6c6c 7920 6765 6e65 7261 matically genera │ │ │ -00018360: 7465 643c 2f64 643e 0a3c 6464 3e3c 636f ted
      .
      minProbabilit │ │ │ -00018380: 793c 2f63 6f64 653e 202d 2061 7574 6f6d y - autom │ │ │ -00018390: 6174 6963 616c 6c79 2067 656e 6572 6174 atically generat │ │ │ -000183a0: 6564 3c2f 6464 3e0a 3c64 743e 5265 7475 ed
      .
      Retu │ │ │ -000183b0: 726e 733a 3c2f 6474 3e0a 3c64 643e 6175 rns:
      .
      au │ │ │ -000183c0: 746f 6d61 7469 6361 6c6c 7920 6765 6e65 tomatically gene │ │ │ -000183d0: 7261 7465 643c 2f64 643e 0a3c 2f64 6c3e rated
      .
      │ │ │ -000183e0: 0a3c 2f73 6563 7469 6f6e 3e0a 3c2f 6c69 .
    • ..
    • .
      .

      cre │ │ │ -00018450: 6174 6545 5246 696c 7465 724e 4d31 3c2f ateERFilterNM1.
      public │ │ │ -000184a0: 2073 7461 7469 633c 2f73 7061 6e3e 266e static&n │ │ │ -000184b0: 6273 703b 3c73 7061 6e20 636c 6173 733d bsp;ERFilter< │ │ │ -00018510: 2f61 3e3c 2f73 7061 6e3e 266e 6273 703b /a>  │ │ │ -00018520: 3c73 7061 6e20 636c 6173 733d 2265 6c65 creat │ │ │ -00018540: 6545 5246 696c 7465 724e 4d31 3c2f 7370 eERFilterNM1(String& │ │ │ -00018620: 6e62 7370 3b66 696c 656e 616d 652c 0a20 nbsp;filename,. │ │ │ -00018630: 696e 7426 6e62 7370 3b74 6872 6573 686f int thresho │ │ │ -00018640: 6c64 4465 6c74 612c 0a20 666c 6f61 7426 ldDelta,. float& │ │ │ -00018650: 6e62 7370 3b6d 696e 4172 6561 2c0a 2066 nbsp;minArea,. f │ │ │ -00018660: 6c6f 6174 266e 6273 703b 6d61 7841 7265 loat maxAre │ │ │ -00018670: 6129 3c2f 7370 616e 3e3c 2f64 6976 3e0a a)
      . │ │ │ -00018680: 3c64 6976 2063 6c61 7373 3d22 626c 6f63
      Reads an Extr │ │ │ -000186a0: 656d 616c 2052 6567 696f 6e20 4669 6c74 emal Region Filt │ │ │ -000186b0: 6572 2066 6f72 2074 6865 2031 7374 2073 er for the 1st s │ │ │ -000186c0: 7461 6765 2063 6c61 7373 6966 6965 7220 tage classifier │ │ │ -000186d0: 6f66 204e 2661 6d70 3b4d 2061 6c67 6f72 of N&M algor │ │ │ -000186e0: 6974 686d 0a20 2020 2020 6672 6f6d 2074 ithm. from t │ │ │ -000186f0: 6865 2070 726f 7669 6465 6420 7061 7468 he provided path │ │ │ -00018700: 2065 2e67 2e20 2f70 6174 682f 746f 2f63 e.g. /path/to/c │ │ │ -00018710: 7070 2f74 7261 696e 6564 5f63 6c61 7373 pp/trained_class │ │ │ -00018720: 6966 6965 724e 4d31 2e78 6d6c 3c2f 6469 ifierNM1.xml.
      .
      Parame │ │ │ -00018750: 7465 7273 3a3c 2f64 743e 0a3c 6464 3e3c ters:
      .
      < │ │ │ -00018760: 636f 6465 3e66 696c 656e 616d 653c 2f63 code>filename - automatic │ │ │ -00018780: 616c 6c79 2067 656e 6572 6174 6564 3c2f ally generated.
      th │ │ │ -000187a0: 7265 7368 6f6c 6444 656c 7461 3c2f 636f resholdDelta - automatica │ │ │ -000187c0: 6c6c 7920 6765 6e65 7261 7465 643c 2f64 lly generated.
      min │ │ │ -000187e0: 4172 6561 3c2f 636f 6465 3e20 2d20 6175 Area - au │ │ │ -000187f0: 746f 6d61 7469 6361 6c6c 7920 6765 6e65 tomatically gene │ │ │ -00018800: 7261 7465 643c 2f64 643e 0a3c 6464 3e3c rated
      .
      < │ │ │ -00018810: 636f 6465 3e6d 6178 4172 6561 3c2f 636f code>maxArea - automatica │ │ │ -00018830: 6c6c 7920 6765 6e65 7261 7465 643c 2f64 lly generated.
      Returns:< │ │ │ -00018850: 2f64 743e 0a3c 6464 3e61 7574 6f6d 6174 /dt>.
      automat │ │ │ -00018860: 6963 616c 6c79 2067 656e 6572 6174 6564 ically generated │ │ │ -00018870: 3c2f 6464 3e0a 3c2f 646c 3e0a 3c2f 7365
      .
      ..

    • .
    • .
      .createERFilter │ │ │ -000188f0: 4e4d 313c 2f68 333e 0a3c 6469 7620 636c NM1.
      p │ │ │ -00018930: 7562 6c69 6320 7374 6174 6963 3c2f 7370 ublic static ERFi │ │ │ -000189a0: 6c74 6572 3c2f 613e 3c2f 7370 616e 3e26 lter& │ │ │ -000189b0: 6e62 7370 3b3c 7370 616e 2063 6c61 7373 nbsp; │ │ │ -000189d0: 6372 6561 7465 4552 4669 6c74 6572 4e4d createERFilterNM │ │ │ -000189e0: 313c 2f73 7061 6e3e 3c77 6272 3e3c 7370 1(String │ │ │ -00018ab0: 3c2f 613e 266e 6273 703b 6669 6c65 6e61  filena │ │ │ -00018ac0: 6d65 2c0a 2069 6e74 266e 6273 703b 7468 me,. int th │ │ │ -00018ad0: 7265 7368 6f6c 6444 656c 7461 2c0a 2066 resholdDelta,. f │ │ │ -00018ae0: 6c6f 6174 266e 6273 703b 6d69 6e41 7265 loat minAre │ │ │ -00018af0: 6129 3c2f 7370 616e 3e3c 2f64 6976 3e0a a)
      . │ │ │ -00018b00: 3c64 6976 2063 6c61 7373 3d22 626c 6f63
      Reads an Extr │ │ │ -00018b20: 656d 616c 2052 6567 696f 6e20 4669 6c74 emal Region Filt │ │ │ -00018b30: 6572 2066 6f72 2074 6865 2031 7374 2073 er for the 1st s │ │ │ -00018b40: 7461 6765 2063 6c61 7373 6966 6965 7220 tage classifier │ │ │ -00018b50: 6f66 204e 2661 6d70 3b4d 2061 6c67 6f72 of N&M algor │ │ │ -00018b60: 6974 686d 0a20 2020 2020 6672 6f6d 2074 ithm. from t │ │ │ -00018b70: 6865 2070 726f 7669 6465 6420 7061 7468 he provided path │ │ │ -00018b80: 2065 2e67 2e20 2f70 6174 682f 746f 2f63 e.g. /path/to/c │ │ │ -00018b90: 7070 2f74 7261 696e 6564 5f63 6c61 7373 pp/trained_class │ │ │ -00018ba0: 6966 6965 724e 4d31 2e78 6d6c 3c2f 6469 ifierNM1.xml.
      .
      Parame │ │ │ -00018bd0: 7465 7273 3a3c 2f64 743e 0a3c 6464 3e3c ters:
      .
      < │ │ │ -00018be0: 636f 6465 3e66 696c 656e 616d 653c 2f63 code>filename - automatic │ │ │ -00018c00: 616c 6c79 2067 656e 6572 6174 6564 3c2f ally generated.
      th │ │ │ -00018c20: 7265 7368 6f6c 6444 656c 7461 3c2f 636f resholdDelta - automatica │ │ │ -00018c40: 6c6c 7920 6765 6e65 7261 7465 643c 2f64 lly generated.
      min │ │ │ -00018c60: 4172 6561 3c2f 636f 6465 3e20 2d20 6175 Area - au │ │ │ -00018c70: 746f 6d61 7469 6361 6c6c 7920 6765 6e65 tomatically gene │ │ │ -00018c80: 7261 7465 643c 2f64 643e 0a3c 6474 3e52 rated
      .
      R │ │ │ -00018c90: 6574 7572 6e73 3a3c 2f64 743e 0a3c 6464 eturns:
      .
      automatically g │ │ │ -00018cb0: 656e 6572 6174 6564 3c2f 6464 3e0a 3c2f enerated
      ..
      .< │ │ │ -00018cd0: 2f6c 693e 0a3c 6c69 3e0a 3c73 6563 7469 /li>.
    • .. │ │ │ -00018d20: 3c68 333e 6372 6561 7465 4552 4669 6c74

      createERFilt │ │ │ -00018d30: 6572 4e4d 313c 2f68 333e 0a3c 6469 7620 erNM1

      .
      public static ER │ │ │ -00018de0: 4669 6c74 6572 3c2f 613e 3c2f 7370 616e Filter createERFilter │ │ │ -00018e20: 4e4d 313c 2f73 7061 6e3e 3c77 6272 3e3c NM1< │ │ │ -00018e30: 7370 616e 2063 6c61 7373 3d22 7061 7261 span class="para │ │ │ -00018e40: 6d65 7465 7273 223e 283c 6120 6872 6566 meters">(Stri │ │ │ -00018ef0: 6e67 3c2f 613e 266e 6273 703b 6669 6c65 ng file │ │ │ -00018f00: 6e61 6d65 2c0a 2069 6e74 266e 6273 703b name,. int  │ │ │ -00018f10: 7468 7265 7368 6f6c 6444 656c 7461 293c thresholdDelta)< │ │ │ -00018f20: 2f73 7061 6e3e 3c2f 6469 763e 0a3c 6469 /span>
      . │ │ │ -00018f40: 5265 6164 7320 616e 2045 7874 7265 6d61 Reads an Extrema │ │ │ -00018f50: 6c20 5265 6769 6f6e 2046 696c 7465 7220 l Region Filter │ │ │ -00018f60: 666f 7220 7468 6520 3173 7420 7374 6167 for the 1st stag │ │ │ -00018f70: 6520 636c 6173 7369 6669 6572 206f 6620 e classifier of │ │ │ -00018f80: 4e26 616d 703b 4d20 616c 676f 7269 7468 N&M algorith │ │ │ -00018f90: 6d0a 2020 2020 2066 726f 6d20 7468 6520 m. from the │ │ │ -00018fa0: 7072 6f76 6964 6564 2070 6174 6820 652e provided path e. │ │ │ -00018fb0: 672e 202f 7061 7468 2f74 6f2f 6370 702f g. /path/to/cpp/ │ │ │ -00018fc0: 7472 6169 6e65 645f 636c 6173 7369 6669 trained_classifi │ │ │ -00018fd0: 6572 4e4d 312e 786d 6c3c 2f64 6976 3e0a erNM1.xml. │ │ │ -00018fe0: 3c64 6c20 636c 6173 733d 226e 6f74 6573
      .
      Parameter │ │ │ -00019000: 733a 3c2f 6474 3e0a 3c64 643e 3c63 6f64 s:
      .
      filename - automaticall │ │ │ -00019030: 7920 6765 6e65 7261 7465 643c 2f64 643e y generated
      │ │ │ -00019040: 0a3c 6464 3e3c 636f 6465 3e74 6872 6573 .
      thres │ │ │ -00019050: 686f 6c64 4465 6c74 613c 2f63 6f64 653e holdDelta │ │ │ -00019060: 202d 2061 7574 6f6d 6174 6963 616c 6c79 - automatically │ │ │ -00019070: 2067 656e 6572 6174 6564 3c2f 6464 3e0a generated
      . │ │ │ -00019080: 3c64 743e 5265 7475 726e 733a 3c2f 6474
      Returns:
      .
      automatica │ │ │ -000190a0: 6c6c 7920 6765 6e65 7261 7465 643c 2f64 lly generated.
      ..
    • .
    • .< │ │ │ -000190d0: 7365 6374 696f 6e20 636c 6173 733d 2264 section class="d │ │ │ -000190e0: 6574 6169 6c22 2069 643d 2263 7265 6174 etail" id="creat │ │ │ -000190f0: 6545 5246 696c 7465 724e 4d31 286a 6176 eERFilterNM1(jav │ │ │ -00019100: 612e 6c61 6e67 2e53 7472 696e 6729 223e a.lang.String)"> │ │ │ -00019110: 0a3c 6833 3e63 7265 6174 6545 5246 696c .

      createERFil │ │ │ -00019120: 7465 724e 4d31 3c2f 6833 3e0a 3c64 6976 terNM1

      .
      public static< │ │ │ -00019170: 2f73 7061 6e3e 266e 6273 703b 3c73 7061 /span> E │ │ │ -000191d0: 5246 696c 7465 723c 2f61 3e3c 2f73 7061 RFilter createERFilte │ │ │ -00019210: 724e 4d31 3c2f 7370 616e 3e3c 7762 723e rNM1 │ │ │ -00019220: 3c73 7061 6e20 636c 6173 733d 2270 6172 (Str │ │ │ -000192e0: 696e 673c 2f61 3e26 6e62 7370 3b66 696c ing fil │ │ │ -000192f0: 656e 616d 6529 3c2f 7370 616e 3e3c 2f64 ename).
      Reads an │ │ │ -00019320: 4578 7472 656d 616c 2052 6567 696f 6e20 Extremal Region │ │ │ -00019330: 4669 6c74 6572 2066 6f72 2074 6865 2031 Filter for the 1 │ │ │ -00019340: 7374 2073 7461 6765 2063 6c61 7373 6966 st stage classif │ │ │ -00019350: 6965 7220 6f66 204e 2661 6d70 3b4d 2061 ier of N&M a │ │ │ -00019360: 6c67 6f72 6974 686d 0a20 2020 2020 6672 lgorithm. fr │ │ │ -00019370: 6f6d 2074 6865 2070 726f 7669 6465 6420 om the provided │ │ │ -00019380: 7061 7468 2065 2e67 2e20 2f70 6174 682f path e.g. /path/ │ │ │ -00019390: 746f 2f63 7070 2f74 7261 696e 6564 5f63 to/cpp/trained_c │ │ │ -000193a0: 6c61 7373 6966 6965 724e 4d31 2e78 6d6c lassifierNM1.xml │ │ │ -000193b0: 3c2f 6469 763e 0a3c 646c 2063 6c61 7373
      .
      .
      Pa │ │ │ -000193d0: 7261 6d65 7465 7273 3a3c 2f64 743e 0a3c rameters:
      .< │ │ │ -000193e0: 6464 3e3c 636f 6465 3e66 696c 656e 616d dd>filenam │ │ │ -000193f0: 653c 2f63 6f64 653e 202d 2061 7574 6f6d e - autom │ │ │ -00019400: 6174 6963 616c 6c79 2067 656e 6572 6174 atically generat │ │ │ -00019410: 6564 3c2f 6464 3e0a 3c64 743e 5265 7475 ed.
      Retu │ │ │ -00019420: 726e 733a 3c2f 6474 3e0a 3c64 643e 6175 rns:
      .
      au │ │ │ -00019430: 746f 6d61 7469 6361 6c6c 7920 6765 6e65 tomatically gene │ │ │ -00019440: 7261 7465 643c 2f64 643e 0a3c 2f64 6c3e rated
      .
      │ │ │ -00019450: 0a3c 2f73 6563 7469 6f6e 3e0a 3c2f 6c69 .
    • ..
    • .
      .< │ │ │ -000194b0: 6833 3e63 7265 6174 6545 5246 696c 7465 h3>createERFilte │ │ │ -000194c0: 724e 4d32 3c2f 6833 3e0a 3c64 6976 2063 rNM2.
      │ │ │ -00019500: 7075 626c 6963 2073 7461 7469 633c 2f73 public static ERF │ │ │ -00019570: 696c 7465 723c 2f61 3e3c 2f73 7061 6e3e ilter │ │ │ -00019580: 266e 6273 703b 3c73 7061 6e20 636c 6173  createERFilterN │ │ │ -000195b0: 4d32 3c2f 7370 616e 3e3c 7762 723e 3c73 M2(Strin │ │ │ -00019680: 673c 2f61 3e26 6e62 7370 3b66 696c 656e g filen │ │ │ -00019690: 616d 652c 0a20 666c 6f61 7426 6e62 7370 ame,. float  │ │ │ -000196a0: 3b6d 696e 5072 6f62 6162 696c 6974 7929 ;minProbability) │ │ │ -000196b0: 3c2f 7370 616e 3e3c 2f64 6976 3e0a 3c64
      .Reads an Extrem │ │ │ -000196e0: 616c 2052 6567 696f 6e20 4669 6c74 6572 al Region Filter │ │ │ -000196f0: 2066 6f72 2074 6865 2032 6e64 2073 7461 for the 2nd sta │ │ │ -00019700: 6765 2063 6c61 7373 6966 6965 7220 6f66 ge classifier of │ │ │ -00019710: 204e 2661 6d70 3b4d 2061 6c67 6f72 6974 N&M algorit │ │ │ -00019720: 686d 0a20 2020 2020 6672 6f6d 2074 6865 hm. from the │ │ │ -00019730: 2070 726f 7669 6465 6420 7061 7468 2065 provided path e │ │ │ -00019740: 2e67 2e20 2f70 6174 682f 746f 2f63 7070 .g. /path/to/cpp │ │ │ -00019750: 2f74 7261 696e 6564 5f63 6c61 7373 6966 /trained_classif │ │ │ -00019760: 6965 724e 4d32 2e78 6d6c 3c2f 6469 763e ierNM2.xml │ │ │ -00019770: 0a3c 646c 2063 6c61 7373 3d22 6e6f 7465 .
      .
      Paramete │ │ │ -00019790: 7273 3a3c 2f64 743e 0a3c 6464 3e3c 636f rs:
      .
      filename - automatical │ │ │ -000197c0: 6c79 2067 656e 6572 6174 6564 3c2f 6464 ly generated
      .
      minP │ │ │ -000197e0: 726f 6261 6269 6c69 7479 3c2f 636f 6465 robability - automaticall │ │ │ -00019800: 7920 6765 6e65 7261 7465 643c 2f64 643e y generated
      │ │ │ -00019810: 0a3c 6474 3e52 6574 7572 6e73 3a3c 2f64 .
      Returns:.
      automatic │ │ │ -00019830: 616c 6c79 2067 656e 6572 6174 6564 3c2f ally generated.
      ..
    • .
    • . │ │ │ -00019860: 3c73 6563 7469 6f6e 2063 6c61 7373 3d22
      .

      createERFi │ │ │ -000198b0: 6c74 6572 4e4d 323c 2f68 333e 0a3c 6469 lterNM2

      .public static │ │ │ -00019900: 3c2f 7370 616e 3e26 6e62 7370 3b3c 7370   │ │ │ -00019960: 4552 4669 6c74 6572 3c2f 613e 3c2f 7370 ERFilter createERFilt │ │ │ -000199a0: 6572 4e4d 323c 2f73 7061 6e3e 3c77 6272 erNM2(St │ │ │ -00019a70: 7269 6e67 3c2f 613e 266e 6273 703b 6669 ring fi │ │ │ -00019a80: 6c65 6e61 6d65 293c 2f73 7061 6e3e 3c2f lename).
      Reads an │ │ │ -00019ab0: 2045 7874 7265 6d61 6c20 5265 6769 6f6e Extremal Region │ │ │ -00019ac0: 2046 696c 7465 7220 666f 7220 7468 6520 Filter for the │ │ │ -00019ad0: 326e 6420 7374 6167 6520 636c 6173 7369 2nd stage classi │ │ │ -00019ae0: 6669 6572 206f 6620 4e26 616d 703b 4d20 fier of N&M │ │ │ -00019af0: 616c 676f 7269 7468 6d0a 2020 2020 2066 algorithm. f │ │ │ -00019b00: 726f 6d20 7468 6520 7072 6f76 6964 6564 rom the provided │ │ │ -00019b10: 2070 6174 6820 652e 672e 202f 7061 7468 path e.g. /path │ │ │ -00019b20: 2f74 6f2f 6370 702f 7472 6169 6e65 645f /to/cpp/trained_ │ │ │ -00019b30: 636c 6173 7369 6669 6572 4e4d 322e 786d classifierNM2.xm │ │ │ -00019b40: 6c3c 2f64 6976 3e0a 3c64 6c20 636c 6173 l
      .
      .
      P │ │ │ -00019b60: 6172 616d 6574 6572 733a 3c2f 6474 3e0a arameters:
      . │ │ │ -00019b70: 3c64 643e 3c63 6f64 653e 6669 6c65 6e61
      filena │ │ │ -00019b80: 6d65 3c2f 636f 6465 3e20 2d20 6175 746f me - auto │ │ │ -00019b90: 6d61 7469 6361 6c6c 7920 6765 6e65 7261 matically genera │ │ │ -00019ba0: 7465 643c 2f64 643e 0a3c 6474 3e52 6574 ted
      .
      Ret │ │ │ -00019bb0: 7572 6e73 3a3c 2f64 743e 0a3c 6464 3e61 urns:
      .
      a │ │ │ -00019bc0: 7574 6f6d 6174 6963 616c 6c79 2067 656e utomatically gen │ │ │ -00019bd0: 6572 6174 6564 3c2f 6464 3e0a 3c2f 646c erated
      .
      .
      ..
    • .
      .

      lo │ │ │ -00019c40: 6164 436c 6173 7369 6669 6572 4e4d 313c adClassifierNM1< │ │ │ -00019c50: 2f68 333e 0a3c 6469 7620 636c 6173 733d /h3>.
      publi │ │ │ -00019c90: 6320 7374 6174 6963 3c2f 7370 616e 3e26 c static& │ │ │ -00019ca0: 6e62 7370 3b3c 7370 616e 2063 6c61 7373 nbsp;< │ │ │ -00019cc0: 6120 6872 6566 3d22 4552 4669 6c74 6572 a href="ERFilter │ │ │ -00019cd0: 5f43 616c 6c62 6163 6b2e 6874 6d6c 2220 _Callback.html" │ │ │ -00019ce0: 7469 746c 653d 2263 6c61 7373 2069 6e20 title="class in │ │ │ -00019cf0: 6f72 672e 6f70 656e 6376 2e74 6578 7422 org.opencv.text" │ │ │ -00019d00: 3e45 5246 696c 7465 725f 4361 6c6c 6261 >ERFilter_Callba │ │ │ -00019d10: 636b 3c2f 613e 3c2f 7370 616e 3e26 6e62 ck&nb │ │ │ -00019d20: 7370 3b3c 7370 616e 2063 6c61 7373 3d22 sp;lo │ │ │ -00019d40: 6164 436c 6173 7369 6669 6572 4e4d 313c adClassifierNM1< │ │ │ -00019d50: 2f73 7061 6e3e 3c77 6272 3e3c 7370 616e /span>(String filename │ │ │ -00019e30: 293c 2f73 7061 6e3e 3c2f 6469 763e 0a3c )
      .< │ │ │ -00019e40: 6469 7620 636c 6173 733d 2262 6c6f 636b div class="block │ │ │ -00019e50: 223e 416c 6c6f 7720 746f 2069 6d70 6c69 ">Allow to impli │ │ │ -00019e60: 6369 746c 7920 6c6f 6164 2074 6865 2064 citly load the d │ │ │ -00019e70: 6566 6175 6c74 2063 6c61 7373 6966 6965 efault classifie │ │ │ -00019e80: 7220 7768 656e 2063 7265 6174 696e 6720 r when creating │ │ │ -00019e90: 616e 2045 5246 696c 7465 7220 6f62 6a65 an ERFilter obje │ │ │ -00019ea0: 6374 2e3c 2f64 6976 3e0a 3c64 6c20 636c ct..
      .
      Parameters:
      .
      file │ │ │ -00019ee0: 6e61 6d65 3c2f 636f 6465 3e20 2d20 5468 name - Th │ │ │ -00019ef0: 6520 584d 4c20 6f72 2059 414d 4c20 6669 e XML or YAML fi │ │ │ -00019f00: 6c65 2077 6974 6820 7468 6520 636c 6173 le with the clas │ │ │ -00019f10: 7369 6669 6572 206d 6f64 656c 2028 652e sifier model (e. │ │ │ -00019f20: 672e 2074 7261 696e 6564 5f63 6c61 7373 g. trained_class │ │ │ -00019f30: 6966 6965 724e 4d31 2e78 6d6c 290a 0a20 ifierNM1.xml).. │ │ │ -00019f40: 7265 7475 726e 7320 6120 706f 696e 7465 returns a pointe │ │ │ -00019f50: 7220 746f 2045 5246 696c 7465 723a 3a43 r to ERFilter::C │ │ │ -00019f60: 616c 6c62 6163 6b2e 3c2f 6464 3e0a 3c64 allback.
      .Returns:. │ │ │ -00019f80: 3c64 643e 6175 746f 6d61 7469 6361 6c6c
      automaticall │ │ │ -00019f90: 7920 6765 6e65 7261 7465 643c 2f64 643e y generated
      │ │ │ -00019fa0: 0a3c 2f64 6c3e 0a3c 2f73 6563 7469 6f6e .
      .

      .
    • .
    • ..< │ │ │ -0001a000: 6833 3e6c 6f61 6443 6c61 7373 6966 6965 h3>loadClassifie │ │ │ -0001a010: 724e 4d32 3c2f 6833 3e0a 3c64 6976 2063 rNM2.
      │ │ │ -0001a050: 7075 626c 6963 2073 7461 7469 633c 2f73 public static ERFilter_C │ │ │ -0001a0d0: 616c 6c62 6163 6b3c 2f61 3e3c 2f73 7061 allback loadClassifie │ │ │ -0001a110: 724e 4d32 3c2f 7370 616e 3e3c 7762 723e rNM2 │ │ │ -0001a120: 3c73 7061 6e20 636c 6173 733d 2270 6172 (Str │ │ │ -0001a1e0: 696e 673c 2f61 3e26 6e62 7370 3b66 696c ing fil │ │ │ -0001a1f0: 656e 616d 6529 3c2f 7370 616e 3e3c 2f64 ename).
      Allow to │ │ │ -0001a220: 696d 706c 6963 6974 6c79 206c 6f61 6420 implicitly load │ │ │ -0001a230: 7468 6520 6465 6661 756c 7420 636c 6173 the default clas │ │ │ -0001a240: 7369 6669 6572 2077 6865 6e20 6372 6561 sifier when crea │ │ │ -0001a250: 7469 6e67 2061 6e20 4552 4669 6c74 6572 ting an ERFilter │ │ │ -0001a260: 206f 626a 6563 742e 3c2f 6469 763e 0a3c object.
      .< │ │ │ -0001a270: 646c 2063 6c61 7373 3d22 6e6f 7465 7322 dl class="notes" │ │ │ -0001a280: 3e0a 3c64 743e 5061 7261 6d65 7465 7273 >.
      Parameters │ │ │ -0001a290: 3a3c 2f64 743e 0a3c 6464 3e3c 636f 6465 :
      .
      filename │ │ │ -0001a2b0: 202d 2054 6865 2058 4d4c 206f 7220 5941 - The XML or YA │ │ │ -0001a2c0: 4d4c 2066 696c 6520 7769 7468 2074 6865 ML file with the │ │ │ -0001a2d0: 2063 6c61 7373 6966 6965 7220 6d6f 6465 classifier mode │ │ │ -0001a2e0: 6c20 2865 2e67 2e20 7472 6169 6e65 645f l (e.g. trained_ │ │ │ -0001a2f0: 636c 6173 7369 6669 6572 4e4d 322e 786d classifierNM2.xm │ │ │ -0001a300: 6c29 0a0a 2072 6574 7572 6e73 2061 2070 l).. returns a p │ │ │ -0001a310: 6f69 6e74 6572 2074 6f20 4552 4669 6c74 ointer to ERFilt │ │ │ -0001a320: 6572 3a3a 4361 6c6c 6261 636b 2e3c 2f64 er::Callback..
      Returns:< │ │ │ -0001a340: 2f64 743e 0a3c 6464 3e61 7574 6f6d 6174 /dt>.
      automat │ │ │ -0001a350: 6963 616c 6c79 2067 656e 6572 6174 6564 ically generated │ │ │ -0001a360: 3c2f 6464 3e0a 3c2f 646c 3e0a 3c2f 7365
      ...
    • .
    • .
      .

      co │ │ │ -0001a3e0: 6d70 7574 654e 4d43 6861 6e6e 656c 733c mputeNMChannels< │ │ │ -0001a3f0: 2f68 333e 0a3c 6469 7620 636c 6173 733d /h3>.
      publi │ │ │ -0001a430: 6320 7374 6174 6963 3c2f 7370 616e 3e26 c static& │ │ │ -0001a440: 6e62 7370 3b3c 7370 616e 2063 6c61 7373 nbsp;v │ │ │ -0001a460: 6f69 643c 2f73 7061 6e3e 266e 6273 703b oid  │ │ │ -0001a470: 3c73 7061 6e20 636c 6173 733d 2265 6c65 compu │ │ │ -0001a490: 7465 4e4d 4368 616e 6e65 6c73 3c2f 7370 teNMChannels(Ma │ │ │ -0001a500: 743c 2f61 3e26 6e62 7370 3b5f 7372 632c t _src, │ │ │ -0001a510: 0a20 3c61 2068 7265 663d 2268 7474 7073 . List<< │ │ │ -0001a5c0: 6120 6872 6566 3d22 2e2e 2f63 6f72 652f a href="../core/ │ │ │ -0001a5d0: 4d61 742e 6874 6d6c 2220 7469 746c 653d Mat.html" title= │ │ │ -0001a5e0: 2263 6c61 7373 2069 6e20 6f72 672e 6f70 "class in org.op │ │ │ -0001a5f0: 656e 6376 2e63 6f72 6522 3e4d 6174 3c2f encv.core">Mat> _cha │ │ │ -0001a610: 6e6e 656c 732c 0a20 696e 7426 6e62 7370 nnels,. int  │ │ │ -0001a620: 3b5f 6d6f 6465 293c 2f73 7061 6e3e 3c2f ;_mode).
      Compute │ │ │ -0001a650: 7468 6520 6469 6666 6572 656e 7420 6368 the different ch │ │ │ -0001a660: 616e 6e65 6c73 2074 6f20 6265 2070 726f annels to be pro │ │ │ -0001a670: 6365 7373 6564 2069 6e64 6570 656e 6465 cessed independe │ │ │ -0001a680: 6e74 6c79 2069 6e20 7468 6520 4e26 616d ntly in the N&am │ │ │ -0001a690: 703b 4d20 616c 676f 7269 7468 6d20 4349 p;M algorithm CI │ │ │ -0001a6a0: 5445 3a20 4e65 756d 616e 6e31 322e 3c2f TE: Neumann12..
      .
      Para │ │ │ -0001a6d0: 6d65 7465 7273 3a3c 2f64 743e 0a3c 6464 meters:
      .
      _src - Source imag │ │ │ -0001a700: 652e 204d 7573 7420 6265 2052 4742 2043 e. Must be RGB C │ │ │ -0001a710: 565f 3855 4333 2e3c 2f64 643e 0a3c 6464 V_8UC3.
      .
      _channels │ │ │ -0001a730: 3c2f 636f 6465 3e20 2d20 4f75 7470 7574 - Output │ │ │ -0001a740: 2076 6563 746f 7226 6c74 3b4d 6174 2667 vector<Mat&g │ │ │ -0001a750: 743b 2077 6865 7265 2063 6f6d 7075 7465 t; where compute │ │ │ -0001a760: 6420 6368 616e 6e65 6c73 2061 7265 2073 d channels are s │ │ │ -0001a770: 746f 7265 642e 3c2f 6464 3e0a 3c64 643e tored.
      .
      │ │ │ -0001a780: 3c63 6f64 653e 5f6d 6f64 653c 2f63 6f64 _mode - Mode of ope │ │ │ -0001a7a0: 7261 7469 6f6e 2e20 4375 7272 656e 746c ration. Currentl │ │ │ -0001a7b0: 7920 7468 6520 6f6e 6c79 2061 7661 696c y the only avail │ │ │ -0001a7c0: 6162 6c65 206f 7074 696f 6e73 2061 7265 able options are │ │ │ -0001a7d0: 3a0a 203c 623e 4552 4649 4c54 4552 5f4e :. ERFILTER_N │ │ │ -0001a7e0: 4d5f 5247 424c 4772 6164 3c2f 623e 2028 M_RGBLGrad ( │ │ │ -0001a7f0: 7573 6564 2062 7920 6465 6661 756c 7429 used by default) │ │ │ -0001a800: 2061 6e64 203c 623e 4552 4649 4c54 4552 and ERFILTER │ │ │ -0001a810: 5f4e 4d5f 4948 5347 7261 643c 2f62 3e2e _NM_IHSGrad. │ │ │ -0001a820: 0a0a 2049 6e20 4e26 616d 703b 4d20 616c .. In N&M al │ │ │ -0001a830: 676f 7269 7468 6d2c 2074 6865 2063 6f6d gorithm, the com │ │ │ -0001a840: 6269 6e61 7469 6f6e 206f 6620 696e 7465 bination of inte │ │ │ -0001a850: 6e73 6974 7920 2849 292c 2068 7565 2028 nsity (I), hue ( │ │ │ -0001a860: 4829 2c20 7361 7475 7261 7469 6f6e 2028 H), saturation ( │ │ │ -0001a870: 5329 2c20 616e 6420 6772 6164 6965 6e74 S), and gradient │ │ │ -0001a880: 206d 6167 6e69 7475 6465 0a20 6368 616e magnitude. chan │ │ │ -0001a890: 6e65 6c73 2028 4772 6164 2920 6172 6520 nels (Grad) are │ │ │ -0001a8a0: 7573 6564 2069 6e20 6f72 6465 7220 746f used in order to │ │ │ -0001a8b0: 206f 6274 6169 6e20 6869 6768 206c 6f63 obtain high loc │ │ │ -0001a8c0: 616c 697a 6174 696f 6e20 7265 6361 6c6c alization recall │ │ │ -0001a8d0: 2e20 5468 6973 2069 6d70 6c65 6d65 6e74 . This implement │ │ │ -0001a8e0: 6174 696f 6e20 616c 736f 0a20 7072 6f76 ation also. prov │ │ │ -0001a8f0: 6964 6573 2061 6e20 616c 7465 726e 6174 ides an alternat │ │ │ -0001a900: 6976 6520 636f 6d62 696e 6174 696f 6e20 ive combination │ │ │ -0001a910: 6f66 2072 6564 2028 5229 2c20 6772 6565 of red (R), gree │ │ │ -0001a920: 6e20 2847 292c 2062 6c75 6520 2842 292c n (G), blue (B), │ │ │ -0001a930: 206c 6967 6874 6e65 7373 2028 4c29 2c20 lightness (L), │ │ │ -0001a940: 616e 6420 6772 6164 6965 6e74 0a20 6d61 and gradient. ma │ │ │ -0001a950: 676e 6974 7564 6520 2847 7261 6429 2e3c gnitude (Grad).< │ │ │ -0001a960: 2f64 643e 0a3c 2f64 6c3e 0a3c 2f73 6563 /dd>.
      ..

    • .
    • │ │ │ -0001a980: 0a3c 7365 6374 696f 6e20 636c 6173 733d .
      .

      compute │ │ │ -0001a9e0: 4e4d 4368 616e 6e65 6c73 3c2f 6833 3e0a NMChannels

      . │ │ │ -0001a9f0: 3c64 6976 2063 6c61 7373 3d22 6d65 6d62
      public sta │ │ │ -0001aa30: 7469 633c 2f73 7061 6e3e 266e 6273 703b tic  │ │ │ -0001aa40: 3c73 7061 6e20 636c 6173 733d 2272 6574 void computeNMC │ │ │ -0001aa90: 6861 6e6e 656c 733c 2f73 7061 6e3e 3c77 hannels(Mat │ │ │ -0001ab00: 266e 6273 703b 5f73 7263 2c0a 203c 6120  _src,. Li │ │ │ -0001abb0: 7374 3c2f 613e 266c 743b 3c61 2068 7265 st<Mat> │ │ │ -0001ac00: 3b26 6e62 7370 3b5f 6368 616e 6e65 6c73 ; _channels │ │ │ -0001ac10: 293c 2f73 7061 6e3e 3c2f 6469 763e 0a3c )
      .< │ │ │ -0001ac20: 6469 7620 636c 6173 733d 2262 6c6f 636b div class="block │ │ │ -0001ac30: 223e 436f 6d70 7574 6520 7468 6520 6469 ">Compute the di │ │ │ -0001ac40: 6666 6572 656e 7420 6368 616e 6e65 6c73 fferent channels │ │ │ -0001ac50: 2074 6f20 6265 2070 726f 6365 7373 6564 to be processed │ │ │ -0001ac60: 2069 6e64 6570 656e 6465 6e74 6c79 2069 independently i │ │ │ -0001ac70: 6e20 7468 6520 4e26 616d 703b 4d20 616c n the N&M al │ │ │ -0001ac80: 676f 7269 7468 6d20 4349 5445 3a20 4e65 gorithm CITE: Ne │ │ │ -0001ac90: 756d 616e 6e31 322e 3c2f 6469 763e 0a3c umann12..< │ │ │ -0001aca0: 646c 2063 6c61 7373 3d22 6e6f 7465 7322 dl class="notes" │ │ │ -0001acb0: 3e0a 3c64 743e 5061 7261 6d65 7465 7273 >.
      Parameters │ │ │ -0001acc0: 3a3c 2f64 743e 0a3c 6464 3e3c 636f 6465 :
      .
      _src - S │ │ │ -0001ace0: 6f75 7263 6520 696d 6167 652e 204d 7573 ource image. Mus │ │ │ -0001acf0: 7420 6265 2052 4742 2043 565f 3855 4333 t be RGB CV_8UC3 │ │ │ -0001ad00: 2e3c 2f64 643e 0a3c 6464 3e3c 636f 6465 .
      .
      _channels - Output vecto │ │ │ -0001ad30: 7226 6c74 3b4d 6174 2667 743b 2077 6865 r<Mat> whe │ │ │ -0001ad40: 7265 2063 6f6d 7075 7465 6420 6368 616e re computed chan │ │ │ -0001ad50: 6e65 6c73 2061 7265 2073 746f 7265 642e nels are stored. │ │ │ -0001ad60: 0a0a 203c 623e 4552 4649 4c54 4552 5f4e .. ERFILTER_N │ │ │ -0001ad70: 4d5f 5247 424c 4772 6164 3c2f 623e 2028 M_RGBLGrad ( │ │ │ -0001ad80: 7573 6564 2062 7920 6465 6661 756c 7429 used by default) │ │ │ -0001ad90: 2061 6e64 203c 623e 4552 4649 4c54 4552 and ERFILTER │ │ │ -0001ada0: 5f4e 4d5f 4948 5347 7261 643c 2f62 3e2e _NM_IHSGrad. │ │ │ -0001adb0: 0a0a 2049 6e20 4e26 616d 703b 4d20 616c .. In N&M al │ │ │ -0001adc0: 676f 7269 7468 6d2c 2074 6865 2063 6f6d gorithm, the com │ │ │ -0001add0: 6269 6e61 7469 6f6e 206f 6620 696e 7465 bination of inte │ │ │ -0001ade0: 6e73 6974 7920 2849 292c 2068 7565 2028 nsity (I), hue ( │ │ │ -0001adf0: 4829 2c20 7361 7475 7261 7469 6f6e 2028 H), saturation ( │ │ │ -0001ae00: 5329 2c20 616e 6420 6772 6164 6965 6e74 S), and gradient │ │ │ -0001ae10: 206d 6167 6e69 7475 6465 0a20 6368 616e magnitude. chan │ │ │ -0001ae20: 6e65 6c73 2028 4772 6164 2920 6172 6520 nels (Grad) are │ │ │ -0001ae30: 7573 6564 2069 6e20 6f72 6465 7220 746f used in order to │ │ │ -0001ae40: 206f 6274 6169 6e20 6869 6768 206c 6f63 obtain high loc │ │ │ -0001ae50: 616c 697a 6174 696f 6e20 7265 6361 6c6c alization recall │ │ │ -0001ae60: 2e20 5468 6973 2069 6d70 6c65 6d65 6e74 . This implement │ │ │ -0001ae70: 6174 696f 6e20 616c 736f 0a20 7072 6f76 ation also. prov │ │ │ -0001ae80: 6964 6573 2061 6e20 616c 7465 726e 6174 ides an alternat │ │ │ -0001ae90: 6976 6520 636f 6d62 696e 6174 696f 6e20 ive combination │ │ │ -0001aea0: 6f66 2072 6564 2028 5229 2c20 6772 6565 of red (R), gree │ │ │ -0001aeb0: 6e20 2847 292c 2062 6c75 6520 2842 292c n (G), blue (B), │ │ │ -0001aec0: 206c 6967 6874 6e65 7373 2028 4c29 2c20 lightness (L), │ │ │ -0001aed0: 616e 6420 6772 6164 6965 6e74 0a20 6d61 and gradient. ma │ │ │ -0001aee0: 676e 6974 7564 6520 2847 7261 6429 2e3c gnitude (Grad).< │ │ │ -0001aef0: 2f64 643e 0a3c 2f64 6c3e 0a3c 2f73 6563 /dd>...
    • .
    • │ │ │ -0001af10: 0a3c 7365 6374 696f 6e20 636c 6173 733d .
      .

      erGro │ │ │ -0001afb0: 7570 696e 673c 2f68 333e 0a3c 6469 7620 uping

      .
      public static void │ │ │ -0001b030: 266e 6273 703b 3c73 7061 6e20 636c 6173  erGrouping │ │ │ -0001b080: 283c 6120 6872 6566 3d22 2e2e 2f63 6f72 (Mat │ │ │ -0001b0c0: 3c2f 613e 266e 6273 703b 696d 6167 652c  image, │ │ │ -0001b0d0: 0a20 3c61 2068 7265 663d 222e 2e2f 636f . Ma │ │ │ -0001b110: 743c 2f61 3e26 6e62 7370 3b63 6861 6e6e t chann │ │ │ -0001b120: 656c 2c0a 203c 6120 6872 6566 3d22 6874 el,. List&l │ │ │ -0001b1d0: 743b 3c61 2068 7265 663d 222e 2e2f 636f t;MatOfPoint< │ │ │ -0001b220: 2f61 3e26 6774 3b26 6e62 7370 3b72 6567 /a>> reg │ │ │ -0001b230: 696f 6e73 2c0a 203c 6120 6872 6566 3d22 ions,. MatOfRe │ │ │ -0001b280: 6374 3c2f 613e 266e 6273 703b 6772 6f75 ct grou │ │ │ -0001b290: 7073 5f72 6563 7473 2c0a 2069 6e74 266e ps_rects,. int&n │ │ │ -0001b2a0: 6273 703b 6d65 7468 6f64 2c0a 203c 6120 bsp;method,. │ │ │ -0001b350: 5374 7269 6e67 3c2f 613e 266e 6273 703b String  │ │ │ -0001b360: 6669 6c65 6e61 6d65 2c0a 2066 6c6f 6174 filename,. float │ │ │ -0001b370: 266e 6273 703b 6d69 6e50 726f 6261 626c  minProbabl │ │ │ -0001b380: 6974 7929 3c2f 7370 616e 3e3c 2f64 6976 ity)
      .
      Find groups │ │ │ -0001b3b0: 206f 6620 4578 7472 656d 616c 2052 6567 of Extremal Reg │ │ │ -0001b3c0: 696f 6e73 2074 6861 7420 6172 6520 6f72 ions that are or │ │ │ -0001b3d0: 6761 6e69 7a65 6420 6173 2074 6578 7420 ganized as text │ │ │ -0001b3e0: 626c 6f63 6b73 2e3c 2f64 6976 3e0a 3c64 blocks.
      . │ │ │ -0001b400: 0a3c 6474 3e50 6172 616d 6574 6572 733a .
      Parameters: │ │ │ -0001b410: 3c2f 6474 3e0a 3c64 643e 3c63 6f64 653e
      .
      │ │ │ -0001b420: 696d 6167 653c 2f63 6f64 653e 202d 2061 image - a │ │ │ -0001b430: 7574 6f6d 6174 6963 616c 6c79 2067 656e utomatically gen │ │ │ -0001b440: 6572 6174 6564 3c2f 6464 3e0a 3c64 643e erated
      .
      │ │ │ -0001b450: 3c63 6f64 653e 6368 616e 6e65 6c3c 2f63 channel - automatic │ │ │ -0001b470: 616c 6c79 2067 656e 6572 6174 6564 3c2f ally generated.
      re │ │ │ -0001b490: 6769 6f6e 733c 2f63 6f64 653e 202d 2056 gions - V │ │ │ -0001b4a0: 6563 746f 7220 6f66 2045 5227 7320 7265 ector of ER's re │ │ │ -0001b4b0: 7472 6965 7665 6420 6672 6f6d 2074 6865 trieved from the │ │ │ -0001b4c0: 2045 5246 696c 7465 7220 616c 676f 7269 ERFilter algori │ │ │ -0001b4d0: 7468 6d20 6672 6f6d 2065 6163 6820 6368 thm from each ch │ │ │ -0001b4e0: 616e 6e65 6c2e 0a0a 2070 726f 7669 6465 annel... provide │ │ │ -0001b4f0: 6420 7265 6769 6f6e 732e 3c2f 6464 3e0a d regions.
      . │ │ │ -0001b500: 3c64 643e 3c63 6f64 653e 6772 6f75 7073
      groups │ │ │ -0001b510: 5f72 6563 7473 3c2f 636f 6465 3e20 2d20 _rects - │ │ │ -0001b520: 5468 6520 6f75 7470 7574 206f 6620 7468 The output of th │ │ │ -0001b530: 6520 616c 676f 7269 7468 6d20 6172 6520 e algorithm are │ │ │ -0001b540: 7374 6f72 6564 2069 6e20 7468 6973 2070 stored in this p │ │ │ -0001b550: 6172 616d 6574 6572 2061 7320 6c69 7374 arameter as list │ │ │ -0001b560: 206f 6620 7265 6374 616e 676c 6573 2e3c of rectangles.< │ │ │ -0001b570: 2f64 643e 0a3c 6464 3e3c 636f 6465 3e6d /dd>.
      m │ │ │ -0001b580: 6574 686f 643c 2f63 6f64 653e 202d 2047 ethod - G │ │ │ -0001b590: 726f 7570 696e 6720 6d65 7468 6f64 2028 rouping method ( │ │ │ -0001b5a0: 7365 6520 7465 7874 3a3a 6572 4772 6f75 see text::erGrou │ │ │ -0001b5b0: 7069 6e67 5f4d 6f64 6573 292e 2043 616e ping_Modes). Can │ │ │ -0001b5c0: 2062 6520 6f6e 6520 6f66 2045 5247 524f be one of ERGRO │ │ │ -0001b5d0: 5550 494e 475f 4f52 4945 4e54 4154 494f UPING_ORIENTATIO │ │ │ -0001b5e0: 4e5f 484f 5249 5a2c 0a20 4552 4752 4f55 N_HORIZ,. ERGROU │ │ │ -0001b5f0: 5049 4e47 5f4f 5249 454e 5441 5449 4f4e PING_ORIENTATION │ │ │ -0001b600: 5f41 4e59 2e3c 2f64 643e 0a3c 6464 3e3c _ANY.
      .
      < │ │ │ -0001b610: 636f 6465 3e66 696c 656e 616d 653c 2f63 code>filename - The XML o │ │ │ -0001b630: 7220 5941 4d4c 2066 696c 6520 7769 7468 r YAML file with │ │ │ -0001b640: 2074 6865 2063 6c61 7373 6966 6965 7220 the classifier │ │ │ -0001b650: 6d6f 6465 6c20 2865 2e67 2e0a 2073 616d model (e.g.. sam │ │ │ -0001b660: 706c 6573 2f74 7261 696e 6564 5f63 6c61 ples/trained_cla │ │ │ -0001b670: 7373 6966 6965 725f 6572 4772 6f75 7069 ssifier_erGroupi │ │ │ -0001b680: 6e67 2e78 6d6c 292e 204f 6e6c 7920 746f ng.xml). Only to │ │ │ -0001b690: 2075 7365 2077 6865 6e20 6772 6f75 7069 use when groupi │ │ │ -0001b6a0: 6e67 206d 6574 686f 6420 6973 0a20 4552 ng method is. ER │ │ │ -0001b6b0: 4752 4f55 5049 4e47 5f4f 5249 454e 5441 GROUPING_ORIENTA │ │ │ -0001b6c0: 5449 4f4e 5f41 4e59 2e3c 2f64 643e 0a3c TION_ANY.
      .< │ │ │ -0001b6d0: 6464 3e3c 636f 6465 3e6d 696e 5072 6f62 dd>minProb │ │ │ -0001b6e0: 6162 6c69 7479 3c2f 636f 6465 3e20 2d20 ablity - │ │ │ -0001b6f0: 5468 6520 6d69 6e69 6d75 6d20 7072 6f62 The minimum prob │ │ │ -0001b700: 6162 696c 6974 7920 666f 7220 6163 6365 ability for acce │ │ │ -0001b710: 7074 696e 6720 6120 6772 6f75 702e 204f pting a group. O │ │ │ -0001b720: 6e6c 7920 746f 2075 7365 2077 6865 6e20 nly to use when │ │ │ -0001b730: 6772 6f75 7069 6e67 0a20 6d65 7468 6f64 grouping. method │ │ │ -0001b740: 2069 7320 4552 4752 4f55 5049 4e47 5f4f is ERGROUPING_O │ │ │ -0001b750: 5249 454e 5441 5449 4f4e 5f41 4e59 2e3c RIENTATION_ANY.< │ │ │ -0001b760: 2f64 643e 0a3c 2f64 6c3e 0a3c 2f73 6563 /dd>...
    • .
    • │ │ │ -0001b780: 0a3c 7365 6374 696f 6e20 636c 6173 733d .
      │ │ │ -0001b810: 0a3c 6833 3e65 7247 726f 7570 696e 673c .

      erGrouping< │ │ │ -0001b820: 2f68 333e 0a3c 6469 7620 636c 6173 733d /h3>.
      publi │ │ │ -0001b860: 6320 7374 6174 6963 3c2f 7370 616e 3e26 c static& │ │ │ -0001b870: 6e62 7370 3b3c 7370 616e 2063 6c61 7373 nbsp;v │ │ │ -0001b890: 6f69 643c 2f73 7061 6e3e 266e 6273 703b oid  │ │ │ -0001b8a0: 3c73 7061 6e20 636c 6173 733d 2265 6c65 erGro │ │ │ -0001b8c0: 7570 696e 673c 2f73 7061 6e3e 3c77 6272 uping(Mat&n │ │ │ -0001b930: 6273 703b 696d 6167 652c 0a20 3c61 2068 bsp;image,. Mat& │ │ │ -0001b980: 6e62 7370 3b63 6861 6e6e 656c 2c0a 203c nbsp;channel,. < │ │ │ -0001b990: 6120 6872 6566 3d22 6874 7470 733a 2f2f a href="https:// │ │ │ -0001b9a0: 646f 776e 6c6f 6164 2e6a 6176 612e 6e65 download.java.ne │ │ │ -0001b9b0: 742f 6a61 7661 2f65 6172 6c79 5f61 6363 t/java/early_acc │ │ │ -0001b9c0: 6573 732f 6a64 6b32 312f 646f 6373 2f61 ess/jdk21/docs/a │ │ │ -0001b9d0: 7069 2f6a 6176 612e 6261 7365 2f6a 6176 pi/java.base/jav │ │ │ -0001b9e0: 612f 7574 696c 2f4c 6973 742e 6874 6d6c a/util/List.html │ │ │ -0001b9f0: 2220 7469 746c 653d 2263 6c61 7373 206f " title="class o │ │ │ -0001ba00: 7220 696e 7465 7266 6163 6520 696e 206a r interface in j │ │ │ -0001ba10: 6176 612e 7574 696c 2220 636c 6173 733d ava.util" class= │ │ │ -0001ba20: 2265 7874 6572 6e61 6c2d 6c69 6e6b 223e "external-link"> │ │ │ -0001ba30: 4c69 7374 3c2f 613e 266c 743b 3c61 2068 List<M │ │ │ -0001ba80: 6174 4f66 506f 696e 743c 2f61 3e26 6774 atOfPoint> │ │ │ -0001ba90: 3b26 6e62 7370 3b72 6567 696f 6e73 2c0a ; regions,. │ │ │ -0001baa0: 203c 6120 6872 6566 3d22 2e2e 2f63 6f72 MatOfRect │ │ │ -0001baf0: 266e 6273 703b 6772 6f75 7073 5f72 6563  groups_rec │ │ │ -0001bb00: 7473 2c0a 2069 6e74 266e 6273 703b 6d65 ts,. int me │ │ │ -0001bb10: 7468 6f64 2c0a 203c 6120 6872 6566 3d22 thod,. String │ │ │ -0001bbc0: 3c2f 613e 266e 6273 703b 6669 6c65 6e61  filena │ │ │ -0001bbd0: 6d65 293c 2f73 7061 6e3e 3c2f 6469 763e me)
      │ │ │ -0001bbe0: 0a3c 6469 7620 636c 6173 733d 2262 6c6f .
      Find groups │ │ │ -0001bc00: 6f66 2045 7874 7265 6d61 6c20 5265 6769 of Extremal Regi │ │ │ -0001bc10: 6f6e 7320 7468 6174 2061 7265 206f 7267 ons that are org │ │ │ -0001bc20: 616e 697a 6564 2061 7320 7465 7874 2062 anized as text b │ │ │ -0001bc30: 6c6f 636b 732e 3c2f 6469 763e 0a3c 646c locks.
      .
      . │ │ │ -0001bc50: 3c64 743e 5061 7261 6d65 7465 7273 3a3c
      Parameters:< │ │ │ -0001bc60: 2f64 743e 0a3c 6464 3e3c 636f 6465 3e69 /dt>.
      i │ │ │ -0001bc70: 6d61 6765 3c2f 636f 6465 3e20 2d20 6175 mage - au │ │ │ -0001bc80: 746f 6d61 7469 6361 6c6c 7920 6765 6e65 tomatically gene │ │ │ -0001bc90: 7261 7465 643c 2f64 643e 0a3c 6464 3e3c rated
      .
      < │ │ │ -0001bca0: 636f 6465 3e63 6861 6e6e 656c 3c2f 636f code>channel - automatica │ │ │ -0001bcc0: 6c6c 7920 6765 6e65 7261 7465 643c 2f64 lly generated.
      reg │ │ │ -0001bce0: 696f 6e73 3c2f 636f 6465 3e20 2d20 5665 ions - Ve │ │ │ -0001bcf0: 6374 6f72 206f 6620 4552 2773 2072 6574 ctor of ER's ret │ │ │ -0001bd00: 7269 6576 6564 2066 726f 6d20 7468 6520 rieved from the │ │ │ -0001bd10: 4552 4669 6c74 6572 2061 6c67 6f72 6974 ERFilter algorit │ │ │ -0001bd20: 686d 2066 726f 6d20 6561 6368 2063 6861 hm from each cha │ │ │ -0001bd30: 6e6e 656c 2e0a 0a20 7072 6f76 6964 6564 nnel... provided │ │ │ -0001bd40: 2072 6567 696f 6e73 2e3c 2f64 643e 0a3c regions.
      .< │ │ │ -0001bd50: 6464 3e3c 636f 6465 3e67 726f 7570 735f dd>groups_ │ │ │ -0001bd60: 7265 6374 733c 2f63 6f64 653e 202d 2054 rects - T │ │ │ -0001bd70: 6865 206f 7574 7075 7420 6f66 2074 6865 he output of the │ │ │ -0001bd80: 2061 6c67 6f72 6974 686d 2061 7265 2073 algorithm are s │ │ │ -0001bd90: 746f 7265 6420 696e 2074 6869 7320 7061 tored in this pa │ │ │ -0001bda0: 7261 6d65 7465 7220 6173 206c 6973 7420 rameter as list │ │ │ -0001bdb0: 6f66 2072 6563 7461 6e67 6c65 732e 3c2f of rectangles..
      me │ │ │ -0001bdd0: 7468 6f64 3c2f 636f 6465 3e20 2d20 4772 thod - Gr │ │ │ -0001bde0: 6f75 7069 6e67 206d 6574 686f 6420 2873 ouping method (s │ │ │ -0001bdf0: 6565 2074 6578 743a 3a65 7247 726f 7570 ee text::erGroup │ │ │ -0001be00: 696e 675f 4d6f 6465 7329 2e20 4361 6e20 ing_Modes). Can │ │ │ -0001be10: 6265 206f 6e65 206f 6620 4552 4752 4f55 be one of ERGROU │ │ │ -0001be20: 5049 4e47 5f4f 5249 454e 5441 5449 4f4e PING_ORIENTATION │ │ │ -0001be30: 5f48 4f52 495a 2c0a 2045 5247 524f 5550 _HORIZ,. ERGROUP │ │ │ -0001be40: 494e 475f 4f52 4945 4e54 4154 494f 4e5f ING_ORIENTATION_ │ │ │ -0001be50: 414e 592e 3c2f 6464 3e0a 3c64 643e 3c63 ANY.
      .
      filename - The XML or │ │ │ -0001be80: 2059 414d 4c20 6669 6c65 2077 6974 6820 YAML file with │ │ │ -0001be90: 7468 6520 636c 6173 7369 6669 6572 206d the classifier m │ │ │ -0001bea0: 6f64 656c 2028 652e 672e 0a20 7361 6d70 odel (e.g.. samp │ │ │ -0001beb0: 6c65 732f 7472 6169 6e65 645f 636c 6173 les/trained_clas │ │ │ -0001bec0: 7369 6669 6572 5f65 7247 726f 7570 696e sifier_erGroupin │ │ │ -0001bed0: 672e 786d 6c29 2e20 4f6e 6c79 2074 6f20 g.xml). Only to │ │ │ -0001bee0: 7573 6520 7768 656e 2067 726f 7570 696e use when groupin │ │ │ -0001bef0: 6720 6d65 7468 6f64 2069 730a 2045 5247 g method is. ERG │ │ │ -0001bf00: 524f 5550 494e 475f 4f52 4945 4e54 4154 ROUPING_ORIENTAT │ │ │ -0001bf10: 494f 4e5f 414e 592e 0a0a 206d 6574 686f ION_ANY... metho │ │ │ -0001bf20: 6420 6973 2045 5247 524f 5550 494e 475f d is ERGROUPING_ │ │ │ -0001bf30: 4f52 4945 4e54 4154 494f 4e5f 414e 592e ORIENTATION_ANY. │ │ │ -0001bf40: 3c2f 6464 3e0a 3c2f 646c 3e0a 3c2f 7365
      .
      ..

    • .
    • .
      │ │ │ -0001bfe0: 0a3c 6833 3e65 7247 726f 7570 696e 673c .

      erGrouping< │ │ │ -0001bff0: 2f68 333e 0a3c 6469 7620 636c 6173 733d /h3>.
      publi │ │ │ -0001c030: 6320 7374 6174 6963 3c2f 7370 616e 3e26 c static& │ │ │ -0001c040: 6e62 7370 3b3c 7370 616e 2063 6c61 7373 nbsp;v │ │ │ -0001c060: 6f69 643c 2f73 7061 6e3e 266e 6273 703b oid  │ │ │ -0001c070: 3c73 7061 6e20 636c 6173 733d 2265 6c65 erGro │ │ │ -0001c090: 7570 696e 673c 2f73 7061 6e3e 3c77 6272 uping(Mat&n │ │ │ -0001c100: 6273 703b 696d 6167 652c 0a20 3c61 2068 bsp;image,. Mat& │ │ │ -0001c150: 6e62 7370 3b63 6861 6e6e 656c 2c0a 203c nbsp;channel,. < │ │ │ -0001c160: 6120 6872 6566 3d22 6874 7470 733a 2f2f a href="https:// │ │ │ -0001c170: 646f 776e 6c6f 6164 2e6a 6176 612e 6e65 download.java.ne │ │ │ -0001c180: 742f 6a61 7661 2f65 6172 6c79 5f61 6363 t/java/early_acc │ │ │ -0001c190: 6573 732f 6a64 6b32 312f 646f 6373 2f61 ess/jdk21/docs/a │ │ │ -0001c1a0: 7069 2f6a 6176 612e 6261 7365 2f6a 6176 pi/java.base/jav │ │ │ -0001c1b0: 612f 7574 696c 2f4c 6973 742e 6874 6d6c a/util/List.html │ │ │ -0001c1c0: 2220 7469 746c 653d 2263 6c61 7373 206f " title="class o │ │ │ -0001c1d0: 7220 696e 7465 7266 6163 6520 696e 206a r interface in j │ │ │ -0001c1e0: 6176 612e 7574 696c 2220 636c 6173 733d ava.util" class= │ │ │ -0001c1f0: 2265 7874 6572 6e61 6c2d 6c69 6e6b 223e "external-link"> │ │ │ -0001c200: 4c69 7374 3c2f 613e 266c 743b 3c61 2068 List<M │ │ │ -0001c250: 6174 4f66 506f 696e 743c 2f61 3e26 6774 atOfPoint> │ │ │ -0001c260: 3b26 6e62 7370 3b72 6567 696f 6e73 2c0a ; regions,. │ │ │ -0001c270: 203c 6120 6872 6566 3d22 2e2e 2f63 6f72 MatOfRect │ │ │ -0001c2c0: 266e 6273 703b 6772 6f75 7073 5f72 6563  groups_rec │ │ │ -0001c2d0: 7473 2c0a 2069 6e74 266e 6273 703b 6d65 ts,. int me │ │ │ -0001c2e0: 7468 6f64 293c 2f73 7061 6e3e 3c2f 6469 thod).
      Find group │ │ │ -0001c310: 7320 6f66 2045 7874 7265 6d61 6c20 5265 s of Extremal Re │ │ │ -0001c320: 6769 6f6e 7320 7468 6174 2061 7265 206f gions that are o │ │ │ -0001c330: 7267 616e 697a 6564 2061 7320 7465 7874 rganized as text │ │ │ -0001c340: 2062 6c6f 636b 732e 3c2f 6469 763e 0a3c blocks.
      .< │ │ │ -0001c350: 646c 2063 6c61 7373 3d22 6e6f 7465 7322 dl class="notes" │ │ │ -0001c360: 3e0a 3c64 743e 5061 7261 6d65 7465 7273 >.
      Parameters │ │ │ -0001c370: 3a3c 2f64 743e 0a3c 6464 3e3c 636f 6465 :
      .
      image - │ │ │ -0001c390: 6175 746f 6d61 7469 6361 6c6c 7920 6765 automatically ge │ │ │ -0001c3a0: 6e65 7261 7465 643c 2f64 643e 0a3c 6464 nerated
      .
      channel - automati │ │ │ -0001c3d0: 6361 6c6c 7920 6765 6e65 7261 7465 643c cally generated< │ │ │ -0001c3e0: 2f64 643e 0a3c 6464 3e3c 636f 6465 3e72 /dd>.
      r │ │ │ -0001c3f0: 6567 696f 6e73 3c2f 636f 6465 3e20 2d20 egions - │ │ │ -0001c400: 5665 6374 6f72 206f 6620 4552 2773 2072 Vector of ER's r │ │ │ -0001c410: 6574 7269 6576 6564 2066 726f 6d20 7468 etrieved from th │ │ │ -0001c420: 6520 4552 4669 6c74 6572 2061 6c67 6f72 e ERFilter algor │ │ │ -0001c430: 6974 686d 2066 726f 6d20 6561 6368 2063 ithm from each c │ │ │ -0001c440: 6861 6e6e 656c 2e0a 0a20 7072 6f76 6964 hannel... provid │ │ │ -0001c450: 6564 2072 6567 696f 6e73 2e3c 2f64 643e ed regions.
      │ │ │ -0001c460: 0a3c 6464 3e3c 636f 6465 3e67 726f 7570 .
      group │ │ │ -0001c470: 735f 7265 6374 733c 2f63 6f64 653e 202d s_rects - │ │ │ -0001c480: 2054 6865 206f 7574 7075 7420 6f66 2074 The output of t │ │ │ -0001c490: 6865 2061 6c67 6f72 6974 686d 2061 7265 he algorithm are │ │ │ -0001c4a0: 2073 746f 7265 6420 696e 2074 6869 7320 stored in this │ │ │ -0001c4b0: 7061 7261 6d65 7465 7220 6173 206c 6973 parameter as lis │ │ │ -0001c4c0: 7420 6f66 2072 6563 7461 6e67 6c65 732e t of rectangles. │ │ │ -0001c4d0: 3c2f 6464 3e0a 3c64 643e 3c63 6f64 653e
      .
      │ │ │ -0001c4e0: 6d65 7468 6f64 3c2f 636f 6465 3e20 2d20 method - │ │ │ -0001c4f0: 4772 6f75 7069 6e67 206d 6574 686f 6420 Grouping method │ │ │ -0001c500: 2873 6565 2074 6578 743a 3a65 7247 726f (see text::erGro │ │ │ -0001c510: 7570 696e 675f 4d6f 6465 7329 2e20 4361 uping_Modes). Ca │ │ │ -0001c520: 6e20 6265 206f 6e65 206f 6620 4552 4752 n be one of ERGR │ │ │ -0001c530: 4f55 5049 4e47 5f4f 5249 454e 5441 5449 OUPING_ORIENTATI │ │ │ -0001c540: 4f4e 5f48 4f52 495a 2c0a 2045 5247 524f ON_HORIZ,. ERGRO │ │ │ -0001c550: 5550 494e 475f 4f52 4945 4e54 4154 494f UPING_ORIENTATIO │ │ │ -0001c560: 4e5f 414e 592e 0a0a 2073 616d 706c 6573 N_ANY... samples │ │ │ -0001c570: 2f74 7261 696e 6564 5f63 6c61 7373 6966 /trained_classif │ │ │ -0001c580: 6965 725f 6572 4772 6f75 7069 6e67 2e78 ier_erGrouping.x │ │ │ -0001c590: 6d6c 292e 204f 6e6c 7920 746f 2075 7365 ml). Only to use │ │ │ -0001c5a0: 2077 6865 6e20 6772 6f75 7069 6e67 206d when grouping m │ │ │ -0001c5b0: 6574 686f 6420 6973 0a20 4552 4752 4f55 ethod is. ERGROU │ │ │ -0001c5c0: 5049 4e47 5f4f 5249 454e 5441 5449 4f4e PING_ORIENTATION │ │ │ -0001c5d0: 5f41 4e59 2e0a 0a20 6d65 7468 6f64 2069 _ANY... method i │ │ │ -0001c5e0: 7320 4552 4752 4f55 5049 4e47 5f4f 5249 s ERGROUPING_ORI │ │ │ -0001c5f0: 454e 5441 5449 4f4e 5f41 4e59 2e3c 2f64 ENTATION_ANY....

    • .
    • .< │ │ │ -0001c620: 7365 6374 696f 6e20 636c 6173 733d 2264 section class="d │ │ │ -0001c630: 6574 6169 6c22 2069 643d 2265 7247 726f etail" id="erGro │ │ │ -0001c640: 7570 696e 6728 6f72 672e 6f70 656e 6376 uping(org.opencv │ │ │ -0001c650: 2e63 6f72 652e 4d61 742c 6f72 672e 6f70 .core.Mat,org.op │ │ │ -0001c660: 656e 6376 2e63 6f72 652e 4d61 742c 6a61 encv.core.Mat,ja │ │ │ -0001c670: 7661 2e75 7469 6c2e 4c69 7374 2c6f 7267 va.util.List,org │ │ │ -0001c680: 2e6f 7065 6e63 762e 636f 7265 2e4d 6174 .opencv.core.Mat │ │ │ -0001c690: 4f66 5265 6374 2922 3e0a 3c68 333e 6572 OfRect)">.

      er │ │ │ -0001c6a0: 4772 6f75 7069 6e67 3c2f 6833 3e0a 3c64 Grouping

      .public stati │ │ │ -0001c6f0: 633c 2f73 7061 6e3e 266e 6273 703b 3c73 c void erGrouping( │ │ │ -0001c7b0: 4d61 743c 2f61 3e26 6e62 7370 3b69 6d61 Mat ima │ │ │ -0001c7c0: 6765 2c0a 203c 6120 6872 6566 3d22 2e2e ge,. Mat ch │ │ │ -0001c810: 616e 6e65 6c2c 0a20 3c61 2068 7265 663d annel,. List<MatOfPoi │ │ │ -0001c910: 6e74 3c2f 613e 2667 743b 266e 6273 703b nt>  │ │ │ -0001c920: 7265 6769 6f6e 732c 0a20 3c61 2068 7265 regions,. MatO │ │ │ -0001c970: 6652 6563 743c 2f61 3e26 6e62 7370 3b67 fRect g │ │ │ -0001c980: 726f 7570 735f 7265 6374 7329 3c2f 7370 roups_rects).
      Fin │ │ │ -0001c9b0: 6420 6772 6f75 7073 206f 6620 4578 7472 d groups of Extr │ │ │ -0001c9c0: 656d 616c 2052 6567 696f 6e73 2074 6861 emal Regions tha │ │ │ -0001c9d0: 7420 6172 6520 6f72 6761 6e69 7a65 6420 t are organized │ │ │ -0001c9e0: 6173 2074 6578 7420 626c 6f63 6b73 2e3c as text blocks.< │ │ │ -0001c9f0: 2f64 6976 3e0a 3c64 6c20 636c 6173 733d /div>.
      .
      Par │ │ │ -0001ca10: 616d 6574 6572 733a 3c2f 6474 3e0a 3c64 ameters:
      .image - automatic │ │ │ -0001ca40: 616c 6c79 2067 656e 6572 6174 6564 3c2f ally generated.
      ch │ │ │ -0001ca60: 616e 6e65 6c3c 2f63 6f64 653e 202d 2061 annel - a │ │ │ -0001ca70: 7574 6f6d 6174 6963 616c 6c79 2067 656e utomatically gen │ │ │ -0001ca80: 6572 6174 6564 3c2f 6464 3e0a 3c64 643e erated
      .
      │ │ │ -0001ca90: 3c63 6f64 653e 7265 6769 6f6e 733c 2f63 regions - Vector of │ │ │ -0001cab0: 2045 5227 7320 7265 7472 6965 7665 6420 ER's retrieved │ │ │ -0001cac0: 6672 6f6d 2074 6865 2045 5246 696c 7465 from the ERFilte │ │ │ -0001cad0: 7220 616c 676f 7269 7468 6d20 6672 6f6d r algorithm from │ │ │ -0001cae0: 2065 6163 6820 6368 616e 6e65 6c2e 0a0a each channel... │ │ │ -0001caf0: 2070 726f 7669 6465 6420 7265 6769 6f6e provided region │ │ │ -0001cb00: 732e 3c2f 6464 3e0a 3c64 643e 3c63 6f64 s.
      .
      groups_rects - The outp │ │ │ -0001cb30: 7574 206f 6620 7468 6520 616c 676f 7269 ut of the algori │ │ │ -0001cb40: 7468 6d20 6172 6520 7374 6f72 6564 2069 thm are stored i │ │ │ -0001cb50: 6e20 7468 6973 2070 6172 616d 6574 6572 n this parameter │ │ │ -0001cb60: 2061 7320 6c69 7374 206f 6620 7265 6374 as list of rect │ │ │ -0001cb70: 616e 676c 6573 2e0a 0a20 4552 4752 4f55 angles... ERGROU │ │ │ -0001cb80: 5049 4e47 5f4f 5249 454e 5441 5449 4f4e PING_ORIENTATION │ │ │ -0001cb90: 5f41 4e59 2e0a 0a20 7361 6d70 6c65 732f _ANY... samples/ │ │ │ -0001cba0: 7472 6169 6e65 645f 636c 6173 7369 6669 trained_classifi │ │ │ -0001cbb0: 6572 5f65 7247 726f 7570 696e 672e 786d er_erGrouping.xm │ │ │ -0001cbc0: 6c29 2e20 4f6e 6c79 2074 6f20 7573 6520 l). Only to use │ │ │ -0001cbd0: 7768 656e 2067 726f 7570 696e 6720 6d65 when grouping me │ │ │ -0001cbe0: 7468 6f64 2069 730a 2045 5247 524f 5550 thod is. ERGROUP │ │ │ -0001cbf0: 494e 475f 4f52 4945 4e54 4154 494f 4e5f ING_ORIENTATION_ │ │ │ -0001cc00: 414e 592e 0a0a 206d 6574 686f 6420 6973 ANY... method is │ │ │ -0001cc10: 2045 5247 524f 5550 494e 475f 4f52 4945 ERGROUPING_ORIE │ │ │ -0001cc20: 4e54 4154 494f 4e5f 414e 592e 3c2f 6464 NTATION_ANY.
      .
      ..
    • .
    • .. │ │ │ -0001ccd0: 3c68 333e 6465 7465 6374 5265 6769 6f6e

      detectRegion │ │ │ -0001cce0: 733c 2f68 333e 0a3c 6469 7620 636c 6173 s

      .
      pub │ │ │ -0001cd20: 6c69 6320 7374 6174 6963 3c2f 7370 616e lic static void&nbs │ │ │ -0001cd60: 703b 3c73 7061 6e20 636c 6173 733d 2265 p;det │ │ │ -0001cd80: 6563 7452 6567 696f 6e73 3c2f 7370 616e ectRegions( │ │ │ -0001cdb0: 3c61 2068 7265 663d 222e 2e2f 636f 7265 Mat< │ │ │ -0001cdf0: 2f61 3e26 6e62 7370 3b69 6d61 6765 2c0a /a> image,. │ │ │ -0001ce00: 203c 6120 6872 6566 3d22 4552 4669 6c74 ERFilt │ │ │ -0001ce40: 6572 3c2f 613e 266e 6273 703b 6572 5f66 er er_f │ │ │ -0001ce50: 696c 7465 7231 2c0a 203c 6120 6872 6566 ilter1,. ERFilter&n │ │ │ -0001cea0: 6273 703b 6572 5f66 696c 7465 7232 2c0a bsp;er_filter2,. │ │ │ -0001ceb0: 203c 6120 6872 6566 3d22 6874 7470 733a List<MatOfPoint& │ │ │ -0001cfb0: 6774 3b26 6e62 7370 3b72 6567 696f 6e73 gt; regions │ │ │ -0001cfc0: 293c 2f73 7061 6e3e 3c2f 6469 763e 0a3c )
      .< │ │ │ -0001cfd0: 6469 7620 636c 6173 733d 2262 6c6f 636b div class="block │ │ │ -0001cfe0: 223e 436f 6e76 6572 7473 204d 5345 5220 ">Converts MSER │ │ │ -0001cff0: 636f 6e74 6f75 7273 2028 7665 6374 6f72 contours (vector │ │ │ -0001d000: 266c 743b 506f 696e 7426 6774 3b29 2074 <Point>) t │ │ │ -0001d010: 6f20 4552 5374 6174 2072 6567 696f 6e73 o ERStat regions │ │ │ -0001d020: 2e3c 2f64 6976 3e0a 3c64 6c20 636c 6173 ..
      .
      P │ │ │ -0001d040: 6172 616d 6574 6572 733a 3c2f 6474 3e0a arameters:
      . │ │ │ -0001d050: 3c64 643e 3c63 6f64 653e 696d 6167 653c
      image< │ │ │ -0001d060: 2f63 6f64 653e 202d 2053 6f75 7263 6520 /code> - Source │ │ │ -0001d070: 696d 6167 6520 4356 5f38 5543 3120 6672 image CV_8UC1 fr │ │ │ -0001d080: 6f6d 2077 6869 6368 2074 6865 204d 5345 om which the MSE │ │ │ -0001d090: 5273 2077 6865 7265 2065 7874 7261 6374 Rs where extract │ │ │ -0001d0a0: 6564 2e3c 2f64 643e 0a3c 6464 3e3c 636f ed.
      .
      er_filter1 - automatic │ │ │ -0001d0d0: 616c 6c79 2067 656e 6572 6174 6564 3c2f ally generated.
      er │ │ │ -0001d0f0: 5f66 696c 7465 7232 3c2f 636f 6465 3e20 _filter2 │ │ │ -0001d100: 2d20 6175 746f 6d61 7469 6361 6c6c 7920 - automatically │ │ │ -0001d110: 6765 6e65 7261 7465 643c 2f64 643e 0a3c generated
      .< │ │ │ -0001d120: 6464 3e3c 636f 6465 3e72 6567 696f 6e73 dd>regions │ │ │ -0001d130: 3c2f 636f 6465 3e20 2d20 4f75 7470 7574 - Output │ │ │ -0001d140: 2077 6865 7265 2074 6865 2045 5253 7461 where the ERSta │ │ │ -0001d150: 7420 7265 6769 6f6e 7320 6172 6520 7374 t regions are st │ │ │ -0001d160: 6f72 6564 2e0a 0a20 4974 2074 616b 6573 ored... It takes │ │ │ -0001d170: 2061 7320 696e 7075 7420 7468 6520 636f as input the co │ │ │ -0001d180: 6e74 6f75 7273 2070 726f 7669 6465 6420 ntours provided │ │ │ -0001d190: 6279 2074 6865 204f 7065 6e43 5620 4d53 by the OpenCV MS │ │ │ -0001d1a0: 4552 2066 6561 7475 7265 2064 6574 6563 ER feature detec │ │ │ -0001d1b0: 746f 7220 616e 6420 7265 7475 726e 7320 tor and returns │ │ │ -0001d1c0: 6173 206f 7574 7075 740a 2074 776f 2076 as output. two v │ │ │ -0001d1d0: 6563 746f 7273 206f 6620 4552 5374 6174 ectors of ERStat │ │ │ -0001d1e0: 732e 2054 6869 7320 6973 2062 6563 6175 s. This is becau │ │ │ -0001d1f0: 7365 204d 5345 5228 2920 6f75 7470 7574 se MSER() output │ │ │ -0001d200: 2063 6f6e 7461 696e 7320 626f 7468 204d contains both M │ │ │ -0001d210: 5345 522b 2061 6e64 204d 5345 522d 2072 SER+ and MSER- r │ │ │ -0001d220: 6567 696f 6e73 2069 6e20 610a 2073 696e egions in a. sin │ │ │ -0001d230: 676c 6520 7665 6374 6f72 266c 743b 506f gle vector<Po │ │ │ -0001d240: 696e 7426 6774 3b2c 2074 6865 2066 756e int>, the fun │ │ │ -0001d250: 6374 696f 6e20 7365 7061 7261 7465 7320 ction separates │ │ │ -0001d260: 7468 656d 2069 6e20 7477 6f20 6469 6666 them in two diff │ │ │ -0001d270: 6572 656e 7420 7665 6374 6f72 7320 2874 erent vectors (t │ │ │ -0001d280: 6869 7320 6973 2061 7320 6966 2074 6865 his is as if the │ │ │ -0001d290: 0a20 4552 5374 6174 7320 7768 6572 6520 . ERStats where │ │ │ -0001d2a0: 6578 7472 6163 7465 6420 6672 6f6d 2074 extracted from t │ │ │ -0001d2b0: 776f 2064 6966 6665 7265 6e74 2063 6861 wo different cha │ │ │ -0001d2c0: 6e6e 656c 7329 2e0a 0a20 416e 2065 7861 nnels)... An exa │ │ │ -0001d2d0: 6d70 6c65 206f 6620 4d53 4552 7354 6f45 mple of MSERsToE │ │ │ -0001d2e0: 5253 7461 7473 2069 6e20 7573 6520 6361 RStats in use ca │ │ │ -0001d2f0: 6e20 6265 2066 6f75 6e64 2069 6e20 7468 n be found in th │ │ │ -0001d300: 6520 7465 7874 2064 6574 6563 7469 6f6e e text detection │ │ │ -0001d310: 2077 6562 6361 6d5f 6465 6d6f 3a0a 2026 webcam_demo:. & │ │ │ -0001d320: 6c74 3b68 7474 7073 3a2f 2f67 6974 6875 lt;https://githu │ │ │ -0001d330: 622e 636f 6d2f 6f70 656e 6376 2f6f 7065 b.com/opencv/ope │ │ │ -0001d340: 6e63 765f 636f 6e74 7269 622f 626c 6f62 ncv_contrib/blob │ │ │ -0001d350: 2f6d 6173 7465 722f 6d6f 6475 6c65 732f /master/modules/ │ │ │ -0001d360: 7465 7874 2f73 616d 706c 6573 2f77 6562 text/samples/web │ │ │ -0001d370: 6361 6d5f 6465 6d6f 2e63 7070 2667 743b cam_demo.cpp> │ │ │ -0001d380: 3c2f 6464 3e0a 3c2f 646c 3e0a 3c2f 7365 .
      ..
    • .
    • .
      .

      de │ │ │ -0001d450: 7465 6374 5265 6769 6f6e 733c 2f68 333e tectRegions

      │ │ │ -0001d460: 0a3c 6469 7620 636c 6173 733d 226d 656d .
      < │ │ │ -0001d480: 7370 616e 2063 6c61 7373 3d22 6d6f 6469 span class="modi │ │ │ -0001d490: 6669 6572 7322 3e70 7562 6c69 6320 7374 fiers">public st │ │ │ -0001d4a0: 6174 6963 3c2f 7370 616e 3e26 6e62 7370 atic  │ │ │ -0001d4b0: 3b3c 7370 616e 2063 6c61 7373 3d22 7265 ;void< │ │ │ -0001d4d0: 2f73 7061 6e3e 266e 6273 703b 3c73 7061 /span> detectReg │ │ │ -0001d500: 696f 6e73 3c2f 7370 616e 3e3c 7762 723e ions │ │ │ -0001d510: 3c73 7061 6e20 636c 6173 733d 2270 6172 (Mat&nb │ │ │ -0001d570: 7370 3b69 6d61 6765 2c0a 203c 6120 6872 sp;image,. ERFilter │ │ │ -0001d5c0: 266e 6273 703b 6572 5f66 696c 7465 7231  er_filter1 │ │ │ -0001d5d0: 2c0a 203c 6120 6872 6566 3d22 4552 4669 ,. ERFi │ │ │ -0001d610: 6c74 6572 3c2f 613e 266e 6273 703b 6572 lter er │ │ │ -0001d620: 5f66 696c 7465 7232 2c0a 203c 6120 6872 _filter2,. Mat │ │ │ -0001d670: 4f66 5265 6374 3c2f 613e 266e 6273 703b OfRect  │ │ │ -0001d680: 6772 6f75 7073 5f72 6563 7473 2c0a 2069 groups_rects,. i │ │ │ -0001d690: 6e74 266e 6273 703b 6d65 7468 6f64 2c0a nt method,. │ │ │ -0001d6a0: 203c 6120 6872 6566 3d22 6874 7470 733a String&n │ │ │ -0001d750: 6273 703b 6669 6c65 6e61 6d65 2c0a 2066 bsp;filename,. f │ │ │ -0001d760: 6c6f 6174 266e 6273 703b 6d69 6e50 726f loat minPro │ │ │ -0001d770: 6261 6269 6c69 7479 293c 2f73 7061 6e3e bability) │ │ │ -0001d780: 3c2f 6469 763e 0a3c 6469 7620 636c 6173
      .
      Extrac │ │ │ -0001d7a0: 7473 2074 6578 7420 7265 6769 6f6e 7320 ts text regions │ │ │ -0001d7b0: 6672 6f6d 2069 6d61 6765 2e3c 2f64 6976 from image.
      .
      .
      Paramet │ │ │ -0001d7e0: 6572 733a 3c2f 6474 3e0a 3c64 643e 3c63 ers:
      .
      image │ │ │ -0001d800: 202d 2053 6f75 7263 6520 696d 6167 6520 - Source image │ │ │ -0001d810: 7768 6572 6520 7465 7874 2062 6c6f 636b where text block │ │ │ -0001d820: 7320 6e65 6564 7320 746f 2062 6520 6578 s needs to be ex │ │ │ -0001d830: 7472 6163 7465 6420 6672 6f6d 2e20 2053 tracted from. S │ │ │ -0001d840: 686f 756c 6420 6265 2043 565f 3855 4333 hould be CV_8UC3 │ │ │ -0001d850: 2028 636f 6c6f 7229 2e3c 2f64 643e 0a3c (color).
      .< │ │ │ -0001d860: 6464 3e3c 636f 6465 3e65 725f 6669 6c74 dd>er_filt │ │ │ -0001d870: 6572 313c 2f63 6f64 653e 202d 2045 7874 er1 - Ext │ │ │ -0001d880: 7265 6d61 6c20 5265 6769 6f6e 2046 696c remal Region Fil │ │ │ -0001d890: 7465 7220 666f 7220 7468 6520 3173 7420 ter for the 1st │ │ │ -0001d8a0: 7374 6167 6520 636c 6173 7369 6669 6572 stage classifier │ │ │ -0001d8b0: 206f 6620 4e26 616d 703b 4d20 616c 676f of N&M algo │ │ │ -0001d8c0: 7269 7468 6d20 4349 5445 3a20 4e65 756d rithm CITE: Neum │ │ │ -0001d8d0: 616e 6e31 323c 2f64 643e 0a3c 6464 3e3c ann12.
      < │ │ │ -0001d8e0: 636f 6465 3e65 725f 6669 6c74 6572 323c code>er_filter2< │ │ │ -0001d8f0: 2f63 6f64 653e 202d 2045 7874 7265 6d61 /code> - Extrema │ │ │ -0001d900: 6c20 5265 6769 6f6e 2046 696c 7465 7220 l Region Filter │ │ │ -0001d910: 666f 7220 7468 6520 326e 6420 7374 6167 for the 2nd stag │ │ │ -0001d920: 6520 636c 6173 7369 6669 6572 206f 6620 e classifier of │ │ │ -0001d930: 4e26 616d 703b 4d20 616c 676f 7269 7468 N&M algorith │ │ │ -0001d940: 6d20 4349 5445 3a20 4e65 756d 616e 6e31 m CITE: Neumann1 │ │ │ -0001d950: 323c 2f64 643e 0a3c 6464 3e3c 636f 6465 2
      .
      groups_rects - Output li │ │ │ -0001d980: 7374 206f 6620 7265 6374 616e 676c 6520 st of rectangle │ │ │ -0001d990: 626c 6f63 6b73 2077 6974 6820 7465 7874 blocks with text │ │ │ -0001d9a0: 3c2f 6464 3e0a 3c64 643e 3c63 6f64 653e
      .
      │ │ │ -0001d9b0: 6d65 7468 6f64 3c2f 636f 6465 3e20 2d20 method - │ │ │ -0001d9c0: 4772 6f75 7069 6e67 206d 6574 686f 6420 Grouping method │ │ │ -0001d9d0: 2873 6565 2074 6578 743a 3a65 7247 726f (see text::erGro │ │ │ -0001d9e0: 7570 696e 675f 4d6f 6465 7329 2e20 4361 uping_Modes). Ca │ │ │ -0001d9f0: 6e20 6265 206f 6e65 206f 6620 4552 4752 n be one of ERGR │ │ │ -0001da00: 4f55 5049 4e47 5f4f 5249 454e 5441 5449 OUPING_ORIENTATI │ │ │ -0001da10: 4f4e 5f48 4f52 495a 2c20 4552 4752 4f55 ON_HORIZ, ERGROU │ │ │ -0001da20: 5049 4e47 5f4f 5249 454e 5441 5449 4f4e PING_ORIENTATION │ │ │ -0001da30: 5f41 4e59 2e3c 2f64 643e 0a3c 6464 3e3c _ANY.
      .
      < │ │ │ -0001da40: 636f 6465 3e66 696c 656e 616d 653c 2f63 code>filename - The XML o │ │ │ -0001da60: 7220 5941 4d4c 2066 696c 6520 7769 7468 r YAML file with │ │ │ -0001da70: 2074 6865 2063 6c61 7373 6966 6965 7220 the classifier │ │ │ -0001da80: 6d6f 6465 6c20 2865 2e67 2e20 7361 6d70 model (e.g. samp │ │ │ -0001da90: 6c65 732f 7472 6169 6e65 645f 636c 6173 les/trained_clas │ │ │ -0001daa0: 7369 6669 6572 5f65 7247 726f 7570 696e sifier_erGroupin │ │ │ -0001dab0: 672e 786d 6c29 2e20 4f6e 6c79 2074 6f20 g.xml). Only to │ │ │ -0001dac0: 7573 6520 7768 656e 2067 726f 7570 696e use when groupin │ │ │ -0001dad0: 6720 6d65 7468 6f64 2069 7320 4552 4752 g method is ERGR │ │ │ -0001dae0: 4f55 5049 4e47 5f4f 5249 454e 5441 5449 OUPING_ORIENTATI │ │ │ -0001daf0: 4f4e 5f41 4e59 2e3c 2f64 643e 0a3c 6464 ON_ANY.
      .
      minProbab │ │ │ -0001db10: 696c 6974 793c 2f63 6f64 653e 202d 2054 ility - T │ │ │ -0001db20: 6865 206d 696e 696d 756d 2070 726f 6261 he minimum proba │ │ │ -0001db30: 6269 6c69 7479 2066 6f72 2061 6363 6570 bility for accep │ │ │ -0001db40: 7469 6e67 2061 2067 726f 7570 2e20 4f6e ting a group. On │ │ │ -0001db50: 6c79 2074 6f20 7573 6520 7768 656e 2067 ly to use when g │ │ │ -0001db60: 726f 7570 696e 6720 6d65 7468 6f64 2069 rouping method i │ │ │ -0001db70: 7320 4552 4752 4f55 5049 4e47 5f4f 5249 s ERGROUPING_ORI │ │ │ -0001db80: 454e 5441 5449 4f4e 5f41 4e59 2e3c 2f64 ENTATION_ANY..
      ..
    • .
    • .< │ │ │ -0001dbb0: 7365 6374 696f 6e20 636c 6173 733d 2264 section class="d │ │ │ -0001dbc0: 6574 6169 6c22 2069 643d 2264 6574 6563 etail" id="detec │ │ │ -0001dbd0: 7452 6567 696f 6e73 286f 7267 2e6f 7065 tRegions(org.ope │ │ │ -0001dbe0: 6e63 762e 636f 7265 2e4d 6174 2c6f 7267 ncv.core.Mat,org │ │ │ -0001dbf0: 2e6f 7065 6e63 762e 7465 7874 2e45 5246 .opencv.text.ERF │ │ │ -0001dc00: 696c 7465 722c 6f72 672e 6f70 656e 6376 ilter,org.opencv │ │ │ -0001dc10: 2e74 6578 742e 4552 4669 6c74 6572 2c6f .text.ERFilter,o │ │ │ -0001dc20: 7267 2e6f 7065 6e63 762e 636f 7265 2e4d rg.opencv.core.M │ │ │ -0001dc30: 6174 4f66 5265 6374 2c69 6e74 2c6a 6176 atOfRect,int,jav │ │ │ -0001dc40: 612e 6c61 6e67 2e53 7472 696e 6729 223e a.lang.String)"> │ │ │ -0001dc50: 0a3c 6833 3e64 6574 6563 7452 6567 696f .

      detectRegio │ │ │ -0001dc60: 6e73 3c2f 6833 3e0a 3c64 6976 2063 6c61 ns

      .
      pu │ │ │ -0001dca0: 626c 6963 2073 7461 7469 633c 2f73 7061 blic static void&nb │ │ │ -0001dce0: 7370 3b3c 7370 616e 2063 6c61 7373 3d22 sp;de │ │ │ -0001dd00: 7465 6374 5265 6769 6f6e 733c 2f73 7061 tectRegions │ │ │ -0001dd30: 283c 6120 6872 6566 3d22 2e2e 2f63 6f72 (Mat │ │ │ -0001dd70: 3c2f 613e 266e 6273 703b 696d 6167 652c  image, │ │ │ -0001dd80: 0a20 3c61 2068 7265 663d 2245 5246 696c . ERFil │ │ │ -0001ddc0: 7465 723c 2f61 3e26 6e62 7370 3b65 725f ter er_ │ │ │ -0001ddd0: 6669 6c74 6572 312c 0a20 3c61 2068 7265 filter1,. ERFilter& │ │ │ -0001de20: 6e62 7370 3b65 725f 6669 6c74 6572 322c nbsp;er_filter2, │ │ │ -0001de30: 0a20 3c61 2068 7265 663d 222e 2e2f 636f . MatOfRect groups_re │ │ │ -0001de90: 6374 732c 0a20 696e 7426 6e62 7370 3b6d cts,. int m │ │ │ -0001dea0: 6574 686f 642c 0a20 3c61 2068 7265 663d ethod,. Strin │ │ │ -0001df50: 673c 2f61 3e26 6e62 7370 3b66 696c 656e g filen │ │ │ -0001df60: 616d 6529 3c2f 7370 616e 3e3c 2f64 6976 ame)
      .
      Extracts te │ │ │ -0001df90: 7874 2072 6567 696f 6e73 2066 726f 6d20 xt regions from │ │ │ -0001dfa0: 696d 6167 652e 3c2f 6469 763e 0a3c 646c image.
      .
      . │ │ │ -0001dfc0: 3c64 743e 5061 7261 6d65 7465 7273 3a3c
      Parameters:< │ │ │ -0001dfd0: 2f64 743e 0a3c 6464 3e3c 636f 6465 3e69 /dt>.
      i │ │ │ -0001dfe0: 6d61 6765 3c2f 636f 6465 3e20 2d20 536f mage - So │ │ │ -0001dff0: 7572 6365 2069 6d61 6765 2077 6865 7265 urce image where │ │ │ -0001e000: 2074 6578 7420 626c 6f63 6b73 206e 6565 text blocks nee │ │ │ -0001e010: 6473 2074 6f20 6265 2065 7874 7261 6374 ds to be extract │ │ │ -0001e020: 6564 2066 726f 6d2e 2020 5368 6f75 6c64 ed from. Should │ │ │ -0001e030: 2062 6520 4356 5f38 5543 3320 2863 6f6c be CV_8UC3 (col │ │ │ -0001e040: 6f72 292e 3c2f 6464 3e0a 3c64 643e 3c63 or).
      .
      er_filter1 - Extremal │ │ │ -0001e070: 2052 6567 696f 6e20 4669 6c74 6572 2066 Region Filter f │ │ │ -0001e080: 6f72 2074 6865 2031 7374 2073 7461 6765 or the 1st stage │ │ │ -0001e090: 2063 6c61 7373 6966 6965 7220 6f66 204e classifier of N │ │ │ -0001e0a0: 2661 6d70 3b4d 2061 6c67 6f72 6974 686d &M algorithm │ │ │ -0001e0b0: 2043 4954 453a 204e 6575 6d61 6e6e 3132 CITE: Neumann12 │ │ │ -0001e0c0: 3c2f 6464 3e0a 3c64 643e 3c63 6f64 653e
      .
      │ │ │ -0001e0d0: 6572 5f66 696c 7465 7232 3c2f 636f 6465 er_filter2 - Extremal Reg │ │ │ -0001e0f0: 696f 6e20 4669 6c74 6572 2066 6f72 2074 ion Filter for t │ │ │ -0001e100: 6865 2032 6e64 2073 7461 6765 2063 6c61 he 2nd stage cla │ │ │ -0001e110: 7373 6966 6965 7220 6f66 204e 2661 6d70 ssifier of N& │ │ │ -0001e120: 3b4d 2061 6c67 6f72 6974 686d 2043 4954 ;M algorithm CIT │ │ │ -0001e130: 453a 204e 6575 6d61 6e6e 3132 3c2f 6464 E: Neumann12
      .
      grou │ │ │ -0001e150: 7073 5f72 6563 7473 3c2f 636f 6465 3e20 ps_rects │ │ │ -0001e160: 2d20 4f75 7470 7574 206c 6973 7420 6f66 - Output list of │ │ │ -0001e170: 2072 6563 7461 6e67 6c65 2062 6c6f 636b rectangle block │ │ │ -0001e180: 7320 7769 7468 2074 6578 743c 2f64 643e s with text
      │ │ │ -0001e190: 0a3c 6464 3e3c 636f 6465 3e6d 6574 686f .
      metho │ │ │ -0001e1a0: 643c 2f63 6f64 653e 202d 2047 726f 7570 d - Group │ │ │ -0001e1b0: 696e 6720 6d65 7468 6f64 2028 7365 6520 ing method (see │ │ │ -0001e1c0: 7465 7874 3a3a 6572 4772 6f75 7069 6e67 text::erGrouping │ │ │ -0001e1d0: 5f4d 6f64 6573 292e 2043 616e 2062 6520 _Modes). Can be │ │ │ -0001e1e0: 6f6e 6520 6f66 2045 5247 524f 5550 494e one of ERGROUPIN │ │ │ -0001e1f0: 475f 4f52 4945 4e54 4154 494f 4e5f 484f G_ORIENTATION_HO │ │ │ -0001e200: 5249 5a2c 2045 5247 524f 5550 494e 475f RIZ, ERGROUPING_ │ │ │ -0001e210: 4f52 4945 4e54 4154 494f 4e5f 414e 592e ORIENTATION_ANY. │ │ │ -0001e220: 3c2f 6464 3e0a 3c64 643e 3c63 6f64 653e
      .
      │ │ │ -0001e230: 6669 6c65 6e61 6d65 3c2f 636f 6465 3e20 filename │ │ │ -0001e240: 2d20 5468 6520 584d 4c20 6f72 2059 414d - The XML or YAM │ │ │ -0001e250: 4c20 6669 6c65 2077 6974 6820 7468 6520 L file with the │ │ │ -0001e260: 636c 6173 7369 6669 6572 206d 6f64 656c classifier model │ │ │ -0001e270: 2028 652e 672e 2073 616d 706c 6573 2f74 (e.g. samples/t │ │ │ -0001e280: 7261 696e 6564 5f63 6c61 7373 6966 6965 rained_classifie │ │ │ -0001e290: 725f 6572 4772 6f75 7069 6e67 2e78 6d6c r_erGrouping.xml │ │ │ -0001e2a0: 292e 204f 6e6c 7920 746f 2075 7365 2077 ). Only to use w │ │ │ -0001e2b0: 6865 6e20 6772 6f75 7069 6e67 206d 6574 hen grouping met │ │ │ -0001e2c0: 686f 6420 6973 2045 5247 524f 5550 494e hod is ERGROUPIN │ │ │ -0001e2d0: 475f 4f52 4945 4e54 4154 494f 4e5f 414e G_ORIENTATION_AN │ │ │ -0001e2e0: 592e 3c2f 6464 3e0a 3c2f 646c 3e0a 3c2f Y.
      .
      ..
    • .< │ │ │ -0001e300: 6c69 3e0a 3c73 6563 7469 6f6e 2063 6c61 li>.
      .

      detectR │ │ │ -0001e3a0: 6567 696f 6e73 3c2f 6833 3e0a 3c64 6976 egions

      .
      public static< │ │ │ -0001e3f0: 2f73 7061 6e3e 266e 6273 703b 3c73 7061 /span> void detectRegions< │ │ │ -0001e450: 2f73 7061 6e3e 3c77 6272 3e3c 7370 616e /span>(Mat im │ │ │ -0001e4c0: 6167 652c 0a20 3c61 2068 7265 663d 2245 age,. E │ │ │ -0001e500: 5246 696c 7465 723c 2f61 3e26 6e62 7370 RFilter  │ │ │ -0001e510: 3b65 725f 6669 6c74 6572 312c 0a20 3c61 ;er_filter1,. ERFilter< │ │ │ -0001e560: 2f61 3e26 6e62 7370 3b65 725f 6669 6c74 /a> er_filt │ │ │ -0001e570: 6572 322c 0a20 3c61 2068 7265 663d 222e er2,. MatOfRec │ │ │ -0001e5c0: 743c 2f61 3e26 6e62 7370 3b67 726f 7570 t group │ │ │ -0001e5d0: 735f 7265 6374 732c 0a20 696e 7426 6e62 s_rects,. int&nb │ │ │ -0001e5e0: 7370 3b6d 6574 686f 6429 3c2f 7370 616e sp;method)
      .
      Extra │ │ │ -0001e610: 6374 7320 7465 7874 2072 6567 696f 6e73 cts text regions │ │ │ -0001e620: 2066 726f 6d20 696d 6167 652e 3c2f 6469 from image..
      .
      Parame │ │ │ -0001e650: 7465 7273 3a3c 2f64 743e 0a3c 6464 3e3c ters:
      .
      < │ │ │ -0001e660: 636f 6465 3e69 6d61 6765 3c2f 636f 6465 code>image - Source image │ │ │ -0001e680: 2077 6865 7265 2074 6578 7420 626c 6f63 where text bloc │ │ │ -0001e690: 6b73 206e 6565 6473 2074 6f20 6265 2065 ks needs to be e │ │ │ -0001e6a0: 7874 7261 6374 6564 2066 726f 6d2e 2020 xtracted from. │ │ │ -0001e6b0: 5368 6f75 6c64 2062 6520 4356 5f38 5543 Should be CV_8UC │ │ │ -0001e6c0: 3320 2863 6f6c 6f72 292e 3c2f 6464 3e0a 3 (color).
      . │ │ │ -0001e6d0: 3c64 643e 3c63 6f64 653e 6572 5f66 696c
      er_fil │ │ │ -0001e6e0: 7465 7231 3c2f 636f 6465 3e20 2d20 4578 ter1 - Ex │ │ │ -0001e6f0: 7472 656d 616c 2052 6567 696f 6e20 4669 tremal Region Fi │ │ │ -0001e700: 6c74 6572 2066 6f72 2074 6865 2031 7374 lter for the 1st │ │ │ -0001e710: 2073 7461 6765 2063 6c61 7373 6966 6965 stage classifie │ │ │ -0001e720: 7220 6f66 204e 2661 6d70 3b4d 2061 6c67 r of N&M alg │ │ │ -0001e730: 6f72 6974 686d 2043 4954 453a 204e 6575 orithm CITE: Neu │ │ │ -0001e740: 6d61 6e6e 3132 3c2f 6464 3e0a 3c64 643e mann12
      .
      │ │ │ -0001e750: 3c63 6f64 653e 6572 5f66 696c 7465 7232 er_filter2 │ │ │ -0001e760: 3c2f 636f 6465 3e20 2d20 4578 7472 656d - Extrem │ │ │ -0001e770: 616c 2052 6567 696f 6e20 4669 6c74 6572 al Region Filter │ │ │ -0001e780: 2066 6f72 2074 6865 2032 6e64 2073 7461 for the 2nd sta │ │ │ -0001e790: 6765 2063 6c61 7373 6966 6965 7220 6f66 ge classifier of │ │ │ -0001e7a0: 204e 2661 6d70 3b4d 2061 6c67 6f72 6974 N&M algorit │ │ │ -0001e7b0: 686d 2043 4954 453a 204e 6575 6d61 6e6e hm CITE: Neumann │ │ │ -0001e7c0: 3132 3c2f 6464 3e0a 3c64 643e 3c63 6f64 12
      .
      groups_rects - Output l │ │ │ -0001e7f0: 6973 7420 6f66 2072 6563 7461 6e67 6c65 ist of rectangle │ │ │ -0001e800: 2062 6c6f 636b 7320 7769 7468 2074 6578 blocks with tex │ │ │ -0001e810: 743c 2f64 643e 0a3c 6464 3e3c 636f 6465 t
      .
      method - │ │ │ -0001e830: 2047 726f 7570 696e 6720 6d65 7468 6f64 Grouping method │ │ │ -0001e840: 2028 7365 6520 7465 7874 3a3a 6572 4772 (see text::erGr │ │ │ -0001e850: 6f75 7069 6e67 5f4d 6f64 6573 292e 2043 ouping_Modes). C │ │ │ -0001e860: 616e 2062 6520 6f6e 6520 6f66 2045 5247 an be one of ERG │ │ │ -0001e870: 524f 5550 494e 475f 4f52 4945 4e54 4154 ROUPING_ORIENTAT │ │ │ -0001e880: 494f 4e5f 484f 5249 5a2c 2045 5247 524f ION_HORIZ, ERGRO │ │ │ -0001e890: 5550 494e 475f 4f52 4945 4e54 4154 494f UPING_ORIENTATIO │ │ │ -0001e8a0: 4e5f 414e 592e 3c2f 6464 3e0a 3c2f 646c N_ANY.
      .
      .
      ..
    • .
      .

      detectR │ │ │ -0001e960: 6567 696f 6e73 3c2f 6833 3e0a 3c64 6976 egions

      .
      public static< │ │ │ -0001e9b0: 2f73 7061 6e3e 266e 6273 703b 3c73 7061 /span> void detectRegions< │ │ │ -0001ea10: 2f73 7061 6e3e 3c77 6272 3e3c 7370 616e /span>(Mat im │ │ │ -0001ea80: 6167 652c 0a20 3c61 2068 7265 663d 2245 age,. E │ │ │ -0001eac0: 5246 696c 7465 723c 2f61 3e26 6e62 7370 RFilter  │ │ │ -0001ead0: 3b65 725f 6669 6c74 6572 312c 0a20 3c61 ;er_filter1,. ERFilter< │ │ │ -0001eb20: 2f61 3e26 6e62 7370 3b65 725f 6669 6c74 /a> er_filt │ │ │ -0001eb30: 6572 322c 0a20 3c61 2068 7265 663d 222e er2,. MatOfRec │ │ │ -0001eb80: 743c 2f61 3e26 6e62 7370 3b67 726f 7570 t group │ │ │ -0001eb90: 735f 7265 6374 7329 3c2f 7370 616e 3e3c s_rects)< │ │ │ -0001eba0: 2f64 6976 3e0a 3c64 6976 2063 6c61 7373 /div>.
      Extract │ │ │ -0001ebc0: 7320 7465 7874 2072 6567 696f 6e73 2066 s text regions f │ │ │ -0001ebd0: 726f 6d20 696d 6167 652e 3c2f 6469 763e rom image.
      │ │ │ -0001ebe0: 0a3c 646c 2063 6c61 7373 3d22 6e6f 7465 .
      .
      Paramete │ │ │ -0001ec00: 7273 3a3c 2f64 743e 0a3c 6464 3e3c 636f rs:
      .
      image │ │ │ -0001ec20: 2d20 536f 7572 6365 2069 6d61 6765 2077 - Source image w │ │ │ -0001ec30: 6865 7265 2074 6578 7420 626c 6f63 6b73 here text blocks │ │ │ -0001ec40: 206e 6565 6473 2074 6f20 6265 2065 7874 needs to be ext │ │ │ -0001ec50: 7261 6374 6564 2066 726f 6d2e 2020 5368 racted from. Sh │ │ │ -0001ec60: 6f75 6c64 2062 6520 4356 5f38 5543 3320 ould be CV_8UC3 │ │ │ -0001ec70: 2863 6f6c 6f72 292e 3c2f 6464 3e0a 3c64 (color).
      .er_filte │ │ │ -0001ec90: 7231 3c2f 636f 6465 3e20 2d20 4578 7472 r1 - Extr │ │ │ -0001eca0: 656d 616c 2052 6567 696f 6e20 4669 6c74 emal Region Filt │ │ │ -0001ecb0: 6572 2066 6f72 2074 6865 2031 7374 2073 er for the 1st s │ │ │ -0001ecc0: 7461 6765 2063 6c61 7373 6966 6965 7220 tage classifier │ │ │ -0001ecd0: 6f66 204e 2661 6d70 3b4d 2061 6c67 6f72 of N&M algor │ │ │ -0001ece0: 6974 686d 2043 4954 453a 204e 6575 6d61 ithm CITE: Neuma │ │ │ -0001ecf0: 6e6e 3132 3c2f 6464 3e0a 3c64 643e 3c63 nn12.
      er_filter2 - Extremal │ │ │ -0001ed20: 2052 6567 696f 6e20 4669 6c74 6572 2066 Region Filter f │ │ │ -0001ed30: 6f72 2074 6865 2032 6e64 2073 7461 6765 or the 2nd stage │ │ │ -0001ed40: 2063 6c61 7373 6966 6965 7220 6f66 204e classifier of N │ │ │ -0001ed50: 2661 6d70 3b4d 2061 6c67 6f72 6974 686d &M algorithm │ │ │ -0001ed60: 2043 4954 453a 204e 6575 6d61 6e6e 3132 CITE: Neumann12 │ │ │ -0001ed70: 3c2f 6464 3e0a 3c64 643e 3c63 6f64 653e
      .
      │ │ │ -0001ed80: 6772 6f75 7073 5f72 6563 7473 3c2f 636f groups_rects - Output lis │ │ │ -0001eda0: 7420 6f66 2072 6563 7461 6e67 6c65 2062 t of rectangle b │ │ │ -0001edb0: 6c6f 636b 7320 7769 7468 2074 6578 743c locks with text< │ │ │ +00011790: 2263 7265 6174 6545 5246 696c 7465 724e "createERFilterN │ │ │ +000117a0: 4d31 286f 7267 2e6f 7065 6e63 762e 7465 M1(org.opencv.te │ │ │ +000117b0: 7874 2e45 5246 696c 7465 725f 4361 6c6c xt.ERFilter_Call │ │ │ +000117c0: 6261 636b 2c69 6e74 2c66 6c6f 6174 2c66 back,int,float,f │ │ │ +000117d0: 6c6f 6174 2c66 6c6f 6174 2c62 6f6f 6c65 loat,float,boole │ │ │ +000117e0: 616e 2c66 6c6f 6174 2922 3e0a 3c68 333e an,float)">.

      │ │ │ +000117f0: 6372 6561 7465 4552 4669 6c74 6572 4e4d createERFilterNM │ │ │ +00011800: 313c 2f68 333e 0a3c 6469 7620 636c 6173 1

      .
      pub │ │ │ +00011840: 6c69 6320 7374 6174 6963 3c2f 7370 616e lic static ERFilt │ │ │ +000118b0: 6572 3c2f 613e 3c2f 7370 616e 3e26 6e62 er&nb │ │ │ +000118c0: 7370 3b3c 7370 616e 2063 6c61 7373 3d22 sp;cr │ │ │ +000118e0: 6561 7465 4552 4669 6c74 6572 4e4d 313c eateERFilterNM1< │ │ │ +000118f0: 2f73 7061 6e3e 3c77 6272 3e3c 7370 616e /span>(ERFilter_ │ │ │ +00011960: 4361 6c6c 6261 636b 3c2f 613e 266e 6273 Callback&nbs │ │ │ +00011970: 703b 6362 2c0a 2069 6e74 266e 6273 703b p;cb,. int  │ │ │ +00011980: 7468 7265 7368 6f6c 6444 656c 7461 2c0a thresholdDelta,. │ │ │ +00011990: 2066 6c6f 6174 266e 6273 703b 6d69 6e41 float minA │ │ │ +000119a0: 7265 612c 0a20 666c 6f61 7426 6e62 7370 rea,. float  │ │ │ +000119b0: 3b6d 6178 4172 6561 2c0a 2066 6c6f 6174 ;maxArea,. float │ │ │ +000119c0: 266e 6273 703b 6d69 6e50 726f 6261 6269  minProbabi │ │ │ +000119d0: 6c69 7479 2c0a 2062 6f6f 6c65 616e 266e lity,. boolean&n │ │ │ +000119e0: 6273 703b 6e6f 6e4d 6178 5375 7070 7265 bsp;nonMaxSuppre │ │ │ +000119f0: 7373 696f 6e2c 0a20 666c 6f61 7426 6e62 ssion,. float&nb │ │ │ +00011a00: 7370 3b6d 696e 5072 6f62 6162 696c 6974 sp;minProbabilit │ │ │ +00011a10: 7944 6966 6629 3c2f 7370 616e 3e3c 2f64 yDiff).
      Create an │ │ │ +00011a40: 2045 7874 7265 6d61 6c20 5265 6769 6f6e Extremal Region │ │ │ +00011a50: 2046 696c 7465 7220 666f 7220 7468 6520 Filter for the │ │ │ +00011a60: 3173 7420 7374 6167 6520 636c 6173 7369 1st stage classi │ │ │ +00011a70: 6669 6572 206f 6620 4e26 616d 703b 4d20 fier of N&M │ │ │ +00011a80: 616c 676f 7269 7468 6d20 4349 5445 3a20 algorithm CITE: │ │ │ +00011a90: 4e65 756d 616e 6e31 322e 0a0a 206c 6f61 Neumann12... loa │ │ │ +00011aa0: 6443 6c61 7373 6966 6965 724e 4d31 2c20 dClassifierNM1, │ │ │ +00011ab0: 652e 672e 2066 726f 6d20 6669 6c65 2069 e.g. from file i │ │ │ +00011ac0: 6e20 7361 6d70 6c65 732f 6370 702f 7472 n samples/cpp/tr │ │ │ +00011ad0: 6169 6e65 645f 636c 6173 7369 6669 6572 ained_classifier │ │ │ +00011ae0: 4e4d 312e 786d 6c0a 0a20 5468 6520 636f NM1.xml.. The co │ │ │ +00011af0: 6d70 6f6e 656e 7420 7472 6565 206f 6620 mponent tree of │ │ │ +00011b00: 7468 6520 696d 6167 6520 6973 2065 7874 the image is ext │ │ │ +00011b10: 7261 6374 6564 2062 7920 6120 7468 7265 racted by a thre │ │ │ +00011b20: 7368 6f6c 6420 696e 6372 6561 7365 6420 shold increased │ │ │ +00011b30: 7374 6570 2062 7920 7374 6570 2066 726f step by step fro │ │ │ +00011b40: 6d20 3020 746f 2032 3535 2c0a 2069 6e63 m 0 to 255,. inc │ │ │ +00011b50: 7265 6d65 6e74 616c 6c79 2063 6f6d 7075 rementally compu │ │ │ +00011b60: 7461 626c 6520 6465 7363 7269 7074 6f72 table descriptor │ │ │ +00011b70: 7320 2861 7370 6563 745f 7261 7469 6f2c s (aspect_ratio, │ │ │ +00011b80: 2063 6f6d 7061 6374 6e65 7373 2c20 6e75 compactness, nu │ │ │ +00011b90: 6d62 6572 206f 6620 686f 6c65 732c 2061 mber of holes, a │ │ │ +00011ba0: 6e64 206e 756d 6265 7220 6f66 0a20 686f nd number of. ho │ │ │ +00011bb0: 7269 7a6f 6e74 616c 2063 726f 7373 696e rizontal crossin │ │ │ +00011bc0: 6773 2920 6172 6520 636f 6d70 7574 6564 gs) are computed │ │ │ +00011bd0: 2066 6f72 2065 6163 6820 4552 2061 6e64 for each ER and │ │ │ +00011be0: 2075 7365 6420 6173 2066 6561 7475 7265 used as feature │ │ │ +00011bf0: 7320 666f 7220 6120 636c 6173 7369 6669 s for a classifi │ │ │ +00011c00: 6572 2077 6869 6368 2065 7374 696d 6174 er which estimat │ │ │ +00011c10: 6573 0a20 7468 6520 636c 6173 732d 636f es. the class-co │ │ │ +00011c20: 6e64 6974 696f 6e61 6c20 7072 6f62 6162 nditional probab │ │ │ +00011c30: 696c 6974 7920 5028 6572 7c63 6861 7261 ility P(er|chara │ │ │ +00011c40: 6374 6572 292e 2054 6865 2076 616c 7565 cter). The value │ │ │ +00011c50: 206f 6620 5028 6572 7c63 6861 7261 6374 of P(er|charact │ │ │ +00011c60: 6572 2920 6973 2074 7261 636b 6564 2075 er) is tracked u │ │ │ +00011c70: 7369 6e67 2074 6865 0a20 696e 636c 7573 sing the. inclus │ │ │ +00011c80: 696f 6e20 7265 6c61 7469 6f6e 206f 6620 ion relation of │ │ │ +00011c90: 4552 2061 6372 6f73 7320 616c 6c20 7468 ER across all th │ │ │ +00011ca0: 7265 7368 6f6c 6473 2061 6e64 206f 6e6c resholds and onl │ │ │ +00011cb0: 7920 7468 6520 4552 7320 7768 6963 6820 y the ERs which │ │ │ +00011cc0: 636f 7272 6573 706f 6e64 2074 6f20 6c6f correspond to lo │ │ │ +00011cd0: 6361 6c20 6d61 7869 6d75 6d20 6f66 0a20 cal maximum of. │ │ │ +00011ce0: 7468 6520 7072 6f62 6162 696c 6974 7920 the probability │ │ │ +00011cf0: 5028 6572 7c63 6861 7261 6374 6572 2920 P(er|character) │ │ │ +00011d00: 6172 6520 7365 6c65 6374 6564 2028 6966 are selected (if │ │ │ +00011d10: 2074 6865 206c 6f63 616c 206d 6178 696d the local maxim │ │ │ +00011d20: 756d 206f 6620 7468 6520 7072 6f62 6162 um of the probab │ │ │ +00011d30: 696c 6974 7920 6973 2061 626f 7665 2061 ility is above a │ │ │ +00011d40: 0a20 676c 6f62 616c 206c 696d 6974 2070 . global limit p │ │ │ +00011d50: 6d69 6e20 616e 6420 7468 6520 6469 6666 min and the diff │ │ │ +00011d60: 6572 656e 6365 2062 6574 7765 656e 206c erence between l │ │ │ +00011d70: 6f63 616c 206d 6178 696d 756d 2061 6e64 ocal maximum and │ │ │ +00011d80: 206c 6f63 616c 206d 696e 696d 756d 2069 local minimum i │ │ │ +00011d90: 7320 6772 6561 7465 7220 7468 616e 0a20 s greater than. │ │ │ +00011da0: 6d69 6e50 726f 6261 6269 6c69 7479 4469 minProbabilityDi │ │ │ +00011db0: 6666 292e 3c2f 6469 763e 0a3c 646c 2063 ff).
      .
      .Parameters:.
      cb< │ │ │ +00011df0: 2f63 6f64 653e 202d 2061 7574 6f6d 6174 /code> - automat │ │ │ +00011e00: 6963 616c 6c79 2067 656e 6572 6174 6564 ically generated │ │ │ +00011e10: 3c2f 6464 3e0a 3c64 643e 3c63 6f64 653e
      .
      │ │ │ +00011e20: 7468 7265 7368 6f6c 6444 656c 7461 3c2f thresholdDelta - automati │ │ │ +00011e40: 6361 6c6c 7920 6765 6e65 7261 7465 643c cally generated< │ │ │ +00011e50: 2f64 643e 0a3c 6464 3e3c 636f 6465 3e6d /dd>.
      m │ │ │ +00011e60: 696e 4172 6561 3c2f 636f 6465 3e20 2d20 inArea - │ │ │ +00011e70: 6175 746f 6d61 7469 6361 6c6c 7920 6765 automatically ge │ │ │ +00011e80: 6e65 7261 7465 643c 2f64 643e 0a3c 6464 nerated
      .
      maxArea - automati │ │ │ +00011eb0: 6361 6c6c 7920 6765 6e65 7261 7465 643c cally generated< │ │ │ +00011ec0: 2f64 643e 0a3c 6464 3e3c 636f 6465 3e6d /dd>.
      m │ │ │ +00011ed0: 696e 5072 6f62 6162 696c 6974 793c 2f63 inProbability - automatic │ │ │ +00011ef0: 616c 6c79 2067 656e 6572 6174 6564 3c2f ally generated.
      no │ │ │ +00011f10: 6e4d 6178 5375 7070 7265 7373 696f 6e3c nMaxSuppression< │ │ │ +00011f20: 2f63 6f64 653e 202d 2061 7574 6f6d 6174 /code> - automat │ │ │ +00011f30: 6963 616c 6c79 2067 656e 6572 6174 6564 ically generated │ │ │ +00011f40: 3c2f 6464 3e0a 3c64 643e 3c63 6f64 653e
      .
      │ │ │ +00011f50: 6d69 6e50 726f 6261 6269 6c69 7479 4469 minProbabilityDi │ │ │ +00011f60: 6666 3c2f 636f 6465 3e20 2d20 6175 746f ff - auto │ │ │ +00011f70: 6d61 7469 6361 6c6c 7920 6765 6e65 7261 matically genera │ │ │ +00011f80: 7465 643c 2f64 643e 0a3c 6474 3e52 6574 ted
      .
      Ret │ │ │ +00011f90: 7572 6e73 3a3c 2f64 743e 0a3c 6464 3e61 urns:
      .
      a │ │ │ +00011fa0: 7574 6f6d 6174 6963 616c 6c79 2067 656e utomatically gen │ │ │ +00011fb0: 6572 6174 6564 3c2f 6464 3e0a 3c2f 646c erated
      .
      .
      ..
    • .
      .

      cre │ │ │ +00012050: 6174 6545 5246 696c 7465 724e 4d31 3c2f ateERFilterNM1.
      public │ │ │ +000120a0: 2073 7461 7469 633c 2f73 7061 6e3e 266e static&n │ │ │ +000120b0: 6273 703b 3c73 7061 6e20 636c 6173 733d bsp;ERFilter< │ │ │ +00012110: 2f61 3e3c 2f73 7061 6e3e 266e 6273 703b /a>  │ │ │ +00012120: 3c73 7061 6e20 636c 6173 733d 2265 6c65 creat │ │ │ +00012140: 6545 5246 696c 7465 724e 4d31 3c2f 7370 eERFilterNM1(ERFilter_Cal │ │ │ +000121c0: 6c62 6163 6b3c 2f61 3e26 6e62 7370 3b63 lback c │ │ │ +000121d0: 622c 0a20 696e 7426 6e62 7370 3b74 6872 b,. int thr │ │ │ +000121e0: 6573 686f 6c64 4465 6c74 612c 0a20 666c esholdDelta,. fl │ │ │ +000121f0: 6f61 7426 6e62 7370 3b6d 696e 4172 6561 oat minArea │ │ │ +00012200: 2c0a 2066 6c6f 6174 266e 6273 703b 6d61 ,. float ma │ │ │ +00012210: 7841 7265 612c 0a20 666c 6f61 7426 6e62 xArea,. float&nb │ │ │ +00012220: 7370 3b6d 696e 5072 6f62 6162 696c 6974 sp;minProbabilit │ │ │ +00012230: 792c 0a20 626f 6f6c 6561 6e26 6e62 7370 y,. boolean  │ │ │ +00012240: 3b6e 6f6e 4d61 7853 7570 7072 6573 7369 ;nonMaxSuppressi │ │ │ +00012250: 6f6e 293c 2f73 7061 6e3e 3c2f 6469 763e on)
      │ │ │ +00012260: 0a3c 6469 7620 636c 6173 733d 2262 6c6f .
      Create an Ex │ │ │ +00012280: 7472 656d 616c 2052 6567 696f 6e20 4669 tremal Region Fi │ │ │ +00012290: 6c74 6572 2066 6f72 2074 6865 2031 7374 lter for the 1st │ │ │ +000122a0: 2073 7461 6765 2063 6c61 7373 6966 6965 stage classifie │ │ │ +000122b0: 7220 6f66 204e 2661 6d70 3b4d 2061 6c67 r of N&M alg │ │ │ +000122c0: 6f72 6974 686d 2043 4954 453a 204e 6575 orithm CITE: Neu │ │ │ +000122d0: 6d61 6e6e 3132 2e0a 0a20 6c6f 6164 436c mann12... loadCl │ │ │ +000122e0: 6173 7369 6669 6572 4e4d 312c 2065 2e67 assifierNM1, e.g │ │ │ +000122f0: 2e20 6672 6f6d 2066 696c 6520 696e 2073 . from file in s │ │ │ +00012300: 616d 706c 6573 2f63 7070 2f74 7261 696e amples/cpp/train │ │ │ +00012310: 6564 5f63 6c61 7373 6966 6965 724e 4d31 ed_classifierNM1 │ │ │ +00012320: 2e78 6d6c 0a0a 2054 6865 2063 6f6d 706f .xml.. The compo │ │ │ +00012330: 6e65 6e74 2074 7265 6520 6f66 2074 6865 nent tree of the │ │ │ +00012340: 2069 6d61 6765 2069 7320 6578 7472 6163 image is extrac │ │ │ +00012350: 7465 6420 6279 2061 2074 6872 6573 686f ted by a thresho │ │ │ +00012360: 6c64 2069 6e63 7265 6173 6564 2073 7465 ld increased ste │ │ │ +00012370: 7020 6279 2073 7465 7020 6672 6f6d 2030 p by step from 0 │ │ │ +00012380: 2074 6f20 3235 352c 0a20 696e 6372 656d to 255,. increm │ │ │ +00012390: 656e 7461 6c6c 7920 636f 6d70 7574 6162 entally computab │ │ │ +000123a0: 6c65 2064 6573 6372 6970 746f 7273 2028 le descriptors ( │ │ │ +000123b0: 6173 7065 6374 5f72 6174 696f 2c20 636f aspect_ratio, co │ │ │ +000123c0: 6d70 6163 746e 6573 732c 206e 756d 6265 mpactness, numbe │ │ │ +000123d0: 7220 6f66 2068 6f6c 6573 2c20 616e 6420 r of holes, and │ │ │ +000123e0: 6e75 6d62 6572 206f 660a 2068 6f72 697a number of. horiz │ │ │ +000123f0: 6f6e 7461 6c20 6372 6f73 7369 6e67 7329 ontal crossings) │ │ │ +00012400: 2061 7265 2063 6f6d 7075 7465 6420 666f are computed fo │ │ │ +00012410: 7220 6561 6368 2045 5220 616e 6420 7573 r each ER and us │ │ │ +00012420: 6564 2061 7320 6665 6174 7572 6573 2066 ed as features f │ │ │ +00012430: 6f72 2061 2063 6c61 7373 6966 6965 7220 or a classifier │ │ │ +00012440: 7768 6963 6820 6573 7469 6d61 7465 730a which estimates. │ │ │ +00012450: 2074 6865 2063 6c61 7373 2d63 6f6e 6469 the class-condi │ │ │ +00012460: 7469 6f6e 616c 2070 726f 6261 6269 6c69 tional probabili │ │ │ +00012470: 7479 2050 2865 727c 6368 6172 6163 7465 ty P(er|characte │ │ │ +00012480: 7229 2e20 5468 6520 7661 6c75 6520 6f66 r). The value of │ │ │ +00012490: 2050 2865 727c 6368 6172 6163 7465 7229 P(er|character) │ │ │ +000124a0: 2069 7320 7472 6163 6b65 6420 7573 696e is tracked usin │ │ │ +000124b0: 6720 7468 650a 2069 6e63 6c75 7369 6f6e g the. inclusion │ │ │ +000124c0: 2072 656c 6174 696f 6e20 6f66 2045 5220 relation of ER │ │ │ +000124d0: 6163 726f 7373 2061 6c6c 2074 6872 6573 across all thres │ │ │ +000124e0: 686f 6c64 7320 616e 6420 6f6e 6c79 2074 holds and only t │ │ │ +000124f0: 6865 2045 5273 2077 6869 6368 2063 6f72 he ERs which cor │ │ │ +00012500: 7265 7370 6f6e 6420 746f 206c 6f63 616c respond to local │ │ │ +00012510: 206d 6178 696d 756d 206f 660a 2074 6865 maximum of. the │ │ │ +00012520: 2070 726f 6261 6269 6c69 7479 2050 2865 probability P(e │ │ │ +00012530: 727c 6368 6172 6163 7465 7229 2061 7265 r|character) are │ │ │ +00012540: 2073 656c 6563 7465 6420 2869 6620 7468 selected (if th │ │ │ +00012550: 6520 6c6f 6361 6c20 6d61 7869 6d75 6d20 e local maximum │ │ │ +00012560: 6f66 2074 6865 2070 726f 6261 6269 6c69 of the probabili │ │ │ +00012570: 7479 2069 7320 6162 6f76 6520 610a 2067 ty is above a. g │ │ │ +00012580: 6c6f 6261 6c20 6c69 6d69 7420 706d 696e lobal limit pmin │ │ │ +00012590: 2061 6e64 2074 6865 2064 6966 6665 7265 and the differe │ │ │ +000125a0: 6e63 6520 6265 7477 6565 6e20 6c6f 6361 nce between loca │ │ │ +000125b0: 6c20 6d61 7869 6d75 6d20 616e 6420 6c6f l maximum and lo │ │ │ +000125c0: 6361 6c20 6d69 6e69 6d75 6d20 6973 2067 cal minimum is g │ │ │ +000125d0: 7265 6174 6572 2074 6861 6e0a 206d 696e reater than. min │ │ │ +000125e0: 5072 6f62 6162 696c 6974 7944 6966 6629 ProbabilityDiff) │ │ │ +000125f0: 2e3c 2f64 6976 3e0a 3c64 6c20 636c 6173 .
      .
      .
      P │ │ │ +00012610: 6172 616d 6574 6572 733a 3c2f 6474 3e0a arameters:
      . │ │ │ +00012620: 3c64 643e 3c63 6f64 653e 6362 3c2f 636f
      cb - automatica │ │ │ +00012640: 6c6c 7920 6765 6e65 7261 7465 643c 2f64 lly generated.
      thr │ │ │ +00012660: 6573 686f 6c64 4465 6c74 613c 2f63 6f64 esholdDelta - automatical │ │ │ +00012680: 6c79 2067 656e 6572 6174 6564 3c2f 6464 ly generated
      .
      minA │ │ │ +000126a0: 7265 613c 2f63 6f64 653e 202d 2061 7574 rea - aut │ │ │ +000126b0: 6f6d 6174 6963 616c 6c79 2067 656e 6572 omatically gener │ │ │ +000126c0: 6174 6564 3c2f 6464 3e0a 3c64 643e 3c63 ated
      .
      maxArea - automatical │ │ │ +000126f0: 6c79 2067 656e 6572 6174 6564 3c2f 6464 ly generated
      .
      minP │ │ │ +00012710: 726f 6261 6269 6c69 7479 3c2f 636f 6465 robability - automaticall │ │ │ +00012730: 7920 6765 6e65 7261 7465 643c 2f64 643e y generated
      │ │ │ +00012740: 0a3c 6464 3e3c 636f 6465 3e6e 6f6e 4d61 .
      nonMa │ │ │ +00012750: 7853 7570 7072 6573 7369 6f6e 3c2f 636f xSuppression - automatica │ │ │ +00012770: 6c6c 7920 6765 6e65 7261 7465 643c 2f64 lly generated.
      Returns:< │ │ │ +00012790: 2f64 743e 0a3c 6464 3e61 7574 6f6d 6174 /dt>.
      automat │ │ │ +000127a0: 6963 616c 6c79 2067 656e 6572 6174 6564 ically generated │ │ │ +000127b0: 3c2f 6464 3e0a 3c2f 646c 3e0a 3c2f 7365
      .
      ..

    • .
    • .
      .

      c │ │ │ +00012840: 7265 6174 6545 5246 696c 7465 724e 4d31 reateERFilterNM1 │ │ │ +00012850: 3c2f 6833 3e0a 3c64 6976 2063 6c61 7373

      .
      publ │ │ │ +00012890: 6963 2073 7461 7469 633c 2f73 7061 6e3e ic static │ │ │ +000128a0: 266e 6273 703b 3c73 7061 6e20 636c 6173   │ │ │ +000128c0: 3c61 2068 7265 663d 2245 5246 696c 7465 ERFilte │ │ │ +00012900: 723c 2f61 3e3c 2f73 7061 6e3e 266e 6273 r&nbs │ │ │ +00012910: 703b 3c73 7061 6e20 636c 6173 733d 2265 p;cre │ │ │ +00012930: 6174 6545 5246 696c 7465 724e 4d31 3c2f ateERFilterNM1(ERFilter_C │ │ │ +000129b0: 616c 6c62 6163 6b3c 2f61 3e26 6e62 7370 allback  │ │ │ +000129c0: 3b63 622c 0a20 696e 7426 6e62 7370 3b74 ;cb,. int t │ │ │ +000129d0: 6872 6573 686f 6c64 4465 6c74 612c 0a20 hresholdDelta,. │ │ │ +000129e0: 666c 6f61 7426 6e62 7370 3b6d 696e 4172 float minAr │ │ │ +000129f0: 6561 2c0a 2066 6c6f 6174 266e 6273 703b ea,. float  │ │ │ +00012a00: 6d61 7841 7265 612c 0a20 666c 6f61 7426 maxArea,. float& │ │ │ +00012a10: 6e62 7370 3b6d 696e 5072 6f62 6162 696c nbsp;minProbabil │ │ │ +00012a20: 6974 7929 3c2f 7370 616e 3e3c 2f64 6976 ity)
      .
      Create an E │ │ │ +00012a50: 7874 7265 6d61 6c20 5265 6769 6f6e 2046 xtremal Region F │ │ │ +00012a60: 696c 7465 7220 666f 7220 7468 6520 3173 ilter for the 1s │ │ │ +00012a70: 7420 7374 6167 6520 636c 6173 7369 6669 t stage classifi │ │ │ +00012a80: 6572 206f 6620 4e26 616d 703b 4d20 616c er of N&M al │ │ │ +00012a90: 676f 7269 7468 6d20 4349 5445 3a20 4e65 gorithm CITE: Ne │ │ │ +00012aa0: 756d 616e 6e31 322e 0a0a 206c 6f61 6443 umann12... loadC │ │ │ +00012ab0: 6c61 7373 6966 6965 724e 4d31 2c20 652e lassifierNM1, e. │ │ │ +00012ac0: 672e 2066 726f 6d20 6669 6c65 2069 6e20 g. from file in │ │ │ +00012ad0: 7361 6d70 6c65 732f 6370 702f 7472 6169 samples/cpp/trai │ │ │ +00012ae0: 6e65 645f 636c 6173 7369 6669 6572 4e4d ned_classifierNM │ │ │ +00012af0: 312e 786d 6c0a 0a20 5468 6520 636f 6d70 1.xml.. The comp │ │ │ +00012b00: 6f6e 656e 7420 7472 6565 206f 6620 7468 onent tree of th │ │ │ +00012b10: 6520 696d 6167 6520 6973 2065 7874 7261 e image is extra │ │ │ +00012b20: 6374 6564 2062 7920 6120 7468 7265 7368 cted by a thresh │ │ │ +00012b30: 6f6c 6420 696e 6372 6561 7365 6420 7374 old increased st │ │ │ +00012b40: 6570 2062 7920 7374 6570 2066 726f 6d20 ep by step from │ │ │ +00012b50: 3020 746f 2032 3535 2c0a 2069 6e63 7265 0 to 255,. incre │ │ │ +00012b60: 6d65 6e74 616c 6c79 2063 6f6d 7075 7461 mentally computa │ │ │ +00012b70: 626c 6520 6465 7363 7269 7074 6f72 7320 ble descriptors │ │ │ +00012b80: 2861 7370 6563 745f 7261 7469 6f2c 2063 (aspect_ratio, c │ │ │ +00012b90: 6f6d 7061 6374 6e65 7373 2c20 6e75 6d62 ompactness, numb │ │ │ +00012ba0: 6572 206f 6620 686f 6c65 732c 2061 6e64 er of holes, and │ │ │ +00012bb0: 206e 756d 6265 7220 6f66 0a20 686f 7269 number of. hori │ │ │ +00012bc0: 7a6f 6e74 616c 2063 726f 7373 696e 6773 zontal crossings │ │ │ +00012bd0: 2920 6172 6520 636f 6d70 7574 6564 2066 ) are computed f │ │ │ +00012be0: 6f72 2065 6163 6820 4552 2061 6e64 2075 or each ER and u │ │ │ +00012bf0: 7365 6420 6173 2066 6561 7475 7265 7320 sed as features │ │ │ +00012c00: 666f 7220 6120 636c 6173 7369 6669 6572 for a classifier │ │ │ +00012c10: 2077 6869 6368 2065 7374 696d 6174 6573 which estimates │ │ │ +00012c20: 0a20 7468 6520 636c 6173 732d 636f 6e64 . the class-cond │ │ │ +00012c30: 6974 696f 6e61 6c20 7072 6f62 6162 696c itional probabil │ │ │ +00012c40: 6974 7920 5028 6572 7c63 6861 7261 6374 ity P(er|charact │ │ │ +00012c50: 6572 292e 2054 6865 2076 616c 7565 206f er). The value o │ │ │ +00012c60: 6620 5028 6572 7c63 6861 7261 6374 6572 f P(er|character │ │ │ +00012c70: 2920 6973 2074 7261 636b 6564 2075 7369 ) is tracked usi │ │ │ +00012c80: 6e67 2074 6865 0a20 696e 636c 7573 696f ng the. inclusio │ │ │ +00012c90: 6e20 7265 6c61 7469 6f6e 206f 6620 4552 n relation of ER │ │ │ +00012ca0: 2061 6372 6f73 7320 616c 6c20 7468 7265 across all thre │ │ │ +00012cb0: 7368 6f6c 6473 2061 6e64 206f 6e6c 7920 sholds and only │ │ │ +00012cc0: 7468 6520 4552 7320 7768 6963 6820 636f the ERs which co │ │ │ +00012cd0: 7272 6573 706f 6e64 2074 6f20 6c6f 6361 rrespond to loca │ │ │ +00012ce0: 6c20 6d61 7869 6d75 6d20 6f66 0a20 7468 l maximum of. th │ │ │ +00012cf0: 6520 7072 6f62 6162 696c 6974 7920 5028 e probability P( │ │ │ +00012d00: 6572 7c63 6861 7261 6374 6572 2920 6172 er|character) ar │ │ │ +00012d10: 6520 7365 6c65 6374 6564 2028 6966 2074 e selected (if t │ │ │ +00012d20: 6865 206c 6f63 616c 206d 6178 696d 756d he local maximum │ │ │ +00012d30: 206f 6620 7468 6520 7072 6f62 6162 696c of the probabil │ │ │ +00012d40: 6974 7920 6973 2061 626f 7665 2061 0a20 ity is above a. │ │ │ +00012d50: 676c 6f62 616c 206c 696d 6974 2070 6d69 global limit pmi │ │ │ +00012d60: 6e20 616e 6420 7468 6520 6469 6666 6572 n and the differ │ │ │ +00012d70: 656e 6365 2062 6574 7765 656e 206c 6f63 ence between loc │ │ │ +00012d80: 616c 206d 6178 696d 756d 2061 6e64 206c al maximum and l │ │ │ +00012d90: 6f63 616c 206d 696e 696d 756d 2069 7320 ocal minimum is │ │ │ +00012da0: 6772 6561 7465 7220 7468 616e 0a20 6d69 greater than. mi │ │ │ +00012db0: 6e50 726f 6261 6269 6c69 7479 4469 6666 nProbabilityDiff │ │ │ +00012dc0: 292e 3c2f 6469 763e 0a3c 646c 2063 6c61 ).
      .
      .
      │ │ │ +00012de0: 5061 7261 6d65 7465 7273 3a3c 2f64 743e Parameters:
      │ │ │ +00012df0: 0a3c 6464 3e3c 636f 6465 3e63 623c 2f63 .
      cb - automatic │ │ │ +00012e10: 616c 6c79 2067 656e 6572 6174 6564 3c2f ally generated.
      th │ │ │ +00012e30: 7265 7368 6f6c 6444 656c 7461 3c2f 636f resholdDelta - automatica │ │ │ +00012e50: 6c6c 7920 6765 6e65 7261 7465 643c 2f64 lly generated.
      min │ │ │ +00012e70: 4172 6561 3c2f 636f 6465 3e20 2d20 6175 Area - au │ │ │ +00012e80: 746f 6d61 7469 6361 6c6c 7920 6765 6e65 tomatically gene │ │ │ +00012e90: 7261 7465 643c 2f64 643e 0a3c 6464 3e3c rated
      .
      < │ │ │ +00012ea0: 636f 6465 3e6d 6178 4172 6561 3c2f 636f code>maxArea - automatica │ │ │ +00012ec0: 6c6c 7920 6765 6e65 7261 7465 643c 2f64 lly generated.
      min │ │ │ +00012ee0: 5072 6f62 6162 696c 6974 793c 2f63 6f64 Probability - automatical │ │ │ +00012f00: 6c79 2067 656e 6572 6174 6564 3c2f 6464 ly generated
      .
      Returns:.
      automati │ │ │ +00012f30: 6361 6c6c 7920 6765 6e65 7261 7465 643c cally generated< │ │ │ +00012f40: 2f64 643e 0a3c 2f64 6c3e 0a3c 2f73 6563 /dd>.
      ..
    • .
    • │ │ │ +00012f60: 0a3c 7365 6374 696f 6e20 636c 6173 733d .
      .

      createER │ │ │ +00012fd0: 4669 6c74 6572 4e4d 313c 2f68 333e 0a3c FilterNM1

      .< │ │ │ +00012fe0: 6469 7620 636c 6173 733d 226d 656d 6265 div class="membe │ │ │ +00012ff0: 722d 7369 676e 6174 7572 6522 3e3c 7370 r-signature">public stat │ │ │ +00013020: 6963 3c2f 7370 616e 3e26 6e62 7370 3b3c ic < │ │ │ +00013030: 7370 616e 2063 6c61 7373 3d22 7265 7475 span class="retu │ │ │ +00013040: 726e 2d74 7970 6522 3e3c 6120 6872 6566 rn-type">ERFilter createERFi │ │ │ +000130c0: 6c74 6572 4e4d 313c 2f73 7061 6e3e 3c77 lterNM1(E │ │ │ +00013130: 5246 696c 7465 725f 4361 6c6c 6261 636b RFilter_Callback │ │ │ +00013140: 3c2f 613e 266e 6273 703b 6362 2c0a 2069  cb,. i │ │ │ +00013150: 6e74 266e 6273 703b 7468 7265 7368 6f6c nt threshol │ │ │ +00013160: 6444 656c 7461 2c0a 2066 6c6f 6174 266e dDelta,. float&n │ │ │ +00013170: 6273 703b 6d69 6e41 7265 612c 0a20 666c bsp;minArea,. fl │ │ │ +00013180: 6f61 7426 6e62 7370 3b6d 6178 4172 6561 oat maxArea │ │ │ +00013190: 293c 2f73 7061 6e3e 3c2f 6469 763e 0a3c ).< │ │ │ +000131a0: 6469 7620 636c 6173 733d 2262 6c6f 636b div class="block │ │ │ +000131b0: 223e 4372 6561 7465 2061 6e20 4578 7472 ">Create an Extr │ │ │ +000131c0: 656d 616c 2052 6567 696f 6e20 4669 6c74 emal Region Filt │ │ │ +000131d0: 6572 2066 6f72 2074 6865 2031 7374 2073 er for the 1st s │ │ │ +000131e0: 7461 6765 2063 6c61 7373 6966 6965 7220 tage classifier │ │ │ +000131f0: 6f66 204e 2661 6d70 3b4d 2061 6c67 6f72 of N&M algor │ │ │ +00013200: 6974 686d 2043 4954 453a 204e 6575 6d61 ithm CITE: Neuma │ │ │ +00013210: 6e6e 3132 2e0a 0a20 6c6f 6164 436c 6173 nn12... loadClas │ │ │ +00013220: 7369 6669 6572 4e4d 312c 2065 2e67 2e20 sifierNM1, e.g. │ │ │ +00013230: 6672 6f6d 2066 696c 6520 696e 2073 616d from file in sam │ │ │ +00013240: 706c 6573 2f63 7070 2f74 7261 696e 6564 ples/cpp/trained │ │ │ +00013250: 5f63 6c61 7373 6966 6965 724e 4d31 2e78 _classifierNM1.x │ │ │ +00013260: 6d6c 0a0a 2054 6865 2063 6f6d 706f 6e65 ml.. The compone │ │ │ +00013270: 6e74 2074 7265 6520 6f66 2074 6865 2069 nt tree of the i │ │ │ +00013280: 6d61 6765 2069 7320 6578 7472 6163 7465 mage is extracte │ │ │ +00013290: 6420 6279 2061 2074 6872 6573 686f 6c64 d by a threshold │ │ │ +000132a0: 2069 6e63 7265 6173 6564 2073 7465 7020 increased step │ │ │ +000132b0: 6279 2073 7465 7020 6672 6f6d 2030 2074 by step from 0 t │ │ │ +000132c0: 6f20 3235 352c 0a20 696e 6372 656d 656e o 255,. incremen │ │ │ +000132d0: 7461 6c6c 7920 636f 6d70 7574 6162 6c65 tally computable │ │ │ +000132e0: 2064 6573 6372 6970 746f 7273 2028 6173 descriptors (as │ │ │ +000132f0: 7065 6374 5f72 6174 696f 2c20 636f 6d70 pect_ratio, comp │ │ │ +00013300: 6163 746e 6573 732c 206e 756d 6265 7220 actness, number │ │ │ +00013310: 6f66 2068 6f6c 6573 2c20 616e 6420 6e75 of holes, and nu │ │ │ +00013320: 6d62 6572 206f 660a 2068 6f72 697a 6f6e mber of. horizon │ │ │ +00013330: 7461 6c20 6372 6f73 7369 6e67 7329 2061 tal crossings) a │ │ │ +00013340: 7265 2063 6f6d 7075 7465 6420 666f 7220 re computed for │ │ │ +00013350: 6561 6368 2045 5220 616e 6420 7573 6564 each ER and used │ │ │ +00013360: 2061 7320 6665 6174 7572 6573 2066 6f72 as features for │ │ │ +00013370: 2061 2063 6c61 7373 6966 6965 7220 7768 a classifier wh │ │ │ +00013380: 6963 6820 6573 7469 6d61 7465 730a 2074 ich estimates. t │ │ │ +00013390: 6865 2063 6c61 7373 2d63 6f6e 6469 7469 he class-conditi │ │ │ +000133a0: 6f6e 616c 2070 726f 6261 6269 6c69 7479 onal probability │ │ │ +000133b0: 2050 2865 727c 6368 6172 6163 7465 7229 P(er|character) │ │ │ +000133c0: 2e20 5468 6520 7661 6c75 6520 6f66 2050 . The value of P │ │ │ +000133d0: 2865 727c 6368 6172 6163 7465 7229 2069 (er|character) i │ │ │ +000133e0: 7320 7472 6163 6b65 6420 7573 696e 6720 s tracked using │ │ │ +000133f0: 7468 650a 2069 6e63 6c75 7369 6f6e 2072 the. inclusion r │ │ │ +00013400: 656c 6174 696f 6e20 6f66 2045 5220 6163 elation of ER ac │ │ │ +00013410: 726f 7373 2061 6c6c 2074 6872 6573 686f ross all thresho │ │ │ +00013420: 6c64 7320 616e 6420 6f6e 6c79 2074 6865 lds and only the │ │ │ +00013430: 2045 5273 2077 6869 6368 2063 6f72 7265 ERs which corre │ │ │ +00013440: 7370 6f6e 6420 746f 206c 6f63 616c 206d spond to local m │ │ │ +00013450: 6178 696d 756d 206f 660a 2074 6865 2070 aximum of. the p │ │ │ +00013460: 726f 6261 6269 6c69 7479 2050 2865 727c robability P(er| │ │ │ +00013470: 6368 6172 6163 7465 7229 2061 7265 2073 character) are s │ │ │ +00013480: 656c 6563 7465 6420 2869 6620 7468 6520 elected (if the │ │ │ +00013490: 6c6f 6361 6c20 6d61 7869 6d75 6d20 6f66 local maximum of │ │ │ +000134a0: 2074 6865 2070 726f 6261 6269 6c69 7479 the probability │ │ │ +000134b0: 2069 7320 6162 6f76 6520 610a 2067 6c6f is above a. glo │ │ │ +000134c0: 6261 6c20 6c69 6d69 7420 706d 696e 2061 bal limit pmin a │ │ │ +000134d0: 6e64 2074 6865 2064 6966 6665 7265 6e63 nd the differenc │ │ │ +000134e0: 6520 6265 7477 6565 6e20 6c6f 6361 6c20 e between local │ │ │ +000134f0: 6d61 7869 6d75 6d20 616e 6420 6c6f 6361 maximum and loca │ │ │ +00013500: 6c20 6d69 6e69 6d75 6d20 6973 2067 7265 l minimum is gre │ │ │ +00013510: 6174 6572 2074 6861 6e0a 206d 696e 5072 ater than. minPr │ │ │ +00013520: 6f62 6162 696c 6974 7944 6966 6629 2e3c obabilityDiff).< │ │ │ +00013530: 2f64 6976 3e0a 3c64 6c20 636c 6173 733d /div>.
      .
      Par │ │ │ +00013550: 616d 6574 6572 733a 3c2f 6474 3e0a 3c64 ameters:
      .cb - automaticall │ │ │ +00013580: 7920 6765 6e65 7261 7465 643c 2f64 643e y generated │ │ │ +00013590: 0a3c 6464 3e3c 636f 6465 3e74 6872 6573 .
      thres │ │ │ +000135a0: 686f 6c64 4465 6c74 613c 2f63 6f64 653e holdDelta │ │ │ +000135b0: 202d 2061 7574 6f6d 6174 6963 616c 6c79 - automatically │ │ │ +000135c0: 2067 656e 6572 6174 6564 3c2f 6464 3e0a generated
      . │ │ │ +000135d0: 3c64 643e 3c63 6f64 653e 6d69 6e41 7265
      minAre │ │ │ +000135e0: 613c 2f63 6f64 653e 202d 2061 7574 6f6d a - autom │ │ │ +000135f0: 6174 6963 616c 6c79 2067 656e 6572 6174 atically generat │ │ │ +00013600: 6564 3c2f 6464 3e0a 3c64 643e 3c63 6f64 ed
      .
      maxArea │ │ │ +00013620: 202d 2061 7574 6f6d 6174 6963 616c 6c79 - automatically │ │ │ +00013630: 2067 656e 6572 6174 6564 3c2f 6464 3e0a generated
      . │ │ │ +00013640: 3c64 743e 5265 7475 726e 733a 3c2f 6474
      Returns:
      .
      automatica │ │ │ +00013660: 6c6c 7920 6765 6e65 7261 7465 643c 2f64 lly generated.
      ..
    • .
    • .< │ │ │ +00013690: 7365 6374 696f 6e20 636c 6173 733d 2264 section class="d │ │ │ +000136a0: 6574 6169 6c22 2069 643d 2263 7265 6174 etail" id="creat │ │ │ +000136b0: 6545 5246 696c 7465 724e 4d31 286f 7267 eERFilterNM1(org │ │ │ +000136c0: 2e6f 7065 6e63 762e 7465 7874 2e45 5246 .opencv.text.ERF │ │ │ +000136d0: 696c 7465 725f 4361 6c6c 6261 636b 2c69 ilter_Callback,i │ │ │ +000136e0: 6e74 2c66 6c6f 6174 2922 3e0a 3c68 333e nt,float)">.

      │ │ │ +000136f0: 6372 6561 7465 4552 4669 6c74 6572 4e4d createERFilterNM │ │ │ +00013700: 313c 2f68 333e 0a3c 6469 7620 636c 6173 1

      .
      pub │ │ │ +00013740: 6c69 6320 7374 6174 6963 3c2f 7370 616e lic static ERFilt │ │ │ +000137b0: 6572 3c2f 613e 3c2f 7370 616e 3e26 6e62 er&nb │ │ │ +000137c0: 7370 3b3c 7370 616e 2063 6c61 7373 3d22 sp;cr │ │ │ +000137e0: 6561 7465 4552 4669 6c74 6572 4e4d 313c eateERFilterNM1< │ │ │ +000137f0: 2f73 7061 6e3e 3c77 6272 3e3c 7370 616e /span>(ERFilter_ │ │ │ +00013860: 4361 6c6c 6261 636b 3c2f 613e 266e 6273 Callback&nbs │ │ │ +00013870: 703b 6362 2c0a 2069 6e74 266e 6273 703b p;cb,. int  │ │ │ +00013880: 7468 7265 7368 6f6c 6444 656c 7461 2c0a thresholdDelta,. │ │ │ +00013890: 2066 6c6f 6174 266e 6273 703b 6d69 6e41 float minA │ │ │ +000138a0: 7265 6129 3c2f 7370 616e 3e3c 2f64 6976 rea)
      .
      Create an E │ │ │ +000138d0: 7874 7265 6d61 6c20 5265 6769 6f6e 2046 xtremal Region F │ │ │ +000138e0: 696c 7465 7220 666f 7220 7468 6520 3173 ilter for the 1s │ │ │ +000138f0: 7420 7374 6167 6520 636c 6173 7369 6669 t stage classifi │ │ │ +00013900: 6572 206f 6620 4e26 616d 703b 4d20 616c er of N&M al │ │ │ +00013910: 676f 7269 7468 6d20 4349 5445 3a20 4e65 gorithm CITE: Ne │ │ │ +00013920: 756d 616e 6e31 322e 0a0a 206c 6f61 6443 umann12... loadC │ │ │ +00013930: 6c61 7373 6966 6965 724e 4d31 2c20 652e lassifierNM1, e. │ │ │ +00013940: 672e 2066 726f 6d20 6669 6c65 2069 6e20 g. from file in │ │ │ +00013950: 7361 6d70 6c65 732f 6370 702f 7472 6169 samples/cpp/trai │ │ │ +00013960: 6e65 645f 636c 6173 7369 6669 6572 4e4d ned_classifierNM │ │ │ +00013970: 312e 786d 6c0a 0a20 5468 6520 636f 6d70 1.xml.. The comp │ │ │ +00013980: 6f6e 656e 7420 7472 6565 206f 6620 7468 onent tree of th │ │ │ +00013990: 6520 696d 6167 6520 6973 2065 7874 7261 e image is extra │ │ │ +000139a0: 6374 6564 2062 7920 6120 7468 7265 7368 cted by a thresh │ │ │ +000139b0: 6f6c 6420 696e 6372 6561 7365 6420 7374 old increased st │ │ │ +000139c0: 6570 2062 7920 7374 6570 2066 726f 6d20 ep by step from │ │ │ +000139d0: 3020 746f 2032 3535 2c0a 2069 6e63 7265 0 to 255,. incre │ │ │ +000139e0: 6d65 6e74 616c 6c79 2063 6f6d 7075 7461 mentally computa │ │ │ +000139f0: 626c 6520 6465 7363 7269 7074 6f72 7320 ble descriptors │ │ │ +00013a00: 2861 7370 6563 745f 7261 7469 6f2c 2063 (aspect_ratio, c │ │ │ +00013a10: 6f6d 7061 6374 6e65 7373 2c20 6e75 6d62 ompactness, numb │ │ │ +00013a20: 6572 206f 6620 686f 6c65 732c 2061 6e64 er of holes, and │ │ │ +00013a30: 206e 756d 6265 7220 6f66 0a20 686f 7269 number of. hori │ │ │ +00013a40: 7a6f 6e74 616c 2063 726f 7373 696e 6773 zontal crossings │ │ │ +00013a50: 2920 6172 6520 636f 6d70 7574 6564 2066 ) are computed f │ │ │ +00013a60: 6f72 2065 6163 6820 4552 2061 6e64 2075 or each ER and u │ │ │ +00013a70: 7365 6420 6173 2066 6561 7475 7265 7320 sed as features │ │ │ +00013a80: 666f 7220 6120 636c 6173 7369 6669 6572 for a classifier │ │ │ +00013a90: 2077 6869 6368 2065 7374 696d 6174 6573 which estimates │ │ │ +00013aa0: 0a20 7468 6520 636c 6173 732d 636f 6e64 . the class-cond │ │ │ +00013ab0: 6974 696f 6e61 6c20 7072 6f62 6162 696c itional probabil │ │ │ +00013ac0: 6974 7920 5028 6572 7c63 6861 7261 6374 ity P(er|charact │ │ │ +00013ad0: 6572 292e 2054 6865 2076 616c 7565 206f er). The value o │ │ │ +00013ae0: 6620 5028 6572 7c63 6861 7261 6374 6572 f P(er|character │ │ │ +00013af0: 2920 6973 2074 7261 636b 6564 2075 7369 ) is tracked usi │ │ │ +00013b00: 6e67 2074 6865 0a20 696e 636c 7573 696f ng the. inclusio │ │ │ +00013b10: 6e20 7265 6c61 7469 6f6e 206f 6620 4552 n relation of ER │ │ │ +00013b20: 2061 6372 6f73 7320 616c 6c20 7468 7265 across all thre │ │ │ +00013b30: 7368 6f6c 6473 2061 6e64 206f 6e6c 7920 sholds and only │ │ │ +00013b40: 7468 6520 4552 7320 7768 6963 6820 636f the ERs which co │ │ │ +00013b50: 7272 6573 706f 6e64 2074 6f20 6c6f 6361 rrespond to loca │ │ │ +00013b60: 6c20 6d61 7869 6d75 6d20 6f66 0a20 7468 l maximum of. th │ │ │ +00013b70: 6520 7072 6f62 6162 696c 6974 7920 5028 e probability P( │ │ │ +00013b80: 6572 7c63 6861 7261 6374 6572 2920 6172 er|character) ar │ │ │ +00013b90: 6520 7365 6c65 6374 6564 2028 6966 2074 e selected (if t │ │ │ +00013ba0: 6865 206c 6f63 616c 206d 6178 696d 756d he local maximum │ │ │ +00013bb0: 206f 6620 7468 6520 7072 6f62 6162 696c of the probabil │ │ │ +00013bc0: 6974 7920 6973 2061 626f 7665 2061 0a20 ity is above a. │ │ │ +00013bd0: 676c 6f62 616c 206c 696d 6974 2070 6d69 global limit pmi │ │ │ +00013be0: 6e20 616e 6420 7468 6520 6469 6666 6572 n and the differ │ │ │ +00013bf0: 656e 6365 2062 6574 7765 656e 206c 6f63 ence between loc │ │ │ +00013c00: 616c 206d 6178 696d 756d 2061 6e64 206c al maximum and l │ │ │ +00013c10: 6f63 616c 206d 696e 696d 756d 2069 7320 ocal minimum is │ │ │ +00013c20: 6772 6561 7465 7220 7468 616e 0a20 6d69 greater than. mi │ │ │ +00013c30: 6e50 726f 6261 6269 6c69 7479 4469 6666 nProbabilityDiff │ │ │ +00013c40: 292e 3c2f 6469 763e 0a3c 646c 2063 6c61 ).
      .
      .
      │ │ │ +00013c60: 5061 7261 6d65 7465 7273 3a3c 2f64 743e Parameters:
      │ │ │ +00013c70: 0a3c 6464 3e3c 636f 6465 3e63 623c 2f63 .
      cb - automatic │ │ │ +00013c90: 616c 6c79 2067 656e 6572 6174 6564 3c2f ally generated.
      th │ │ │ +00013cb0: 7265 7368 6f6c 6444 656c 7461 3c2f 636f resholdDelta - automatica │ │ │ +00013cd0: 6c6c 7920 6765 6e65 7261 7465 643c 2f64 lly generated.
      min │ │ │ +00013cf0: 4172 6561 3c2f 636f 6465 3e20 2d20 6175 Area - au │ │ │ +00013d00: 746f 6d61 7469 6361 6c6c 7920 6765 6e65 tomatically gene │ │ │ +00013d10: 7261 7465 643c 2f64 643e 0a3c 6474 3e52 rated
      .
      R │ │ │ +00013d20: 6574 7572 6e73 3a3c 2f64 743e 0a3c 6464 eturns:
      .
      automatically g │ │ │ +00013d40: 656e 6572 6174 6564 3c2f 6464 3e0a 3c2f enerated
      ...< │ │ │ +00013d60: 2f6c 693e 0a3c 6c69 3e0a 3c73 6563 7469 /li>.
    • . │ │ │ +00013dc0: 0a3c 6833 3e63 7265 6174 6545 5246 696c .

      createERFil │ │ │ +00013dd0: 7465 724e 4d31 3c2f 6833 3e0a 3c64 6976 terNM1

      .
      public static< │ │ │ +00013e20: 2f73 7061 6e3e 266e 6273 703b 3c73 7061 /span> E │ │ │ +00013e80: 5246 696c 7465 723c 2f61 3e3c 2f73 7061 RFilter createERFilte │ │ │ +00013ec0: 724e 4d31 3c2f 7370 616e 3e3c 7762 723e rNM1 │ │ │ +00013ed0: 3c73 7061 6e20 636c 6173 733d 2270 6172 (ERFi │ │ │ +00013f30: 6c74 6572 5f43 616c 6c62 6163 6b3c 2f61 lter_Callback cb,. int& │ │ │ +00013f50: 6e62 7370 3b74 6872 6573 686f 6c64 4465 nbsp;thresholdDe │ │ │ +00013f60: 6c74 6129 3c2f 7370 616e 3e3c 2f64 6976 lta)
      .
      Create an E │ │ │ +00013f90: 7874 7265 6d61 6c20 5265 6769 6f6e 2046 xtremal Region F │ │ │ +00013fa0: 696c 7465 7220 666f 7220 7468 6520 3173 ilter for the 1s │ │ │ +00013fb0: 7420 7374 6167 6520 636c 6173 7369 6669 t stage classifi │ │ │ +00013fc0: 6572 206f 6620 4e26 616d 703b 4d20 616c er of N&M al │ │ │ +00013fd0: 676f 7269 7468 6d20 4349 5445 3a20 4e65 gorithm CITE: Ne │ │ │ +00013fe0: 756d 616e 6e31 322e 0a0a 206c 6f61 6443 umann12... loadC │ │ │ +00013ff0: 6c61 7373 6966 6965 724e 4d31 2c20 652e lassifierNM1, e. │ │ │ +00014000: 672e 2066 726f 6d20 6669 6c65 2069 6e20 g. from file in │ │ │ +00014010: 7361 6d70 6c65 732f 6370 702f 7472 6169 samples/cpp/trai │ │ │ +00014020: 6e65 645f 636c 6173 7369 6669 6572 4e4d ned_classifierNM │ │ │ +00014030: 312e 786d 6c0a 0a20 5468 6520 636f 6d70 1.xml.. The comp │ │ │ +00014040: 6f6e 656e 7420 7472 6565 206f 6620 7468 onent tree of th │ │ │ +00014050: 6520 696d 6167 6520 6973 2065 7874 7261 e image is extra │ │ │ +00014060: 6374 6564 2062 7920 6120 7468 7265 7368 cted by a thresh │ │ │ +00014070: 6f6c 6420 696e 6372 6561 7365 6420 7374 old increased st │ │ │ +00014080: 6570 2062 7920 7374 6570 2066 726f 6d20 ep by step from │ │ │ +00014090: 3020 746f 2032 3535 2c0a 2069 6e63 7265 0 to 255,. incre │ │ │ +000140a0: 6d65 6e74 616c 6c79 2063 6f6d 7075 7461 mentally computa │ │ │ +000140b0: 626c 6520 6465 7363 7269 7074 6f72 7320 ble descriptors │ │ │ +000140c0: 2861 7370 6563 745f 7261 7469 6f2c 2063 (aspect_ratio, c │ │ │ +000140d0: 6f6d 7061 6374 6e65 7373 2c20 6e75 6d62 ompactness, numb │ │ │ +000140e0: 6572 206f 6620 686f 6c65 732c 2061 6e64 er of holes, and │ │ │ +000140f0: 206e 756d 6265 7220 6f66 0a20 686f 7269 number of. hori │ │ │ +00014100: 7a6f 6e74 616c 2063 726f 7373 696e 6773 zontal crossings │ │ │ +00014110: 2920 6172 6520 636f 6d70 7574 6564 2066 ) are computed f │ │ │ +00014120: 6f72 2065 6163 6820 4552 2061 6e64 2075 or each ER and u │ │ │ +00014130: 7365 6420 6173 2066 6561 7475 7265 7320 sed as features │ │ │ +00014140: 666f 7220 6120 636c 6173 7369 6669 6572 for a classifier │ │ │ +00014150: 2077 6869 6368 2065 7374 696d 6174 6573 which estimates │ │ │ +00014160: 0a20 7468 6520 636c 6173 732d 636f 6e64 . the class-cond │ │ │ +00014170: 6974 696f 6e61 6c20 7072 6f62 6162 696c itional probabil │ │ │ +00014180: 6974 7920 5028 6572 7c63 6861 7261 6374 ity P(er|charact │ │ │ +00014190: 6572 292e 2054 6865 2076 616c 7565 206f er). The value o │ │ │ +000141a0: 6620 5028 6572 7c63 6861 7261 6374 6572 f P(er|character │ │ │ +000141b0: 2920 6973 2074 7261 636b 6564 2075 7369 ) is tracked usi │ │ │ +000141c0: 6e67 2074 6865 0a20 696e 636c 7573 696f ng the. inclusio │ │ │ +000141d0: 6e20 7265 6c61 7469 6f6e 206f 6620 4552 n relation of ER │ │ │ +000141e0: 2061 6372 6f73 7320 616c 6c20 7468 7265 across all thre │ │ │ +000141f0: 7368 6f6c 6473 2061 6e64 206f 6e6c 7920 sholds and only │ │ │ +00014200: 7468 6520 4552 7320 7768 6963 6820 636f the ERs which co │ │ │ +00014210: 7272 6573 706f 6e64 2074 6f20 6c6f 6361 rrespond to loca │ │ │ +00014220: 6c20 6d61 7869 6d75 6d20 6f66 0a20 7468 l maximum of. th │ │ │ +00014230: 6520 7072 6f62 6162 696c 6974 7920 5028 e probability P( │ │ │ +00014240: 6572 7c63 6861 7261 6374 6572 2920 6172 er|character) ar │ │ │ +00014250: 6520 7365 6c65 6374 6564 2028 6966 2074 e selected (if t │ │ │ +00014260: 6865 206c 6f63 616c 206d 6178 696d 756d he local maximum │ │ │ +00014270: 206f 6620 7468 6520 7072 6f62 6162 696c of the probabil │ │ │ +00014280: 6974 7920 6973 2061 626f 7665 2061 0a20 ity is above a. │ │ │ +00014290: 676c 6f62 616c 206c 696d 6974 2070 6d69 global limit pmi │ │ │ +000142a0: 6e20 616e 6420 7468 6520 6469 6666 6572 n and the differ │ │ │ +000142b0: 656e 6365 2062 6574 7765 656e 206c 6f63 ence between loc │ │ │ +000142c0: 616c 206d 6178 696d 756d 2061 6e64 206c al maximum and l │ │ │ +000142d0: 6f63 616c 206d 696e 696d 756d 2069 7320 ocal minimum is │ │ │ +000142e0: 6772 6561 7465 7220 7468 616e 0a20 6d69 greater than. mi │ │ │ +000142f0: 6e50 726f 6261 6269 6c69 7479 4469 6666 nProbabilityDiff │ │ │ +00014300: 292e 3c2f 6469 763e 0a3c 646c 2063 6c61 ).
      .
      .
      │ │ │ +00014320: 5061 7261 6d65 7465 7273 3a3c 2f64 743e Parameters:
      │ │ │ +00014330: 0a3c 6464 3e3c 636f 6465 3e63 623c 2f63 .
      cb - automatic │ │ │ +00014350: 616c 6c79 2067 656e 6572 6174 6564 3c2f ally generated.
      th │ │ │ +00014370: 7265 7368 6f6c 6444 656c 7461 3c2f 636f resholdDelta - automatica │ │ │ +00014390: 6c6c 7920 6765 6e65 7261 7465 643c 2f64 lly generated.
      Returns:< │ │ │ +000143b0: 2f64 743e 0a3c 6464 3e61 7574 6f6d 6174 /dt>.
      automat │ │ │ +000143c0: 6963 616c 6c79 2067 656e 6572 6174 6564 ically generated │ │ │ +000143d0: 3c2f 6464 3e0a 3c2f 646c 3e0a 3c2f 7365
      .
      ..
    • .
    • .
      .

      createE │ │ │ +00014450: 5246 696c 7465 724e 4d31 3c2f 6833 3e0a RFilterNM1

      . │ │ │ +00014460: 3c64 6976 2063 6c61 7373 3d22 6d65 6d62
      public sta │ │ │ +000144a0: 7469 633c 2f73 7061 6e3e 266e 6273 703b tic  │ │ │ +000144b0: 3c73 7061 6e20 636c 6173 733d 2272 6574 ERFilter< │ │ │ +00014510: 2f73 7061 6e3e 266e 6273 703b 3c73 7061 /span> createERF │ │ │ +00014540: 696c 7465 724e 4d31 3c2f 7370 616e 3e3c ilterNM1< │ │ │ +00014550: 7762 723e 3c73 7061 6e20 636c 6173 733d wbr>( │ │ │ +000145b0: 4552 4669 6c74 6572 5f43 616c 6c62 6163 ERFilter_Callbac │ │ │ +000145c0: 6b3c 2f61 3e26 6e62 7370 3b63 6229 3c2f k cb)
      .
      C │ │ │ +000145f0: 7265 6174 6520 616e 2045 7874 7265 6d61 reate an Extrema │ │ │ +00014600: 6c20 5265 6769 6f6e 2046 696c 7465 7220 l Region Filter │ │ │ +00014610: 666f 7220 7468 6520 3173 7420 7374 6167 for the 1st stag │ │ │ +00014620: 6520 636c 6173 7369 6669 6572 206f 6620 e classifier of │ │ │ +00014630: 4e26 616d 703b 4d20 616c 676f 7269 7468 N&M algorith │ │ │ +00014640: 6d20 4349 5445 3a20 4e65 756d 616e 6e31 m CITE: Neumann1 │ │ │ +00014650: 322e 0a0a 206c 6f61 6443 6c61 7373 6966 2... loadClassif │ │ │ +00014660: 6965 724e 4d31 2c20 652e 672e 2066 726f ierNM1, e.g. fro │ │ │ +00014670: 6d20 6669 6c65 2069 6e20 7361 6d70 6c65 m file in sample │ │ │ +00014680: 732f 6370 702f 7472 6169 6e65 645f 636c s/cpp/trained_cl │ │ │ +00014690: 6173 7369 6669 6572 4e4d 312e 786d 6c0a assifierNM1.xml. │ │ │ +000146a0: 0a20 5468 6520 636f 6d70 6f6e 656e 7420 . The component │ │ │ +000146b0: 7472 6565 206f 6620 7468 6520 696d 6167 tree of the imag │ │ │ +000146c0: 6520 6973 2065 7874 7261 6374 6564 2062 e is extracted b │ │ │ +000146d0: 7920 6120 7468 7265 7368 6f6c 6420 696e y a threshold in │ │ │ +000146e0: 6372 6561 7365 6420 7374 6570 2062 7920 creased step by │ │ │ +000146f0: 7374 6570 2066 726f 6d20 3020 746f 2032 step from 0 to 2 │ │ │ +00014700: 3535 2c0a 2069 6e63 7265 6d65 6e74 616c 55,. incremental │ │ │ +00014710: 6c79 2063 6f6d 7075 7461 626c 6520 6465 ly computable de │ │ │ +00014720: 7363 7269 7074 6f72 7320 2861 7370 6563 scriptors (aspec │ │ │ +00014730: 745f 7261 7469 6f2c 2063 6f6d 7061 6374 t_ratio, compact │ │ │ +00014740: 6e65 7373 2c20 6e75 6d62 6572 206f 6620 ness, number of │ │ │ +00014750: 686f 6c65 732c 2061 6e64 206e 756d 6265 holes, and numbe │ │ │ +00014760: 7220 6f66 0a20 686f 7269 7a6f 6e74 616c r of. horizontal │ │ │ +00014770: 2063 726f 7373 696e 6773 2920 6172 6520 crossings) are │ │ │ +00014780: 636f 6d70 7574 6564 2066 6f72 2065 6163 computed for eac │ │ │ +00014790: 6820 4552 2061 6e64 2075 7365 6420 6173 h ER and used as │ │ │ +000147a0: 2066 6561 7475 7265 7320 666f 7220 6120 features for a │ │ │ +000147b0: 636c 6173 7369 6669 6572 2077 6869 6368 classifier which │ │ │ +000147c0: 2065 7374 696d 6174 6573 0a20 7468 6520 estimates. the │ │ │ +000147d0: 636c 6173 732d 636f 6e64 6974 696f 6e61 class-conditiona │ │ │ +000147e0: 6c20 7072 6f62 6162 696c 6974 7920 5028 l probability P( │ │ │ +000147f0: 6572 7c63 6861 7261 6374 6572 292e 2054 er|character). T │ │ │ +00014800: 6865 2076 616c 7565 206f 6620 5028 6572 he value of P(er │ │ │ +00014810: 7c63 6861 7261 6374 6572 2920 6973 2074 |character) is t │ │ │ +00014820: 7261 636b 6564 2075 7369 6e67 2074 6865 racked using the │ │ │ +00014830: 0a20 696e 636c 7573 696f 6e20 7265 6c61 . inclusion rela │ │ │ +00014840: 7469 6f6e 206f 6620 4552 2061 6372 6f73 tion of ER acros │ │ │ +00014850: 7320 616c 6c20 7468 7265 7368 6f6c 6473 s all thresholds │ │ │ +00014860: 2061 6e64 206f 6e6c 7920 7468 6520 4552 and only the ER │ │ │ +00014870: 7320 7768 6963 6820 636f 7272 6573 706f s which correspo │ │ │ +00014880: 6e64 2074 6f20 6c6f 6361 6c20 6d61 7869 nd to local maxi │ │ │ +00014890: 6d75 6d20 6f66 0a20 7468 6520 7072 6f62 mum of. the prob │ │ │ +000148a0: 6162 696c 6974 7920 5028 6572 7c63 6861 ability P(er|cha │ │ │ +000148b0: 7261 6374 6572 2920 6172 6520 7365 6c65 racter) are sele │ │ │ +000148c0: 6374 6564 2028 6966 2074 6865 206c 6f63 cted (if the loc │ │ │ +000148d0: 616c 206d 6178 696d 756d 206f 6620 7468 al maximum of th │ │ │ +000148e0: 6520 7072 6f62 6162 696c 6974 7920 6973 e probability is │ │ │ +000148f0: 2061 626f 7665 2061 0a20 676c 6f62 616c above a. global │ │ │ +00014900: 206c 696d 6974 2070 6d69 6e20 616e 6420 limit pmin and │ │ │ +00014910: 7468 6520 6469 6666 6572 656e 6365 2062 the difference b │ │ │ +00014920: 6574 7765 656e 206c 6f63 616c 206d 6178 etween local max │ │ │ +00014930: 696d 756d 2061 6e64 206c 6f63 616c 206d imum and local m │ │ │ +00014940: 696e 696d 756d 2069 7320 6772 6561 7465 inimum is greate │ │ │ +00014950: 7220 7468 616e 0a20 6d69 6e50 726f 6261 r than. minProba │ │ │ +00014960: 6269 6c69 7479 4469 6666 292e 3c2f 6469 bilityDiff)..
      .
      Parame │ │ │ +00014990: 7465 7273 3a3c 2f64 743e 0a3c 6464 3e3c ters:
      .
      < │ │ │ +000149a0: 636f 6465 3e63 623c 2f63 6f64 653e 202d code>cb - │ │ │ +000149b0: 2061 7574 6f6d 6174 6963 616c 6c79 2067 automatically g │ │ │ +000149c0: 656e 6572 6174 6564 3c2f 6464 3e0a 3c64 enerated
      .Returns:. │ │ │ +000149e0: 3c64 643e 6175 746f 6d61 7469 6361 6c6c
      automaticall │ │ │ +000149f0: 7920 6765 6e65 7261 7465 643c 2f64 643e y generated
      │ │ │ +00014a00: 0a3c 2f64 6c3e 0a3c 2f73 6563 7469 6f6e .
      .
      .
    • .
    • ..

      create │ │ │ +00014a80: 4552 4669 6c74 6572 4e4d 323c 2f68 333e ERFilterNM2

      │ │ │ +00014a90: 0a3c 6469 7620 636c 6173 733d 226d 656d .
      < │ │ │ +00014ab0: 7370 616e 2063 6c61 7373 3d22 6d6f 6469 span class="modi │ │ │ +00014ac0: 6669 6572 7322 3e70 7562 6c69 6320 7374 fiers">public st │ │ │ +00014ad0: 6174 6963 3c2f 7370 616e 3e26 6e62 7370 atic  │ │ │ +00014ae0: 3b3c 7370 616e 2063 6c61 7373 3d22 7265 ;ERFilter │ │ │ +00014b40: 3c2f 7370 616e 3e26 6e62 7370 3b3c 7370  createER │ │ │ +00014b70: 4669 6c74 6572 4e4d 323c 2f73 7061 6e3e FilterNM2 │ │ │ +00014b80: 3c77 6272 3e3c 7370 616e 2063 6c61 7373 (< │ │ │ +00014ba0: 6120 6872 6566 3d22 4552 4669 6c74 6572 a href="ERFilter │ │ │ +00014bb0: 5f43 616c 6c62 6163 6b2e 6874 6d6c 2220 _Callback.html" │ │ │ +00014bc0: 7469 746c 653d 2263 6c61 7373 2069 6e20 title="class in │ │ │ +00014bd0: 6f72 672e 6f70 656e 6376 2e74 6578 7422 org.opencv.text" │ │ │ +00014be0: 3e45 5246 696c 7465 725f 4361 6c6c 6261 >ERFilter_Callba │ │ │ +00014bf0: 636b 3c2f 613e 266e 6273 703b 6362 2c0a ck cb,. │ │ │ +00014c00: 2066 6c6f 6174 266e 6273 703b 6d69 6e50 float minP │ │ │ +00014c10: 726f 6261 6269 6c69 7479 293c 2f73 7061 robability)
      .
      Crea │ │ │ +00014c40: 7465 2061 6e20 4578 7472 656d 616c 2052 te an Extremal R │ │ │ +00014c50: 6567 696f 6e20 4669 6c74 6572 2066 6f72 egion Filter for │ │ │ +00014c60: 2074 6865 2032 6e64 2073 7461 6765 2063 the 2nd stage c │ │ │ +00014c70: 6c61 7373 6966 6965 7220 6f66 204e 2661 lassifier of N&a │ │ │ +00014c80: 6d70 3b4d 2061 6c67 6f72 6974 686d 2043 mp;M algorithm C │ │ │ +00014c90: 4954 453a 204e 6575 6d61 6e6e 3132 2e0a ITE: Neumann12.. │ │ │ +00014ca0: 0a20 6c6f 6164 436c 6173 7369 6669 6572 . loadClassifier │ │ │ +00014cb0: 4e4d 322c 2065 2e67 2e20 6672 6f6d 2066 NM2, e.g. from f │ │ │ +00014cc0: 696c 6520 696e 2073 616d 706c 6573 2f63 ile in samples/c │ │ │ +00014cd0: 7070 2f74 7261 696e 6564 5f63 6c61 7373 pp/trained_class │ │ │ +00014ce0: 6966 6965 724e 4d32 2e78 6d6c 0a0a 2049 ifierNM2.xml.. I │ │ │ +00014cf0: 6e20 7468 6520 7365 636f 6e64 2073 7461 n the second sta │ │ │ +00014d00: 6765 2c20 7468 6520 4552 7320 7468 6174 ge, the ERs that │ │ │ +00014d10: 2070 6173 7365 6420 7468 6520 6669 7273 passed the firs │ │ │ +00014d20: 7420 7374 6167 6520 6172 6520 636c 6173 t stage are clas │ │ │ +00014d30: 7369 6669 6564 2069 6e74 6f20 6368 6172 sified into char │ │ │ +00014d40: 6163 7465 7220 616e 640a 206e 6f6e 2d63 acter and. non-c │ │ │ +00014d50: 6861 7261 6374 6572 2063 6c61 7373 6573 haracter classes │ │ │ +00014d60: 2075 7369 6e67 206d 6f72 6520 696e 666f using more info │ │ │ +00014d70: 726d 6174 6976 6520 6275 7420 616c 736f rmative but also │ │ │ +00014d80: 206d 6f72 6520 636f 6d70 7574 6174 696f more computatio │ │ │ +00014d90: 6e61 6c6c 7920 6578 7065 6e73 6976 6520 nally expensive │ │ │ +00014da0: 6665 6174 7572 6573 2e20 5468 650a 2063 features. The. c │ │ │ +00014db0: 6c61 7373 6966 6965 7220 7573 6573 2061 lassifier uses a │ │ │ +00014dc0: 6c6c 2074 6865 2066 6561 7475 7265 7320 ll the features │ │ │ +00014dd0: 6361 6c63 756c 6174 6564 2069 6e20 7468 calculated in th │ │ │ +00014de0: 6520 6669 7273 7420 7374 6167 6520 616e e first stage an │ │ │ +00014df0: 6420 7468 6520 666f 6c6c 6f77 696e 6720 d the following │ │ │ +00014e00: 6164 6469 7469 6f6e 616c 0a20 6665 6174 additional. feat │ │ │ +00014e10: 7572 6573 3a20 686f 6c65 2061 7265 6120 ures: hole area │ │ │ +00014e20: 7261 7469 6f2c 2063 6f6e 7665 7820 6875 ratio, convex hu │ │ │ +00014e30: 6c6c 2072 6174 696f 2c20 616e 6420 6e75 ll ratio, and nu │ │ │ +00014e40: 6d62 6572 206f 6620 6f75 7465 7220 696e mber of outer in │ │ │ +00014e50: 666c 6578 696f 6e20 706f 696e 7473 2e3c flexion points.< │ │ │ +00014e60: 2f64 6976 3e0a 3c64 6c20 636c 6173 733d /div>.
      .
      Par │ │ │ +00014e80: 616d 6574 6572 733a 3c2f 6474 3e0a 3c64 ameters:
      .cb - automaticall │ │ │ +00014eb0: 7920 6765 6e65 7261 7465 643c 2f64 643e y generated │ │ │ +00014ec0: 0a3c 6464 3e3c 636f 6465 3e6d 696e 5072 .
      minPr │ │ │ +00014ed0: 6f62 6162 696c 6974 793c 2f63 6f64 653e obability │ │ │ +00014ee0: 202d 2061 7574 6f6d 6174 6963 616c 6c79 - automatically │ │ │ +00014ef0: 2067 656e 6572 6174 6564 3c2f 6464 3e0a generated
      . │ │ │ +00014f00: 3c64 743e 5265 7475 726e 733a 3c2f 6474
      Returns:
      .
      automatica │ │ │ +00014f20: 6c6c 7920 6765 6e65 7261 7465 643c 2f64 lly generated.
      ..
    • .
    • .< │ │ │ +00014f50: 7365 6374 696f 6e20 636c 6173 733d 2264 section class="d │ │ │ +00014f60: 6574 6169 6c22 2069 643d 2263 7265 6174 etail" id="creat │ │ │ +00014f70: 6545 5246 696c 7465 724e 4d32 286f 7267 eERFilterNM2(org │ │ │ +00014f80: 2e6f 7065 6e63 762e 7465 7874 2e45 5246 .opencv.text.ERF │ │ │ +00014f90: 696c 7465 725f 4361 6c6c 6261 636b 2922 ilter_Callback)" │ │ │ +00014fa0: 3e0a 3c68 333e 6372 6561 7465 4552 4669 >.

      createERFi │ │ │ +00014fb0: 6c74 6572 4e4d 323c 2f68 333e 0a3c 6469 lterNM2

      .public static │ │ │ +00015000: 3c2f 7370 616e 3e26 6e62 7370 3b3c 7370   │ │ │ +00015060: 4552 4669 6c74 6572 3c2f 613e 3c2f 7370 ERFilter createERFilt │ │ │ +000150a0: 6572 4e4d 323c 2f73 7061 6e3e 3c77 6272 erNM2(ERF │ │ │ +00015110: 696c 7465 725f 4361 6c6c 6261 636b 3c2f ilter_Callback cb).
      Crea │ │ │ +00015150: 7465 2061 6e20 4578 7472 656d 616c 2052 te an Extremal R │ │ │ +00015160: 6567 696f 6e20 4669 6c74 6572 2066 6f72 egion Filter for │ │ │ +00015170: 2074 6865 2032 6e64 2073 7461 6765 2063 the 2nd stage c │ │ │ +00015180: 6c61 7373 6966 6965 7220 6f66 204e 2661 lassifier of N&a │ │ │ +00015190: 6d70 3b4d 2061 6c67 6f72 6974 686d 2043 mp;M algorithm C │ │ │ +000151a0: 4954 453a 204e 6575 6d61 6e6e 3132 2e0a ITE: Neumann12.. │ │ │ +000151b0: 0a20 6c6f 6164 436c 6173 7369 6669 6572 . loadClassifier │ │ │ +000151c0: 4e4d 322c 2065 2e67 2e20 6672 6f6d 2066 NM2, e.g. from f │ │ │ +000151d0: 696c 6520 696e 2073 616d 706c 6573 2f63 ile in samples/c │ │ │ +000151e0: 7070 2f74 7261 696e 6564 5f63 6c61 7373 pp/trained_class │ │ │ +000151f0: 6966 6965 724e 4d32 2e78 6d6c 0a0a 2049 ifierNM2.xml.. I │ │ │ +00015200: 6e20 7468 6520 7365 636f 6e64 2073 7461 n the second sta │ │ │ +00015210: 6765 2c20 7468 6520 4552 7320 7468 6174 ge, the ERs that │ │ │ +00015220: 2070 6173 7365 6420 7468 6520 6669 7273 passed the firs │ │ │ +00015230: 7420 7374 6167 6520 6172 6520 636c 6173 t stage are clas │ │ │ +00015240: 7369 6669 6564 2069 6e74 6f20 6368 6172 sified into char │ │ │ +00015250: 6163 7465 7220 616e 640a 206e 6f6e 2d63 acter and. non-c │ │ │ +00015260: 6861 7261 6374 6572 2063 6c61 7373 6573 haracter classes │ │ │ +00015270: 2075 7369 6e67 206d 6f72 6520 696e 666f using more info │ │ │ +00015280: 726d 6174 6976 6520 6275 7420 616c 736f rmative but also │ │ │ +00015290: 206d 6f72 6520 636f 6d70 7574 6174 696f more computatio │ │ │ +000152a0: 6e61 6c6c 7920 6578 7065 6e73 6976 6520 nally expensive │ │ │ +000152b0: 6665 6174 7572 6573 2e20 5468 650a 2063 features. The. c │ │ │ +000152c0: 6c61 7373 6966 6965 7220 7573 6573 2061 lassifier uses a │ │ │ +000152d0: 6c6c 2074 6865 2066 6561 7475 7265 7320 ll the features │ │ │ +000152e0: 6361 6c63 756c 6174 6564 2069 6e20 7468 calculated in th │ │ │ +000152f0: 6520 6669 7273 7420 7374 6167 6520 616e e first stage an │ │ │ +00015300: 6420 7468 6520 666f 6c6c 6f77 696e 6720 d the following │ │ │ +00015310: 6164 6469 7469 6f6e 616c 0a20 6665 6174 additional. feat │ │ │ +00015320: 7572 6573 3a20 686f 6c65 2061 7265 6120 ures: hole area │ │ │ +00015330: 7261 7469 6f2c 2063 6f6e 7665 7820 6875 ratio, convex hu │ │ │ +00015340: 6c6c 2072 6174 696f 2c20 616e 6420 6e75 ll ratio, and nu │ │ │ +00015350: 6d62 6572 206f 6620 6f75 7465 7220 696e mber of outer in │ │ │ +00015360: 666c 6578 696f 6e20 706f 696e 7473 2e3c flexion points.< │ │ │ +00015370: 2f64 6976 3e0a 3c64 6c20 636c 6173 733d /div>.
      .
      Par │ │ │ +00015390: 616d 6574 6572 733a 3c2f 6474 3e0a 3c64 ameters:
      .cb - automaticall │ │ │ +000153c0: 7920 6765 6e65 7261 7465 643c 2f64 643e y generated │ │ │ +000153d0: 0a3c 6474 3e52 6574 7572 6e73 3a3c 2f64 .
      Returns:.
      automatic │ │ │ +000153f0: 616c 6c79 2067 656e 6572 6174 6564 3c2f ally generated.
      ..
    • .
    • . │ │ │ +00015420: 3c73 6563 7469 6f6e 2063 6c61 7373 3d22
      .

      create │ │ │ +00015490: 4552 4669 6c74 6572 4e4d 313c 2f68 333e ERFilterNM1

      │ │ │ +000154a0: 0a3c 6469 7620 636c 6173 733d 226d 656d .
      < │ │ │ +000154c0: 7370 616e 2063 6c61 7373 3d22 6d6f 6469 span class="modi │ │ │ +000154d0: 6669 6572 7322 3e70 7562 6c69 6320 7374 fiers">public st │ │ │ +000154e0: 6174 6963 3c2f 7370 616e 3e26 6e62 7370 atic  │ │ │ +000154f0: 3b3c 7370 616e 2063 6c61 7373 3d22 7265 ;ERFilter │ │ │ +00015550: 3c2f 7370 616e 3e26 6e62 7370 3b3c 7370  createER │ │ │ +00015580: 4669 6c74 6572 4e4d 313c 2f73 7061 6e3e FilterNM1 │ │ │ +00015590: 3c77 6272 3e3c 7370 616e 2063 6c61 7373 (< │ │ │ +000155b0: 6120 6872 6566 3d22 6874 7470 733a 2f2f a href="https:// │ │ │ +000155c0: 646f 776e 6c6f 6164 2e6a 6176 612e 6e65 download.java.ne │ │ │ +000155d0: 742f 6a61 7661 2f65 6172 6c79 5f61 6363 t/java/early_acc │ │ │ +000155e0: 6573 732f 6a64 6b32 312f 646f 6373 2f61 ess/jdk21/docs/a │ │ │ +000155f0: 7069 2f6a 6176 612e 6261 7365 2f6a 6176 pi/java.base/jav │ │ │ +00015600: 612f 6c61 6e67 2f53 7472 696e 672e 6874 a/lang/String.ht │ │ │ +00015610: 6d6c 2220 7469 746c 653d 2263 6c61 7373 ml" title="class │ │ │ +00015620: 206f 7220 696e 7465 7266 6163 6520 696e or interface in │ │ │ +00015630: 206a 6176 612e 6c61 6e67 2220 636c 6173 java.lang" clas │ │ │ +00015640: 733d 2265 7874 6572 6e61 6c2d 6c69 6e6b s="external-link │ │ │ +00015650: 223e 5374 7269 6e67 3c2f 613e 266e 6273 ">String&nbs │ │ │ +00015660: 703b 6669 6c65 6e61 6d65 2c0a 2069 6e74 p;filename,. int │ │ │ +00015670: 266e 6273 703b 7468 7265 7368 6f6c 6444  thresholdD │ │ │ +00015680: 656c 7461 2c0a 2066 6c6f 6174 266e 6273 elta,. float&nbs │ │ │ +00015690: 703b 6d69 6e41 7265 612c 0a20 666c 6f61 p;minArea,. floa │ │ │ +000156a0: 7426 6e62 7370 3b6d 6178 4172 6561 2c0a t maxArea,. │ │ │ +000156b0: 2066 6c6f 6174 266e 6273 703b 6d69 6e50 float minP │ │ │ +000156c0: 726f 6261 6269 6c69 7479 2c0a 2062 6f6f robability,. boo │ │ │ +000156d0: 6c65 616e 266e 6273 703b 6e6f 6e4d 6178 lean nonMax │ │ │ +000156e0: 5375 7070 7265 7373 696f 6e2c 0a20 666c Suppression,. fl │ │ │ +000156f0: 6f61 7426 6e62 7370 3b6d 696e 5072 6f62 oat minProb │ │ │ +00015700: 6162 696c 6974 7944 6966 6629 3c2f 7370 abilityDiff)
      .
      Rea │ │ │ +00015730: 6473 2061 6e20 4578 7472 656d 616c 2052 ds an Extremal R │ │ │ +00015740: 6567 696f 6e20 4669 6c74 6572 2066 6f72 egion Filter for │ │ │ +00015750: 2074 6865 2031 7374 2073 7461 6765 2063 the 1st stage c │ │ │ +00015760: 6c61 7373 6966 6965 7220 6f66 204e 2661 lassifier of N&a │ │ │ +00015770: 6d70 3b4d 2061 6c67 6f72 6974 686d 0a20 mp;M algorithm. │ │ │ +00015780: 2020 2020 6672 6f6d 2074 6865 2070 726f from the pro │ │ │ +00015790: 7669 6465 6420 7061 7468 2065 2e67 2e20 vided path e.g. │ │ │ +000157a0: 2f70 6174 682f 746f 2f63 7070 2f74 7261 /path/to/cpp/tra │ │ │ +000157b0: 696e 6564 5f63 6c61 7373 6966 6965 724e ined_classifierN │ │ │ +000157c0: 4d31 2e78 6d6c 3c2f 6469 763e 0a3c 646c M1.xml
      .
      . │ │ │ +000157e0: 3c64 743e 5061 7261 6d65 7465 7273 3a3c
      Parameters:< │ │ │ +000157f0: 2f64 743e 0a3c 6464 3e3c 636f 6465 3e66 /dt>.
      f │ │ │ +00015800: 696c 656e 616d 653c 2f63 6f64 653e 202d ilename - │ │ │ +00015810: 2061 7574 6f6d 6174 6963 616c 6c79 2067 automatically g │ │ │ +00015820: 656e 6572 6174 6564 3c2f 6464 3e0a 3c64 enerated
      .threshol │ │ │ +00015840: 6444 656c 7461 3c2f 636f 6465 3e20 2d20 dDelta - │ │ │ +00015850: 6175 746f 6d61 7469 6361 6c6c 7920 6765 automatically ge │ │ │ +00015860: 6e65 7261 7465 643c 2f64 643e 0a3c 6464 nerated.
      minArea - automati │ │ │ +00015890: 6361 6c6c 7920 6765 6e65 7261 7465 643c cally generated< │ │ │ +000158a0: 2f64 643e 0a3c 6464 3e3c 636f 6465 3e6d /dd>.
      m │ │ │ +000158b0: 6178 4172 6561 3c2f 636f 6465 3e20 2d20 axArea - │ │ │ +000158c0: 6175 746f 6d61 7469 6361 6c6c 7920 6765 automatically ge │ │ │ +000158d0: 6e65 7261 7465 643c 2f64 643e 0a3c 6464 nerated
      .
      minProbab │ │ │ +000158f0: 696c 6974 793c 2f63 6f64 653e 202d 2061 ility - a │ │ │ +00015900: 7574 6f6d 6174 6963 616c 6c79 2067 656e utomatically gen │ │ │ +00015910: 6572 6174 6564 3c2f 6464 3e0a 3c64 643e erated
      .
      │ │ │ +00015920: 3c63 6f64 653e 6e6f 6e4d 6178 5375 7070 nonMaxSupp │ │ │ +00015930: 7265 7373 696f 6e3c 2f63 6f64 653e 202d ression - │ │ │ +00015940: 2061 7574 6f6d 6174 6963 616c 6c79 2067 automatically g │ │ │ +00015950: 656e 6572 6174 6564 3c2f 6464 3e0a 3c64 enerated
      .minProba │ │ │ +00015970: 6269 6c69 7479 4469 6666 3c2f 636f 6465 bilityDiff - automaticall │ │ │ +00015990: 7920 6765 6e65 7261 7465 643c 2f64 643e y generated │ │ │ +000159a0: 0a3c 6474 3e52 6574 7572 6e73 3a3c 2f64 .
      Returns:.
      automatic │ │ │ +000159c0: 616c 6c79 2067 656e 6572 6174 6564 3c2f ally generated.
      ..
    • .
    • . │ │ │ +000159f0: 3c73 6563 7469 6f6e 2063 6c61 7373 3d22
      . │ │ │ +00015a50: 3c68 333e 6372 6561 7465 4552 4669 6c74

      createERFilt │ │ │ +00015a60: 6572 4e4d 313c 2f68 333e 0a3c 6469 7620 erNM1

      .
      public static ER │ │ │ +00015b10: 4669 6c74 6572 3c2f 613e 3c2f 7370 616e Filter createERFilter │ │ │ +00015b50: 4e4d 313c 2f73 7061 6e3e 3c77 6272 3e3c NM1< │ │ │ +00015b60: 7370 616e 2063 6c61 7373 3d22 7061 7261 span class="para │ │ │ +00015b70: 6d65 7465 7273 223e 283c 6120 6872 6566 meters">(Stri │ │ │ +00015c20: 6e67 3c2f 613e 266e 6273 703b 6669 6c65 ng file │ │ │ +00015c30: 6e61 6d65 2c0a 2069 6e74 266e 6273 703b name,. int  │ │ │ +00015c40: 7468 7265 7368 6f6c 6444 656c 7461 2c0a thresholdDelta,. │ │ │ +00015c50: 2066 6c6f 6174 266e 6273 703b 6d69 6e41 float minA │ │ │ +00015c60: 7265 612c 0a20 666c 6f61 7426 6e62 7370 rea,. float  │ │ │ +00015c70: 3b6d 6178 4172 6561 2c0a 2066 6c6f 6174 ;maxArea,. float │ │ │ +00015c80: 266e 6273 703b 6d69 6e50 726f 6261 6269  minProbabi │ │ │ +00015c90: 6c69 7479 2c0a 2062 6f6f 6c65 616e 266e lity,. boolean&n │ │ │ +00015ca0: 6273 703b 6e6f 6e4d 6178 5375 7070 7265 bsp;nonMaxSuppre │ │ │ +00015cb0: 7373 696f 6e29 3c2f 7370 616e 3e3c 2f64 ssion).
      Reads an │ │ │ +00015ce0: 4578 7472 656d 616c 2052 6567 696f 6e20 Extremal Region │ │ │ +00015cf0: 4669 6c74 6572 2066 6f72 2074 6865 2031 Filter for the 1 │ │ │ +00015d00: 7374 2073 7461 6765 2063 6c61 7373 6966 st stage classif │ │ │ +00015d10: 6965 7220 6f66 204e 2661 6d70 3b4d 2061 ier of N&M a │ │ │ +00015d20: 6c67 6f72 6974 686d 0a20 2020 2020 6672 lgorithm. fr │ │ │ +00015d30: 6f6d 2074 6865 2070 726f 7669 6465 6420 om the provided │ │ │ +00015d40: 7061 7468 2065 2e67 2e20 2f70 6174 682f path e.g. /path/ │ │ │ +00015d50: 746f 2f63 7070 2f74 7261 696e 6564 5f63 to/cpp/trained_c │ │ │ +00015d60: 6c61 7373 6966 6965 724e 4d31 2e78 6d6c lassifierNM1.xml │ │ │ +00015d70: 3c2f 6469 763e 0a3c 646c 2063 6c61 7373
      .
      .
      Pa │ │ │ +00015d90: 7261 6d65 7465 7273 3a3c 2f64 743e 0a3c rameters:
      .< │ │ │ +00015da0: 6464 3e3c 636f 6465 3e66 696c 656e 616d dd>filenam │ │ │ +00015db0: 653c 2f63 6f64 653e 202d 2061 7574 6f6d e - autom │ │ │ +00015dc0: 6174 6963 616c 6c79 2067 656e 6572 6174 atically generat │ │ │ +00015dd0: 6564 3c2f 6464 3e0a 3c64 643e 3c63 6f64 ed.
      thresholdDelta │ │ │ +00015df0: 3c2f 636f 6465 3e20 2d20 6175 746f 6d61 - automa │ │ │ +00015e00: 7469 6361 6c6c 7920 6765 6e65 7261 7465 tically generate │ │ │ +00015e10: 643c 2f64 643e 0a3c 6464 3e3c 636f 6465 d
      .
      minArea │ │ │ +00015e30: 2d20 6175 746f 6d61 7469 6361 6c6c 7920 - automatically │ │ │ +00015e40: 6765 6e65 7261 7465 643c 2f64 643e 0a3c generated
      .< │ │ │ +00015e50: 6464 3e3c 636f 6465 3e6d 6178 4172 6561 dd>maxArea │ │ │ +00015e60: 3c2f 636f 6465 3e20 2d20 6175 746f 6d61 - automa │ │ │ +00015e70: 7469 6361 6c6c 7920 6765 6e65 7261 7465 tically generate │ │ │ +00015e80: 643c 2f64 643e 0a3c 6464 3e3c 636f 6465 d.
      minProbability< │ │ │ +00015ea0: 2f63 6f64 653e 202d 2061 7574 6f6d 6174 /code> - automat │ │ │ +00015eb0: 6963 616c 6c79 2067 656e 6572 6174 6564 ically generated │ │ │ +00015ec0: 3c2f 6464 3e0a 3c64 643e 3c63 6f64 653e
      .
      │ │ │ +00015ed0: 6e6f 6e4d 6178 5375 7070 7265 7373 696f nonMaxSuppressio │ │ │ +00015ee0: 6e3c 2f63 6f64 653e 202d 2061 7574 6f6d n - autom │ │ │ +00015ef0: 6174 6963 616c 6c79 2067 656e 6572 6174 atically generat │ │ │ +00015f00: 6564 3c2f 6464 3e0a 3c64 743e 5265 7475 ed
      .
      Retu │ │ │ +00015f10: 726e 733a 3c2f 6474 3e0a 3c64 643e 6175 rns:
      .
      au │ │ │ +00015f20: 746f 6d61 7469 6361 6c6c 7920 6765 6e65 tomatically gene │ │ │ +00015f30: 7261 7465 643c 2f64 643e 0a3c 2f64 6c3e rated
      .
      │ │ │ +00015f40: 0a3c 2f73 6563 7469 6f6e 3e0a 3c2f 6c69 .
      .
    • .
    • .
      .< │ │ │ +00015fb0: 6833 3e63 7265 6174 6545 5246 696c 7465 h3>createERFilte │ │ │ +00015fc0: 724e 4d31 3c2f 6833 3e0a 3c64 6976 2063 rNM1.
      │ │ │ +00016000: 7075 626c 6963 2073 7461 7469 633c 2f73 public static ERF │ │ │ +00016070: 696c 7465 723c 2f61 3e3c 2f73 7061 6e3e ilter │ │ │ +00016080: 266e 6273 703b 3c73 7061 6e20 636c 6173  createERFilterN │ │ │ +000160b0: 4d31 3c2f 7370 616e 3e3c 7762 723e 3c73 M1(Strin │ │ │ +00016180: 673c 2f61 3e26 6e62 7370 3b66 696c 656e g filen │ │ │ +00016190: 616d 652c 0a20 696e 7426 6e62 7370 3b74 ame,. int t │ │ │ +000161a0: 6872 6573 686f 6c64 4465 6c74 612c 0a20 hresholdDelta,. │ │ │ +000161b0: 666c 6f61 7426 6e62 7370 3b6d 696e 4172 float minAr │ │ │ +000161c0: 6561 2c0a 2066 6c6f 6174 266e 6273 703b ea,. float  │ │ │ +000161d0: 6d61 7841 7265 612c 0a20 666c 6f61 7426 maxArea,. float& │ │ │ +000161e0: 6e62 7370 3b6d 696e 5072 6f62 6162 696c nbsp;minProbabil │ │ │ +000161f0: 6974 7929 3c2f 7370 616e 3e3c 2f64 6976 ity)
      .
      Reads an Ex │ │ │ +00016220: 7472 656d 616c 2052 6567 696f 6e20 4669 tremal Region Fi │ │ │ +00016230: 6c74 6572 2066 6f72 2074 6865 2031 7374 lter for the 1st │ │ │ +00016240: 2073 7461 6765 2063 6c61 7373 6966 6965 stage classifie │ │ │ +00016250: 7220 6f66 204e 2661 6d70 3b4d 2061 6c67 r of N&M alg │ │ │ +00016260: 6f72 6974 686d 0a20 2020 2020 6672 6f6d orithm. from │ │ │ +00016270: 2074 6865 2070 726f 7669 6465 6420 7061 the provided pa │ │ │ +00016280: 7468 2065 2e67 2e20 2f70 6174 682f 746f th e.g. /path/to │ │ │ +00016290: 2f63 7070 2f74 7261 696e 6564 5f63 6c61 /cpp/trained_cla │ │ │ +000162a0: 7373 6966 6965 724e 4d31 2e78 6d6c 3c2f ssifierNM1.xml.
      .
      Para │ │ │ +000162d0: 6d65 7465 7273 3a3c 2f64 743e 0a3c 6464 meters:
      .
      filename< │ │ │ +000162f0: 2f63 6f64 653e 202d 2061 7574 6f6d 6174 /code> - automat │ │ │ +00016300: 6963 616c 6c79 2067 656e 6572 6174 6564 ically generated │ │ │ +00016310: 3c2f 6464 3e0a 3c64 643e 3c63 6f64 653e
      .
      │ │ │ +00016320: 7468 7265 7368 6f6c 6444 656c 7461 3c2f thresholdDelta - automati │ │ │ +00016340: 6361 6c6c 7920 6765 6e65 7261 7465 643c cally generated< │ │ │ +00016350: 2f64 643e 0a3c 6464 3e3c 636f 6465 3e6d /dd>.
      m │ │ │ +00016360: 696e 4172 6561 3c2f 636f 6465 3e20 2d20 inArea - │ │ │ +00016370: 6175 746f 6d61 7469 6361 6c6c 7920 6765 automatically ge │ │ │ +00016380: 6e65 7261 7465 643c 2f64 643e 0a3c 6464 nerated
      .
      maxArea - automati │ │ │ +000163b0: 6361 6c6c 7920 6765 6e65 7261 7465 643c cally generated< │ │ │ +000163c0: 2f64 643e 0a3c 6464 3e3c 636f 6465 3e6d /dd>.
      m │ │ │ +000163d0: 696e 5072 6f62 6162 696c 6974 793c 2f63 inProbability - automatic │ │ │ +000163f0: 616c 6c79 2067 656e 6572 6174 6564 3c2f ally generated.
      Returns: │ │ │ +00016410: 3c2f 6474 3e0a 3c64 643e 6175 746f 6d61
      .
      automa │ │ │ +00016420: 7469 6361 6c6c 7920 6765 6e65 7261 7465 tically generate │ │ │ +00016430: 643c 2f64 643e 0a3c 2f64 6c3e 0a3c 2f73 d
      .
      .
      .
    • ..
      .

      createE │ │ │ +000164b0: 5246 696c 7465 724e 4d31 3c2f 6833 3e0a RFilterNM1

      . │ │ │ +000164c0: 3c64 6976 2063 6c61 7373 3d22 6d65 6d62
      public sta │ │ │ +00016500: 7469 633c 2f73 7061 6e3e 266e 6273 703b tic  │ │ │ +00016510: 3c73 7061 6e20 636c 6173 733d 2272 6574 ERFilter< │ │ │ +00016570: 2f73 7061 6e3e 266e 6273 703b 3c73 7061 /span> createERF │ │ │ +000165a0: 696c 7465 724e 4d31 3c2f 7370 616e 3e3c ilterNM1< │ │ │ +000165b0: 7762 723e 3c73 7061 6e20 636c 6173 733d wbr>(String  │ │ │ +00016680: 3b66 696c 656e 616d 652c 0a20 696e 7426 ;filename,. int& │ │ │ +00016690: 6e62 7370 3b74 6872 6573 686f 6c64 4465 nbsp;thresholdDe │ │ │ +000166a0: 6c74 612c 0a20 666c 6f61 7426 6e62 7370 lta,. float  │ │ │ +000166b0: 3b6d 696e 4172 6561 2c0a 2066 6c6f 6174 ;minArea,. float │ │ │ +000166c0: 266e 6273 703b 6d61 7841 7265 6129 3c2f  maxArea)
      .
      R │ │ │ +000166f0: 6561 6473 2061 6e20 4578 7472 656d 616c eads an Extremal │ │ │ +00016700: 2052 6567 696f 6e20 4669 6c74 6572 2066 Region Filter f │ │ │ +00016710: 6f72 2074 6865 2031 7374 2073 7461 6765 or the 1st stage │ │ │ +00016720: 2063 6c61 7373 6966 6965 7220 6f66 204e classifier of N │ │ │ +00016730: 2661 6d70 3b4d 2061 6c67 6f72 6974 686d &M algorithm │ │ │ +00016740: 0a20 2020 2020 6672 6f6d 2074 6865 2070 . from the p │ │ │ +00016750: 726f 7669 6465 6420 7061 7468 2065 2e67 rovided path e.g │ │ │ +00016760: 2e20 2f70 6174 682f 746f 2f63 7070 2f74 . /path/to/cpp/t │ │ │ +00016770: 7261 696e 6564 5f63 6c61 7373 6966 6965 rained_classifie │ │ │ +00016780: 724e 4d31 2e78 6d6c 3c2f 6469 763e 0a3c rNM1.xml
      .< │ │ │ +00016790: 646c 2063 6c61 7373 3d22 6e6f 7465 7322 dl class="notes" │ │ │ +000167a0: 3e0a 3c64 743e 5061 7261 6d65 7465 7273 >.
      Parameters │ │ │ +000167b0: 3a3c 2f64 743e 0a3c 6464 3e3c 636f 6465 :
      .
      filename │ │ │ +000167d0: 202d 2061 7574 6f6d 6174 6963 616c 6c79 - automatically │ │ │ +000167e0: 2067 656e 6572 6174 6564 3c2f 6464 3e0a generated
      . │ │ │ +000167f0: 3c64 643e 3c63 6f64 653e 7468 7265 7368
      thresh │ │ │ +00016800: 6f6c 6444 656c 7461 3c2f 636f 6465 3e20 oldDelta │ │ │ +00016810: 2d20 6175 746f 6d61 7469 6361 6c6c 7920 - automatically │ │ │ +00016820: 6765 6e65 7261 7465 643c 2f64 643e 0a3c generated
      .< │ │ │ +00016830: 6464 3e3c 636f 6465 3e6d 696e 4172 6561 dd>minArea │ │ │ +00016840: 3c2f 636f 6465 3e20 2d20 6175 746f 6d61 - automa │ │ │ +00016850: 7469 6361 6c6c 7920 6765 6e65 7261 7465 tically generate │ │ │ +00016860: 643c 2f64 643e 0a3c 6464 3e3c 636f 6465 d.
      maxArea │ │ │ +00016880: 2d20 6175 746f 6d61 7469 6361 6c6c 7920 - automatically │ │ │ +00016890: 6765 6e65 7261 7465 643c 2f64 643e 0a3c generated
      .< │ │ │ +000168a0: 6474 3e52 6574 7572 6e73 3a3c 2f64 743e dt>Returns: │ │ │ +000168b0: 0a3c 6464 3e61 7574 6f6d 6174 6963 616c .
      automatical │ │ │ +000168c0: 6c79 2067 656e 6572 6174 6564 3c2f 6464 ly generated
      .
      ..
    • .
    • ..

      cr │ │ │ +00016940: 6561 7465 4552 4669 6c74 6572 4e4d 313c eateERFilterNM1< │ │ │ +00016950: 2f68 333e 0a3c 6469 7620 636c 6173 733d /h3>.
      publi │ │ │ +00016990: 6320 7374 6174 6963 3c2f 7370 616e 3e26 c static& │ │ │ +000169a0: 6e62 7370 3b3c 7370 616e 2063 6c61 7373 nbsp;< │ │ │ +000169c0: 6120 6872 6566 3d22 4552 4669 6c74 6572 a href="ERFilter │ │ │ +000169d0: 2e68 746d 6c22 2074 6974 6c65 3d22 636c .html" title="cl │ │ │ +000169e0: 6173 7320 696e 206f 7267 2e6f 7065 6e63 ass in org.openc │ │ │ +000169f0: 762e 7465 7874 223e 4552 4669 6c74 6572 v.text">ERFilter │ │ │ +00016a00: 3c2f 613e 3c2f 7370 616e 3e26 6e62 7370   │ │ │ +00016a10: 3b3c 7370 616e 2063 6c61 7373 3d22 656c ;crea │ │ │ +00016a30: 7465 4552 4669 6c74 6572 4e4d 313c 2f73 teERFilterNM1(String │ │ │ +00016b10: 266e 6273 703b 6669 6c65 6e61 6d65 2c0a  filename,. │ │ │ +00016b20: 2069 6e74 266e 6273 703b 7468 7265 7368 int thresh │ │ │ +00016b30: 6f6c 6444 656c 7461 2c0a 2066 6c6f 6174 oldDelta,. float │ │ │ +00016b40: 266e 6273 703b 6d69 6e41 7265 6129 3c2f  minArea)
      .
      R │ │ │ +00016b70: 6561 6473 2061 6e20 4578 7472 656d 616c eads an Extremal │ │ │ +00016b80: 2052 6567 696f 6e20 4669 6c74 6572 2066 Region Filter f │ │ │ +00016b90: 6f72 2074 6865 2031 7374 2073 7461 6765 or the 1st stage │ │ │ +00016ba0: 2063 6c61 7373 6966 6965 7220 6f66 204e classifier of N │ │ │ +00016bb0: 2661 6d70 3b4d 2061 6c67 6f72 6974 686d &M algorithm │ │ │ +00016bc0: 0a20 2020 2020 6672 6f6d 2074 6865 2070 . from the p │ │ │ +00016bd0: 726f 7669 6465 6420 7061 7468 2065 2e67 rovided path e.g │ │ │ +00016be0: 2e20 2f70 6174 682f 746f 2f63 7070 2f74 . /path/to/cpp/t │ │ │ +00016bf0: 7261 696e 6564 5f63 6c61 7373 6966 6965 rained_classifie │ │ │ +00016c00: 724e 4d31 2e78 6d6c 3c2f 6469 763e 0a3c rNM1.xml
      .< │ │ │ +00016c10: 646c 2063 6c61 7373 3d22 6e6f 7465 7322 dl class="notes" │ │ │ +00016c20: 3e0a 3c64 743e 5061 7261 6d65 7465 7273 >.
      Parameters │ │ │ +00016c30: 3a3c 2f64 743e 0a3c 6464 3e3c 636f 6465 :
      .
      filename │ │ │ +00016c50: 202d 2061 7574 6f6d 6174 6963 616c 6c79 - automatically │ │ │ +00016c60: 2067 656e 6572 6174 6564 3c2f 6464 3e0a generated
      . │ │ │ +00016c70: 3c64 643e 3c63 6f64 653e 7468 7265 7368
      thresh │ │ │ +00016c80: 6f6c 6444 656c 7461 3c2f 636f 6465 3e20 oldDelta │ │ │ +00016c90: 2d20 6175 746f 6d61 7469 6361 6c6c 7920 - automatically │ │ │ +00016ca0: 6765 6e65 7261 7465 643c 2f64 643e 0a3c generated
      .< │ │ │ +00016cb0: 6464 3e3c 636f 6465 3e6d 696e 4172 6561 dd>minArea │ │ │ +00016cc0: 3c2f 636f 6465 3e20 2d20 6175 746f 6d61 - automa │ │ │ +00016cd0: 7469 6361 6c6c 7920 6765 6e65 7261 7465 tically generate │ │ │ +00016ce0: 643c 2f64 643e 0a3c 6474 3e52 6574 7572 d.
      Retur │ │ │ +00016cf0: 6e73 3a3c 2f64 743e 0a3c 6464 3e61 7574 ns:
      .
      aut │ │ │ +00016d00: 6f6d 6174 6963 616c 6c79 2067 656e 6572 omatically gener │ │ │ +00016d10: 6174 6564 3c2f 6464 3e0a 3c2f 646c 3e0a ated
      .. │ │ │ +00016d20: 3c2f 7365 6374 696f 6e3e 0a3c 2f6c 693e .

    • │ │ │ +00016d30: 0a3c 6c69 3e0a 3c73 6563 7469 6f6e 2063 .
    • .
      .

      │ │ │ +00016d80: 6372 6561 7465 4552 4669 6c74 6572 4e4d createERFilterNM │ │ │ +00016d90: 313c 2f68 333e 0a3c 6469 7620 636c 6173 1

      .
      pub │ │ │ +00016dd0: 6c69 6320 7374 6174 6963 3c2f 7370 616e lic static ERFilt │ │ │ +00016e40: 6572 3c2f 613e 3c2f 7370 616e 3e26 6e62 er&nb │ │ │ +00016e50: 7370 3b3c 7370 616e 2063 6c61 7373 3d22 sp;cr │ │ │ +00016e70: 6561 7465 4552 4669 6c74 6572 4e4d 313c eateERFilterNM1< │ │ │ +00016e80: 2f73 7061 6e3e 3c77 6272 3e3c 7370 616e /span>(String filename │ │ │ +00016f60: 2c0a 2069 6e74 266e 6273 703b 7468 7265 ,. int thre │ │ │ +00016f70: 7368 6f6c 6444 656c 7461 293c 2f73 7061 sholdDelta)
      .
      Read │ │ │ +00016fa0: 7320 616e 2045 7874 7265 6d61 6c20 5265 s an Extremal Re │ │ │ +00016fb0: 6769 6f6e 2046 696c 7465 7220 666f 7220 gion Filter for │ │ │ +00016fc0: 7468 6520 3173 7420 7374 6167 6520 636c the 1st stage cl │ │ │ +00016fd0: 6173 7369 6669 6572 206f 6620 4e26 616d assifier of N&am │ │ │ +00016fe0: 703b 4d20 616c 676f 7269 7468 6d0a 2020 p;M algorithm. │ │ │ +00016ff0: 2020 2066 726f 6d20 7468 6520 7072 6f76 from the prov │ │ │ +00017000: 6964 6564 2070 6174 6820 652e 672e 202f ided path e.g. / │ │ │ +00017010: 7061 7468 2f74 6f2f 6370 702f 7472 6169 path/to/cpp/trai │ │ │ +00017020: 6e65 645f 636c 6173 7369 6669 6572 4e4d ned_classifierNM │ │ │ +00017030: 312e 786d 6c3c 2f64 6976 3e0a 3c64 6c20 1.xml
      .
      .< │ │ │ +00017050: 6474 3e50 6172 616d 6574 6572 733a 3c2f dt>Parameters:.
      fi │ │ │ +00017070: 6c65 6e61 6d65 3c2f 636f 6465 3e20 2d20 lename - │ │ │ +00017080: 6175 746f 6d61 7469 6361 6c6c 7920 6765 automatically ge │ │ │ +00017090: 6e65 7261 7465 643c 2f64 643e 0a3c 6464 nerated
      .
      threshold │ │ │ +000170b0: 4465 6c74 613c 2f63 6f64 653e 202d 2061 Delta - a │ │ │ +000170c0: 7574 6f6d 6174 6963 616c 6c79 2067 656e utomatically gen │ │ │ +000170d0: 6572 6174 6564 3c2f 6464 3e0a 3c64 743e erated
      .
      │ │ │ +000170e0: 5265 7475 726e 733a 3c2f 6474 3e0a 3c64 Returns:
      .automatically │ │ │ +00017100: 6765 6e65 7261 7465 643c 2f64 643e 0a3c generated.< │ │ │ +00017110: 2f64 6c3e 0a3c 2f73 6563 7469 6f6e 3e0a /dl>.
      . │ │ │ +00017120: 3c2f 6c69 3e0a 3c6c 693e 0a3c 7365 6374
    • .
    • ..

      createERFilterN │ │ │ +00017180: 4d31 3c2f 6833 3e0a 3c64 6976 2063 6c61 M1

      .
      pu │ │ │ +000171c0: 626c 6963 2073 7461 7469 633c 2f73 7061 blic static ERFil │ │ │ +00017230: 7465 723c 2f61 3e3c 2f73 7061 6e3e 266e ter&n │ │ │ +00017240: 6273 703b 3c73 7061 6e20 636c 6173 733d bsp;c │ │ │ +00017260: 7265 6174 6545 5246 696c 7465 724e 4d31 reateERFilterNM1 │ │ │ +00017270: 3c2f 7370 616e 3e3c 7762 723e 3c73 7061 (String< │ │ │ +00017340: 2f61 3e26 6e62 7370 3b66 696c 656e 616d /a> filenam │ │ │ +00017350: 6529 3c2f 7370 616e 3e3c 2f64 6976 3e0a e)
      . │ │ │ +00017360: 3c64 6976 2063 6c61 7373 3d22 626c 6f63
      Reads an Extr │ │ │ +00017380: 656d 616c 2052 6567 696f 6e20 4669 6c74 emal Region Filt │ │ │ +00017390: 6572 2066 6f72 2074 6865 2031 7374 2073 er for the 1st s │ │ │ +000173a0: 7461 6765 2063 6c61 7373 6966 6965 7220 tage classifier │ │ │ +000173b0: 6f66 204e 2661 6d70 3b4d 2061 6c67 6f72 of N&M algor │ │ │ +000173c0: 6974 686d 0a20 2020 2020 6672 6f6d 2074 ithm. from t │ │ │ +000173d0: 6865 2070 726f 7669 6465 6420 7061 7468 he provided path │ │ │ +000173e0: 2065 2e67 2e20 2f70 6174 682f 746f 2f63 e.g. /path/to/c │ │ │ +000173f0: 7070 2f74 7261 696e 6564 5f63 6c61 7373 pp/trained_class │ │ │ +00017400: 6966 6965 724e 4d31 2e78 6d6c 3c2f 6469 ifierNM1.xml.
      .
      Parame │ │ │ +00017430: 7465 7273 3a3c 2f64 743e 0a3c 6464 3e3c ters:
      .
      < │ │ │ +00017440: 636f 6465 3e66 696c 656e 616d 653c 2f63 code>filename - automatic │ │ │ +00017460: 616c 6c79 2067 656e 6572 6174 6564 3c2f ally generated.
      Returns: │ │ │ +00017480: 3c2f 6474 3e0a 3c64 643e 6175 746f 6d61
      .
      automa │ │ │ +00017490: 7469 6361 6c6c 7920 6765 6e65 7261 7465 tically generate │ │ │ +000174a0: 643c 2f64 643e 0a3c 2f64 6c3e 0a3c 2f73 d
      .
      .
      .
    • ..
      .

      c │ │ │ +00017510: 7265 6174 6545 5246 696c 7465 724e 4d32 reateERFilterNM2 │ │ │ +00017520: 3c2f 6833 3e0a 3c64 6976 2063 6c61 7373

      .
      publ │ │ │ +00017560: 6963 2073 7461 7469 633c 2f73 7061 6e3e ic static │ │ │ +00017570: 266e 6273 703b 3c73 7061 6e20 636c 6173   │ │ │ +00017590: 3c61 2068 7265 663d 2245 5246 696c 7465 ERFilte │ │ │ +000175d0: 723c 2f61 3e3c 2f73 7061 6e3e 266e 6273 r&nbs │ │ │ +000175e0: 703b 3c73 7061 6e20 636c 6173 733d 2265 p;cre │ │ │ +00017600: 6174 6545 5246 696c 7465 724e 4d32 3c2f ateERFilterNM2(String filename, │ │ │ +000176f0: 0a20 666c 6f61 7426 6e62 7370 3b6d 696e . float min │ │ │ +00017700: 5072 6f62 6162 696c 6974 7929 3c2f 7370 Probability)
      .
      Rea │ │ │ +00017730: 6473 2061 6e20 4578 7472 656d 616c 2052 ds an Extremal R │ │ │ +00017740: 6567 696f 6e20 4669 6c74 6572 2066 6f72 egion Filter for │ │ │ +00017750: 2074 6865 2032 6e64 2073 7461 6765 2063 the 2nd stage c │ │ │ +00017760: 6c61 7373 6966 6965 7220 6f66 204e 2661 lassifier of N&a │ │ │ +00017770: 6d70 3b4d 2061 6c67 6f72 6974 686d 0a20 mp;M algorithm. │ │ │ +00017780: 2020 2020 6672 6f6d 2074 6865 2070 726f from the pro │ │ │ +00017790: 7669 6465 6420 7061 7468 2065 2e67 2e20 vided path e.g. │ │ │ +000177a0: 2f70 6174 682f 746f 2f63 7070 2f74 7261 /path/to/cpp/tra │ │ │ +000177b0: 696e 6564 5f63 6c61 7373 6966 6965 724e ined_classifierN │ │ │ +000177c0: 4d32 2e78 6d6c 3c2f 6469 763e 0a3c 646c M2.xml
      .
      . │ │ │ +000177e0: 3c64 743e 5061 7261 6d65 7465 7273 3a3c
      Parameters:< │ │ │ +000177f0: 2f64 743e 0a3c 6464 3e3c 636f 6465 3e66 /dt>.
      f │ │ │ +00017800: 696c 656e 616d 653c 2f63 6f64 653e 202d ilename - │ │ │ +00017810: 2061 7574 6f6d 6174 6963 616c 6c79 2067 automatically g │ │ │ +00017820: 656e 6572 6174 6564 3c2f 6464 3e0a 3c64 enerated
      .minProba │ │ │ +00017840: 6269 6c69 7479 3c2f 636f 6465 3e20 2d20 bility - │ │ │ +00017850: 6175 746f 6d61 7469 6361 6c6c 7920 6765 automatically ge │ │ │ +00017860: 6e65 7261 7465 643c 2f64 643e 0a3c 6474 nerated.
      Returns:
      .< │ │ │ +00017880: 6464 3e61 7574 6f6d 6174 6963 616c 6c79 dd>automatically │ │ │ +00017890: 2067 656e 6572 6174 6564 3c2f 6464 3e0a generated. │ │ │ +000178a0: 3c2f 646c 3e0a 3c2f 7365 6374 696f 6e3e
      .
      │ │ │ +000178b0: 0a3c 2f6c 693e 0a3c 6c69 3e0a 3c73 6563 ..
    • ..createERFilter │ │ │ +00017910: 4e4d 323c 2f68 333e 0a3c 6469 7620 636c NM2.
      p │ │ │ +00017950: 7562 6c69 6320 7374 6174 6963 3c2f 7370 ublic static ERFi │ │ │ +000179c0: 6c74 6572 3c2f 613e 3c2f 7370 616e 3e26 lter& │ │ │ +000179d0: 6e62 7370 3b3c 7370 616e 2063 6c61 7373 nbsp; │ │ │ +000179f0: 6372 6561 7465 4552 4669 6c74 6572 4e4d createERFilterNM │ │ │ +00017a00: 323c 2f73 7061 6e3e 3c77 6272 3e3c 7370 2(String │ │ │ +00017ad0: 3c2f 613e 266e 6273 703b 6669 6c65 6e61  filena │ │ │ +00017ae0: 6d65 293c 2f73 7061 6e3e 3c2f 6469 763e me)
      │ │ │ +00017af0: 0a3c 6469 7620 636c 6173 733d 2262 6c6f .
      Reads an Ext │ │ │ +00017b10: 7265 6d61 6c20 5265 6769 6f6e 2046 696c remal Region Fil │ │ │ +00017b20: 7465 7220 666f 7220 7468 6520 326e 6420 ter for the 2nd │ │ │ +00017b30: 7374 6167 6520 636c 6173 7369 6669 6572 stage classifier │ │ │ +00017b40: 206f 6620 4e26 616d 703b 4d20 616c 676f of N&M algo │ │ │ +00017b50: 7269 7468 6d0a 2020 2020 2066 726f 6d20 rithm. from │ │ │ +00017b60: 7468 6520 7072 6f76 6964 6564 2070 6174 the provided pat │ │ │ +00017b70: 6820 652e 672e 202f 7061 7468 2f74 6f2f h e.g. /path/to/ │ │ │ +00017b80: 6370 702f 7472 6169 6e65 645f 636c 6173 cpp/trained_clas │ │ │ +00017b90: 7369 6669 6572 4e4d 322e 786d 6c3c 2f64 sifierNM2.xml.
      .
      Param │ │ │ +00017bc0: 6574 6572 733a 3c2f 6474 3e0a 3c64 643e eters:
      .
      │ │ │ +00017bd0: 3c63 6f64 653e 6669 6c65 6e61 6d65 3c2f filename - automati │ │ │ +00017bf0: 6361 6c6c 7920 6765 6e65 7261 7465 643c cally generated< │ │ │ +00017c00: 2f64 643e 0a3c 6474 3e52 6574 7572 6e73 /dd>.
      Returns │ │ │ +00017c10: 3a3c 2f64 743e 0a3c 6464 3e61 7574 6f6d :
      .
      autom │ │ │ +00017c20: 6174 6963 616c 6c79 2067 656e 6572 6174 atically generat │ │ │ +00017c30: 6564 3c2f 6464 3e0a 3c2f 646c 3e0a 3c2f ed
      .
      ..
    • .< │ │ │ +00017c50: 6c69 3e0a 3c73 6563 7469 6f6e 2063 6c61 li>.
      .

      loadCl │ │ │ +00017ca0: 6173 7369 6669 6572 4e4d 313c 2f68 333e assifierNM1

      │ │ │ +00017cb0: 0a3c 6469 7620 636c 6173 733d 226d 656d .
      < │ │ │ +00017cd0: 7370 616e 2063 6c61 7373 3d22 6d6f 6469 span class="modi │ │ │ +00017ce0: 6669 6572 7322 3e70 7562 6c69 6320 7374 fiers">public st │ │ │ +00017cf0: 6174 6963 3c2f 7370 616e 3e26 6e62 7370 atic  │ │ │ +00017d00: 3b3c 7370 616e 2063 6c61 7373 3d22 7265 ;ERF │ │ │ +00017d60: 696c 7465 725f 4361 6c6c 6261 636b 3c2f ilter_Callback < │ │ │ +00017d80: 7370 616e 2063 6c61 7373 3d22 656c 656d span class="elem │ │ │ +00017d90: 656e 742d 6e61 6d65 223e 6c6f 6164 436c ent-name">loadCl │ │ │ +00017da0: 6173 7369 6669 6572 4e4d 313c 2f73 7061 assifierNM1 │ │ │ +00017dd0: 283c 6120 6872 6566 3d22 6874 7470 733a (String&n │ │ │ +00017e80: 6273 703b 6669 6c65 6e61 6d65 293c 2f73 bsp;filename)
      .
      Al │ │ │ +00017eb0: 6c6f 7720 746f 2069 6d70 6c69 6369 746c low to implicitl │ │ │ +00017ec0: 7920 6c6f 6164 2074 6865 2064 6566 6175 y load the defau │ │ │ +00017ed0: 6c74 2063 6c61 7373 6966 6965 7220 7768 lt classifier wh │ │ │ +00017ee0: 656e 2063 7265 6174 696e 6720 616e 2045 en creating an E │ │ │ +00017ef0: 5246 696c 7465 7220 6f62 6a65 6374 2e3c RFilter object.< │ │ │ +00017f00: 2f64 6976 3e0a 3c64 6c20 636c 6173 733d /div>.
      .
      Par │ │ │ +00017f20: 616d 6574 6572 733a 3c2f 6474 3e0a 3c64 ameters:
      .filename │ │ │ +00017f40: 3c2f 636f 6465 3e20 2d20 5468 6520 584d - The XM │ │ │ +00017f50: 4c20 6f72 2059 414d 4c20 6669 6c65 2077 L or YAML file w │ │ │ +00017f60: 6974 6820 7468 6520 636c 6173 7369 6669 ith the classifi │ │ │ +00017f70: 6572 206d 6f64 656c 2028 652e 672e 2074 er model (e.g. t │ │ │ +00017f80: 7261 696e 6564 5f63 6c61 7373 6966 6965 rained_classifie │ │ │ +00017f90: 724e 4d31 2e78 6d6c 290a 0a20 7265 7475 rNM1.xml).. retu │ │ │ +00017fa0: 726e 7320 6120 706f 696e 7465 7220 746f rns a pointer to │ │ │ +00017fb0: 2045 5246 696c 7465 723a 3a43 616c 6c62 ERFilter::Callb │ │ │ +00017fc0: 6163 6b2e 3c2f 6464 3e0a 3c64 743e 5265 ack..
      Re │ │ │ +00017fd0: 7475 726e 733a 3c2f 6474 3e0a 3c64 643e turns:
      .
      │ │ │ +00017fe0: 6175 746f 6d61 7469 6361 6c6c 7920 6765 automatically ge │ │ │ +00017ff0: 6e65 7261 7465 643c 2f64 643e 0a3c 2f64 nerated
      .
      .
      ..
    • ..

      l │ │ │ +00018060: 6f61 6443 6c61 7373 6966 6965 724e 4d32 oadClassifierNM2 │ │ │ +00018070: 3c2f 6833 3e0a 3c64 6976 2063 6c61 7373

      .
      publ │ │ │ +000180b0: 6963 2073 7461 7469 633c 2f73 7061 6e3e ic static │ │ │ +000180c0: 266e 6273 703b 3c73 7061 6e20 636c 6173   │ │ │ +000180e0: 3c61 2068 7265 663d 2245 5246 696c 7465 ERFilter_Callb │ │ │ +00018130: 6163 6b3c 2f61 3e3c 2f73 7061 6e3e 266e ack&n │ │ │ +00018140: 6273 703b 3c73 7061 6e20 636c 6173 733d bsp;l │ │ │ +00018160: 6f61 6443 6c61 7373 6966 6965 724e 4d32 oadClassifierNM2 │ │ │ +00018170: 3c2f 7370 616e 3e3c 7762 723e 3c73 7061 (String< │ │ │ +00018240: 2f61 3e26 6e62 7370 3b66 696c 656e 616d /a> filenam │ │ │ +00018250: 6529 3c2f 7370 616e 3e3c 2f64 6976 3e0a e)
      . │ │ │ +00018260: 3c64 6976 2063 6c61 7373 3d22 626c 6f63
      Allow to impl │ │ │ +00018280: 6963 6974 6c79 206c 6f61 6420 7468 6520 icitly load the │ │ │ +00018290: 6465 6661 756c 7420 636c 6173 7369 6669 default classifi │ │ │ +000182a0: 6572 2077 6865 6e20 6372 6561 7469 6e67 er when creating │ │ │ +000182b0: 2061 6e20 4552 4669 6c74 6572 206f 626a an ERFilter obj │ │ │ +000182c0: 6563 742e 3c2f 6469 763e 0a3c 646c 2063 ect.
      .
      .Parameters:.
      fil │ │ │ +00018300: 656e 616d 653c 2f63 6f64 653e 202d 2054 ename - T │ │ │ +00018310: 6865 2058 4d4c 206f 7220 5941 4d4c 2066 he XML or YAML f │ │ │ +00018320: 696c 6520 7769 7468 2074 6865 2063 6c61 ile with the cla │ │ │ +00018330: 7373 6966 6965 7220 6d6f 6465 6c20 2865 ssifier model (e │ │ │ +00018340: 2e67 2e20 7472 6169 6e65 645f 636c 6173 .g. trained_clas │ │ │ +00018350: 7369 6669 6572 4e4d 322e 786d 6c29 0a0a sifierNM2.xml).. │ │ │ +00018360: 2072 6574 7572 6e73 2061 2070 6f69 6e74 returns a point │ │ │ +00018370: 6572 2074 6f20 4552 4669 6c74 6572 3a3a er to ERFilter:: │ │ │ +00018380: 4361 6c6c 6261 636b 2e3c 2f64 643e 0a3c Callback.
      .< │ │ │ +00018390: 6474 3e52 6574 7572 6e73 3a3c 2f64 743e dt>Returns: │ │ │ +000183a0: 0a3c 6464 3e61 7574 6f6d 6174 6963 616c .
      automatical │ │ │ +000183b0: 6c79 2067 656e 6572 6174 6564 3c2f 6464 ly generated
      .
      .
      .
    • .
    • ..

      comput │ │ │ +00018440: 654e 4d43 6861 6e6e 656c 733c 2f68 333e eNMChannels

      │ │ │ +00018450: 0a3c 6469 7620 636c 6173 733d 226d 656d .
      │ │ │ +00018690: 0a3c 6469 7620 636c 6173 733d 2262 6c6f .
      Compute the │ │ │ +000186b0: 6469 6666 6572 656e 7420 6368 616e 6e65 different channe │ │ │ +000186c0: 6c73 2074 6f20 6265 2070 726f 6365 7373 ls to be process │ │ │ +000186d0: 6564 2069 6e64 6570 656e 6465 6e74 6c79 ed independently │ │ │ +000186e0: 2069 6e20 7468 6520 4e26 616d 703b 4d20 in the N&M │ │ │ +000186f0: 616c 676f 7269 7468 6d20 4349 5445 3a20 algorithm CITE: │ │ │ +00018700: 4e65 756d 616e 6e31 322e 3c2f 6469 763e Neumann12.
      │ │ │ +00018710: 0a3c 646c 2063 6c61 7373 3d22 6e6f 7465 .
      .
      Paramete │ │ │ +00018730: 7273 3a3c 2f64 743e 0a3c 6464 3e3c 636f rs:
      .
      _src - │ │ │ +00018750: 2053 6f75 7263 6520 696d 6167 652e 204d Source image. M │ │ │ +00018760: 7573 7420 6265 2052 4742 2043 565f 3855 ust be RGB CV_8U │ │ │ +00018770: 4333 2e3c 2f64 643e 0a3c 6464 3e3c 636f C3.
      .
      _channels - Output vec │ │ │ +000187a0: 746f 7226 6c74 3b4d 6174 2667 743b 2077 tor<Mat> w │ │ │ +000187b0: 6865 7265 2063 6f6d 7075 7465 6420 6368 here computed ch │ │ │ +000187c0: 616e 6e65 6c73 2061 7265 2073 746f 7265 annels are store │ │ │ +000187d0: 642e 3c2f 6464 3e0a 3c64 643e 3c63 6f64 d.
      .
      _mode - │ │ │ +000187f0: 204d 6f64 6520 6f66 206f 7065 7261 7469 Mode of operati │ │ │ +00018800: 6f6e 2e20 4375 7272 656e 746c 7920 7468 on. Currently th │ │ │ +00018810: 6520 6f6e 6c79 2061 7661 696c 6162 6c65 e only available │ │ │ +00018820: 206f 7074 696f 6e73 2061 7265 3a0a 203c options are:. < │ │ │ +00018830: 623e 4552 4649 4c54 4552 5f4e 4d5f 5247 b>ERFILTER_NM_RG │ │ │ +00018840: 424c 4772 6164 3c2f 623e 2028 7573 6564 BLGrad (used │ │ │ +00018850: 2062 7920 6465 6661 756c 7429 2061 6e64 by default) and │ │ │ +00018860: 203c 623e 4552 4649 4c54 4552 5f4e 4d5f ERFILTER_NM_ │ │ │ +00018870: 4948 5347 7261 643c 2f62 3e2e 0a0a 2049 IHSGrad... I │ │ │ +00018880: 6e20 4e26 616d 703b 4d20 616c 676f 7269 n N&M algori │ │ │ +00018890: 7468 6d2c 2074 6865 2063 6f6d 6269 6e61 thm, the combina │ │ │ +000188a0: 7469 6f6e 206f 6620 696e 7465 6e73 6974 tion of intensit │ │ │ +000188b0: 7920 2849 292c 2068 7565 2028 4829 2c20 y (I), hue (H), │ │ │ +000188c0: 7361 7475 7261 7469 6f6e 2028 5329 2c20 saturation (S), │ │ │ +000188d0: 616e 6420 6772 6164 6965 6e74 206d 6167 and gradient mag │ │ │ +000188e0: 6e69 7475 6465 0a20 6368 616e 6e65 6c73 nitude. channels │ │ │ +000188f0: 2028 4772 6164 2920 6172 6520 7573 6564 (Grad) are used │ │ │ +00018900: 2069 6e20 6f72 6465 7220 746f 206f 6274 in order to obt │ │ │ +00018910: 6169 6e20 6869 6768 206c 6f63 616c 697a ain high localiz │ │ │ +00018920: 6174 696f 6e20 7265 6361 6c6c 2e20 5468 ation recall. Th │ │ │ +00018930: 6973 2069 6d70 6c65 6d65 6e74 6174 696f is implementatio │ │ │ +00018940: 6e20 616c 736f 0a20 7072 6f76 6964 6573 n also. provides │ │ │ +00018950: 2061 6e20 616c 7465 726e 6174 6976 6520 an alternative │ │ │ +00018960: 636f 6d62 696e 6174 696f 6e20 6f66 2072 combination of r │ │ │ +00018970: 6564 2028 5229 2c20 6772 6565 6e20 2847 ed (R), green (G │ │ │ +00018980: 292c 2062 6c75 6520 2842 292c 206c 6967 ), blue (B), lig │ │ │ +00018990: 6874 6e65 7373 2028 4c29 2c20 616e 6420 htness (L), and │ │ │ +000189a0: 6772 6164 6965 6e74 0a20 6d61 676e 6974 gradient. magnit │ │ │ +000189b0: 7564 6520 2847 7261 6429 2e3c 2f64 643e ude (Grad).
      │ │ │ +000189c0: 0a3c 2f64 6c3e 0a3c 2f73 6563 7469 6f6e .
      ..
    • .
    • . │ │ │ +00018a30: 0a3c 6833 3e63 6f6d 7075 7465 4e4d 4368 .

      computeNMCh │ │ │ +00018a40: 616e 6e65 6c73 3c2f 6833 3e0a 3c64 6976 annels

      .
      public static< │ │ │ +00018a90: 2f73 7061 6e3e 266e 6273 703b 3c73 7061 /span> void computeNMChann │ │ │ +00018af0: 656c 733c 2f73 7061 6e3e 3c77 6272 3e3c els< │ │ │ +00018b00: 7370 616e 2063 6c61 7373 3d22 7061 7261 span class="para │ │ │ +00018b10: 6d65 7465 7273 223e 283c 6120 6872 6566 meters">(Mat&nbs │ │ │ +00018b60: 703b 5f73 7263 2c0a 203c 6120 6872 6566 p;_src,. List<Mat>&nb │ │ │ +00018c60: 7370 3b5f 6368 616e 6e65 6c73 293c 2f73 sp;_channels)
      .
      Co │ │ │ +00018c90: 6d70 7574 6520 7468 6520 6469 6666 6572 mpute the differ │ │ │ +00018ca0: 656e 7420 6368 616e 6e65 6c73 2074 6f20 ent channels to │ │ │ +00018cb0: 6265 2070 726f 6365 7373 6564 2069 6e64 be processed ind │ │ │ +00018cc0: 6570 656e 6465 6e74 6c79 2069 6e20 7468 ependently in th │ │ │ +00018cd0: 6520 4e26 616d 703b 4d20 616c 676f 7269 e N&M algori │ │ │ +00018ce0: 7468 6d20 4349 5445 3a20 4e65 756d 616e thm CITE: Neuman │ │ │ +00018cf0: 6e31 322e 3c2f 6469 763e 0a3c 646c 2063 n12.
      .
      .Parameters:.
      _sr │ │ │ +00018d30: 633c 2f63 6f64 653e 202d 2053 6f75 7263 c - Sourc │ │ │ +00018d40: 6520 696d 6167 652e 204d 7573 7420 6265 e image. Must be │ │ │ +00018d50: 2052 4742 2043 565f 3855 4333 2e3c 2f64 RGB CV_8UC3..
      _ch │ │ │ +00018d70: 616e 6e65 6c73 3c2f 636f 6465 3e20 2d20 annels - │ │ │ +00018d80: 4f75 7470 7574 2076 6563 746f 7226 6c74 Output vector< │ │ │ +00018d90: 3b4d 6174 2667 743b 2077 6865 7265 2063 ;Mat> where c │ │ │ +00018da0: 6f6d 7075 7465 6420 6368 616e 6e65 6c73 omputed channels │ │ │ +00018db0: 2061 7265 2073 746f 7265 642e 0a0a 203c are stored... < │ │ │ +00018dc0: 623e 4552 4649 4c54 4552 5f4e 4d5f 5247 b>ERFILTER_NM_RG │ │ │ +00018dd0: 424c 4772 6164 3c2f 623e 2028 7573 6564 BLGrad (used │ │ │ +00018de0: 2062 7920 6465 6661 756c 7429 2061 6e64 by default) and │ │ │ +00018df0: 203c 623e 4552 4649 4c54 4552 5f4e 4d5f ERFILTER_NM_ │ │ │ +00018e00: 4948 5347 7261 643c 2f62 3e2e 0a0a 2049 IHSGrad... I │ │ │ +00018e10: 6e20 4e26 616d 703b 4d20 616c 676f 7269 n N&M algori │ │ │ +00018e20: 7468 6d2c 2074 6865 2063 6f6d 6269 6e61 thm, the combina │ │ │ +00018e30: 7469 6f6e 206f 6620 696e 7465 6e73 6974 tion of intensit │ │ │ +00018e40: 7920 2849 292c 2068 7565 2028 4829 2c20 y (I), hue (H), │ │ │ +00018e50: 7361 7475 7261 7469 6f6e 2028 5329 2c20 saturation (S), │ │ │ +00018e60: 616e 6420 6772 6164 6965 6e74 206d 6167 and gradient mag │ │ │ +00018e70: 6e69 7475 6465 0a20 6368 616e 6e65 6c73 nitude. channels │ │ │ +00018e80: 2028 4772 6164 2920 6172 6520 7573 6564 (Grad) are used │ │ │ +00018e90: 2069 6e20 6f72 6465 7220 746f 206f 6274 in order to obt │ │ │ +00018ea0: 6169 6e20 6869 6768 206c 6f63 616c 697a ain high localiz │ │ │ +00018eb0: 6174 696f 6e20 7265 6361 6c6c 2e20 5468 ation recall. Th │ │ │ +00018ec0: 6973 2069 6d70 6c65 6d65 6e74 6174 696f is implementatio │ │ │ +00018ed0: 6e20 616c 736f 0a20 7072 6f76 6964 6573 n also. provides │ │ │ +00018ee0: 2061 6e20 616c 7465 726e 6174 6976 6520 an alternative │ │ │ +00018ef0: 636f 6d62 696e 6174 696f 6e20 6f66 2072 combination of r │ │ │ +00018f00: 6564 2028 5229 2c20 6772 6565 6e20 2847 ed (R), green (G │ │ │ +00018f10: 292c 2062 6c75 6520 2842 292c 206c 6967 ), blue (B), lig │ │ │ +00018f20: 6874 6e65 7373 2028 4c29 2c20 616e 6420 htness (L), and │ │ │ +00018f30: 6772 6164 6965 6e74 0a20 6d61 676e 6974 gradient. magnit │ │ │ +00018f40: 7564 6520 2847 7261 6429 2e3c 2f64 643e ude (Grad).
      │ │ │ +00018f50: 0a3c 2f64 6c3e 0a3c 2f73 6563 7469 6f6e .
      ..
    • .
    • ..

      erGroupin │ │ │ +00019010: 673c 2f68 333e 0a3c 6469 7620 636c 6173 g

      .
      pub │ │ │ +00019050: 6c69 6320 7374 6174 6963 3c2f 7370 616e lic static void&nbs │ │ │ +00019090: 703b 3c73 7061 6e20 636c 6173 733d 2265 p;erG │ │ │ +000190b0: 726f 7570 696e 673c 2f73 7061 6e3e 3c77 rouping(Mat │ │ │ +00019120: 266e 6273 703b 696d 6167 652c 0a20 3c61  image,. Mat channel,. │ │ │ +00019180: 203c 6120 6872 6566 3d22 6874 7470 733a List<MatOfPoint& │ │ │ +00019280: 6774 3b26 6e62 7370 3b72 6567 696f 6e73 gt; regions │ │ │ +00019290: 2c0a 203c 6120 6872 6566 3d22 2e2e 2f63 ,. MatOfRect groups_r │ │ │ +000192f0: 6563 7473 2c0a 2069 6e74 266e 6273 703b ects,. int  │ │ │ +00019300: 6d65 7468 6f64 2c0a 203c 6120 6872 6566 method,. Stri │ │ │ +000193b0: 6e67 3c2f 613e 266e 6273 703b 6669 6c65 ng file │ │ │ +000193c0: 6e61 6d65 2c0a 2066 6c6f 6174 266e 6273 name,. float&nbs │ │ │ +000193d0: 703b 6d69 6e50 726f 6261 626c 6974 7929 p;minProbablity) │ │ │ +000193e0: 3c2f 7370 616e 3e3c 2f64 6976 3e0a 3c64
      .Find groups of │ │ │ +00019410: 4578 7472 656d 616c 2052 6567 696f 6e73 Extremal Regions │ │ │ +00019420: 2074 6861 7420 6172 6520 6f72 6761 6e69 that are organi │ │ │ +00019430: 7a65 6420 6173 2074 6578 7420 626c 6f63 zed as text bloc │ │ │ +00019440: 6b73 2e3c 2f64 6976 3e0a 3c64 6c20 636c ks..
      .
      Parameters:
      .
      imag │ │ │ +00019480: 653c 2f63 6f64 653e 202d 2061 7574 6f6d e - autom │ │ │ +00019490: 6174 6963 616c 6c79 2067 656e 6572 6174 atically generat │ │ │ +000194a0: 6564 3c2f 6464 3e0a 3c64 643e 3c63 6f64 ed
      .
      channel │ │ │ +000194c0: 202d 2061 7574 6f6d 6174 6963 616c 6c79 - automatically │ │ │ +000194d0: 2067 656e 6572 6174 6564 3c2f 6464 3e0a generated
      . │ │ │ +000194e0: 3c64 643e 3c63 6f64 653e 7265 6769 6f6e
      region │ │ │ +000194f0: 733c 2f63 6f64 653e 202d 2056 6563 746f s - Vecto │ │ │ +00019500: 7220 6f66 2045 5227 7320 7265 7472 6965 r of ER's retrie │ │ │ +00019510: 7665 6420 6672 6f6d 2074 6865 2045 5246 ved from the ERF │ │ │ +00019520: 696c 7465 7220 616c 676f 7269 7468 6d20 ilter algorithm │ │ │ +00019530: 6672 6f6d 2065 6163 6820 6368 616e 6e65 from each channe │ │ │ +00019540: 6c2e 0a0a 2070 726f 7669 6465 6420 7265 l... provided re │ │ │ +00019550: 6769 6f6e 732e 3c2f 6464 3e0a 3c64 643e gions.
      .
      │ │ │ +00019560: 3c63 6f64 653e 6772 6f75 7073 5f72 6563 groups_rec │ │ │ +00019570: 7473 3c2f 636f 6465 3e20 2d20 5468 6520 ts - The │ │ │ +00019580: 6f75 7470 7574 206f 6620 7468 6520 616c output of the al │ │ │ +00019590: 676f 7269 7468 6d20 6172 6520 7374 6f72 gorithm are stor │ │ │ +000195a0: 6564 2069 6e20 7468 6973 2070 6172 616d ed in this param │ │ │ +000195b0: 6574 6572 2061 7320 6c69 7374 206f 6620 eter as list of │ │ │ +000195c0: 7265 6374 616e 676c 6573 2e3c 2f64 643e rectangles.
      │ │ │ +000195d0: 0a3c 6464 3e3c 636f 6465 3e6d 6574 686f .
      metho │ │ │ +000195e0: 643c 2f63 6f64 653e 202d 2047 726f 7570 d - Group │ │ │ +000195f0: 696e 6720 6d65 7468 6f64 2028 7365 6520 ing method (see │ │ │ +00019600: 7465 7874 3a3a 6572 4772 6f75 7069 6e67 text::erGrouping │ │ │ +00019610: 5f4d 6f64 6573 292e 2043 616e 2062 6520 _Modes). Can be │ │ │ +00019620: 6f6e 6520 6f66 2045 5247 524f 5550 494e one of ERGROUPIN │ │ │ +00019630: 475f 4f52 4945 4e54 4154 494f 4e5f 484f G_ORIENTATION_HO │ │ │ +00019640: 5249 5a2c 0a20 4552 4752 4f55 5049 4e47 RIZ,. ERGROUPING │ │ │ +00019650: 5f4f 5249 454e 5441 5449 4f4e 5f41 4e59 _ORIENTATION_ANY │ │ │ +00019660: 2e3c 2f64 643e 0a3c 6464 3e3c 636f 6465 .
      .
      filename │ │ │ +00019680: 202d 2054 6865 2058 4d4c 206f 7220 5941 - The XML or YA │ │ │ +00019690: 4d4c 2066 696c 6520 7769 7468 2074 6865 ML file with the │ │ │ +000196a0: 2063 6c61 7373 6966 6965 7220 6d6f 6465 classifier mode │ │ │ +000196b0: 6c20 2865 2e67 2e0a 2073 616d 706c 6573 l (e.g.. samples │ │ │ +000196c0: 2f74 7261 696e 6564 5f63 6c61 7373 6966 /trained_classif │ │ │ +000196d0: 6965 725f 6572 4772 6f75 7069 6e67 2e78 ier_erGrouping.x │ │ │ +000196e0: 6d6c 292e 204f 6e6c 7920 746f 2075 7365 ml). Only to use │ │ │ +000196f0: 2077 6865 6e20 6772 6f75 7069 6e67 206d when grouping m │ │ │ +00019700: 6574 686f 6420 6973 0a20 4552 4752 4f55 ethod is. ERGROU │ │ │ +00019710: 5049 4e47 5f4f 5249 454e 5441 5449 4f4e PING_ORIENTATION │ │ │ +00019720: 5f41 4e59 2e3c 2f64 643e 0a3c 6464 3e3c _ANY.
      .
      < │ │ │ +00019730: 636f 6465 3e6d 696e 5072 6f62 6162 6c69 code>minProbabli │ │ │ +00019740: 7479 3c2f 636f 6465 3e20 2d20 5468 6520 ty - The │ │ │ +00019750: 6d69 6e69 6d75 6d20 7072 6f62 6162 696c minimum probabil │ │ │ +00019760: 6974 7920 666f 7220 6163 6365 7074 696e ity for acceptin │ │ │ +00019770: 6720 6120 6772 6f75 702e 204f 6e6c 7920 g a group. Only │ │ │ +00019780: 746f 2075 7365 2077 6865 6e20 6772 6f75 to use when grou │ │ │ +00019790: 7069 6e67 0a20 6d65 7468 6f64 2069 7320 ping. method is │ │ │ +000197a0: 4552 4752 4f55 5049 4e47 5f4f 5249 454e ERGROUPING_ORIEN │ │ │ +000197b0: 5441 5449 4f4e 5f41 4e59 2e3c 2f64 643e TATION_ANY.
      │ │ │ +000197c0: 0a3c 2f64 6c3e 0a3c 2f73 6563 7469 6f6e .
      ..
    • .
    • ..

      erGrouping

      │ │ │ +00019880: 0a3c 6469 7620 636c 6173 733d 226d 656d .
      < │ │ │ +000198a0: 7370 616e 2063 6c61 7373 3d22 6d6f 6469 span class="modi │ │ │ +000198b0: 6669 6572 7322 3e70 7562 6c69 6320 7374 fiers">public st │ │ │ +000198c0: 6174 6963 3c2f 7370 616e 3e26 6e62 7370 atic  │ │ │ +000198d0: 3b3c 7370 616e 2063 6c61 7373 3d22 7265 ;void< │ │ │ +000198f0: 2f73 7061 6e3e 266e 6273 703b 3c73 7061 /span> erGroupin │ │ │ +00019920: 673c 2f73 7061 6e3e 3c77 6272 3e3c 7370 g(Mat  │ │ │ +00019990: 696d 6167 652c 0a20 3c61 2068 7265 663d image,. Mat  │ │ │ +000199e0: 3b63 6861 6e6e 656c 2c0a 203c 6120 6872 ;channel,. List │ │ │ +00019a90: 3c2f 613e 266c 743b 3c61 2068 7265 663d <MatOf │ │ │ +00019ae0: 506f 696e 743c 2f61 3e26 6774 3b26 6e62 Point>&nb │ │ │ +00019af0: 7370 3b72 6567 696f 6e73 2c0a 203c 6120 sp;regions,. M │ │ │ +00019b40: 6174 4f66 5265 6374 3c2f 613e 266e 6273 atOfRect&nbs │ │ │ +00019b50: 703b 6772 6f75 7073 5f72 6563 7473 2c0a p;groups_rects,. │ │ │ +00019b60: 2069 6e74 266e 6273 703b 6d65 7468 6f64 int method │ │ │ +00019b70: 2c0a 203c 6120 6872 6566 3d22 6874 7470 ,. String │ │ │ +00019c20: 266e 6273 703b 6669 6c65 6e61 6d65 293c  filename)< │ │ │ +00019c30: 2f73 7061 6e3e 3c2f 6469 763e 0a3c 6469 /span>
      . │ │ │ +00019c50: 4669 6e64 2067 726f 7570 7320 6f66 2045 Find groups of E │ │ │ +00019c60: 7874 7265 6d61 6c20 5265 6769 6f6e 7320 xtremal Regions │ │ │ +00019c70: 7468 6174 2061 7265 206f 7267 616e 697a that are organiz │ │ │ +00019c80: 6564 2061 7320 7465 7874 2062 6c6f 636b ed as text block │ │ │ +00019c90: 732e 3c2f 6469 763e 0a3c 646c 2063 6c61 s..
      .
      │ │ │ +00019cb0: 5061 7261 6d65 7465 7273 3a3c 2f64 743e Parameters:
      │ │ │ +00019cc0: 0a3c 6464 3e3c 636f 6465 3e69 6d61 6765 .
      image │ │ │ +00019cd0: 3c2f 636f 6465 3e20 2d20 6175 746f 6d61 - automa │ │ │ +00019ce0: 7469 6361 6c6c 7920 6765 6e65 7261 7465 tically generate │ │ │ +00019cf0: 643c 2f64 643e 0a3c 6464 3e3c 636f 6465 d
      .
      channel │ │ │ +00019d10: 2d20 6175 746f 6d61 7469 6361 6c6c 7920 - automatically │ │ │ +00019d20: 6765 6e65 7261 7465 643c 2f64 643e 0a3c generated
      .< │ │ │ +00019d30: 6464 3e3c 636f 6465 3e72 6567 696f 6e73 dd>regions │ │ │ +00019d40: 3c2f 636f 6465 3e20 2d20 5665 6374 6f72 - Vector │ │ │ +00019d50: 206f 6620 4552 2773 2072 6574 7269 6576 of ER's retriev │ │ │ +00019d60: 6564 2066 726f 6d20 7468 6520 4552 4669 ed from the ERFi │ │ │ +00019d70: 6c74 6572 2061 6c67 6f72 6974 686d 2066 lter algorithm f │ │ │ +00019d80: 726f 6d20 6561 6368 2063 6861 6e6e 656c rom each channel │ │ │ +00019d90: 2e0a 0a20 7072 6f76 6964 6564 2072 6567 ... provided reg │ │ │ +00019da0: 696f 6e73 2e3c 2f64 643e 0a3c 6464 3e3c ions..
      < │ │ │ +00019db0: 636f 6465 3e67 726f 7570 735f 7265 6374 code>groups_rect │ │ │ +00019dc0: 733c 2f63 6f64 653e 202d 2054 6865 206f s - The o │ │ │ +00019dd0: 7574 7075 7420 6f66 2074 6865 2061 6c67 utput of the alg │ │ │ +00019de0: 6f72 6974 686d 2061 7265 2073 746f 7265 orithm are store │ │ │ +00019df0: 6420 696e 2074 6869 7320 7061 7261 6d65 d in this parame │ │ │ +00019e00: 7465 7220 6173 206c 6973 7420 6f66 2072 ter as list of r │ │ │ +00019e10: 6563 7461 6e67 6c65 732e 3c2f 6464 3e0a ectangles.
      . │ │ │ +00019e20: 3c64 643e 3c63 6f64 653e 6d65 7468 6f64
      method │ │ │ +00019e30: 3c2f 636f 6465 3e20 2d20 4772 6f75 7069 - Groupi │ │ │ +00019e40: 6e67 206d 6574 686f 6420 2873 6565 2074 ng method (see t │ │ │ +00019e50: 6578 743a 3a65 7247 726f 7570 696e 675f ext::erGrouping_ │ │ │ +00019e60: 4d6f 6465 7329 2e20 4361 6e20 6265 206f Modes). Can be o │ │ │ +00019e70: 6e65 206f 6620 4552 4752 4f55 5049 4e47 ne of ERGROUPING │ │ │ +00019e80: 5f4f 5249 454e 5441 5449 4f4e 5f48 4f52 _ORIENTATION_HOR │ │ │ +00019e90: 495a 2c0a 2045 5247 524f 5550 494e 475f IZ,. ERGROUPING_ │ │ │ +00019ea0: 4f52 4945 4e54 4154 494f 4e5f 414e 592e ORIENTATION_ANY. │ │ │ +00019eb0: 3c2f 6464 3e0a 3c64 643e 3c63 6f64 653e
      .
      │ │ │ +00019ec0: 6669 6c65 6e61 6d65 3c2f 636f 6465 3e20 filename │ │ │ +00019ed0: 2d20 5468 6520 584d 4c20 6f72 2059 414d - The XML or YAM │ │ │ +00019ee0: 4c20 6669 6c65 2077 6974 6820 7468 6520 L file with the │ │ │ +00019ef0: 636c 6173 7369 6669 6572 206d 6f64 656c classifier model │ │ │ +00019f00: 2028 652e 672e 0a20 7361 6d70 6c65 732f (e.g.. samples/ │ │ │ +00019f10: 7472 6169 6e65 645f 636c 6173 7369 6669 trained_classifi │ │ │ +00019f20: 6572 5f65 7247 726f 7570 696e 672e 786d er_erGrouping.xm │ │ │ +00019f30: 6c29 2e20 4f6e 6c79 2074 6f20 7573 6520 l). Only to use │ │ │ +00019f40: 7768 656e 2067 726f 7570 696e 6720 6d65 when grouping me │ │ │ +00019f50: 7468 6f64 2069 730a 2045 5247 524f 5550 thod is. ERGROUP │ │ │ +00019f60: 494e 475f 4f52 4945 4e54 4154 494f 4e5f ING_ORIENTATION_ │ │ │ +00019f70: 414e 592e 0a0a 206d 6574 686f 6420 6973 ANY... method is │ │ │ +00019f80: 2045 5247 524f 5550 494e 475f 4f52 4945 ERGROUPING_ORIE │ │ │ +00019f90: 4e54 4154 494f 4e5f 414e 592e 3c2f 6464 NTATION_ANY.
      .
      ..
    • .
    • ..

      erGrouping

      │ │ │ +0001a050: 0a3c 6469 7620 636c 6173 733d 226d 656d .
      < │ │ │ +0001a070: 7370 616e 2063 6c61 7373 3d22 6d6f 6469 span class="modi │ │ │ +0001a080: 6669 6572 7322 3e70 7562 6c69 6320 7374 fiers">public st │ │ │ +0001a090: 6174 6963 3c2f 7370 616e 3e26 6e62 7370 atic  │ │ │ +0001a0a0: 3b3c 7370 616e 2063 6c61 7373 3d22 7265 ;void< │ │ │ +0001a0c0: 2f73 7061 6e3e 266e 6273 703b 3c73 7061 /span> erGroupin │ │ │ +0001a0f0: 673c 2f73 7061 6e3e 3c77 6272 3e3c 7370 g(Mat  │ │ │ +0001a160: 696d 6167 652c 0a20 3c61 2068 7265 663d image,. Mat  │ │ │ +0001a1b0: 3b63 6861 6e6e 656c 2c0a 203c 6120 6872 ;channel,. List │ │ │ +0001a260: 3c2f 613e 266c 743b 3c61 2068 7265 663d <MatOf │ │ │ +0001a2b0: 506f 696e 743c 2f61 3e26 6774 3b26 6e62 Point>&nb │ │ │ +0001a2c0: 7370 3b72 6567 696f 6e73 2c0a 203c 6120 sp;regions,. M │ │ │ +0001a310: 6174 4f66 5265 6374 3c2f 613e 266e 6273 atOfRect&nbs │ │ │ +0001a320: 703b 6772 6f75 7073 5f72 6563 7473 2c0a p;groups_rects,. │ │ │ +0001a330: 2069 6e74 266e 6273 703b 6d65 7468 6f64 int method │ │ │ +0001a340: 293c 2f73 7061 6e3e 3c2f 6469 763e 0a3c )
      .< │ │ │ +0001a350: 6469 7620 636c 6173 733d 2262 6c6f 636b div class="block │ │ │ +0001a360: 223e 4669 6e64 2067 726f 7570 7320 6f66 ">Find groups of │ │ │ +0001a370: 2045 7874 7265 6d61 6c20 5265 6769 6f6e Extremal Region │ │ │ +0001a380: 7320 7468 6174 2061 7265 206f 7267 616e s that are organ │ │ │ +0001a390: 697a 6564 2061 7320 7465 7874 2062 6c6f ized as text blo │ │ │ +0001a3a0: 636b 732e 3c2f 6469 763e 0a3c 646c 2063 cks..
      .Parameters:.
      ima │ │ │ +0001a3e0: 6765 3c2f 636f 6465 3e20 2d20 6175 746f ge - auto │ │ │ +0001a3f0: 6d61 7469 6361 6c6c 7920 6765 6e65 7261 matically genera │ │ │ +0001a400: 7465 643c 2f64 643e 0a3c 6464 3e3c 636f ted
      .
      channel - automaticall │ │ │ +0001a430: 7920 6765 6e65 7261 7465 643c 2f64 643e y generated
      │ │ │ +0001a440: 0a3c 6464 3e3c 636f 6465 3e72 6567 696f .
      regio │ │ │ +0001a450: 6e73 3c2f 636f 6465 3e20 2d20 5665 6374 ns - Vect │ │ │ +0001a460: 6f72 206f 6620 4552 2773 2072 6574 7269 or of ER's retri │ │ │ +0001a470: 6576 6564 2066 726f 6d20 7468 6520 4552 eved from the ER │ │ │ +0001a480: 4669 6c74 6572 2061 6c67 6f72 6974 686d Filter algorithm │ │ │ +0001a490: 2066 726f 6d20 6561 6368 2063 6861 6e6e from each chann │ │ │ +0001a4a0: 656c 2e0a 0a20 7072 6f76 6964 6564 2072 el... provided r │ │ │ +0001a4b0: 6567 696f 6e73 2e3c 2f64 643e 0a3c 6464 egions.
      .
      groups_re │ │ │ +0001a4d0: 6374 733c 2f63 6f64 653e 202d 2054 6865 cts - The │ │ │ +0001a4e0: 206f 7574 7075 7420 6f66 2074 6865 2061 output of the a │ │ │ +0001a4f0: 6c67 6f72 6974 686d 2061 7265 2073 746f lgorithm are sto │ │ │ +0001a500: 7265 6420 696e 2074 6869 7320 7061 7261 red in this para │ │ │ +0001a510: 6d65 7465 7220 6173 206c 6973 7420 6f66 meter as list of │ │ │ +0001a520: 2072 6563 7461 6e67 6c65 732e 3c2f 6464 rectangles.
      .
      meth │ │ │ +0001a540: 6f64 3c2f 636f 6465 3e20 2d20 4772 6f75 od - Grou │ │ │ +0001a550: 7069 6e67 206d 6574 686f 6420 2873 6565 ping method (see │ │ │ +0001a560: 2074 6578 743a 3a65 7247 726f 7570 696e text::erGroupin │ │ │ +0001a570: 675f 4d6f 6465 7329 2e20 4361 6e20 6265 g_Modes). Can be │ │ │ +0001a580: 206f 6e65 206f 6620 4552 4752 4f55 5049 one of ERGROUPI │ │ │ +0001a590: 4e47 5f4f 5249 454e 5441 5449 4f4e 5f48 NG_ORIENTATION_H │ │ │ +0001a5a0: 4f52 495a 2c0a 2045 5247 524f 5550 494e ORIZ,. ERGROUPIN │ │ │ +0001a5b0: 475f 4f52 4945 4e54 4154 494f 4e5f 414e G_ORIENTATION_AN │ │ │ +0001a5c0: 592e 0a0a 2073 616d 706c 6573 2f74 7261 Y... samples/tra │ │ │ +0001a5d0: 696e 6564 5f63 6c61 7373 6966 6965 725f ined_classifier_ │ │ │ +0001a5e0: 6572 4772 6f75 7069 6e67 2e78 6d6c 292e erGrouping.xml). │ │ │ +0001a5f0: 204f 6e6c 7920 746f 2075 7365 2077 6865 Only to use whe │ │ │ +0001a600: 6e20 6772 6f75 7069 6e67 206d 6574 686f n grouping metho │ │ │ +0001a610: 6420 6973 0a20 4552 4752 4f55 5049 4e47 d is. ERGROUPING │ │ │ +0001a620: 5f4f 5249 454e 5441 5449 4f4e 5f41 4e59 _ORIENTATION_ANY │ │ │ +0001a630: 2e0a 0a20 6d65 7468 6f64 2069 7320 4552 ... method is ER │ │ │ +0001a640: 4752 4f55 5049 4e47 5f4f 5249 454e 5441 GROUPING_ORIENTA │ │ │ +0001a650: 5449 4f4e 5f41 4e59 2e3c 2f64 643e 0a3c TION_ANY.
      .< │ │ │ +0001a660: 2f64 6c3e 0a3c 2f73 6563 7469 6f6e 3e0a /dl>.. │ │ │ +0001a670: 3c2f 6c69 3e0a 3c6c 693e 0a3c 7365 6374
    • .
    • ..

      erGrou │ │ │ +0001a700: 7069 6e67 3c2f 6833 3e0a 3c64 6976 2063 ping

      .
      │ │ │ +0001a740: 7075 626c 6963 2073 7461 7469 633c 2f73 public static void& │ │ │ +0001a780: 6e62 7370 3b3c 7370 616e 2063 6c61 7373 nbsp; │ │ │ +0001a7a0: 6572 4772 6f75 7069 6e67 3c2f 7370 616e erGrouping( │ │ │ +0001a7d0: 3c61 2068 7265 663d 222e 2e2f 636f 7265 Mat< │ │ │ +0001a810: 2f61 3e26 6e62 7370 3b69 6d61 6765 2c0a /a> image,. │ │ │ +0001a820: 203c 6120 6872 6566 3d22 2e2e 2f63 6f72 Mat │ │ │ +0001a860: 3c2f 613e 266e 6273 703b 6368 616e 6e65  channe │ │ │ +0001a870: 6c2c 0a20 3c61 2068 7265 663d 2268 7474 l,. List< │ │ │ +0001a920: 3b3c 6120 6872 6566 3d22 2e2e 2f63 6f72 ;MatOfPoint> regi │ │ │ +0001a980: 6f6e 732c 0a20 3c61 2068 7265 663d 222e ons,. MatOfRec │ │ │ +0001a9d0: 743c 2f61 3e26 6e62 7370 3b67 726f 7570 t group │ │ │ +0001a9e0: 735f 7265 6374 7329 3c2f 7370 616e 3e3c s_rects)< │ │ │ +0001a9f0: 2f64 6976 3e0a 3c64 6976 2063 6c61 7373 /div>.
      Find gr │ │ │ +0001aa10: 6f75 7073 206f 6620 4578 7472 656d 616c oups of Extremal │ │ │ +0001aa20: 2052 6567 696f 6e73 2074 6861 7420 6172 Regions that ar │ │ │ +0001aa30: 6520 6f72 6761 6e69 7a65 6420 6173 2074 e organized as t │ │ │ +0001aa40: 6578 7420 626c 6f63 6b73 2e3c 2f64 6976 ext blocks.
      .
      .
      Paramet │ │ │ +0001aa70: 6572 733a 3c2f 6474 3e0a 3c64 643e 3c63 ers:
      .
      image │ │ │ +0001aa90: 202d 2061 7574 6f6d 6174 6963 616c 6c79 - automatically │ │ │ +0001aaa0: 2067 656e 6572 6174 6564 3c2f 6464 3e0a generated
      . │ │ │ +0001aab0: 3c64 643e 3c63 6f64 653e 6368 616e 6e65
      channe │ │ │ +0001aac0: 6c3c 2f63 6f64 653e 202d 2061 7574 6f6d l - autom │ │ │ +0001aad0: 6174 6963 616c 6c79 2067 656e 6572 6174 atically generat │ │ │ +0001aae0: 6564 3c2f 6464 3e0a 3c64 643e 3c63 6f64 ed
      .
      regions │ │ │ +0001ab00: 202d 2056 6563 746f 7220 6f66 2045 5227 - Vector of ER' │ │ │ +0001ab10: 7320 7265 7472 6965 7665 6420 6672 6f6d s retrieved from │ │ │ +0001ab20: 2074 6865 2045 5246 696c 7465 7220 616c the ERFilter al │ │ │ +0001ab30: 676f 7269 7468 6d20 6672 6f6d 2065 6163 gorithm from eac │ │ │ +0001ab40: 6820 6368 616e 6e65 6c2e 0a0a 2070 726f h channel... pro │ │ │ +0001ab50: 7669 6465 6420 7265 6769 6f6e 732e 3c2f vided regions..
      gr │ │ │ +0001ab70: 6f75 7073 5f72 6563 7473 3c2f 636f 6465 oups_rects - The output o │ │ │ +0001ab90: 6620 7468 6520 616c 676f 7269 7468 6d20 f the algorithm │ │ │ +0001aba0: 6172 6520 7374 6f72 6564 2069 6e20 7468 are stored in th │ │ │ +0001abb0: 6973 2070 6172 616d 6574 6572 2061 7320 is parameter as │ │ │ +0001abc0: 6c69 7374 206f 6620 7265 6374 616e 676c list of rectangl │ │ │ +0001abd0: 6573 2e0a 0a20 4552 4752 4f55 5049 4e47 es... ERGROUPING │ │ │ +0001abe0: 5f4f 5249 454e 5441 5449 4f4e 5f41 4e59 _ORIENTATION_ANY │ │ │ +0001abf0: 2e0a 0a20 7361 6d70 6c65 732f 7472 6169 ... samples/trai │ │ │ +0001ac00: 6e65 645f 636c 6173 7369 6669 6572 5f65 ned_classifier_e │ │ │ +0001ac10: 7247 726f 7570 696e 672e 786d 6c29 2e20 rGrouping.xml). │ │ │ +0001ac20: 4f6e 6c79 2074 6f20 7573 6520 7768 656e Only to use when │ │ │ +0001ac30: 2067 726f 7570 696e 6720 6d65 7468 6f64 grouping method │ │ │ +0001ac40: 2069 730a 2045 5247 524f 5550 494e 475f is. ERGROUPING_ │ │ │ +0001ac50: 4f52 4945 4e54 4154 494f 4e5f 414e 592e ORIENTATION_ANY. │ │ │ +0001ac60: 0a0a 206d 6574 686f 6420 6973 2045 5247 .. method is ERG │ │ │ +0001ac70: 524f 5550 494e 475f 4f52 4945 4e54 4154 ROUPING_ORIENTAT │ │ │ +0001ac80: 494f 4e5f 414e 592e 3c2f 6464 3e0a 3c2f ION_ANY.
      ...< │ │ │ +0001aca0: 2f6c 693e 0a3c 6c69 3e0a 3c73 6563 7469 /li>.
    • ..

      │ │ │ +0001ad30: 6465 7465 6374 5265 6769 6f6e 733c 2f68 detectRegions.
      public │ │ │ +0001ad80: 7374 6174 6963 3c2f 7370 616e 3e26 6e62 static&nb │ │ │ +0001ad90: 7370 3b3c 7370 616e 2063 6c61 7373 3d22 sp;voi │ │ │ +0001adb0: 643c 2f73 7061 6e3e 266e 6273 703b 3c73 d detectR │ │ │ +0001ade0: 6567 696f 6e73 3c2f 7370 616e 3e3c 7762 egions(Mat& │ │ │ +0001ae50: 6e62 7370 3b69 6d61 6765 2c0a 203c 6120 nbsp;image,. ERFilter er_filte │ │ │ +0001aeb0: 7231 2c0a 203c 6120 6872 6566 3d22 4552 r1,. ER │ │ │ +0001aef0: 4669 6c74 6572 3c2f 613e 266e 6273 703b Filter  │ │ │ +0001af00: 6572 5f66 696c 7465 7232 2c0a 203c 6120 er_filter2,. Li │ │ │ +0001afb0: 7374 3c2f 613e 266c 743b 3c61 2068 7265 st<Mat │ │ │ +0001b000: 4f66 506f 696e 743c 2f61 3e26 6774 3b26 OfPoint>& │ │ │ +0001b010: 6e62 7370 3b72 6567 696f 6e73 293c 2f73 nbsp;regions)
      .
      Co │ │ │ +0001b040: 6e76 6572 7473 204d 5345 5220 636f 6e74 nverts MSER cont │ │ │ +0001b050: 6f75 7273 2028 7665 6374 6f72 266c 743b ours (vector< │ │ │ +0001b060: 506f 696e 7426 6774 3b29 2074 6f20 4552 Point>) to ER │ │ │ +0001b070: 5374 6174 2072 6567 696f 6e73 2e3c 2f64 Stat regions..
      .
      Param │ │ │ +0001b0a0: 6574 6572 733a 3c2f 6474 3e0a 3c64 643e eters:
      .
      │ │ │ +0001b0b0: 3c63 6f64 653e 696d 6167 653c 2f63 6f64 image - Source imag │ │ │ +0001b0d0: 6520 4356 5f38 5543 3120 6672 6f6d 2077 e CV_8UC1 from w │ │ │ +0001b0e0: 6869 6368 2074 6865 204d 5345 5273 2077 hich the MSERs w │ │ │ +0001b0f0: 6865 7265 2065 7874 7261 6374 6564 2e3c here extracted.< │ │ │ +0001b100: 2f64 643e 0a3c 6464 3e3c 636f 6465 3e65 /dd>.
      e │ │ │ +0001b110: 725f 6669 6c74 6572 313c 2f63 6f64 653e r_filter1 │ │ │ +0001b120: 202d 2061 7574 6f6d 6174 6963 616c 6c79 - automatically │ │ │ +0001b130: 2067 656e 6572 6174 6564 3c2f 6464 3e0a generated
      . │ │ │ +0001b140: 3c64 643e 3c63 6f64 653e 6572 5f66 696c
      er_fil │ │ │ +0001b150: 7465 7232 3c2f 636f 6465 3e20 2d20 6175 ter2 - au │ │ │ +0001b160: 746f 6d61 7469 6361 6c6c 7920 6765 6e65 tomatically gene │ │ │ +0001b170: 7261 7465 643c 2f64 643e 0a3c 6464 3e3c rated
      .
      < │ │ │ +0001b180: 636f 6465 3e72 6567 696f 6e73 3c2f 636f code>regions - Output whe │ │ │ +0001b1a0: 7265 2074 6865 2045 5253 7461 7420 7265 re the ERStat re │ │ │ +0001b1b0: 6769 6f6e 7320 6172 6520 7374 6f72 6564 gions are stored │ │ │ +0001b1c0: 2e0a 0a20 4974 2074 616b 6573 2061 7320 ... It takes as │ │ │ +0001b1d0: 696e 7075 7420 7468 6520 636f 6e74 6f75 input the contou │ │ │ +0001b1e0: 7273 2070 726f 7669 6465 6420 6279 2074 rs provided by t │ │ │ +0001b1f0: 6865 204f 7065 6e43 5620 4d53 4552 2066 he OpenCV MSER f │ │ │ +0001b200: 6561 7475 7265 2064 6574 6563 746f 7220 eature detector │ │ │ +0001b210: 616e 6420 7265 7475 726e 7320 6173 206f and returns as o │ │ │ +0001b220: 7574 7075 740a 2074 776f 2076 6563 746f utput. two vecto │ │ │ +0001b230: 7273 206f 6620 4552 5374 6174 732e 2054 rs of ERStats. T │ │ │ +0001b240: 6869 7320 6973 2062 6563 6175 7365 204d his is because M │ │ │ +0001b250: 5345 5228 2920 6f75 7470 7574 2063 6f6e SER() output con │ │ │ +0001b260: 7461 696e 7320 626f 7468 204d 5345 522b tains both MSER+ │ │ │ +0001b270: 2061 6e64 204d 5345 522d 2072 6567 696f and MSER- regio │ │ │ +0001b280: 6e73 2069 6e20 610a 2073 696e 676c 6520 ns in a. single │ │ │ +0001b290: 7665 6374 6f72 266c 743b 506f 696e 7426 vector<Point& │ │ │ +0001b2a0: 6774 3b2c 2074 6865 2066 756e 6374 696f gt;, the functio │ │ │ +0001b2b0: 6e20 7365 7061 7261 7465 7320 7468 656d n separates them │ │ │ +0001b2c0: 2069 6e20 7477 6f20 6469 6666 6572 656e in two differen │ │ │ +0001b2d0: 7420 7665 6374 6f72 7320 2874 6869 7320 t vectors (this │ │ │ +0001b2e0: 6973 2061 7320 6966 2074 6865 0a20 4552 is as if the. ER │ │ │ +0001b2f0: 5374 6174 7320 7768 6572 6520 6578 7472 Stats where extr │ │ │ +0001b300: 6163 7465 6420 6672 6f6d 2074 776f 2064 acted from two d │ │ │ +0001b310: 6966 6665 7265 6e74 2063 6861 6e6e 656c ifferent channel │ │ │ +0001b320: 7329 2e0a 0a20 416e 2065 7861 6d70 6c65 s)... An example │ │ │ +0001b330: 206f 6620 4d53 4552 7354 6f45 5253 7461 of MSERsToERSta │ │ │ +0001b340: 7473 2069 6e20 7573 6520 6361 6e20 6265 ts in use can be │ │ │ +0001b350: 2066 6f75 6e64 2069 6e20 7468 6520 7465 found in the te │ │ │ +0001b360: 7874 2064 6574 6563 7469 6f6e 2077 6562 xt detection web │ │ │ +0001b370: 6361 6d5f 6465 6d6f 3a0a 2026 6c74 3b68 cam_demo:. <h │ │ │ +0001b380: 7474 7073 3a2f 2f67 6974 6875 622e 636f ttps://github.co │ │ │ +0001b390: 6d2f 6f70 656e 6376 2f6f 7065 6e63 765f m/opencv/opencv_ │ │ │ +0001b3a0: 636f 6e74 7269 622f 626c 6f62 2f6d 6173 contrib/blob/mas │ │ │ +0001b3b0: 7465 722f 6d6f 6475 6c65 732f 7465 7874 ter/modules/text │ │ │ +0001b3c0: 2f73 616d 706c 6573 2f77 6562 6361 6d5f /samples/webcam_ │ │ │ +0001b3d0: 6465 6d6f 2e63 7070 2667 743b 3c2f 6464 demo.cpp>
      .
      ..

    • .
    • ..

      detect │ │ │ +0001b4b0: 5265 6769 6f6e 733c 2f68 333e 0a3c 6469 Regions

      .public static │ │ │ +0001b500: 3c2f 7370 616e 3e26 6e62 7370 3b3c 7370  void detectRegions │ │ │ +0001b560: 3c2f 7370 616e 3e3c 7762 723e 3c73 7061 (Mat i │ │ │ +0001b5d0: 6d61 6765 2c0a 203c 6120 6872 6566 3d22 mage,. │ │ │ +0001b610: 4552 4669 6c74 6572 3c2f 613e 266e 6273 ERFilter&nbs │ │ │ +0001b620: 703b 6572 5f66 696c 7465 7231 2c0a 203c p;er_filter1,. < │ │ │ +0001b630: 6120 6872 6566 3d22 4552 4669 6c74 6572 a href="ERFilter │ │ │ +0001b640: 2e68 746d 6c22 2074 6974 6c65 3d22 636c .html" title="cl │ │ │ +0001b650: 6173 7320 696e 206f 7267 2e6f 7065 6e63 ass in org.openc │ │ │ +0001b660: 762e 7465 7874 223e 4552 4669 6c74 6572 v.text">ERFilter │ │ │ +0001b670: 3c2f 613e 266e 6273 703b 6572 5f66 696c  er_fil │ │ │ +0001b680: 7465 7232 2c0a 203c 6120 6872 6566 3d22 ter2,. MatOfRe │ │ │ +0001b6d0: 6374 3c2f 613e 266e 6273 703b 6772 6f75 ct grou │ │ │ +0001b6e0: 7073 5f72 6563 7473 2c0a 2069 6e74 266e ps_rects,. int&n │ │ │ +0001b6f0: 6273 703b 6d65 7468 6f64 2c0a 203c 6120 bsp;method,. │ │ │ +0001b7a0: 5374 7269 6e67 3c2f 613e 266e 6273 703b String  │ │ │ +0001b7b0: 6669 6c65 6e61 6d65 2c0a 2066 6c6f 6174 filename,. float │ │ │ +0001b7c0: 266e 6273 703b 6d69 6e50 726f 6261 6269  minProbabi │ │ │ +0001b7d0: 6c69 7479 293c 2f73 7061 6e3e 3c2f 6469 lity).
      Extracts t │ │ │ +0001b800: 6578 7420 7265 6769 6f6e 7320 6672 6f6d ext regions from │ │ │ +0001b810: 2069 6d61 6765 2e3c 2f64 6976 3e0a 3c64 image.
      . │ │ │ +0001b830: 0a3c 6474 3e50 6172 616d 6574 6572 733a .
      Parameters: │ │ │ +0001b840: 3c2f 6474 3e0a 3c64 643e 3c63 6f64 653e
      .
      │ │ │ +0001b850: 696d 6167 653c 2f63 6f64 653e 202d 2053 image - S │ │ │ +0001b860: 6f75 7263 6520 696d 6167 6520 7768 6572 ource image wher │ │ │ +0001b870: 6520 7465 7874 2062 6c6f 636b 7320 6e65 e text blocks ne │ │ │ +0001b880: 6564 7320 746f 2062 6520 6578 7472 6163 eds to be extrac │ │ │ +0001b890: 7465 6420 6672 6f6d 2e20 2053 686f 756c ted from. Shoul │ │ │ +0001b8a0: 6420 6265 2043 565f 3855 4333 2028 636f d be CV_8UC3 (co │ │ │ +0001b8b0: 6c6f 7229 2e3c 2f64 643e 0a3c 6464 3e3c lor).
      .
      < │ │ │ +0001b8c0: 636f 6465 3e65 725f 6669 6c74 6572 313c code>er_filter1< │ │ │ +0001b8d0: 2f63 6f64 653e 202d 2045 7874 7265 6d61 /code> - Extrema │ │ │ +0001b8e0: 6c20 5265 6769 6f6e 2046 696c 7465 7220 l Region Filter │ │ │ +0001b8f0: 666f 7220 7468 6520 3173 7420 7374 6167 for the 1st stag │ │ │ +0001b900: 6520 636c 6173 7369 6669 6572 206f 6620 e classifier of │ │ │ +0001b910: 4e26 616d 703b 4d20 616c 676f 7269 7468 N&M algorith │ │ │ +0001b920: 6d20 4349 5445 3a20 4e65 756d 616e 6e31 m CITE: Neumann1 │ │ │ +0001b930: 323c 2f64 643e 0a3c 6464 3e3c 636f 6465 2
      .
      er_filter2 - Extremal Re │ │ │ +0001b960: 6769 6f6e 2046 696c 7465 7220 666f 7220 gion Filter for │ │ │ +0001b970: 7468 6520 326e 6420 7374 6167 6520 636c the 2nd stage cl │ │ │ +0001b980: 6173 7369 6669 6572 206f 6620 4e26 616d assifier of N&am │ │ │ +0001b990: 703b 4d20 616c 676f 7269 7468 6d20 4349 p;M algorithm CI │ │ │ +0001b9a0: 5445 3a20 4e65 756d 616e 6e31 323c 2f64 TE: Neumann12.
      gro │ │ │ +0001b9c0: 7570 735f 7265 6374 733c 2f63 6f64 653e ups_rects │ │ │ +0001b9d0: 202d 204f 7574 7075 7420 6c69 7374 206f - Output list o │ │ │ +0001b9e0: 6620 7265 6374 616e 676c 6520 626c 6f63 f rectangle bloc │ │ │ +0001b9f0: 6b73 2077 6974 6820 7465 7874 3c2f 6464 ks with text
      .
      meth │ │ │ +0001ba10: 6f64 3c2f 636f 6465 3e20 2d20 4772 6f75 od - Grou │ │ │ +0001ba20: 7069 6e67 206d 6574 686f 6420 2873 6565 ping method (see │ │ │ +0001ba30: 2074 6578 743a 3a65 7247 726f 7570 696e text::erGroupin │ │ │ +0001ba40: 675f 4d6f 6465 7329 2e20 4361 6e20 6265 g_Modes). Can be │ │ │ +0001ba50: 206f 6e65 206f 6620 4552 4752 4f55 5049 one of ERGROUPI │ │ │ +0001ba60: 4e47 5f4f 5249 454e 5441 5449 4f4e 5f48 NG_ORIENTATION_H │ │ │ +0001ba70: 4f52 495a 2c20 4552 4752 4f55 5049 4e47 ORIZ, ERGROUPING │ │ │ +0001ba80: 5f4f 5249 454e 5441 5449 4f4e 5f41 4e59 _ORIENTATION_ANY │ │ │ +0001ba90: 2e3c 2f64 643e 0a3c 6464 3e3c 636f 6465 .
      .
      filename │ │ │ +0001bab0: 202d 2054 6865 2058 4d4c 206f 7220 5941 - The XML or YA │ │ │ +0001bac0: 4d4c 2066 696c 6520 7769 7468 2074 6865 ML file with the │ │ │ +0001bad0: 2063 6c61 7373 6966 6965 7220 6d6f 6465 classifier mode │ │ │ +0001bae0: 6c20 2865 2e67 2e20 7361 6d70 6c65 732f l (e.g. samples/ │ │ │ +0001baf0: 7472 6169 6e65 645f 636c 6173 7369 6669 trained_classifi │ │ │ +0001bb00: 6572 5f65 7247 726f 7570 696e 672e 786d er_erGrouping.xm │ │ │ +0001bb10: 6c29 2e20 4f6e 6c79 2074 6f20 7573 6520 l). Only to use │ │ │ +0001bb20: 7768 656e 2067 726f 7570 696e 6720 6d65 when grouping me │ │ │ +0001bb30: 7468 6f64 2069 7320 4552 4752 4f55 5049 thod is ERGROUPI │ │ │ +0001bb40: 4e47 5f4f 5249 454e 5441 5449 4f4e 5f41 NG_ORIENTATION_A │ │ │ +0001bb50: 4e59 2e3c 2f64 643e 0a3c 6464 3e3c 636f NY.
      .
      minProbabilit │ │ │ +0001bb70: 793c 2f63 6f64 653e 202d 2054 6865 206d y - The m │ │ │ +0001bb80: 696e 696d 756d 2070 726f 6261 6269 6c69 inimum probabili │ │ │ +0001bb90: 7479 2066 6f72 2061 6363 6570 7469 6e67 ty for accepting │ │ │ +0001bba0: 2061 2067 726f 7570 2e20 4f6e 6c79 2074 a group. Only t │ │ │ +0001bbb0: 6f20 7573 6520 7768 656e 2067 726f 7570 o use when group │ │ │ +0001bbc0: 696e 6720 6d65 7468 6f64 2069 7320 4552 ing method is ER │ │ │ +0001bbd0: 4752 4f55 5049 4e47 5f4f 5249 454e 5441 GROUPING_ORIENTA │ │ │ +0001bbe0: 5449 4f4e 5f41 4e59 2e3c 2f64 643e 0a3c TION_ANY.
      .< │ │ │ +0001bbf0: 2f64 6c3e 0a3c 2f73 6563 7469 6f6e 3e0a /dl>.. │ │ │ +0001bc00: 3c2f 6c69 3e0a 3c6c 693e 0a3c 7365 6374
    • .
    • ..

      detectRegions.
      public │ │ │ +0001bd00: 2073 7461 7469 633c 2f73 7061 6e3e 266e static&n │ │ │ +0001bd10: 6273 703b 3c73 7061 6e20 636c 6173 733d bsp;vo │ │ │ +0001bd30: 6964 3c2f 7370 616e 3e26 6e62 7370 3b3c id < │ │ │ +0001bd40: 7370 616e 2063 6c61 7373 3d22 656c 656d span class="elem │ │ │ +0001bd50: 656e 742d 6e61 6d65 223e 6465 7465 6374 ent-name">detect │ │ │ +0001bd60: 5265 6769 6f6e 733c 2f73 7061 6e3e 3c77 Regions(Mat │ │ │ +0001bdd0: 266e 6273 703b 696d 6167 652c 0a20 3c61  image,. ERFilter< │ │ │ +0001be20: 2f61 3e26 6e62 7370 3b65 725f 6669 6c74 /a> er_filt │ │ │ +0001be30: 6572 312c 0a20 3c61 2068 7265 663d 2245 er1,. E │ │ │ +0001be70: 5246 696c 7465 723c 2f61 3e26 6e62 7370 RFilter  │ │ │ +0001be80: 3b65 725f 6669 6c74 6572 322c 0a20 3c61 ;er_filter2,. │ │ │ +0001bed0: 4d61 744f 6652 6563 743c 2f61 3e26 6e62 MatOfRect&nb │ │ │ +0001bee0: 7370 3b67 726f 7570 735f 7265 6374 732c sp;groups_rects, │ │ │ +0001bef0: 0a20 696e 7426 6e62 7370 3b6d 6574 686f . int metho │ │ │ +0001bf00: 642c 0a20 3c61 2068 7265 663d 2268 7474 d,. String filename) │ │ │ +0001bfc0: 3c2f 7370 616e 3e3c 2f64 6976 3e0a 3c64
      .Extracts text r │ │ │ +0001bff0: 6567 696f 6e73 2066 726f 6d20 696d 6167 egions from imag │ │ │ +0001c000: 652e 3c2f 6469 763e 0a3c 646c 2063 6c61 e.

    • .
      .
      │ │ │ +0001c020: 5061 7261 6d65 7465 7273 3a3c 2f64 743e Parameters:
      │ │ │ +0001c030: 0a3c 6464 3e3c 636f 6465 3e69 6d61 6765 .
      image │ │ │ +0001c040: 3c2f 636f 6465 3e20 2d20 536f 7572 6365 - Source │ │ │ +0001c050: 2069 6d61 6765 2077 6865 7265 2074 6578 image where tex │ │ │ +0001c060: 7420 626c 6f63 6b73 206e 6565 6473 2074 t blocks needs t │ │ │ +0001c070: 6f20 6265 2065 7874 7261 6374 6564 2066 o be extracted f │ │ │ +0001c080: 726f 6d2e 2020 5368 6f75 6c64 2062 6520 rom. Should be │ │ │ +0001c090: 4356 5f38 5543 3320 2863 6f6c 6f72 292e CV_8UC3 (color). │ │ │ +0001c0a0: 3c2f 6464 3e0a 3c64 643e 3c63 6f64 653e
      .
      │ │ │ +0001c0b0: 6572 5f66 696c 7465 7231 3c2f 636f 6465 er_filter1 - Extremal Reg │ │ │ +0001c0d0: 696f 6e20 4669 6c74 6572 2066 6f72 2074 ion Filter for t │ │ │ +0001c0e0: 6865 2031 7374 2073 7461 6765 2063 6c61 he 1st stage cla │ │ │ +0001c0f0: 7373 6966 6965 7220 6f66 204e 2661 6d70 ssifier of N& │ │ │ +0001c100: 3b4d 2061 6c67 6f72 6974 686d 2043 4954 ;M algorithm CIT │ │ │ +0001c110: 453a 204e 6575 6d61 6e6e 3132 3c2f 6464 E: Neumann12
      .
      er_f │ │ │ +0001c130: 696c 7465 7232 3c2f 636f 6465 3e20 2d20 ilter2 - │ │ │ +0001c140: 4578 7472 656d 616c 2052 6567 696f 6e20 Extremal Region │ │ │ +0001c150: 4669 6c74 6572 2066 6f72 2074 6865 2032 Filter for the 2 │ │ │ +0001c160: 6e64 2073 7461 6765 2063 6c61 7373 6966 nd stage classif │ │ │ +0001c170: 6965 7220 6f66 204e 2661 6d70 3b4d 2061 ier of N&M a │ │ │ +0001c180: 6c67 6f72 6974 686d 2043 4954 453a 204e lgorithm CITE: N │ │ │ +0001c190: 6575 6d61 6e6e 3132 3c2f 6464 3e0a 3c64 eumann12
      .groups_r │ │ │ +0001c1b0: 6563 7473 3c2f 636f 6465 3e20 2d20 4f75 ects - Ou │ │ │ +0001c1c0: 7470 7574 206c 6973 7420 6f66 2072 6563 tput list of rec │ │ │ +0001c1d0: 7461 6e67 6c65 2062 6c6f 636b 7320 7769 tangle blocks wi │ │ │ +0001c1e0: 7468 2074 6578 743c 2f64 643e 0a3c 6464 th text.
      method - Grouping │ │ │ +0001c210: 6d65 7468 6f64 2028 7365 6520 7465 7874 method (see text │ │ │ +0001c220: 3a3a 6572 4772 6f75 7069 6e67 5f4d 6f64 ::erGrouping_Mod │ │ │ +0001c230: 6573 292e 2043 616e 2062 6520 6f6e 6520 es). Can be one │ │ │ +0001c240: 6f66 2045 5247 524f 5550 494e 475f 4f52 of ERGROUPING_OR │ │ │ +0001c250: 4945 4e54 4154 494f 4e5f 484f 5249 5a2c IENTATION_HORIZ, │ │ │ +0001c260: 2045 5247 524f 5550 494e 475f 4f52 4945 ERGROUPING_ORIE │ │ │ +0001c270: 4e54 4154 494f 4e5f 414e 592e 3c2f 6464 NTATION_ANY.
      .
      file │ │ │ +0001c290: 6e61 6d65 3c2f 636f 6465 3e20 2d20 5468 name - Th │ │ │ +0001c2a0: 6520 584d 4c20 6f72 2059 414d 4c20 6669 e XML or YAML fi │ │ │ +0001c2b0: 6c65 2077 6974 6820 7468 6520 636c 6173 le with the clas │ │ │ +0001c2c0: 7369 6669 6572 206d 6f64 656c 2028 652e sifier model (e. │ │ │ +0001c2d0: 672e 2073 616d 706c 6573 2f74 7261 696e g. samples/train │ │ │ +0001c2e0: 6564 5f63 6c61 7373 6966 6965 725f 6572 ed_classifier_er │ │ │ +0001c2f0: 4772 6f75 7069 6e67 2e78 6d6c 292e 204f Grouping.xml). O │ │ │ +0001c300: 6e6c 7920 746f 2075 7365 2077 6865 6e20 nly to use when │ │ │ +0001c310: 6772 6f75 7069 6e67 206d 6574 686f 6420 grouping method │ │ │ +0001c320: 6973 2045 5247 524f 5550 494e 475f 4f52 is ERGROUPING_OR │ │ │ +0001c330: 4945 4e54 4154 494f 4e5f 414e 592e 3c2f IENTATION_ANY..
      ..
    • .
    • . │ │ │ +0001c360: 3c73 6563 7469 6f6e 2063 6c61 7373 3d22
      │ │ │ +0001c3f0: 0a3c 6833 3e64 6574 6563 7452 6567 696f .

      detectRegio │ │ │ +0001c400: 6e73 3c2f 6833 3e0a 3c64 6976 2063 6c61 ns

      .
      pu │ │ │ +0001c440: 626c 6963 2073 7461 7469 633c 2f73 7061 blic static void&nb │ │ │ +0001c480: 7370 3b3c 7370 616e 2063 6c61 7373 3d22 sp;de │ │ │ +0001c4a0: 7465 6374 5265 6769 6f6e 733c 2f73 7061 tectRegions │ │ │ +0001c4d0: 283c 6120 6872 6566 3d22 2e2e 2f63 6f72 (Mat │ │ │ +0001c510: 3c2f 613e 266e 6273 703b 696d 6167 652c  image, │ │ │ +0001c520: 0a20 3c61 2068 7265 663d 2245 5246 696c . ERFil │ │ │ +0001c560: 7465 723c 2f61 3e26 6e62 7370 3b65 725f ter er_ │ │ │ +0001c570: 6669 6c74 6572 312c 0a20 3c61 2068 7265 filter1,. ERFilter& │ │ │ +0001c5c0: 6e62 7370 3b65 725f 6669 6c74 6572 322c nbsp;er_filter2, │ │ │ +0001c5d0: 0a20 3c61 2068 7265 663d 222e 2e2f 636f . MatOfRect groups_re │ │ │ +0001c630: 6374 732c 0a20 696e 7426 6e62 7370 3b6d cts,. int m │ │ │ +0001c640: 6574 686f 6429 3c2f 7370 616e 3e3c 2f64 ethod).
      Extracts │ │ │ +0001c670: 7465 7874 2072 6567 696f 6e73 2066 726f text regions fro │ │ │ +0001c680: 6d20 696d 6167 652e 3c2f 6469 763e 0a3c m image.
      .< │ │ │ +0001c690: 646c 2063 6c61 7373 3d22 6e6f 7465 7322 dl class="notes" │ │ │ +0001c6a0: 3e0a 3c64 743e 5061 7261 6d65 7465 7273 >.
      Parameters │ │ │ +0001c6b0: 3a3c 2f64 743e 0a3c 6464 3e3c 636f 6465 :
      .
      image - │ │ │ +0001c6d0: 536f 7572 6365 2069 6d61 6765 2077 6865 Source image whe │ │ │ +0001c6e0: 7265 2074 6578 7420 626c 6f63 6b73 206e re text blocks n │ │ │ +0001c6f0: 6565 6473 2074 6f20 6265 2065 7874 7261 eeds to be extra │ │ │ +0001c700: 6374 6564 2066 726f 6d2e 2020 5368 6f75 cted from. Shou │ │ │ +0001c710: 6c64 2062 6520 4356 5f38 5543 3320 2863 ld be CV_8UC3 (c │ │ │ +0001c720: 6f6c 6f72 292e 3c2f 6464 3e0a 3c64 643e olor).
      .
      │ │ │ +0001c730: 3c63 6f64 653e 6572 5f66 696c 7465 7231 er_filter1 │ │ │ +0001c740: 3c2f 636f 6465 3e20 2d20 4578 7472 656d - Extrem │ │ │ +0001c750: 616c 2052 6567 696f 6e20 4669 6c74 6572 al Region Filter │ │ │ +0001c760: 2066 6f72 2074 6865 2031 7374 2073 7461 for the 1st sta │ │ │ +0001c770: 6765 2063 6c61 7373 6966 6965 7220 6f66 ge classifier of │ │ │ +0001c780: 204e 2661 6d70 3b4d 2061 6c67 6f72 6974 N&M algorit │ │ │ +0001c790: 686d 2043 4954 453a 204e 6575 6d61 6e6e hm CITE: Neumann │ │ │ +0001c7a0: 3132 3c2f 6464 3e0a 3c64 643e 3c63 6f64 12
      .
      er_filter2 - Extremal R │ │ │ +0001c7d0: 6567 696f 6e20 4669 6c74 6572 2066 6f72 egion Filter for │ │ │ +0001c7e0: 2074 6865 2032 6e64 2073 7461 6765 2063 the 2nd stage c │ │ │ +0001c7f0: 6c61 7373 6966 6965 7220 6f66 204e 2661 lassifier of N&a │ │ │ +0001c800: 6d70 3b4d 2061 6c67 6f72 6974 686d 2043 mp;M algorithm C │ │ │ +0001c810: 4954 453a 204e 6575 6d61 6e6e 3132 3c2f ITE: Neumann12.
      gr │ │ │ +0001c830: 6f75 7073 5f72 6563 7473 3c2f 636f 6465 oups_rects - Output list │ │ │ +0001c850: 6f66 2072 6563 7461 6e67 6c65 2062 6c6f of rectangle blo │ │ │ +0001c860: 636b 7320 7769 7468 2074 6578 743c 2f64 cks with text.
      met │ │ │ +0001c880: 686f 643c 2f63 6f64 653e 202d 2047 726f hod - Gro │ │ │ +0001c890: 7570 696e 6720 6d65 7468 6f64 2028 7365 uping method (se │ │ │ +0001c8a0: 6520 7465 7874 3a3a 6572 4772 6f75 7069 e text::erGroupi │ │ │ +0001c8b0: 6e67 5f4d 6f64 6573 292e 2043 616e 2062 ng_Modes). Can b │ │ │ +0001c8c0: 6520 6f6e 6520 6f66 2045 5247 524f 5550 e one of ERGROUP │ │ │ +0001c8d0: 494e 475f 4f52 4945 4e54 4154 494f 4e5f ING_ORIENTATION_ │ │ │ +0001c8e0: 484f 5249 5a2c 2045 5247 524f 5550 494e HORIZ, ERGROUPIN │ │ │ +0001c8f0: 475f 4f52 4945 4e54 4154 494f 4e5f 414e G_ORIENTATION_AN │ │ │ +0001c900: 592e 3c2f 6464 3e0a 3c2f 646c 3e0a 3c2f Y.
      ...
    • .< │ │ │ +0001c920: 6c69 3e0a 3c73 6563 7469 6f6e 2063 6c61 li>.
      │ │ │ +0001c9b0: 0a3c 6833 3e64 6574 6563 7452 6567 696f .

      detectRegio │ │ │ +0001c9c0: 6e73 3c2f 6833 3e0a 3c64 6976 2063 6c61 ns

      .
      pu │ │ │ +0001ca00: 626c 6963 2073 7461 7469 633c 2f73 7061 blic static void&nb │ │ │ +0001ca40: 7370 3b3c 7370 616e 2063 6c61 7373 3d22 sp;de │ │ │ +0001ca60: 7465 6374 5265 6769 6f6e 733c 2f73 7061 tectRegions │ │ │ +0001ca90: 283c 6120 6872 6566 3d22 2e2e 2f63 6f72 (Mat │ │ │ +0001cad0: 3c2f 613e 266e 6273 703b 696d 6167 652c  image, │ │ │ +0001cae0: 0a20 3c61 2068 7265 663d 2245 5246 696c . ERFil │ │ │ +0001cb20: 7465 723c 2f61 3e26 6e62 7370 3b65 725f ter er_ │ │ │ +0001cb30: 6669 6c74 6572 312c 0a20 3c61 2068 7265 filter1,. ERFilter& │ │ │ +0001cb80: 6e62 7370 3b65 725f 6669 6c74 6572 322c nbsp;er_filter2, │ │ │ +0001cb90: 0a20 3c61 2068 7265 663d 222e 2e2f 636f . MatOfRect groups_re │ │ │ +0001cbf0: 6374 7329 3c2f 7370 616e 3e3c 2f64 6976 cts)
      .
      Extracts te │ │ │ +0001cc20: 7874 2072 6567 696f 6e73 2066 726f 6d20 xt regions from │ │ │ +0001cc30: 696d 6167 652e 3c2f 6469 763e 0a3c 646c image.
      .
      . │ │ │ +0001cc50: 3c64 743e 5061 7261 6d65 7465 7273 3a3c
      Parameters:< │ │ │ +0001cc60: 2f64 743e 0a3c 6464 3e3c 636f 6465 3e69 /dt>.
      i │ │ │ +0001cc70: 6d61 6765 3c2f 636f 6465 3e20 2d20 536f mage - So │ │ │ +0001cc80: 7572 6365 2069 6d61 6765 2077 6865 7265 urce image where │ │ │ +0001cc90: 2074 6578 7420 626c 6f63 6b73 206e 6565 text blocks nee │ │ │ +0001cca0: 6473 2074 6f20 6265 2065 7874 7261 6374 ds to be extract │ │ │ +0001ccb0: 6564 2066 726f 6d2e 2020 5368 6f75 6c64 ed from. Should │ │ │ +0001ccc0: 2062 6520 4356 5f38 5543 3320 2863 6f6c be CV_8UC3 (col │ │ │ +0001ccd0: 6f72 292e 3c2f 6464 3e0a 3c64 643e 3c63 or).
      .
      er_filter1 - Extremal │ │ │ +0001cd00: 2052 6567 696f 6e20 4669 6c74 6572 2066 Region Filter f │ │ │ +0001cd10: 6f72 2074 6865 2031 7374 2073 7461 6765 or the 1st stage │ │ │ +0001cd20: 2063 6c61 7373 6966 6965 7220 6f66 204e classifier of N │ │ │ +0001cd30: 2661 6d70 3b4d 2061 6c67 6f72 6974 686d &M algorithm │ │ │ +0001cd40: 2043 4954 453a 204e 6575 6d61 6e6e 3132 CITE: Neumann12 │ │ │ +0001cd50: 3c2f 6464 3e0a 3c64 643e 3c63 6f64 653e
      .
      │ │ │ +0001cd60: 6572 5f66 696c 7465 7232 3c2f 636f 6465 er_filter2 - Extremal Reg │ │ │ +0001cd80: 696f 6e20 4669 6c74 6572 2066 6f72 2074 ion Filter for t │ │ │ +0001cd90: 6865 2032 6e64 2073 7461 6765 2063 6c61 he 2nd stage cla │ │ │ +0001cda0: 7373 6966 6965 7220 6f66 204e 2661 6d70 ssifier of N& │ │ │ +0001cdb0: 3b4d 2061 6c67 6f72 6974 686d 2043 4954 ;M algorithm CIT │ │ │ +0001cdc0: 453a 204e 6575 6d61 6e6e 3132 3c2f 6464 E: Neumann12
      .
      grou │ │ │ +0001cde0: 7073 5f72 6563 7473 3c2f 636f 6465 3e20 ps_rects │ │ │ +0001cdf0: 2d20 4f75 7470 7574 206c 6973 7420 6f66 - Output list of │ │ │ +0001ce00: 2072 6563 7461 6e67 6c65 2062 6c6f 636b rectangle block │ │ │ +0001ce10: 7320 7769 7468 2074 6578 743c 2f64 643e s with text
      │ │ │ +0001ce20: 0a3c 2f64 6c3e 0a3c 2f73 6563 7469 6f6e .
      .
      ..
    • ..

      loadOCRH │ │ │ +0001ce90: 4d4d 436c 6173 7369 6669 6572 4e4d 3c2f MMClassifierNM.
      @Deprecated.public static< │ │ │ +0001cfc0: 2f73 7061 6e3e 266e 6273 703b 3c73 7061 /span> OCRHMMDec │ │ │ +0001d040: 6f64 6572 5f43 6c61 7373 6966 6965 7243 oder_ClassifierC │ │ │ +0001d050: 616c 6c62 6163 6b3c 2f61 3e3c 2f73 7061 allback loadOCRHMMCla │ │ │ +0001d090: 7373 6966 6965 724e 4d3c 2f73 7061 6e3e ssifierNM │ │ │ +0001d0a0: 3c77 6272 3e3c 7370 616e 2063 6c61 7373 (< │ │ │ +0001d0c0: 6120 6872 6566 3d22 6874 7470 733a 2f2f a href="https:// │ │ │ +0001d0d0: 646f 776e 6c6f 6164 2e6a 6176 612e 6e65 download.java.ne │ │ │ +0001d0e0: 742f 6a61 7661 2f65 6172 6c79 5f61 6363 t/java/early_acc │ │ │ +0001d0f0: 6573 732f 6a64 6b32 312f 646f 6373 2f61 ess/jdk21/docs/a │ │ │ +0001d100: 7069 2f6a 6176 612e 6261 7365 2f6a 6176 pi/java.base/jav │ │ │ +0001d110: 612f 6c61 6e67 2f53 7472 696e 672e 6874 a/lang/String.ht │ │ │ +0001d120: 6d6c 2220 7469 746c 653d 2263 6c61 7373 ml" title="class │ │ │ +0001d130: 206f 7220 696e 7465 7266 6163 6520 696e or interface in │ │ │ +0001d140: 206a 6176 612e 6c61 6e67 2220 636c 6173 java.lang" clas │ │ │ +0001d150: 733d 2265 7874 6572 6e61 6c2d 6c69 6e6b s="external-link │ │ │ +0001d160: 223e 5374 7269 6e67 3c2f 613e 266e 6273 ">String&nbs │ │ │ +0001d170: 703b 6669 6c65 6e61 6d65 293c 2f73 7061 p;filename)
      .
      Deprecate │ │ │ +0001d1d0: 642e 3c2f 7370 616e 3e0a 3c64 6976 2063 d..
      loadO │ │ │ +0001d200: 4352 484d 4d43 6c61 7373 6966 6965 7220 CRHMMClassifier │ │ │ +0001d210: 696e 7374 6561 643c 2f64 6976 3e0a 3c2f instead
      ..
      Allow to │ │ │ +0001d240: 2069 6d70 6c69 6369 746c 7920 6c6f 6164 implicitly load │ │ │ +0001d250: 2074 6865 2064 6566 6175 6c74 2063 6861 the default cha │ │ │ +0001d260: 7261 6374 6572 2063 6c61 7373 6966 6965 racter classifie │ │ │ +0001d270: 7220 7768 656e 2063 7265 6174 696e 6720 r when creating │ │ │ +0001d280: 616e 204f 4352 484d 4d44 6563 6f64 6572 an OCRHMMDecoder │ │ │ +0001d290: 206f 626a 6563 742e 3c2f 6469 763e 0a3c object.
      .< │ │ │ +0001d2a0: 646c 2063 6c61 7373 3d22 6e6f 7465 7322 dl class="notes" │ │ │ +0001d2b0: 3e0a 3c64 743e 5061 7261 6d65 7465 7273 >.
      Parameters │ │ │ +0001d2c0: 3a3c 2f64 743e 0a3c 6464 3e3c 636f 6465 :
      .
      filename │ │ │ +0001d2e0: 202d 2054 6865 2058 4d4c 206f 7220 5941 - The XML or YA │ │ │ +0001d2f0: 4d4c 2066 696c 6520 7769 7468 2074 6865 ML file with the │ │ │ +0001d300: 2063 6c61 7373 6966 6965 7220 6d6f 6465 classifier mode │ │ │ +0001d310: 6c20 2865 2e67 2e20 4f43 5248 4d4d 5f6b l (e.g. OCRHMM_k │ │ │ +0001d320: 6e6e 5f6d 6f64 656c 5f64 6174 612e 786d nn_model_data.xm │ │ │ +0001d330: 6c29 0a0a 2054 6865 204b 4e4e 2064 6566 l).. The KNN def │ │ │ +0001d340: 6175 6c74 2063 6c61 7373 6966 6965 7220 ault classifier │ │ │ +0001d350: 6973 2062 6173 6564 2069 6e20 7468 6520 is based in the │ │ │ +0001d360: 7363 656e 6520 7465 7874 2072 6563 6f67 scene text recog │ │ │ +0001d370: 6e69 7469 6f6e 206d 6574 686f 6420 7072 nition method pr │ │ │ +0001d380: 6f70 6f73 6564 2062 7920 4c75 6bc3 a173 oposed by Luk..s │ │ │ +0001d390: 204e 6575 6d61 6e6e 2026 616d 703b 0a20 Neumann &. │ │ │ +0001d3a0: 4a69 7269 204d 6174 6173 2069 6e20 5b4e Jiri Matas in [N │ │ │ +0001d3b0: 6575 6d61 6e6e 3131 625d 2e20 4261 7369 eumann11b]. Basi │ │ │ +0001d3c0: 6361 6c6c 792c 2074 6865 2072 6567 696f cally, the regio │ │ │ +0001d3d0: 6e20 2863 6f6e 746f 7572 2920 696e 2074 n (contour) in t │ │ │ +0001d3e0: 6865 2069 6e70 7574 2069 6d61 6765 2069 he input image i │ │ │ +0001d3f0: 7320 6e6f 726d 616c 697a 6564 2074 6f20 s normalized to │ │ │ +0001d400: 610a 2066 6978 6564 2073 697a 652c 2077 a. fixed size, w │ │ │ +0001d410: 6869 6c65 2072 6574 6169 6e69 6e67 2074 hile retaining t │ │ │ +0001d420: 6865 2063 656e 7472 6f69 6420 616e 6420 he centroid and │ │ │ +0001d430: 6173 7065 6374 2072 6174 696f 2c20 696e aspect ratio, in │ │ │ +0001d440: 206f 7264 6572 2074 6f20 6578 7472 6163 order to extrac │ │ │ +0001d450: 7420 6120 6665 6174 7572 6520 7665 6374 t a feature vect │ │ │ +0001d460: 6f72 0a20 6261 7365 6420 6f6e 2067 7261 or. based on gra │ │ │ +0001d470: 6469 656e 7420 6f72 6965 6e74 6174 696f dient orientatio │ │ │ +0001d480: 6e73 2061 6c6f 6e67 2074 6865 2063 6861 ns along the cha │ │ │ +0001d490: 696e 2d63 6f64 6520 6f66 2069 7473 2070 in-code of its p │ │ │ +0001d4a0: 6572 696d 6574 6572 2e20 5468 656e 2c20 erimeter. Then, │ │ │ +0001d4b0: 7468 6520 7265 6769 6f6e 2069 7320 636c the region is cl │ │ │ +0001d4c0: 6173 7369 6669 6564 0a20 7573 696e 6720 assified. using │ │ │ +0001d4d0: 6120 4b4e 4e20 6d6f 6465 6c20 7472 6169 a KNN model trai │ │ │ +0001d4e0: 6e65 6420 7769 7468 2073 796e 7468 6574 ned with synthet │ │ │ +0001d4f0: 6963 2064 6174 6120 6f66 2072 656e 6465 ic data of rende │ │ │ +0001d500: 7265 6420 6368 6172 6163 7465 7273 2077 red characters w │ │ │ +0001d510: 6974 6820 6469 6666 6572 656e 7420 7374 ith different st │ │ │ +0001d520: 616e 6461 7264 2066 6f6e 740a 2074 7970 andard font. typ │ │ │ +0001d530: 6573 2e3c 2f64 643e 0a3c 6474 3e52 6574 es.
      .
      Ret │ │ │ +0001d540: 7572 6e73 3a3c 2f64 743e 0a3c 6464 3e61 urns:
      .
      a │ │ │ +0001d550: 7574 6f6d 6174 6963 616c 6c79 2067 656e utomatically gen │ │ │ +0001d560: 6572 6174 6564 3c2f 6464 3e0a 3c2f 646c erated
      ....
    • .
      . │ │ │ +0001d5d0: 3c68 333e 6c6f 6164 4f43 5248 4d4d 436c

      loadOCRHMMCl │ │ │ +0001d5e0: 6173 7369 6669 6572 434e 4e3c 2f68 333e assifierCNN

      │ │ │ +0001d5f0: 0a3c 6469 7620 636c 6173 733d 226d 656d .
      < │ │ │ +0001d610: 7370 616e 2063 6c61 7373 3d22 616e 6e6f span class="anno │ │ │ +0001d620: 7461 7469 6f6e 7322 3e3c 6120 6872 6566 tations"> │ │ │ +0001d6d0: 4044 6570 7265 6361 7465 643c 2f61 3e0a @Deprecated. │ │ │ +0001d6e0: 3c2f 7370 616e 3e3c 7370 616e 2063 6c61 p │ │ │ +0001d700: 7562 6c69 6320 7374 6174 6963 3c2f 7370 ublic static OCRHMMDecode │ │ │ +0001d790: 725f 436c 6173 7369 6669 6572 4361 6c6c r_ClassifierCall │ │ │ +0001d7a0: 6261 636b 3c2f 613e 3c2f 7370 616e 3e26 back& │ │ │ +0001d7b0: 6e62 7370 3b3c 7370 616e 2063 6c61 7373 nbsp; │ │ │ +0001d7d0: 6c6f 6164 4f43 5248 4d4d 436c 6173 7369 loadOCRHMMClassi │ │ │ +0001d7e0: 6669 6572 434e 4e3c 2f73 7061 6e3e 3c77 fierCNN( │ │ │ +0001d8b0: 5374 7269 6e67 3c2f 613e 266e 6273 703b String  │ │ │ +0001d8c0: 6669 6c65 6e61 6d65 293c 2f73 7061 6e3e filename) │ │ │ +0001d8d0: 3c2f 6469 763e 0a3c 6469 7620 636c 6173
      .
      Deprecated. │ │ │ +0001d920: 3c2f 7370 616e 3e0a 3c64 6976 2063 6c61 .
      use loa │ │ │ +0001d950: 644f 4352 484d 4d43 6c61 7373 6966 6965 dOCRHMMClassifie │ │ │ +0001d960: 7220 696e 7374 6561 643c 2f64 6976 3e0a r instead
      . │ │ │ +0001d970: 3c2f 6469 763e 0a3c 6469 7620 636c 6173
      .
      Allow │ │ │ +0001d990: 746f 2069 6d70 6c69 6369 746c 7920 6c6f to implicitly lo │ │ │ +0001d9a0: 6164 2074 6865 2064 6566 6175 6c74 2063 ad the default c │ │ │ +0001d9b0: 6861 7261 6374 6572 2063 6c61 7373 6966 haracter classif │ │ │ +0001d9c0: 6965 7220 7768 656e 2063 7265 6174 696e ier when creatin │ │ │ +0001d9d0: 6720 616e 204f 4352 484d 4d44 6563 6f64 g an OCRHMMDecod │ │ │ +0001d9e0: 6572 206f 626a 6563 742e 3c2f 6469 763e er object.
      │ │ │ +0001d9f0: 0a3c 646c 2063 6c61 7373 3d22 6e6f 7465 .
      .
      Paramete │ │ │ +0001da10: 7273 3a3c 2f64 743e 0a3c 6464 3e3c 636f rs:
      .
      filename - The XML or │ │ │ +0001da40: 5941 4d4c 2066 696c 6520 7769 7468 2074 YAML file with t │ │ │ +0001da50: 6865 2063 6c61 7373 6966 6965 7220 6d6f he classifier mo │ │ │ +0001da60: 6465 6c20 2865 2e67 2e20 4f43 5242 6561 del (e.g. OCRBea │ │ │ +0001da70: 6d53 6561 7263 685f 434e 4e5f 6d6f 6465 mSearch_CNN_mode │ │ │ +0001da80: 6c5f 6461 7461 2e78 6d6c 2e67 7a29 0a0a l_data.xml.gz).. │ │ │ +0001da90: 2054 6865 2043 4e4e 2064 6566 6175 6c74 The CNN default │ │ │ +0001daa0: 2063 6c61 7373 6966 6965 7220 6973 2062 classifier is b │ │ │ +0001dab0: 6173 6564 2069 6e20 7468 6520 7363 656e ased in the scen │ │ │ +0001dac0: 6520 7465 7874 2072 6563 6f67 6e69 7469 e text recogniti │ │ │ +0001dad0: 6f6e 206d 6574 686f 6420 7072 6f70 6f73 on method propos │ │ │ +0001dae0: 6564 2062 7920 4164 616d 2043 6f61 7465 ed by Adam Coate │ │ │ +0001daf0: 7320 2661 6d70 3b0a 2041 6e64 7265 7720 s &. Andrew │ │ │ +0001db00: 4e47 2069 6e20 5b43 6f61 7465 7331 3161 NG in [Coates11a │ │ │ +0001db10: 5d2e 2054 6865 2063 6861 7261 6374 6572 ]. The character │ │ │ +0001db20: 2063 6c61 7373 6966 6965 7220 636f 6e73 classifier cons │ │ │ +0001db30: 6973 7473 2069 6e20 6120 5369 6e67 6c65 ists in a Single │ │ │ +0001db40: 204c 6179 6572 2043 6f6e 766f 6c75 7469 Layer Convoluti │ │ │ +0001db50: 6f6e 616c 204e 6575 7261 6c20 4e65 7477 onal Neural Netw │ │ │ +0001db60: 6f72 6b20 616e 640a 2061 206c 696e 6561 ork and. a linea │ │ │ +0001db70: 7220 636c 6173 7369 6669 6572 2e20 4974 r classifier. It │ │ │ +0001db80: 2069 7320 6170 706c 6965 6420 746f 2074 is applied to t │ │ │ +0001db90: 6865 2069 6e70 7574 2069 6d61 6765 2069 he input image i │ │ │ +0001dba0: 6e20 6120 736c 6964 696e 6720 7769 6e64 n a sliding wind │ │ │ +0001dbb0: 6f77 2066 6173 6869 6f6e 2c20 7072 6f76 ow fashion, prov │ │ │ +0001dbc0: 6964 696e 6720 6120 7365 7420 6f66 2072 iding a set of r │ │ │ +0001dbd0: 6563 6f67 6e69 7469 6f6e 730a 2061 7420 ecognitions. at │ │ │ +0001dbe0: 6561 6368 2077 696e 646f 7720 6c6f 6361 each window loca │ │ │ +0001dbf0: 7469 6f6e 2e3c 2f64 643e 0a3c 6474 3e52 tion.
      .
      R │ │ │ +0001dc00: 6574 7572 6e73 3a3c 2f64 743e 0a3c 6464 eturns:
      .
      automatically g │ │ │ +0001dc20: 656e 6572 6174 6564 3c2f 6464 3e0a 3c2f enerated
      ..
      .< │ │ │ +0001dc40: 2f6c 693e 0a3c 6c69 3e0a 3c73 6563 7469 /li>.
    • ..

      loadOCRHM │ │ │ +0001dca0: 4d43 6c61 7373 6966 6965 723c 2f68 333e MClassifier

      │ │ │ +0001dcb0: 0a3c 6469 7620 636c 6173 733d 226d 656d .
      < │ │ │ +0001dcd0: 7370 616e 2063 6c61 7373 3d22 6d6f 6469 span class="modi │ │ │ +0001dce0: 6669 6572 7322 3e70 7562 6c69 6320 7374 fiers">public st │ │ │ +0001dcf0: 6174 6963 3c2f 7370 616e 3e26 6e62 7370 atic  │ │ │ +0001dd00: 3b3c 7370 616e 2063 6c61 7373 3d22 7265 ;OCRH │ │ │ +0001dd70: 4d4d 4465 636f 6465 725f 436c 6173 7369 MMDecoder_Classi │ │ │ +0001dd80: 6669 6572 4361 6c6c 6261 636b 3c2f 613e fierCallback │ │ │ +0001dd90: 3c2f 7370 616e 3e26 6e62 7370 3b3c 7370  loadOCRH │ │ │ +0001ddc0: 4d4d 436c 6173 7369 6669 6572 3c2f 7370 MMClassifier(String& │ │ │ +0001dea0: 6e62 7370 3b66 696c 656e 616d 652c 0a20 nbsp;filename,. │ │ │ +0001deb0: 696e 7426 6e62 7370 3b63 6c61 7373 6966 int classif │ │ │ +0001dec0: 6965 7229 3c2f 7370 616e 3e3c 2f64 6976 ier)
      .
      Allow to im │ │ │ +0001def0: 706c 6963 6974 6c79 206c 6f61 6420 7468 plicitly load th │ │ │ +0001df00: 6520 6465 6661 756c 7420 6368 6172 6163 e default charac │ │ │ +0001df10: 7465 7220 636c 6173 7369 6669 6572 2077 ter classifier w │ │ │ +0001df20: 6865 6e20 6372 6561 7469 6e67 2061 6e20 hen creating an │ │ │ +0001df30: 4f43 5248 4d4d 4465 636f 6465 7220 6f62 OCRHMMDecoder ob │ │ │ +0001df40: 6a65 6374 2e3c 2f64 6976 3e0a 3c64 6c20 ject.
      .
      .< │ │ │ +0001df60: 6474 3e50 6172 616d 6574 6572 733a 3c2f dt>Parameters:.
      fi │ │ │ +0001df80: 6c65 6e61 6d65 3c2f 636f 6465 3e20 2d20 lename - │ │ │ +0001df90: 5468 6520 584d 4c20 6f72 2059 414d 4c20 The XML or YAML │ │ │ +0001dfa0: 6669 6c65 2077 6974 6820 7468 6520 636c file with the cl │ │ │ +0001dfb0: 6173 7369 6669 6572 206d 6f64 656c 2028 assifier model ( │ │ │ +0001dfc0: 652e 672e 204f 4352 4265 616d 5365 6172 e.g. OCRBeamSear │ │ │ +0001dfd0: 6368 5f43 4e4e 5f6d 6f64 656c 5f64 6174 ch_CNN_model_dat │ │ │ +0001dfe0: 612e 786d 6c2e 677a 293c 2f64 643e 0a3c a.xml.gz)
      .< │ │ │ +0001dff0: 6464 3e3c 636f 6465 3e63 6c61 7373 6966 dd>classif │ │ │ +0001e000: 6965 723c 2f63 6f64 653e 202d 2043 616e ier - Can │ │ │ +0001e010: 2062 6520 6f6e 6520 6f66 2063 6c61 7373 be one of class │ │ │ +0001e020: 6966 6965 725f 7479 7065 2065 6e75 6d20 ifier_type enum │ │ │ +0001e030: 7661 6c75 6573 2e3c 2f64 643e 0a3c 6474 values..
      Returns:
      .< │ │ │ +0001e050: 6464 3e61 7574 6f6d 6174 6963 616c 6c79 dd>automatically │ │ │ +0001e060: 2067 656e 6572 6174 6564 3c2f 6464 3e0a generated. │ │ │ +0001e070: 3c2f 646c 3e0a 3c2f 7365 6374 696f 6e3e
      . │ │ │ +0001e080: 0a3c 2f6c 693e 0a3c 6c69 3e0a 3c73 6563 .
    • .
    • ..

      crea │ │ │ +0001e0f0: 7465 4f43 5248 4d4d 5472 616e 7369 7469 teOCRHMMTransiti │ │ │ +0001e100: 6f6e 7354 6162 6c65 3c2f 6833 3e0a 3c64 onsTable

      .public stati │ │ │ +0001e150: 633c 2f73 7061 6e3e 266e 6273 703b 3c73 c Mat createOCRHMMT │ │ │ +0001e1f0: 7261 6e73 6974 696f 6e73 5461 626c 653c ransitionsTable< │ │ │ +0001e200: 2f73 7061 6e3e 3c77 6272 3e3c 7370 616e /span>(String vocabula │ │ │ +0001e2e0: 7279 2c0a 203c 6120 6872 6566 3d22 6874 ry,. List&l │ │ │ +0001e390: 743b 3c61 2068 7265 663d 2268 7474 7073 t;String& │ │ │ +0001e440: 6774 3b26 6e62 7370 3b6c 6578 6963 6f6e gt; lexicon │ │ │ +0001e450: 293c 2f73 7061 6e3e 3c2f 6469 763e 0a3c )
    • .< │ │ │ +0001e460: 6469 7620 636c 6173 733d 2262 6c6f 636b div class="block │ │ │ +0001e470: 223e 5574 696c 6974 7920 6675 6e63 7469 ">Utility functi │ │ │ +0001e480: 6f6e 2074 6f20 6372 6561 7465 2061 2074 on to create a t │ │ │ +0001e490: 6169 6c6f 7265 6420 6c61 6e67 7561 6765 ailored language │ │ │ +0001e4a0: 206d 6f64 656c 2074 7261 6e73 6974 696f model transitio │ │ │ +0001e4b0: 6e73 2074 6162 6c65 2066 726f 6d20 6120 ns table from a │ │ │ +0001e4c0: 6769 7665 6e20 6c69 7374 206f 6620 776f given list of wo │ │ │ +0001e4d0: 7264 7320 286c 6578 6963 6f6e 292e 3c2f rds (lexicon)..
      .
      Para │ │ │ +0001e500: 6d65 7465 7273 3a3c 2f64 743e 0a3c 6464 meters:
      .
      vocabular │ │ │ +0001e520: 793c 2f63 6f64 653e 202d 2054 6865 206c y - The l │ │ │ +0001e530: 616e 6775 6167 6520 766f 6361 6275 6c61 anguage vocabula │ │ │ +0001e540: 7279 2028 6368 6172 7320 7768 656e 2041 ry (chars when A │ │ │ +0001e550: 5343 4949 2045 6e67 6c69 7368 2074 6578 SCII English tex │ │ │ +0001e560: 7429 2e3c 2f64 643e 0a3c 6464 3e3c 636f t).
      .
      lexicon - The list of │ │ │ +0001e590: 776f 7264 7320 7468 6174 2061 7265 2065 words that are e │ │ │ +0001e5a0: 7870 6563 7465 6420 746f 2062 6520 666f xpected to be fo │ │ │ +0001e5b0: 756e 6420 696e 2061 2070 6172 7469 6375 und in a particu │ │ │ +0001e5c0: 6c61 7220 696d 6167 652e 0a0a 0a20 5468 lar image.... Th │ │ │ +0001e5d0: 6520 6675 6e63 7469 6f6e 2063 616c 6375 e function calcu │ │ │ +0001e5e0: 6c61 7465 2066 7265 7175 656e 6379 2073 late frequency s │ │ │ +0001e5f0: 7461 7469 7374 6963 7320 6f66 2063 6861 tatistics of cha │ │ │ +0001e600: 7261 6374 6572 2070 6169 7273 2066 726f racter pairs fro │ │ │ +0001e610: 6d20 7468 6520 6769 7665 6e20 6c65 7869 m the given lexi │ │ │ +0001e620: 636f 6e20 616e 6420 6669 6c6c 7320 7468 con and fills th │ │ │ +0001e630: 6520 6f75 7470 7574 2074 7261 6e73 6974 e output transit │ │ │ +0001e640: 696f 6e5f 7072 6f62 6162 696c 6974 6965 ion_probabilitie │ │ │ +0001e650: 735f 7461 626c 6520 7769 7468 2074 6865 s_table with the │ │ │ +0001e660: 6d2e 2054 6865 2074 7261 6e73 6974 696f m. The transitio │ │ │ +0001e670: 6e5f 7072 6f62 6162 696c 6974 6965 735f n_probabilities_ │ │ │ +0001e680: 7461 626c 6520 6361 6e20 6265 2075 7365 table can be use │ │ │ +0001e690: 6420 6173 2069 6e70 7574 2069 6e20 7468 d as input in th │ │ │ +0001e6a0: 6520 4f43 5248 4d4d 4465 636f 6465 723a e OCRHMMDecoder: │ │ │ +0001e6b0: 3a63 7265 6174 6528 2920 616e 6420 4f43 :create() and OC │ │ │ +0001e6c0: 5242 6561 6d53 6561 7263 6844 6563 6f64 RBeamSearchDecod │ │ │ +0001e6d0: 6572 3a3a 6372 6561 7465 2829 206d 6574 er::create() met │ │ │ +0001e6e0: 686f 6473 2e0a 203c 623e 4e6f 7465 3a3c hods.. Note:< │ │ │ +0001e6f0: 2f62 3e0a 202d 2020 2028 432b 2b29 2041 /b>. - (C++) A │ │ │ +0001e700: 6e20 616c 7465 726e 6174 6976 6520 776f n alternative wo │ │ │ +0001e710: 756c 6420 6265 2074 6f20 6c6f 6164 2074 uld be to load t │ │ │ +0001e720: 6865 2064 6566 6175 6c74 2067 656e 6572 he default gener │ │ │ +0001e730: 6963 206c 616e 6775 6167 6520 7472 616e ic language tran │ │ │ +0001e740: 7369 7469 6f6e 2074 6162 6c65 2070 726f sition table pro │ │ │ +0001e750: 7669 6465 6420 696e 2074 6865 2074 6578 vided in the tex │ │ │ +0001e760: 7420 6d6f 6475 6c65 2073 616d 706c 6573 t module samples │ │ │ +0001e770: 2066 6f6c 6465 7220 2863 7265 6174 6564 folder (created │ │ │ +0001e780: 2066 726f 6d20 6973 7065 6c6c 2034 3238 from ispell 428 │ │ │ +0001e790: 3639 2065 6e67 6c69 7368 2077 6f72 6473 69 english words │ │ │ +0001e7a0: 206c 6973 7429 203a 0a20 266c 743b 6874 list) :. <ht │ │ │ +0001e7b0: 7470 733a 2f2f 6769 7468 7562 2e63 6f6d tps://github.com │ │ │ +0001e7c0: 2f6f 7065 6e63 762f 6f70 656e 6376 5f63 /opencv/opencv_c │ │ │ +0001e7d0: 6f6e 7472 6962 2f62 6c6f 622f 6d61 7374 ontrib/blob/mast │ │ │ +0001e7e0: 6572 2f6d 6f64 756c 6573 2f74 6578 742f er/modules/text/ │ │ │ +0001e7f0: 7361 6d70 6c65 732f 4f43 5248 4d4d 5f74 samples/OCRHMM_t │ │ │ +0001e800: 7261 6e73 6974 696f 6e73 5f74 6162 6c65 ransitions_table │ │ │ +0001e810: 2e78 6d6c 2667 743b 3c2f 6464 3e0a 3c64 .xml>
      .Returns:. │ │ │ +0001e830: 3c64 643e 6175 746f 6d61 7469 6361 6c6c
      automaticall │ │ │ +0001e840: 7920 6765 6e65 7261 7465 643c 2f64 643e y generated
      │ │ │ +0001e850: 0a3c 2f64 6c3e 0a3c 2f73 6563 7469 6f6e .
      ..

    • .
    • ..

      │ │ │ +0001e8c0: 6c6f 6164 4f43 5242 6561 6d53 6561 7263 loadOCRBeamSearc │ │ │ +0001e8d0: 6843 6c61 7373 6966 6965 7243 4e4e 3c2f hClassifierCNN.
      public │ │ │ +0001e920: 2073 7461 7469 633c 2f73 7061 6e3e 266e static&n │ │ │ +0001e930: 6273 703b 3c73 7061 6e20 636c 6173 733d bsp;OCRBeamSea │ │ │ +0001e9b0: 7263 6844 6563 6f64 6572 5f43 6c61 7373 rchDecoder_Class │ │ │ +0001e9c0: 6966 6965 7243 616c 6c62 6163 6b3c 2f61 ifierCallback loadOCR │ │ │ +0001ea00: 4265 616d 5365 6172 6368 436c 6173 7369 BeamSearchClassi │ │ │ +0001ea10: 6669 6572 434e 4e3c 2f73 7061 6e3e 3c77 fierCNN( │ │ │ +0001eae0: 5374 7269 6e67 3c2f 613e 266e 6273 703b String  │ │ │ +0001eaf0: 6669 6c65 6e61 6d65 293c 2f73 7061 6e3e filename) │ │ │ +0001eb00: 3c2f 6469 763e 0a3c 6469 7620 636c 6173
      .
      Allow │ │ │ +0001eb20: 746f 2069 6d70 6c69 6369 746c 7920 6c6f to implicitly lo │ │ │ +0001eb30: 6164 2074 6865 2064 6566 6175 6c74 2063 ad the default c │ │ │ +0001eb40: 6861 7261 6374 6572 2063 6c61 7373 6966 haracter classif │ │ │ +0001eb50: 6965 7220 7768 656e 2063 7265 6174 696e ier when creatin │ │ │ +0001eb60: 6720 616e 204f 4352 4265 616d 5365 6172 g an OCRBeamSear │ │ │ +0001eb70: 6368 4465 636f 6465 7220 6f62 6a65 6374 chDecoder object │ │ │ +0001eb80: 2e3c 2f64 6976 3e0a 3c64 6c20 636c 6173 .
      .
      .
      P │ │ │ +0001eba0: 6172 616d 6574 6572 733a 3c2f 6474 3e0a arameters:
      . │ │ │ +0001ebb0: 3c64 643e 3c63 6f64 653e 6669 6c65 6e61
      filena │ │ │ +0001ebc0: 6d65 3c2f 636f 6465 3e20 2d20 5468 6520 me - The │ │ │ +0001ebd0: 584d 4c20 6f72 2059 414d 4c20 6669 6c65 XML or YAML file │ │ │ +0001ebe0: 2077 6974 6820 7468 6520 636c 6173 7369 with the classi │ │ │ +0001ebf0: 6669 6572 206d 6f64 656c 2028 652e 672e fier model (e.g. │ │ │ +0001ec00: 204f 4352 4265 616d 5365 6172 6368 5f43 OCRBeamSearch_C │ │ │ +0001ec10: 4e4e 5f6d 6f64 656c 5f64 6174 612e 786d NN_model_data.xm │ │ │ +0001ec20: 6c2e 677a 290a 0a20 5468 6520 434e 4e20 l.gz).. The CNN │ │ │ +0001ec30: 6465 6661 756c 7420 636c 6173 7369 6669 default classifi │ │ │ +0001ec40: 6572 2069 7320 6261 7365 6420 696e 2074 er is based in t │ │ │ +0001ec50: 6865 2073 6365 6e65 2074 6578 7420 7265 he scene text re │ │ │ +0001ec60: 636f 676e 6974 696f 6e20 6d65 7468 6f64 cognition method │ │ │ +0001ec70: 2070 726f 706f 7365 6420 6279 2041 6461 proposed by Ada │ │ │ +0001ec80: 6d20 436f 6174 6573 2026 616d 703b 0a20 m Coates &. │ │ │ +0001ec90: 416e 6472 6577 204e 4720 696e 205b 436f Andrew NG in [Co │ │ │ +0001eca0: 6174 6573 3131 615d 2e20 5468 6520 6368 ates11a]. The ch │ │ │ +0001ecb0: 6172 6163 7465 7220 636c 6173 7369 6669 aracter classifi │ │ │ +0001ecc0: 6572 2063 6f6e 7369 7374 7320 696e 2061 er consists in a │ │ │ +0001ecd0: 2053 696e 676c 6520 4c61 7965 7220 436f Single Layer Co │ │ │ +0001ece0: 6e76 6f6c 7574 696f 6e61 6c20 4e65 7572 nvolutional Neur │ │ │ +0001ecf0: 616c 204e 6574 776f 726b 2061 6e64 0a20 al Network and. │ │ │ +0001ed00: 6120 6c69 6e65 6172 2063 6c61 7373 6966 a linear classif │ │ │ +0001ed10: 6965 722e 2049 7420 6973 2061 7070 6c69 ier. It is appli │ │ │ +0001ed20: 6564 2074 6f20 7468 6520 696e 7075 7420 ed to the input │ │ │ +0001ed30: 696d 6167 6520 696e 2061 2073 6c69 6469 image in a slidi │ │ │ +0001ed40: 6e67 2077 696e 646f 7720 6661 7368 696f ng window fashio │ │ │ +0001ed50: 6e2c 2070 726f 7669 6469 6e67 2061 2073 n, providing a s │ │ │ +0001ed60: 6574 206f 6620 7265 636f 676e 6974 696f et of recognitio │ │ │ +0001ed70: 6e73 0a20 6174 2065 6163 6820 7769 6e64 ns. at each wind │ │ │ +0001ed80: 6f77 206c 6f63 6174 696f 6e2e 3c2f 6464 ow location.
      .
      Returns:.
      automati │ │ │ +0001edb0: 6361 6c6c 7920 6765 6e65 7261 7465 643c cally generated< │ │ │ 0001edc0: 2f64 643e 0a3c 2f64 6c3e 0a3c 2f73 6563 /dd>.
      ..

    • .
    ..... │ │ │
  • │ │ │
    │ │ │

    Method Details

    │ │ │
      │ │ │
    • │ │ │ -
      │ │ │ -

      createSimpleWB

      │ │ │ -
      public static SimpleWB createSimpleWB()
      │ │ │ -
      Creates an instance of SimpleWB
      │ │ │ -
      │ │ │ -
      Returns:
      │ │ │ -
      automatically generated
      │ │ │ -
      │ │ │ -
      │ │ │ -
    • │ │ │ -
    • │ │ │ -
      │ │ │ -

      createGrayworldWB

      │ │ │ -
      public static GrayworldWB createGrayworldWB()
      │ │ │ -
      Creates an instance of GrayworldWB
      │ │ │ -
      │ │ │ -
      Returns:
      │ │ │ -
      automatically generated
      │ │ │ -
      │ │ │ -
      │ │ │ -
    • │ │ │ -
    • │ │ │ -
      │ │ │ -

      createLearningBasedWB

      │ │ │ -
      public static LearningBasedWB createLearningBasedWB(String path_to_model)
      │ │ │ -
      Creates an instance of LearningBasedWB
      │ │ │ -
      │ │ │ -
      Parameters:
      │ │ │ -
      path_to_model - Path to a .yml file with the model. If not specified, the default model is used
      │ │ │ -
      Returns:
      │ │ │ -
      automatically generated
      │ │ │ -
      │ │ │ -
      │ │ │ -
    • │ │ │ -
    • │ │ │ -
      │ │ │ -

      createLearningBasedWB

      │ │ │ -
      public static LearningBasedWB createLearningBasedWB()
      │ │ │ -
      Creates an instance of LearningBasedWB
      │ │ │ -
      │ │ │ -
      Returns:
      │ │ │ -
      automatically generated
      │ │ │ -
      │ │ │ -
      │ │ │ -
    • │ │ │ -
    • │ │ │ -
      │ │ │ -

      applyChannelGains

      │ │ │ -
      public static void applyChannelGains(Mat src, │ │ │ +
      │ │ │ +

      dctDenoising

      │ │ │ +
      public static void dctDenoising(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.
      │ │ │ -
      │ │ │ -
      Parameters:
      │ │ │ -
      src - Input three-channel image in the BGR color space (either CV_8UC3 or CV_16UC3)
      │ │ │ -
      dst - Output image of the same size and type as src.
      │ │ │ -
      gainB - gain for the B channel
      │ │ │ -
      gainG - gain for the G channel
      │ │ │ -
      gainR - gain for the R channel
      │ │ │ -
      │ │ │ -
      │ │ │ -
    • │ │ │ -
    • │ │ │ -
      │ │ │ -

      createTonemapDurand

      │ │ │ -
      public static TonemapDurand createTonemapDurand(float gamma, │ │ │ - float contrast, │ │ │ - float saturation, │ │ │ - float sigma_color, │ │ │ - float sigma_space)
      │ │ │ -
      Creates TonemapDurand object │ │ │ - │ │ │ - You need to set the OPENCV_ENABLE_NONFREE option in cmake to use those. Use them at your own risk.
      │ │ │ -
      │ │ │ -
      Parameters:
      │ │ │ -
      gamma - gamma value for gamma correction. See createTonemap
      │ │ │ -
      contrast - resulting contrast on logarithmic scale, i. e. log(max / min), where max and min │ │ │ - are maximum and minimum luminance values of the resulting image.
      │ │ │ -
      saturation - saturation enhancement value. See createTonemapDrago
      │ │ │ -
      sigma_color - bilateral filter sigma in color space
      │ │ │ -
      sigma_space - bilateral filter sigma in coordinate space
      │ │ │ -
      Returns:
      │ │ │ -
      automatically generated
      │ │ │ -
      │ │ │ -
      │ │ │ -
    • │ │ │ -
    • │ │ │ -
      │ │ │ -

      createTonemapDurand

      │ │ │ -
      public static TonemapDurand createTonemapDurand(float gamma, │ │ │ - float contrast, │ │ │ - float saturation, │ │ │ - float sigma_color)
      │ │ │ -
      Creates TonemapDurand object │ │ │ - │ │ │ - You need to set the OPENCV_ENABLE_NONFREE option in cmake to use those. Use them at your own risk.
      │ │ │ -
      │ │ │ -
      Parameters:
      │ │ │ -
      gamma - gamma value for gamma correction. See createTonemap
      │ │ │ -
      contrast - resulting contrast on logarithmic scale, i. e. log(max / min), where max and min │ │ │ - are maximum and minimum luminance values of the resulting image.
      │ │ │ -
      saturation - saturation enhancement value. See createTonemapDrago
      │ │ │ -
      sigma_color - bilateral filter sigma in color space
      │ │ │ -
      Returns:
      │ │ │ -
      automatically generated
      │ │ │ -
      │ │ │ -
      │ │ │ -
    • │ │ │ -
    • │ │ │ -
      │ │ │ -

      createTonemapDurand

      │ │ │ -
      public static TonemapDurand createTonemapDurand(float gamma, │ │ │ - float contrast, │ │ │ - float saturation)
      │ │ │ -
      Creates TonemapDurand object │ │ │ + double sigma, │ │ │ + int psize)
      │ │ │ +
      The function implements simple dct-based denoising │ │ │ │ │ │ - You need to set the OPENCV_ENABLE_NONFREE option in cmake to use those. Use them at your own risk.
      │ │ │ + <http://www.ipol.im/pub/art/2011/ys-dct/>. │ │ │
      │ │ │
      Parameters:
      │ │ │ -
      gamma - gamma value for gamma correction. See createTonemap
      │ │ │ -
      contrast - resulting contrast on logarithmic scale, i. e. log(max / min), where max and min │ │ │ - are maximum and minimum luminance values of the resulting image.
      │ │ │ -
      saturation - saturation enhancement value. See createTonemapDrago
      │ │ │ -
      Returns:
      │ │ │ -
      automatically generated
      │ │ │ -
      │ │ │ -
      │ │ │ -
    • │ │ │ -
    • │ │ │ -
      │ │ │ -

      createTonemapDurand

      │ │ │ -
      public static TonemapDurand createTonemapDurand(float gamma, │ │ │ - float contrast)
      │ │ │ -
      Creates TonemapDurand object │ │ │ +
      src - source image
      │ │ │ +
      dst - destination image
      │ │ │ +
      sigma - expected noise standard deviation
      │ │ │ +
      psize - size of block side where dct is computed │ │ │ │ │ │ - You need to set the OPENCV_ENABLE_NONFREE option in cmake to use those. Use them at your own risk.
      │ │ │ -
      │ │ │ -
      Parameters:
      │ │ │ -
      gamma - gamma value for gamma correction. See createTonemap
      │ │ │ -
      contrast - resulting contrast on logarithmic scale, i. e. log(max / min), where max and min │ │ │ - are maximum and minimum luminance values of the resulting image.
      │ │ │ -
      Returns:
      │ │ │ -
      automatically generated
      │ │ │ + SEE: │ │ │ + fastNlMeansDenoising │ │ │
      │ │ │
      │ │ │
    • │ │ │
    • │ │ │ -
      │ │ │ -

      createTonemapDurand

      │ │ │ -
      public static TonemapDurand createTonemapDurand(float gamma)
      │ │ │ -
      Creates TonemapDurand object │ │ │ +
      │ │ │ +

      dctDenoising

      │ │ │ +
      public static void dctDenoising(Mat src, │ │ │ + Mat dst, │ │ │ + double sigma)
      │ │ │ +
      The function implements simple dct-based denoising │ │ │ │ │ │ - You need to set the OPENCV_ENABLE_NONFREE option in cmake to use those. Use them at your own risk.
      │ │ │ + <http://www.ipol.im/pub/art/2011/ys-dct/>.
      │ │ │
      │ │ │
      Parameters:
      │ │ │ -
      gamma - gamma value for gamma correction. See createTonemap │ │ │ - are maximum and minimum luminance values of the resulting image.
      │ │ │ -
      Returns:
      │ │ │ -
      automatically generated
      │ │ │ -
      │ │ │ -
      │ │ │ -
    • │ │ │ -
    • │ │ │ -
      │ │ │ -

      createTonemapDurand

      │ │ │ -
      public static TonemapDurand createTonemapDurand()
      │ │ │ -
      Creates TonemapDurand object │ │ │ - │ │ │ - You need to set the OPENCV_ENABLE_NONFREE option in cmake to use those. Use them at your own risk. │ │ │ +
      src - source image
      │ │ │ +
      dst - destination image
      │ │ │ +
      sigma - expected noise standard deviation │ │ │ │ │ │ - are maximum and minimum luminance values of the resulting image.
      │ │ │ -
      │ │ │ -
      Returns:
      │ │ │ -
      automatically generated
      │ │ │ + SEE: │ │ │ + fastNlMeansDenoising │ │ │
      │ │ │
      │ │ │
    • │ │ │
    • │ │ │
      │ │ │

      oilPainting

      │ │ │
      public static void oilPainting(Mat src, │ │ │ @@ -969,87 +830,14 @@ │ │ │
      dst - Output image of the same size and type as src.
      │ │ │
      size - neighbouring size is 2-size+1
      │ │ │
      dynRatio - image is divided by dynRatio before histogram processing
      │ │ │ │ │ │
      │ │ │
    • │ │ │
    • │ │ │ -
      │ │ │ -

      inpaint

      │ │ │ -
      public static void inpaint(Mat src, │ │ │ - Mat mask, │ │ │ - Mat dst, │ │ │ - int algorithmType)
      │ │ │ -
      The function implements different single-image inpainting algorithms. │ │ │ - │ │ │ - See the original papers CITE: He2012 (Shiftmap) or CITE: GenserPCS2018 and CITE: SeilerTIP2015 (FSR) for details.
      │ │ │ -
      │ │ │ -
      Parameters:
      │ │ │ -
      src - source image │ │ │ -
        │ │ │ -
      • │ │ │ - #INPAINT_SHIFTMAP: it could be of any type and any number of channels from 1 to 4. In case of │ │ │ - 3- and 4-channels images the function expect them in CIELab colorspace or similar one, where first │ │ │ - color component shows intensity, while second and third shows colors. Nonetheless you can try any │ │ │ - colorspaces. │ │ │ -
      • │ │ │ -
      • │ │ │ - #INPAINT_FSR_BEST or #INPAINT_FSR_FAST: 1-channel grayscale or 3-channel BGR image. │ │ │ -
      • │ │ │ -
      │ │ │ -
      mask - mask (#CV_8UC1), where non-zero pixels indicate valid image area, while zero pixels │ │ │ - indicate area to be inpainted
      │ │ │ -
      dst - destination image
      │ │ │ -
      algorithmType - see xphoto::InpaintTypes
      │ │ │ -
      │ │ │ -
      │ │ │ -
    • │ │ │ -
    • │ │ │ -
      │ │ │ -

      dctDenoising

      │ │ │ -
      public static void 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/>.
      │ │ │ -
      │ │ │ -
      Parameters:
      │ │ │ -
      src - source image
      │ │ │ -
      dst - destination image
      │ │ │ -
      sigma - expected noise standard deviation
      │ │ │ -
      psize - size of block side where dct is computed │ │ │ - │ │ │ - SEE: │ │ │ - fastNlMeansDenoising
      │ │ │ -
      │ │ │ -
      │ │ │ -
    • │ │ │ -
    • │ │ │ -
      │ │ │ -

      dctDenoising

      │ │ │ -
      public static void dctDenoising(Mat src, │ │ │ - Mat dst, │ │ │ - double sigma)
      │ │ │ -
      The function implements simple dct-based denoising │ │ │ - │ │ │ - <http://www.ipol.im/pub/art/2011/ys-dct/>.
      │ │ │ -
      │ │ │ -
      Parameters:
      │ │ │ -
      src - source image
      │ │ │ -
      dst - destination image
      │ │ │ -
      sigma - expected noise standard deviation │ │ │ - │ │ │ - SEE: │ │ │ - fastNlMeansDenoising
      │ │ │ -
      │ │ │ -
      │ │ │ -
    • │ │ │ -
    • │ │ │
      │ │ │

      bm3dDenoising

      │ │ │
      public static void bm3dDenoising(Mat src, │ │ │ Mat dstStep1, │ │ │ Mat dstStep2, │ │ │ float h, │ │ │ int templateWindowSize, │ │ │ @@ -2133,14 +1921,226 @@ │ │ │ can be manual denoising of colored image in different colorspaces. │ │ │ │ │ │ SEE: │ │ │ fastNlMeansDenoising │ │ │ │ │ │
      │ │ │
    • │ │ │ +
    • │ │ │ +
      │ │ │ +

      inpaint

      │ │ │ +
      public static void inpaint(Mat src, │ │ │ + Mat mask, │ │ │ + Mat dst, │ │ │ + int algorithmType)
      │ │ │ +
      The function implements different single-image inpainting algorithms. │ │ │ + │ │ │ + See the original papers CITE: He2012 (Shiftmap) or CITE: GenserPCS2018 and CITE: SeilerTIP2015 (FSR) for details.
      │ │ │ +
      │ │ │ +
      Parameters:
      │ │ │ +
      src - source image │ │ │ +
        │ │ │ +
      • │ │ │ + #INPAINT_SHIFTMAP: it could be of any type and any number of channels from 1 to 4. In case of │ │ │ + 3- and 4-channels images the function expect them in CIELab colorspace or similar one, where first │ │ │ + color component shows intensity, while second and third shows colors. Nonetheless you can try any │ │ │ + colorspaces. │ │ │ +
      • │ │ │ +
      • │ │ │ + #INPAINT_FSR_BEST or #INPAINT_FSR_FAST: 1-channel grayscale or 3-channel BGR image. │ │ │ +
      • │ │ │ +
      │ │ │ +
      mask - mask (#CV_8UC1), where non-zero pixels indicate valid image area, while zero pixels │ │ │ + indicate area to be inpainted
      │ │ │ +
      dst - destination image
      │ │ │ +
      algorithmType - see xphoto::InpaintTypes
      │ │ │ +
      │ │ │ +
      │ │ │ +
    • │ │ │ +
    • │ │ │ +
      │ │ │ +

      createTonemapDurand

      │ │ │ +
      public static TonemapDurand createTonemapDurand(float gamma, │ │ │ + float contrast, │ │ │ + float saturation, │ │ │ + float sigma_color, │ │ │ + float sigma_space)
      │ │ │ +
      Creates TonemapDurand object │ │ │ + │ │ │ + You need to set the OPENCV_ENABLE_NONFREE option in cmake to use those. Use them at your own risk.
      │ │ │ +
      │ │ │ +
      Parameters:
      │ │ │ +
      gamma - gamma value for gamma correction. See createTonemap
      │ │ │ +
      contrast - resulting contrast on logarithmic scale, i. e. log(max / min), where max and min │ │ │ + are maximum and minimum luminance values of the resulting image.
      │ │ │ +
      saturation - saturation enhancement value. See createTonemapDrago
      │ │ │ +
      sigma_color - bilateral filter sigma in color space
      │ │ │ +
      sigma_space - bilateral filter sigma in coordinate space
      │ │ │ +
      Returns:
      │ │ │ +
      automatically generated
      │ │ │ +
      │ │ │ +
      │ │ │ +
    • │ │ │ +
    • │ │ │ +
      │ │ │ +

      createTonemapDurand

      │ │ │ +
      public static TonemapDurand createTonemapDurand(float gamma, │ │ │ + float contrast, │ │ │ + float saturation, │ │ │ + float sigma_color)
      │ │ │ +
      Creates TonemapDurand object │ │ │ + │ │ │ + You need to set the OPENCV_ENABLE_NONFREE option in cmake to use those. Use them at your own risk.
      │ │ │ +
      │ │ │ +
      Parameters:
      │ │ │ +
      gamma - gamma value for gamma correction. See createTonemap
      │ │ │ +
      contrast - resulting contrast on logarithmic scale, i. e. log(max / min), where max and min │ │ │ + are maximum and minimum luminance values of the resulting image.
      │ │ │ +
      saturation - saturation enhancement value. See createTonemapDrago
      │ │ │ +
      sigma_color - bilateral filter sigma in color space
      │ │ │ +
      Returns:
      │ │ │ +
      automatically generated
      │ │ │ +
      │ │ │ +
      │ │ │ +
    • │ │ │ +
    • │ │ │ +
      │ │ │ +

      createTonemapDurand

      │ │ │ +
      public static TonemapDurand createTonemapDurand(float gamma, │ │ │ + float contrast, │ │ │ + float saturation)
      │ │ │ +
      Creates TonemapDurand object │ │ │ + │ │ │ + You need to set the OPENCV_ENABLE_NONFREE option in cmake to use those. Use them at your own risk.
      │ │ │ +
      │ │ │ +
      Parameters:
      │ │ │ +
      gamma - gamma value for gamma correction. See createTonemap
      │ │ │ +
      contrast - resulting contrast on logarithmic scale, i. e. log(max / min), where max and min │ │ │ + are maximum and minimum luminance values of the resulting image.
      │ │ │ +
      saturation - saturation enhancement value. See createTonemapDrago
      │ │ │ +
      Returns:
      │ │ │ +
      automatically generated
      │ │ │ +
      │ │ │ +
      │ │ │ +
    • │ │ │ +
    • │ │ │ +
      │ │ │ +

      createTonemapDurand

      │ │ │ +
      public static TonemapDurand createTonemapDurand(float gamma, │ │ │ + float contrast)
      │ │ │ +
      Creates TonemapDurand object │ │ │ + │ │ │ + You need to set the OPENCV_ENABLE_NONFREE option in cmake to use those. Use them at your own risk.
      │ │ │ +
      │ │ │ +
      Parameters:
      │ │ │ +
      gamma - gamma value for gamma correction. See createTonemap
      │ │ │ +
      contrast - resulting contrast on logarithmic scale, i. e. log(max / min), where max and min │ │ │ + are maximum and minimum luminance values of the resulting image.
      │ │ │ +
      Returns:
      │ │ │ +
      automatically generated
      │ │ │ +
      │ │ │ +
      │ │ │ +
    • │ │ │ +
    • │ │ │ +
      │ │ │ +

      createTonemapDurand

      │ │ │ +
      public static TonemapDurand createTonemapDurand(float gamma)
      │ │ │ +
      Creates TonemapDurand object │ │ │ + │ │ │ + You need to set the OPENCV_ENABLE_NONFREE option in cmake to use those. Use them at your own risk.
      │ │ │ +
      │ │ │ +
      Parameters:
      │ │ │ +
      gamma - gamma value for gamma correction. See createTonemap │ │ │ + are maximum and minimum luminance values of the resulting image.
      │ │ │ +
      Returns:
      │ │ │ +
      automatically generated
      │ │ │ +
      │ │ │ +
      │ │ │ +
    • │ │ │ +
    • │ │ │ +
      │ │ │ +

      createTonemapDurand

      │ │ │ +
      public static TonemapDurand createTonemapDurand()
      │ │ │ +
      Creates TonemapDurand object │ │ │ + │ │ │ + You need to set the OPENCV_ENABLE_NONFREE option in cmake to use those. Use them at your own risk. │ │ │ + │ │ │ + are maximum and minimum luminance values of the resulting image.
      │ │ │ +
      │ │ │ +
      Returns:
      │ │ │ +
      automatically generated
      │ │ │ +
      │ │ │ +
      │ │ │ +
    • │ │ │ +
    • │ │ │ +
      │ │ │ +

      createSimpleWB

      │ │ │ +
      public static SimpleWB createSimpleWB()
      │ │ │ +
      Creates an instance of SimpleWB
      │ │ │ +
      │ │ │ +
      Returns:
      │ │ │ +
      automatically generated
      │ │ │ +
      │ │ │ +
      │ │ │ +
    • │ │ │ +
    • │ │ │ +
      │ │ │ +

      createGrayworldWB

      │ │ │ +
      public static GrayworldWB createGrayworldWB()
      │ │ │ +
      Creates an instance of GrayworldWB
      │ │ │ +
      │ │ │ +
      Returns:
      │ │ │ +
      automatically generated
      │ │ │ +
      │ │ │ +
      │ │ │ +
    • │ │ │ +
    • │ │ │ +
      │ │ │ +

      createLearningBasedWB

      │ │ │ +
      public static LearningBasedWB createLearningBasedWB(String path_to_model)
      │ │ │ +
      Creates an instance of LearningBasedWB
      │ │ │ +
      │ │ │ +
      Parameters:
      │ │ │ +
      path_to_model - Path to a .yml file with the model. If not specified, the default model is used
      │ │ │ +
      Returns:
      │ │ │ +
      automatically generated
      │ │ │ +
      │ │ │ +
      │ │ │ +
    • │ │ │ +
    • │ │ │ +
      │ │ │ +

      createLearningBasedWB

      │ │ │ +
      public static LearningBasedWB createLearningBasedWB()
      │ │ │ +
      Creates an instance of LearningBasedWB
      │ │ │ +
      │ │ │ +
      Returns:
      │ │ │ +
      automatically generated
      │ │ │ +
      │ │ │ +
      │ │ │ +
    • │ │ │ +
    • │ │ │ +
      │ │ │ +

      applyChannelGains

      │ │ │ +
      public static void 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.
      │ │ │ +
      │ │ │ +
      Parameters:
      │ │ │ +
      src - Input three-channel image in the BGR color space (either CV_8UC3 or CV_16UC3)
      │ │ │ +
      dst - Output image of the same size and type as src.
      │ │ │ +
      gainB - gain for the B channel
      │ │ │ +
      gainG - gain for the G channel
      │ │ │ +
      gainR - gain for the R channel
      │ │ │ +
      │ │ │ +
      │ │ │ +
    • │ │ │
    │ │ │
    │ │ │
  • │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ ├── html2text {} │ │ │ │ @@ -318,132 +318,34 @@ │ │ │ │ public static final int HAAR │ │ │ │ See Also: │ │ │ │ # _C_o_n_s_t_a_n_t_ _F_i_e_l_d_ _V_a_l_u_e_s │ │ │ │ * ********** CCoonnssttrruuccttoorr DDeettaaiillss ********** │ │ │ │ o ******** XXpphhoottoo ******** │ │ │ │ public Xphoto() │ │ │ │ * ********** MMeetthhoodd DDeettaaiillss ********** │ │ │ │ - o ******** ccrreeaatteeSSiimmpplleeWWBB ******** │ │ │ │ - public static _S_i_m_p_l_e_W_B createSimpleWB() │ │ │ │ - Creates an instance of SimpleWB │ │ │ │ - Returns: │ │ │ │ - automatically generated │ │ │ │ - o ******** ccrreeaatteeGGrraayywwoorrllddWWBB ******** │ │ │ │ - public static _G_r_a_y_w_o_r_l_d_W_B createGrayworldWB() │ │ │ │ - Creates an instance of GrayworldWB │ │ │ │ - Returns: │ │ │ │ - automatically generated │ │ │ │ - o ******** ccrreeaatteeLLeeaarrnniinnggBBaasseeddWWBB ******** │ │ │ │ - public static _L_e_a_r_n_i_n_g_B_a_s_e_d_W_B createLearningBasedWB │ │ │ │ - (_S_t_r_i_n_g path_to_model) │ │ │ │ - Creates an instance of LearningBasedWB │ │ │ │ - Parameters: │ │ │ │ - path_to_model - Path to a .yml file with the model. If not │ │ │ │ - specified, the default model is used │ │ │ │ - Returns: │ │ │ │ - automatically generated │ │ │ │ - o ******** ccrreeaatteeLLeeaarrnniinnggBBaasseeddWWBB ******** │ │ │ │ - public static _L_e_a_r_n_i_n_g_B_a_s_e_d_W_B createLearningBasedWB() │ │ │ │ - Creates an instance of LearningBasedWB │ │ │ │ - Returns: │ │ │ │ - automatically generated │ │ │ │ - o ******** aappppllyyCChhaannnneellGGaaiinnss ******** │ │ │ │ - public static void applyChannelGains(_M_a_t src, _M_a_t 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. │ │ │ │ - Parameters: │ │ │ │ - src - Input three-channel image in the BGR color space │ │ │ │ - (either CV_8UC3 or CV_16UC3) │ │ │ │ - dst - Output image of the same size and type as src. │ │ │ │ - gainB - gain for the B channel │ │ │ │ - gainG - gain for the G channel │ │ │ │ - gainR - gain for the R channel │ │ │ │ - o ******** ccrreeaatteeTToonneemmaappDDuurraanndd ******** │ │ │ │ - public static _T_o_n_e_m_a_p_D_u_r_a_n_d createTonemapDurand(float gamma, │ │ │ │ - float contrast, float saturation, float sigma_color, │ │ │ │ - float sigma_space) │ │ │ │ - Creates TonemapDurand object You need to set the │ │ │ │ - OPENCV_ENABLE_NONFREE option in cmake to use those. Use them at │ │ │ │ - your own risk. │ │ │ │ - Parameters: │ │ │ │ - gamma - gamma value for gamma correction. See createTonemap │ │ │ │ - contrast - resulting contrast on logarithmic scale, i. e. log │ │ │ │ - (max / min), where max and min are maximum and minimum │ │ │ │ - luminance values of the resulting image. │ │ │ │ - saturation - saturation enhancement value. See │ │ │ │ - createTonemapDrago │ │ │ │ - sigma_color - bilateral filter sigma in color space │ │ │ │ - sigma_space - bilateral filter sigma in coordinate space │ │ │ │ - Returns: │ │ │ │ - automatically generated │ │ │ │ - o ******** ccrreeaatteeTToonneemmaappDDuurraanndd ******** │ │ │ │ - public static _T_o_n_e_m_a_p_D_u_r_a_n_d createTonemapDurand(float gamma, │ │ │ │ - float contrast, float saturation, float sigma_color) │ │ │ │ - Creates TonemapDurand object You need to set the │ │ │ │ - OPENCV_ENABLE_NONFREE option in cmake to use those. Use them at │ │ │ │ - your own risk. │ │ │ │ - Parameters: │ │ │ │ - gamma - gamma value for gamma correction. See createTonemap │ │ │ │ - contrast - resulting contrast on logarithmic scale, i. e. log │ │ │ │ - (max / min), where max and min are maximum and minimum │ │ │ │ - luminance values of the resulting image. │ │ │ │ - saturation - saturation enhancement value. See │ │ │ │ - createTonemapDrago │ │ │ │ - sigma_color - bilateral filter sigma in color space │ │ │ │ - Returns: │ │ │ │ - automatically generated │ │ │ │ - o ******** ccrreeaatteeTToonneemmaappDDuurraanndd ******** │ │ │ │ - public static _T_o_n_e_m_a_p_D_u_r_a_n_d createTonemapDurand(float gamma, │ │ │ │ - float contrast, float saturation) │ │ │ │ - Creates TonemapDurand object You need to set the │ │ │ │ - OPENCV_ENABLE_NONFREE option in cmake to use those. Use them at │ │ │ │ - your own risk. │ │ │ │ - Parameters: │ │ │ │ - gamma - gamma value for gamma correction. See createTonemap │ │ │ │ - contrast - resulting contrast on logarithmic scale, i. e. log │ │ │ │ - (max / min), where max and min are maximum and minimum │ │ │ │ - luminance values of the resulting image. │ │ │ │ - saturation - saturation enhancement value. See │ │ │ │ - createTonemapDrago │ │ │ │ - Returns: │ │ │ │ - automatically generated │ │ │ │ - o ******** ccrreeaatteeTToonneemmaappDDuurraanndd ******** │ │ │ │ - public static _T_o_n_e_m_a_p_D_u_r_a_n_d createTonemapDurand(float gamma, │ │ │ │ - float contrast) │ │ │ │ - Creates TonemapDurand object You need to set the │ │ │ │ - OPENCV_ENABLE_NONFREE option in cmake to use those. Use them at │ │ │ │ - your own risk. │ │ │ │ + o ******** ddccttDDeennooiissiinngg ******** │ │ │ │ + public static void dctDenoising(_M_a_t src, _M_a_t dst, double sigma, │ │ │ │ + int psize) │ │ │ │ + The function implements simple dct-based denoising . │ │ │ │ Parameters: │ │ │ │ - gamma - gamma value for gamma correction. See createTonemap │ │ │ │ - contrast - resulting contrast on logarithmic scale, i. e. log │ │ │ │ - (max / min), where max and min are maximum and minimum │ │ │ │ - luminance values of the resulting image. │ │ │ │ - Returns: │ │ │ │ - automatically generated │ │ │ │ - o ******** ccrreeaatteeTToonneemmaappDDuurraanndd ******** │ │ │ │ - public static _T_o_n_e_m_a_p_D_u_r_a_n_d createTonemapDurand(float gamma) │ │ │ │ - Creates TonemapDurand object You need to set the │ │ │ │ - OPENCV_ENABLE_NONFREE option in cmake to use those. Use them at │ │ │ │ - your own risk. │ │ │ │ + src - source image │ │ │ │ + dst - destination image │ │ │ │ + sigma - expected noise standard deviation │ │ │ │ + psize - size of block side where dct is computed SEE: │ │ │ │ + fastNlMeansDenoising │ │ │ │ + o ******** ddccttDDeennooiissiinngg ******** │ │ │ │ + public static void dctDenoising(_M_a_t src, _M_a_t dst, double sigma) │ │ │ │ + The function implements simple dct-based denoising . │ │ │ │ Parameters: │ │ │ │ - gamma - gamma value for gamma correction. See createTonemap │ │ │ │ - are maximum and minimum luminance values of the resulting │ │ │ │ - image. │ │ │ │ - Returns: │ │ │ │ - automatically generated │ │ │ │ - o ******** ccrreeaatteeTToonneemmaappDDuurraanndd ******** │ │ │ │ - public static _T_o_n_e_m_a_p_D_u_r_a_n_d createTonemapDurand() │ │ │ │ - Creates TonemapDurand object You need to set the │ │ │ │ - OPENCV_ENABLE_NONFREE option in cmake to use those. Use them at │ │ │ │ - your own risk. are maximum and minimum luminance values of the │ │ │ │ - resulting image. │ │ │ │ - Returns: │ │ │ │ - automatically generated │ │ │ │ + src - source image │ │ │ │ + dst - destination image │ │ │ │ + sigma - expected noise standard deviation SEE: │ │ │ │ + fastNlMeansDenoising │ │ │ │ o ******** ooiillPPaaiinnttiinngg ******** │ │ │ │ public static void oilPainting(_M_a_t src, _M_a_t dst, int size, │ │ │ │ int dynRatio, int code) │ │ │ │ oilPainting See the book CITE: Holzmann1988 for details. │ │ │ │ Parameters: │ │ │ │ src - Input three-channel or one channel image (either │ │ │ │ CV_8UC3 or CV_8UC1) │ │ │ │ @@ -459,54 +361,14 @@ │ │ │ │ Parameters: │ │ │ │ src - Input three-channel or one channel image (either │ │ │ │ CV_8UC3 or CV_8UC1) │ │ │ │ dst - Output image of the same size and type as src. │ │ │ │ size - neighbouring size is 2-size+1 │ │ │ │ dynRatio - image is divided by dynRatio before histogram │ │ │ │ processing │ │ │ │ - o ******** iinnppaaiinntt ******** │ │ │ │ - public static void inpaint(_M_a_t src, _M_a_t mask, _M_a_t dst, │ │ │ │ - int algorithmType) │ │ │ │ - The function implements different single-image inpainting │ │ │ │ - algorithms. See the original papers CITE: He2012 (Shiftmap) or │ │ │ │ - CITE: GenserPCS2018 and CITE: SeilerTIP2015 (FSR) for details. │ │ │ │ - Parameters: │ │ │ │ - src - source image │ │ │ │ - # #INPAINT_SHIFTMAP: it could be of any type and any │ │ │ │ - number of channels from 1 to 4. In case of 3- and 4- │ │ │ │ - channels images the function expect them in CIELab │ │ │ │ - colorspace or similar one, where first color component │ │ │ │ - shows intensity, while second and third shows colors. │ │ │ │ - Nonetheless you can try any colorspaces. │ │ │ │ - # #INPAINT_FSR_BEST or #INPAINT_FSR_FAST: 1-channel │ │ │ │ - grayscale or 3-channel BGR image. │ │ │ │ - mask - mask (#CV_8UC1), where non-zero pixels indicate valid │ │ │ │ - image area, while zero pixels indicate area to be inpainted │ │ │ │ - dst - destination image │ │ │ │ - algorithmType - see xphoto::InpaintTypes │ │ │ │ - o ******** ddccttDDeennooiissiinngg ******** │ │ │ │ - public static void dctDenoising(_M_a_t src, _M_a_t dst, double sigma, │ │ │ │ - int psize) │ │ │ │ - The function implements simple dct-based denoising . │ │ │ │ - Parameters: │ │ │ │ - src - source image │ │ │ │ - dst - destination image │ │ │ │ - sigma - expected noise standard deviation │ │ │ │ - psize - size of block side where dct is computed SEE: │ │ │ │ - fastNlMeansDenoising │ │ │ │ - o ******** ddccttDDeennooiissiinngg ******** │ │ │ │ - public static void dctDenoising(_M_a_t src, _M_a_t dst, double sigma) │ │ │ │ - The function implements simple dct-based denoising . │ │ │ │ - Parameters: │ │ │ │ - src - source image │ │ │ │ - dst - destination image │ │ │ │ - sigma - expected noise standard deviation SEE: │ │ │ │ - fastNlMeansDenoising │ │ │ │ o ******** bbmm33ddDDeennooiissiinngg ******** │ │ │ │ public static void bm3dDenoising(_M_a_t src, _M_a_t dstStep1, │ │ │ │ _M_a_t 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 │ │ │ │ @@ -1419,8 +1281,146 @@ │ │ │ │ to reduce border effects. To prevent usage of the window, set │ │ │ │ beta to zero. but yields more accurate results. BM3D_STEP2 is │ │ │ │ not allowed as it requires basic estimate to be present. │ │ │ │ Currently only Haar transform is supported. This function │ │ │ │ expected to be applied to grayscale images. Advanced usage of │ │ │ │ this function can be manual denoising of colored image in │ │ │ │ different colorspaces. SEE: fastNlMeansDenoising │ │ │ │ + o ******** iinnppaaiinntt ******** │ │ │ │ + public static void inpaint(_M_a_t src, _M_a_t mask, _M_a_t dst, │ │ │ │ + int algorithmType) │ │ │ │ + The function implements different single-image inpainting │ │ │ │ + algorithms. See the original papers CITE: He2012 (Shiftmap) or │ │ │ │ + CITE: GenserPCS2018 and CITE: SeilerTIP2015 (FSR) for details. │ │ │ │ + Parameters: │ │ │ │ + src - source image │ │ │ │ + # #INPAINT_SHIFTMAP: it could be of any type and any │ │ │ │ + number of channels from 1 to 4. In case of 3- and 4- │ │ │ │ + channels images the function expect them in CIELab │ │ │ │ + colorspace or similar one, where first color component │ │ │ │ + shows intensity, while second and third shows colors. │ │ │ │ + Nonetheless you can try any colorspaces. │ │ │ │ + # #INPAINT_FSR_BEST or #INPAINT_FSR_FAST: 1-channel │ │ │ │ + grayscale or 3-channel BGR image. │ │ │ │ + mask - mask (#CV_8UC1), where non-zero pixels indicate valid │ │ │ │ + image area, while zero pixels indicate area to be inpainted │ │ │ │ + dst - destination image │ │ │ │ + algorithmType - see xphoto::InpaintTypes │ │ │ │ + o ******** ccrreeaatteeTToonneemmaappDDuurraanndd ******** │ │ │ │ + public static _T_o_n_e_m_a_p_D_u_r_a_n_d createTonemapDurand(float gamma, │ │ │ │ + float contrast, float saturation, float sigma_color, │ │ │ │ + float sigma_space) │ │ │ │ + Creates TonemapDurand object You need to set the │ │ │ │ + OPENCV_ENABLE_NONFREE option in cmake to use those. Use them at │ │ │ │ + your own risk. │ │ │ │ + Parameters: │ │ │ │ + gamma - gamma value for gamma correction. See createTonemap │ │ │ │ + contrast - resulting contrast on logarithmic scale, i. e. log │ │ │ │ + (max / min), where max and min are maximum and minimum │ │ │ │ + luminance values of the resulting image. │ │ │ │ + saturation - saturation enhancement value. See │ │ │ │ + createTonemapDrago │ │ │ │ + sigma_color - bilateral filter sigma in color space │ │ │ │ + sigma_space - bilateral filter sigma in coordinate space │ │ │ │ + Returns: │ │ │ │ + automatically generated │ │ │ │ + o ******** ccrreeaatteeTToonneemmaappDDuurraanndd ******** │ │ │ │ + public static _T_o_n_e_m_a_p_D_u_r_a_n_d createTonemapDurand(float gamma, │ │ │ │ + float contrast, float saturation, float sigma_color) │ │ │ │ + Creates TonemapDurand object You need to set the │ │ │ │ + OPENCV_ENABLE_NONFREE option in cmake to use those. Use them at │ │ │ │ + your own risk. │ │ │ │ + Parameters: │ │ │ │ + gamma - gamma value for gamma correction. See createTonemap │ │ │ │ + contrast - resulting contrast on logarithmic scale, i. e. log │ │ │ │ + (max / min), where max and min are maximum and minimum │ │ │ │ + luminance values of the resulting image. │ │ │ │ + saturation - saturation enhancement value. See │ │ │ │ + createTonemapDrago │ │ │ │ + sigma_color - bilateral filter sigma in color space │ │ │ │ + Returns: │ │ │ │ + automatically generated │ │ │ │ + o ******** ccrreeaatteeTToonneemmaappDDuurraanndd ******** │ │ │ │ + public static _T_o_n_e_m_a_p_D_u_r_a_n_d createTonemapDurand(float gamma, │ │ │ │ + float contrast, float saturation) │ │ │ │ + Creates TonemapDurand object You need to set the │ │ │ │ + OPENCV_ENABLE_NONFREE option in cmake to use those. Use them at │ │ │ │ + your own risk. │ │ │ │ + Parameters: │ │ │ │ + gamma - gamma value for gamma correction. See createTonemap │ │ │ │ + contrast - resulting contrast on logarithmic scale, i. e. log │ │ │ │ + (max / min), where max and min are maximum and minimum │ │ │ │ + luminance values of the resulting image. │ │ │ │ + saturation - saturation enhancement value. See │ │ │ │ + createTonemapDrago │ │ │ │ + Returns: │ │ │ │ + automatically generated │ │ │ │ + o ******** ccrreeaatteeTToonneemmaappDDuurraanndd ******** │ │ │ │ + public static _T_o_n_e_m_a_p_D_u_r_a_n_d createTonemapDurand(float gamma, │ │ │ │ + float contrast) │ │ │ │ + Creates TonemapDurand object You need to set the │ │ │ │ + OPENCV_ENABLE_NONFREE option in cmake to use those. Use them at │ │ │ │ + your own risk. │ │ │ │ + Parameters: │ │ │ │ + gamma - gamma value for gamma correction. See createTonemap │ │ │ │ + contrast - resulting contrast on logarithmic scale, i. e. log │ │ │ │ + (max / min), where max and min are maximum and minimum │ │ │ │ + luminance values of the resulting image. │ │ │ │ + Returns: │ │ │ │ + automatically generated │ │ │ │ + o ******** ccrreeaatteeTToonneemmaappDDuurraanndd ******** │ │ │ │ + public static _T_o_n_e_m_a_p_D_u_r_a_n_d createTonemapDurand(float gamma) │ │ │ │ + Creates TonemapDurand object You need to set the │ │ │ │ + OPENCV_ENABLE_NONFREE option in cmake to use those. Use them at │ │ │ │ + your own risk. │ │ │ │ + Parameters: │ │ │ │ + gamma - gamma value for gamma correction. See createTonemap │ │ │ │ + are maximum and minimum luminance values of the resulting │ │ │ │ + image. │ │ │ │ + Returns: │ │ │ │ + automatically generated │ │ │ │ + o ******** ccrreeaatteeTToonneemmaappDDuurraanndd ******** │ │ │ │ + public static _T_o_n_e_m_a_p_D_u_r_a_n_d createTonemapDurand() │ │ │ │ + Creates TonemapDurand object You need to set the │ │ │ │ + OPENCV_ENABLE_NONFREE option in cmake to use those. Use them at │ │ │ │ + your own risk. are maximum and minimum luminance values of the │ │ │ │ + resulting image. │ │ │ │ + Returns: │ │ │ │ + automatically generated │ │ │ │ + o ******** ccrreeaatteeSSiimmpplleeWWBB ******** │ │ │ │ + public static _S_i_m_p_l_e_W_B createSimpleWB() │ │ │ │ + Creates an instance of SimpleWB │ │ │ │ + Returns: │ │ │ │ + automatically generated │ │ │ │ + o ******** ccrreeaatteeGGrraayywwoorrllddWWBB ******** │ │ │ │ + public static _G_r_a_y_w_o_r_l_d_W_B createGrayworldWB() │ │ │ │ + Creates an instance of GrayworldWB │ │ │ │ + Returns: │ │ │ │ + automatically generated │ │ │ │ + o ******** ccrreeaatteeLLeeaarrnniinnggBBaasseeddWWBB ******** │ │ │ │ + public static _L_e_a_r_n_i_n_g_B_a_s_e_d_W_B createLearningBasedWB │ │ │ │ + (_S_t_r_i_n_g path_to_model) │ │ │ │ + Creates an instance of LearningBasedWB │ │ │ │ + Parameters: │ │ │ │ + path_to_model - Path to a .yml file with the model. If not │ │ │ │ + specified, the default model is used │ │ │ │ + Returns: │ │ │ │ + automatically generated │ │ │ │ + o ******** ccrreeaatteeLLeeaarrnniinnggBBaasseeddWWBB ******** │ │ │ │ + public static _L_e_a_r_n_i_n_g_B_a_s_e_d_W_B createLearningBasedWB() │ │ │ │ + Creates an instance of LearningBasedWB │ │ │ │ + Returns: │ │ │ │ + automatically generated │ │ │ │ + o ******** aappppllyyCChhaannnneellGGaaiinnss ******** │ │ │ │ + public static void applyChannelGains(_M_a_t src, _M_a_t 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. │ │ │ │ + Parameters: │ │ │ │ + src - Input three-channel image in the BGR color space │ │ │ │ + (either CV_8UC3 or CV_16UC3) │ │ │ │ + dst - Output image of the same size and type as src. │ │ │ │ + gainB - gain for the B channel │ │ │ │ + gainG - gain for the G channel │ │ │ │ + gainR - gain for the R channel │ │ │ │ =============================================================================== │ │ ├── ./usr/share/doc/opencv-doc/opencv4/html/opencv.tag.gz │ │ │ ├── opencv.tag │ │ │ │ ├── opencv.tag │ │ │ │ │┄ Ordering differences only │ │ │ │ │ @@ -4175,26 +4175,14 @@ │ │ │ │ │ d6/d50/ovis_8hpp.html │ │ │ │ │ opencv2/core.hpp │ │ │ │ │ cv::ovis::WindowScene │ │ │ │ │ cv │ │ │ │ │ cv::ovis │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ - histogramphaseunwrapping.hpp │ │ │ │ │ - opencv2/phase_unwrapping/ │ │ │ │ │ - df/dce/histogramphaseunwrapping_8hpp.html │ │ │ │ │ - opencv2/core.hpp │ │ │ │ │ - opencv2/imgproc.hpp │ │ │ │ │ - opencv2/phase_unwrapping/phase_unwrapping.hpp │ │ │ │ │ - cv::phase_unwrapping::HistogramPhaseUnwrapping │ │ │ │ │ - cv::phase_unwrapping::HistogramPhaseUnwrapping::Params │ │ │ │ │ - cv │ │ │ │ │ - cv::phase_unwrapping │ │ │ │ │ - │ │ │ │ │ - │ │ │ │ │ phase_unwrapping.hpp │ │ │ │ │ opencv2/ │ │ │ │ │ dd/dee/phase__unwrapping_8hpp.html │ │ │ │ │ opencv2/phase_unwrapping/phase_unwrapping.hpp │ │ │ │ │ opencv2/phase_unwrapping/histogramphaseunwrapping.hpp │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ @@ -4203,14 +4191,26 @@ │ │ │ │ │ d3/d22/phase__unwrapping_2phase__unwrapping_8hpp.html │ │ │ │ │ opencv2/core.hpp │ │ │ │ │ cv::phase_unwrapping::PhaseUnwrapping │ │ │ │ │ cv │ │ │ │ │ cv::phase_unwrapping │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ + histogramphaseunwrapping.hpp │ │ │ │ │ + opencv2/phase_unwrapping/ │ │ │ │ │ + df/dce/histogramphaseunwrapping_8hpp.html │ │ │ │ │ + opencv2/core.hpp │ │ │ │ │ + opencv2/imgproc.hpp │ │ │ │ │ + opencv2/phase_unwrapping/phase_unwrapping.hpp │ │ │ │ │ + cv::phase_unwrapping::HistogramPhaseUnwrapping │ │ │ │ │ + cv::phase_unwrapping::HistogramPhaseUnwrapping::Params │ │ │ │ │ + cv │ │ │ │ │ + cv::phase_unwrapping │ │ │ │ │ + │ │ │ │ │ + │ │ │ │ │ phase_unwrapping.markdown │ │ │ │ │ phase_unwrapping/tutorials/ │ │ │ │ │ d9/dac/phase__unwrapping_8markdown.html │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ unwrap.markdown │ │ │ │ │ phase_unwrapping/tutorials/unwrap/ │ │ │ │ │ @@ -4695,14 +4695,29 @@ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ table_of_content_sfm.markdown │ │ │ │ │ sfm/tutorials/ │ │ │ │ │ dc/de0/table__of__content__sfm_8markdown.html │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ + shape.hpp │ │ │ │ │ + opencv2/ │ │ │ │ │ + d3/d30/shape_8hpp.html │ │ │ │ │ + opencv2/shape/emdL1.hpp │ │ │ │ │ + opencv2/shape/shape_transformer.hpp │ │ │ │ │ + opencv2/shape/hist_cost.hpp │ │ │ │ │ + opencv2/shape/shape_distance.hpp │ │ │ │ │ + │ │ │ │ │ + │ │ │ │ │ + shape.hpp │ │ │ │ │ + opencv2/shape/ │ │ │ │ │ + db/d0f/shape_2shape_8hpp.html │ │ │ │ │ + opencv2/shape.hpp │ │ │ │ │ + │ │ │ │ │ + │ │ │ │ │ emdL1.hpp │ │ │ │ │ opencv2/shape/ │ │ │ │ │ dd/dcb/emdL1_8hpp.html │ │ │ │ │ opencv2/core.hpp │ │ │ │ │ cv │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ @@ -4714,29 +4729,14 @@ │ │ │ │ │ cv::EMDHistogramCostExtractor │ │ │ │ │ cv::EMDL1HistogramCostExtractor │ │ │ │ │ cv::HistogramCostExtractor │ │ │ │ │ cv::NormHistogramCostExtractor │ │ │ │ │ cv │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ - shape.hpp │ │ │ │ │ - opencv2/ │ │ │ │ │ - d3/d30/shape_8hpp.html │ │ │ │ │ - opencv2/shape/emdL1.hpp │ │ │ │ │ - opencv2/shape/shape_transformer.hpp │ │ │ │ │ - opencv2/shape/hist_cost.hpp │ │ │ │ │ - opencv2/shape/shape_distance.hpp │ │ │ │ │ - │ │ │ │ │ - │ │ │ │ │ - shape.hpp │ │ │ │ │ - opencv2/shape/ │ │ │ │ │ - db/d0f/shape_2shape_8hpp.html │ │ │ │ │ - opencv2/shape.hpp │ │ │ │ │ - │ │ │ │ │ - │ │ │ │ │ shape_distance.hpp │ │ │ │ │ opencv2/shape/ │ │ │ │ │ d4/d7c/shape__distance_8hpp.html │ │ │ │ │ opencv2/core.hpp │ │ │ │ │ opencv2/shape/hist_cost.hpp │ │ │ │ │ opencv2/shape/shape_transformer.hpp │ │ │ │ │ cv::HausdorffDistanceExtractor │ │ │ │ │ @@ -8006,14 +8006,88 @@ │ │ │ │ │ │ │ │ │ │ datamov_utils.hpp │ │ │ │ │ opencv2/core/cuda/ │ │ │ │ │ df/dcf/datamov__utils_8hpp.html │ │ │ │ │ common.hpp │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ + reduce.hpp │ │ │ │ │ + opencv2/cudev/block/ │ │ │ │ │ + d3/d33/contrib_2modules_2cudev_2include_2opencv2_2cudev_2block_2reduce_8hpp.html │ │ │ │ │ + ../common.hpp │ │ │ │ │ + ../util/tuple.hpp │ │ │ │ │ + ../warp/reduce.hpp │ │ │ │ │ + cv │ │ │ │ │ + cv::cudev │ │ │ │ │ + │ │ │ │ │ + #define │ │ │ │ │ + OPENCV_CUDEV_BLOCK_REDUCE_HPP │ │ │ │ │ + d3/d33/contrib_2modules_2cudev_2include_2opencv2_2cudev_2block_2reduce_8hpp.html │ │ │ │ │ + ab84f43705d89c8633f6ae8d50223549e │ │ │ │ │ + │ │ │ │ │ + │ │ │ │ │ + │ │ │ │ │ + │ │ │ │ │ + reduce.hpp │ │ │ │ │ + opencv2/cudev/grid/ │ │ │ │ │ + d4/d25/contrib_2modules_2cudev_2include_2opencv2_2cudev_2grid_2reduce_8hpp.html │ │ │ │ │ + ../common.hpp │ │ │ │ │ + ../ptr2d/traits.hpp │ │ │ │ │ + ../ptr2d/gpumat.hpp │ │ │ │ │ + ../ptr2d/mask.hpp │ │ │ │ │ + ../ptr2d/transform.hpp │ │ │ │ │ + cv::cudev::DefaultGlobReducePolicy │ │ │ │ │ + cv │ │ │ │ │ + cv::cudev │ │ │ │ │ + │ │ │ │ │ + #define │ │ │ │ │ + OPENCV_CUDEV_GRID_REDUCE_HPP │ │ │ │ │ + d4/d25/contrib_2modules_2cudev_2include_2opencv2_2cudev_2grid_2reduce_8hpp.html │ │ │ │ │ + aeb868ad11b9b6244628b07b98b6c04d4 │ │ │ │ │ + │ │ │ │ │ + │ │ │ │ │ + │ │ │ │ │ + │ │ │ │ │ + reduce.hpp │ │ │ │ │ + opencv2/cudev/warp/ │ │ │ │ │ + d7/da3/contrib_2modules_2cudev_2include_2opencv2_2cudev_2warp_2reduce_8hpp.html │ │ │ │ │ + ../common.hpp │ │ │ │ │ + ../util/tuple.hpp │ │ │ │ │ + cv │ │ │ │ │ + cv::cudev │ │ │ │ │ + │ │ │ │ │ + #define │ │ │ │ │ + OPENCV_CUDEV_WARP_REDUCE_HPP │ │ │ │ │ + d7/da3/contrib_2modules_2cudev_2include_2opencv2_2cudev_2warp_2reduce_8hpp.html │ │ │ │ │ + ab460a86ce2356a945df3010b58a97c08 │ │ │ │ │ + │ │ │ │ │ + │ │ │ │ │ + │ │ │ │ │ + │ │ │ │ │ + reduce.hpp │ │ │ │ │ + opencv2/core/cuda/detail/ │ │ │ │ │ + da/dca/modules_2core_2include_2opencv2_2core_2cuda_2detail_2reduce_8hpp.html │ │ │ │ │ + ../warp.hpp │ │ │ │ │ + ../warp_shuffle.hpp │ │ │ │ │ + │ │ │ │ │ + │ │ │ │ │ + reduce.hpp │ │ │ │ │ + opencv2/core/cuda/ │ │ │ │ │ + d3/d78/modules_2core_2include_2opencv2_2core_2cuda_2reduce_8hpp.html │ │ │ │ │ + detail/reduce.hpp │ │ │ │ │ + detail/reduce_key_val.hpp │ │ │ │ │ + │ │ │ │ │ + #define │ │ │ │ │ + THRUST_DEBUG │ │ │ │ │ + d3/d78/modules_2core_2include_2opencv2_2core_2cuda_2reduce_8hpp.html │ │ │ │ │ + a307edaa487e6e39fcca95bd1250ec1f9 │ │ │ │ │ + │ │ │ │ │ + │ │ │ │ │ + │ │ │ │ │ + │ │ │ │ │ reduce_key_val.hpp │ │ │ │ │ opencv2/core/cuda/detail/ │ │ │ │ │ d3/dbd/reduce__key__val_8hpp.html │ │ │ │ │ ../warp.hpp │ │ │ │ │ ../warp_shuffle.hpp │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ @@ -8393,88 +8467,14 @@ │ │ │ │ │ │ │ │ │ │ limits.hpp │ │ │ │ │ opencv2/core/cuda/ │ │ │ │ │ d7/d42/modules_2core_2include_2opencv2_2core_2cuda_2limits_8hpp.html │ │ │ │ │ common.hpp │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ - reduce.hpp │ │ │ │ │ - opencv2/cudev/block/ │ │ │ │ │ - d3/d33/contrib_2modules_2cudev_2include_2opencv2_2cudev_2block_2reduce_8hpp.html │ │ │ │ │ - ../common.hpp │ │ │ │ │ - ../util/tuple.hpp │ │ │ │ │ - ../warp/reduce.hpp │ │ │ │ │ - cv │ │ │ │ │ - cv::cudev │ │ │ │ │ - │ │ │ │ │ - #define │ │ │ │ │ - OPENCV_CUDEV_BLOCK_REDUCE_HPP │ │ │ │ │ - d3/d33/contrib_2modules_2cudev_2include_2opencv2_2cudev_2block_2reduce_8hpp.html │ │ │ │ │ - ab84f43705d89c8633f6ae8d50223549e │ │ │ │ │ - │ │ │ │ │ - │ │ │ │ │ - │ │ │ │ │ - │ │ │ │ │ - reduce.hpp │ │ │ │ │ - opencv2/cudev/grid/ │ │ │ │ │ - d4/d25/contrib_2modules_2cudev_2include_2opencv2_2cudev_2grid_2reduce_8hpp.html │ │ │ │ │ - ../common.hpp │ │ │ │ │ - ../ptr2d/traits.hpp │ │ │ │ │ - ../ptr2d/gpumat.hpp │ │ │ │ │ - ../ptr2d/mask.hpp │ │ │ │ │ - ../ptr2d/transform.hpp │ │ │ │ │ - cv::cudev::DefaultGlobReducePolicy │ │ │ │ │ - cv │ │ │ │ │ - cv::cudev │ │ │ │ │ - │ │ │ │ │ - #define │ │ │ │ │ - OPENCV_CUDEV_GRID_REDUCE_HPP │ │ │ │ │ - d4/d25/contrib_2modules_2cudev_2include_2opencv2_2cudev_2grid_2reduce_8hpp.html │ │ │ │ │ - aeb868ad11b9b6244628b07b98b6c04d4 │ │ │ │ │ - │ │ │ │ │ - │ │ │ │ │ - │ │ │ │ │ - │ │ │ │ │ - reduce.hpp │ │ │ │ │ - opencv2/cudev/warp/ │ │ │ │ │ - d7/da3/contrib_2modules_2cudev_2include_2opencv2_2cudev_2warp_2reduce_8hpp.html │ │ │ │ │ - ../common.hpp │ │ │ │ │ - ../util/tuple.hpp │ │ │ │ │ - cv │ │ │ │ │ - cv::cudev │ │ │ │ │ - │ │ │ │ │ - #define │ │ │ │ │ - OPENCV_CUDEV_WARP_REDUCE_HPP │ │ │ │ │ - d7/da3/contrib_2modules_2cudev_2include_2opencv2_2cudev_2warp_2reduce_8hpp.html │ │ │ │ │ - ab460a86ce2356a945df3010b58a97c08 │ │ │ │ │ - │ │ │ │ │ - │ │ │ │ │ - │ │ │ │ │ - │ │ │ │ │ - reduce.hpp │ │ │ │ │ - opencv2/core/cuda/detail/ │ │ │ │ │ - da/dca/modules_2core_2include_2opencv2_2core_2cuda_2detail_2reduce_8hpp.html │ │ │ │ │ - ../warp.hpp │ │ │ │ │ - ../warp_shuffle.hpp │ │ │ │ │ - │ │ │ │ │ - │ │ │ │ │ - reduce.hpp │ │ │ │ │ - opencv2/core/cuda/ │ │ │ │ │ - d3/d78/modules_2core_2include_2opencv2_2core_2cuda_2reduce_8hpp.html │ │ │ │ │ - detail/reduce.hpp │ │ │ │ │ - detail/reduce_key_val.hpp │ │ │ │ │ - │ │ │ │ │ - #define │ │ │ │ │ - THRUST_DEBUG │ │ │ │ │ - d3/d78/modules_2core_2include_2opencv2_2core_2cuda_2reduce_8hpp.html │ │ │ │ │ - a307edaa487e6e39fcca95bd1250ec1f9 │ │ │ │ │ - │ │ │ │ │ - │ │ │ │ │ - │ │ │ │ │ - │ │ │ │ │ saturate_cast.hpp │ │ │ │ │ opencv2/cudev/util/ │ │ │ │ │ d0/d5e/contrib_2modules_2cudev_2include_2opencv2_2cudev_2util_2saturate__cast_8hpp.html │ │ │ │ │ ../common.hpp │ │ │ │ │ cv │ │ │ │ │ cv::cudev │ │ │ │ │ │ │ │ │ │ @@ -8647,14 +8647,43 @@ │ │ │ │ │ type_traits.hpp │ │ │ │ │ opencv2/gapi/util/ │ │ │ │ │ df/d0f/modules_2gapi_2include_2opencv2_2gapi_2util_2type__traits_8hpp.html │ │ │ │ │ cv │ │ │ │ │ cv::util │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ + utility.hpp │ │ │ │ │ + opencv2/core/cuda/ │ │ │ │ │ + df/dc3/cuda_2utility_8hpp.html │ │ │ │ │ + saturate_cast.hpp │ │ │ │ │ + datamov_utils.hpp │ │ │ │ │ + │ │ │ │ │ + │ │ │ │ │ + utility.hpp │ │ │ │ │ + opencv2/core/ │ │ │ │ │ + d1/d4e/utility_8hpp.html │ │ │ │ │ + opencv2/core.hpp │ │ │ │ │ + cv::AutoBuffer │ │ │ │ │ + cv::CommandLineParser │ │ │ │ │ + cv::Node │ │ │ │ │ + cv::ParallelLoopBody │ │ │ │ │ + cv::ParallelLoopBodyLambdaWrapper │ │ │ │ │ + cv::TickMeter │ │ │ │ │ + cv │ │ │ │ │ + cv::samples │ │ │ │ │ + cv::utils │ │ │ │ │ + │ │ │ │ │ + #define │ │ │ │ │ + CV_IMPL_ADD │ │ │ │ │ + d1/d4e/utility_8hpp.html │ │ │ │ │ + a164329b5a66994eb9c6891557c5a7e6e │ │ │ │ │ + (impl) │ │ │ │ │ + │ │ │ │ │ + │ │ │ │ │ + │ │ │ │ │ vec_distance.hpp │ │ │ │ │ opencv2/cudev/block/ │ │ │ │ │ d5/dbb/contrib_2modules_2cudev_2include_2opencv2_2cudev_2block_2vec__distance_8hpp.html │ │ │ │ │ ../common.hpp │ │ │ │ │ ../functional/functional.hpp │ │ │ │ │ ../warp/reduce.hpp │ │ │ │ │ reduce.hpp │ │ │ │ │ @@ -192365,43 +192394,14 @@ │ │ │ │ │ cv::gapi::own::Size │ │ │ │ │ cv::gapi::own::VoidType │ │ │ │ │ cv │ │ │ │ │ cv::gapi │ │ │ │ │ cv::gapi::own │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ - utility.hpp │ │ │ │ │ - opencv2/core/cuda/ │ │ │ │ │ - df/dc3/cuda_2utility_8hpp.html │ │ │ │ │ - saturate_cast.hpp │ │ │ │ │ - datamov_utils.hpp │ │ │ │ │ - │ │ │ │ │ - │ │ │ │ │ - utility.hpp │ │ │ │ │ - opencv2/core/ │ │ │ │ │ - d1/d4e/utility_8hpp.html │ │ │ │ │ - opencv2/core.hpp │ │ │ │ │ - cv::AutoBuffer │ │ │ │ │ - cv::CommandLineParser │ │ │ │ │ - cv::Node │ │ │ │ │ - cv::ParallelLoopBody │ │ │ │ │ - cv::ParallelLoopBodyLambdaWrapper │ │ │ │ │ - cv::TickMeter │ │ │ │ │ - cv │ │ │ │ │ - cv::samples │ │ │ │ │ - cv::utils │ │ │ │ │ - │ │ │ │ │ - #define │ │ │ │ │ - CV_IMPL_ADD │ │ │ │ │ - d1/d4e/utility_8hpp.html │ │ │ │ │ - a164329b5a66994eb9c6891557c5a7e6e │ │ │ │ │ - (impl) │ │ │ │ │ - │ │ │ │ │ - │ │ │ │ │ - │ │ │ │ │ allocator_stats.hpp │ │ │ │ │ opencv2/core/utils/ │ │ │ │ │ de/da8/allocator__stats_8hpp.html │ │ │ │ │ ../cvdef.h │ │ │ │ │ cv::utils::AllocatorStatisticsInterface │ │ │ │ │ cv │ │ │ │ │ cv::utils │ │ │ │ │ @@ -194654,14 +194654,39 @@ │ │ │ │ │ │ │ │ │ │ features2d.hpp │ │ │ │ │ opencv2/features2d/ │ │ │ │ │ d5/def/features2d_2features2d_8hpp.html │ │ │ │ │ opencv2/features2d.hpp │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ + flann.hpp │ │ │ │ │ + opencv2/ │ │ │ │ │ + dc/dc1/flann_8hpp.html │ │ │ │ │ + opencv2/core.hpp │ │ │ │ │ + opencv2/flann/miniflann.hpp │ │ │ │ │ + opencv2/flann/flann_base.hpp │ │ │ │ │ + cv::flann::CvType │ │ │ │ │ + cv::flann::CvType< char > │ │ │ │ │ + cv::flann::CvType< double > │ │ │ │ │ + cv::flann::CvType< float > │ │ │ │ │ + cv::flann::CvType< short > │ │ │ │ │ + cv::flann::CvType< unsigned char > │ │ │ │ │ + cv::flann::CvType< unsigned short > │ │ │ │ │ + cv::flann::GenericIndex │ │ │ │ │ + cv │ │ │ │ │ + cv::flann │ │ │ │ │ + cvflann │ │ │ │ │ + │ │ │ │ │ + │ │ │ │ │ + flann.hpp │ │ │ │ │ + opencv2/flann/ │ │ │ │ │ + d4/d45/flann_2flann_8hpp.html │ │ │ │ │ + opencv2/flann.hpp │ │ │ │ │ + │ │ │ │ │ + │ │ │ │ │ all_indices.h │ │ │ │ │ opencv2/flann/ │ │ │ │ │ d0/deb/all__indices_8h.html │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ allocator.h │ │ │ │ │ opencv2/flann/ │ │ │ │ │ @@ -194704,39 +194729,14 @@ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ dynamic_bitset.h │ │ │ │ │ opencv2/flann/ │ │ │ │ │ da/d5c/dynamic__bitset_8h.html │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ - flann.hpp │ │ │ │ │ - opencv2/ │ │ │ │ │ - dc/dc1/flann_8hpp.html │ │ │ │ │ - opencv2/core.hpp │ │ │ │ │ - opencv2/flann/miniflann.hpp │ │ │ │ │ - opencv2/flann/flann_base.hpp │ │ │ │ │ - cv::flann::CvType │ │ │ │ │ - cv::flann::CvType< char > │ │ │ │ │ - cv::flann::CvType< double > │ │ │ │ │ - cv::flann::CvType< float > │ │ │ │ │ - cv::flann::CvType< short > │ │ │ │ │ - cv::flann::CvType< unsigned char > │ │ │ │ │ - cv::flann::CvType< unsigned short > │ │ │ │ │ - cv::flann::GenericIndex │ │ │ │ │ - cv │ │ │ │ │ - cv::flann │ │ │ │ │ - cvflann │ │ │ │ │ - │ │ │ │ │ - │ │ │ │ │ - flann.hpp │ │ │ │ │ - opencv2/flann/ │ │ │ │ │ - d4/d45/flann_2flann_8hpp.html │ │ │ │ │ - opencv2/flann.hpp │ │ │ │ │ - │ │ │ │ │ - │ │ │ │ │ flann_base.hpp │ │ │ │ │ opencv2/flann/ │ │ │ │ │ d3/dd7/flann__base_8hpp.html │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ general.h │ │ │ │ │ opencv2/flann/ │ │ │ │ │ @@ -195624,14 +195624,75 @@ │ │ │ │ │ cv::detail::ProtoToParam< cv::GMat > │ │ │ │ │ cv::detail::ProtoToParam< cv::GOpaque< U > > │ │ │ │ │ cv::detail::ProtoToParam< cv::GScalar > │ │ │ │ │ cv │ │ │ │ │ cv::detail │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ + infer.hpp │ │ │ │ │ + opencv2/gapi/ │ │ │ │ │ + d6/d32/infer_8hpp.html │ │ │ │ │ + opencv2/gapi/util/util.hpp │ │ │ │ │ + opencv2/gapi/util/any.hpp │ │ │ │ │ + opencv2/gapi/gkernel.hpp │ │ │ │ │ + opencv2/gapi/garg.hpp │ │ │ │ │ + opencv2/gapi/gcommon.hpp │ │ │ │ │ + opencv2/gapi/gmetaarg.hpp │ │ │ │ │ + cv::detail::accepted_infer_types │ │ │ │ │ + cv::detail::CompileArgTag< cv::gapi::GNetPackage > │ │ │ │ │ + cv::gapi::Generic │ │ │ │ │ + cv::GInfer │ │ │ │ │ + cv::GInferBase │ │ │ │ │ + cv::detail::GInferInputsTyped │ │ │ │ │ + cv::GInferList │ │ │ │ │ + cv::GInferList2 │ │ │ │ │ + cv::GInferList2Base │ │ │ │ │ + cv::GInferListBase │ │ │ │ │ + cv::detail::GInferOutputsTyped │ │ │ │ │ + cv::GInferROI │ │ │ │ │ + cv::GInferROIBase │ │ │ │ │ + cv::gapi::GNetPackage │ │ │ │ │ + cv::GNetworkType< K, std::function< R(Args...)> > │ │ │ │ │ + cv::GNetworkType< K, std::function< std::tuple< R... >(Args...)> > │ │ │ │ │ + cv::InferAPI │ │ │ │ │ + cv::InferAPIList │ │ │ │ │ + cv::InferAPIList2 │ │ │ │ │ + cv::InferAPIRoi │ │ │ │ │ + cv::detail::InferROITraits< GInferListBase > │ │ │ │ │ + cv::detail::InferROITraits< GInferROIBase > │ │ │ │ │ + cv::detail::InOutInfo │ │ │ │ │ + cv::detail::valid_infer2_types< std::tuple< Ns... >, std::tuple<> > │ │ │ │ │ + cv::detail::valid_infer2_types< std::tuple<>, std::tuple< Ts... > > │ │ │ │ │ + cv │ │ │ │ │ + cv::detail │ │ │ │ │ + cv::gapi │ │ │ │ │ + │ │ │ │ │ + #define │ │ │ │ │ + G_API_NET │ │ │ │ │ + d6/d32/infer_8hpp.html │ │ │ │ │ + adfb450a1d7992bc72c9afaa758516f27 │ │ │ │ │ + (Class, API, Tag) │ │ │ │ │ + │ │ │ │ │ + │ │ │ │ │ + │ │ │ │ │ + infer.hpp │ │ │ │ │ + opencv2/gapi/oak/ │ │ │ │ │ + d8/db1/oak_2infer_8hpp.html │ │ │ │ │ + opencv2/gapi/opencv_includes.hpp │ │ │ │ │ + opencv2/gapi/util/any.hpp │ │ │ │ │ + opencv2/core/cvdef.h │ │ │ │ │ + opencv2/gapi/gkernel.hpp │ │ │ │ │ + cv::gapi::oak::detail::ParamDesc │ │ │ │ │ + cv::gapi::oak::Params │ │ │ │ │ + cv │ │ │ │ │ + cv::gapi │ │ │ │ │ + cv::gapi::oak │ │ │ │ │ + cv::gapi::oak::detail │ │ │ │ │ + │ │ │ │ │ + │ │ │ │ │ bindings_ie.hpp │ │ │ │ │ opencv2/gapi/infer/ │ │ │ │ │ d5/d51/bindings__ie_8hpp.html │ │ │ │ │ opencv2/gapi/util/any.hpp │ │ │ │ │ opencv2/gapi/own/exports.hpp │ │ │ │ │ opencv2/gapi/gkernel.hpp │ │ │ │ │ opencv2/gapi/infer/ie.hpp │ │ │ │ │ @@ -195754,75 +195815,14 @@ │ │ │ │ │ cv::MediaFrame │ │ │ │ │ cv::MediaFrame::View │ │ │ │ │ cv │ │ │ │ │ cv::gapi │ │ │ │ │ cv::gapi::s11n │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ - infer.hpp │ │ │ │ │ - opencv2/gapi/ │ │ │ │ │ - d6/d32/infer_8hpp.html │ │ │ │ │ - opencv2/gapi/util/util.hpp │ │ │ │ │ - opencv2/gapi/util/any.hpp │ │ │ │ │ - opencv2/gapi/gkernel.hpp │ │ │ │ │ - opencv2/gapi/garg.hpp │ │ │ │ │ - opencv2/gapi/gcommon.hpp │ │ │ │ │ - opencv2/gapi/gmetaarg.hpp │ │ │ │ │ - cv::detail::accepted_infer_types │ │ │ │ │ - cv::detail::CompileArgTag< cv::gapi::GNetPackage > │ │ │ │ │ - cv::gapi::Generic │ │ │ │ │ - cv::GInfer │ │ │ │ │ - cv::GInferBase │ │ │ │ │ - cv::detail::GInferInputsTyped │ │ │ │ │ - cv::GInferList │ │ │ │ │ - cv::GInferList2 │ │ │ │ │ - cv::GInferList2Base │ │ │ │ │ - cv::GInferListBase │ │ │ │ │ - cv::detail::GInferOutputsTyped │ │ │ │ │ - cv::GInferROI │ │ │ │ │ - cv::GInferROIBase │ │ │ │ │ - cv::gapi::GNetPackage │ │ │ │ │ - cv::GNetworkType< K, std::function< R(Args...)> > │ │ │ │ │ - cv::GNetworkType< K, std::function< std::tuple< R... >(Args...)> > │ │ │ │ │ - cv::InferAPI │ │ │ │ │ - cv::InferAPIList │ │ │ │ │ - cv::InferAPIList2 │ │ │ │ │ - cv::InferAPIRoi │ │ │ │ │ - cv::detail::InferROITraits< GInferListBase > │ │ │ │ │ - cv::detail::InferROITraits< GInferROIBase > │ │ │ │ │ - cv::detail::InOutInfo │ │ │ │ │ - cv::detail::valid_infer2_types< std::tuple< Ns... >, std::tuple<> > │ │ │ │ │ - cv::detail::valid_infer2_types< std::tuple<>, std::tuple< Ts... > > │ │ │ │ │ - cv │ │ │ │ │ - cv::detail │ │ │ │ │ - cv::gapi │ │ │ │ │ - │ │ │ │ │ - #define │ │ │ │ │ - G_API_NET │ │ │ │ │ - d6/d32/infer_8hpp.html │ │ │ │ │ - adfb450a1d7992bc72c9afaa758516f27 │ │ │ │ │ - (Class, API, Tag) │ │ │ │ │ - │ │ │ │ │ - │ │ │ │ │ - │ │ │ │ │ - infer.hpp │ │ │ │ │ - opencv2/gapi/oak/ │ │ │ │ │ - d8/db1/oak_2infer_8hpp.html │ │ │ │ │ - opencv2/gapi/opencv_includes.hpp │ │ │ │ │ - opencv2/gapi/util/any.hpp │ │ │ │ │ - opencv2/core/cvdef.h │ │ │ │ │ - opencv2/gapi/gkernel.hpp │ │ │ │ │ - cv::gapi::oak::detail::ParamDesc │ │ │ │ │ - cv::gapi::oak::Params │ │ │ │ │ - cv │ │ │ │ │ - cv::gapi │ │ │ │ │ - cv::gapi::oak │ │ │ │ │ - cv::gapi::oak::detail │ │ │ │ │ - │ │ │ │ │ - │ │ │ │ │ oak.hpp │ │ │ │ │ opencv2/gapi/oak/ │ │ │ │ │ de/d62/oak_8hpp.html │ │ │ │ │ opencv2/gapi/garg.hpp │ │ │ │ │ opencv2/gapi/gkernel.hpp │ │ │ │ │ opencv2/gapi/gstreaming.hpp │ │ │ │ │ cv::gapi::oak::ColorCamera │ │ │ │ │ @@ -196332,28 +196332,14 @@ │ │ │ │ │ cv::gapi::wip::onevpl::IDeviceSelector::Score │ │ │ │ │ cv │ │ │ │ │ cv::gapi │ │ │ │ │ cv::gapi::wip │ │ │ │ │ cv::gapi::wip::onevpl │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ - queue_source.hpp │ │ │ │ │ - opencv2/gapi/streaming/ │ │ │ │ │ - d1/daf/queue__source_8hpp.html │ │ │ │ │ - opencv2/gapi/garg.hpp │ │ │ │ │ - opencv2/gapi/gmetaarg.hpp │ │ │ │ │ - opencv2/gapi/streaming/source.hpp │ │ │ │ │ - cv::gapi::wip::QueueInput │ │ │ │ │ - cv::gapi::wip::QueueSource │ │ │ │ │ - cv::gapi::wip::QueueSourceBase │ │ │ │ │ - cv │ │ │ │ │ - cv::gapi │ │ │ │ │ - cv::gapi::wip │ │ │ │ │ - │ │ │ │ │ - │ │ │ │ │ source.hpp │ │ │ │ │ opencv2/gapi/streaming/onevpl/ │ │ │ │ │ de/d43/onevpl_2source_8hpp.html │ │ │ │ │ opencv2/gapi/garg.hpp │ │ │ │ │ opencv2/gapi/streaming/meta.hpp │ │ │ │ │ opencv2/gapi/streaming/source.hpp │ │ │ │ │ opencv2/gapi/streaming/onevpl/cfg_params.hpp │ │ │ │ │ @@ -196372,14 +196358,28 @@ │ │ │ │ │ opencv2/gapi/gmetaarg.hpp │ │ │ │ │ cv::gapi::wip::IStreamSource │ │ │ │ │ cv │ │ │ │ │ cv::gapi │ │ │ │ │ cv::gapi::wip │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ + queue_source.hpp │ │ │ │ │ + opencv2/gapi/streaming/ │ │ │ │ │ + d1/daf/queue__source_8hpp.html │ │ │ │ │ + opencv2/gapi/garg.hpp │ │ │ │ │ + opencv2/gapi/gmetaarg.hpp │ │ │ │ │ + opencv2/gapi/streaming/source.hpp │ │ │ │ │ + cv::gapi::wip::QueueInput │ │ │ │ │ + cv::gapi::wip::QueueSource │ │ │ │ │ + cv::gapi::wip::QueueSourceBase │ │ │ │ │ + cv │ │ │ │ │ + cv::gapi │ │ │ │ │ + cv::gapi::wip │ │ │ │ │ + │ │ │ │ │ + │ │ │ │ │ sync.hpp │ │ │ │ │ opencv2/gapi/streaming/ │ │ │ │ │ d7/d86/sync_8hpp.html │ │ │ │ │ cv::detail::CompileArgTag< gapi::streaming::sync_policy > │ │ │ │ │ cv │ │ │ │ │ cv::detail │ │ │ │ │ cv::gapi │ │ │ │ │ @@ -196736,14 +196736,52 @@ │ │ │ │ │ │ │ │ │ │ ml.hpp │ │ │ │ │ opencv2/ml/ │ │ │ │ │ df/d5c/ml_2ml_8hpp.html │ │ │ │ │ opencv2/ml.hpp │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ + objdetect.hpp │ │ │ │ │ + opencv2/ │ │ │ │ │ + d8/da3/objdetect_8hpp.html │ │ │ │ │ + opencv2/core.hpp │ │ │ │ │ + opencv2/objdetect/aruco_detector.hpp │ │ │ │ │ + opencv2/objdetect/graphical_code_detector.hpp │ │ │ │ │ + opencv2/objdetect/detection_based_tracker.hpp │ │ │ │ │ + opencv2/objdetect/face.hpp │ │ │ │ │ + opencv2/objdetect/charuco_detector.hpp │ │ │ │ │ + opencv2/objdetect/barcode.hpp │ │ │ │ │ + cv::BaseCascadeClassifier │ │ │ │ │ + cv::CascadeClassifier │ │ │ │ │ + cv::DefaultDeleter< CvHaarClassifierCascade > │ │ │ │ │ + cv::DetectionROI │ │ │ │ │ + cv::HOGDescriptor │ │ │ │ │ + cv::BaseCascadeClassifier::MaskGenerator │ │ │ │ │ + cv::QRCodeEncoder::Params │ │ │ │ │ + cv::QRCodeDetectorAruco::Params │ │ │ │ │ + cv::QRCodeDetector │ │ │ │ │ + cv::QRCodeDetectorAruco │ │ │ │ │ + cv::QRCodeEncoder │ │ │ │ │ + cv::SimilarRects │ │ │ │ │ + cv │ │ │ │ │ + │ │ │ │ │ + struct CvHaarClassifierCascade │ │ │ │ │ + CvHaarClassifierCascade │ │ │ │ │ + d8/da3/objdetect_8hpp.html │ │ │ │ │ + a71f158abd69d9859e94b3318f2ae396d │ │ │ │ │ + │ │ │ │ │ + │ │ │ │ │ + │ │ │ │ │ + │ │ │ │ │ + objdetect.hpp │ │ │ │ │ + opencv2/objdetect/ │ │ │ │ │ + d7/df0/objdetect_2objdetect_8hpp.html │ │ │ │ │ + opencv2/objdetect.hpp │ │ │ │ │ + │ │ │ │ │ + │ │ │ │ │ aruco_board.hpp │ │ │ │ │ opencv2/objdetect/ │ │ │ │ │ d0/d78/aruco__board_8hpp.html │ │ │ │ │ opencv2/core.hpp │ │ │ │ │ cv::aruco::Board │ │ │ │ │ cv::aruco::CharucoBoard │ │ │ │ │ cv::aruco::GridBoard │ │ │ │ │ @@ -196835,52 +196873,14 @@ │ │ │ │ │ opencv2/objdetect/ │ │ │ │ │ d9/dbb/graphical__code__detector_8hpp.html │ │ │ │ │ opencv2/core.hpp │ │ │ │ │ cv::GraphicalCodeDetector │ │ │ │ │ cv │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ - objdetect.hpp │ │ │ │ │ - opencv2/ │ │ │ │ │ - d8/da3/objdetect_8hpp.html │ │ │ │ │ - opencv2/core.hpp │ │ │ │ │ - opencv2/objdetect/aruco_detector.hpp │ │ │ │ │ - opencv2/objdetect/graphical_code_detector.hpp │ │ │ │ │ - opencv2/objdetect/detection_based_tracker.hpp │ │ │ │ │ - opencv2/objdetect/face.hpp │ │ │ │ │ - opencv2/objdetect/charuco_detector.hpp │ │ │ │ │ - opencv2/objdetect/barcode.hpp │ │ │ │ │ - cv::BaseCascadeClassifier │ │ │ │ │ - cv::CascadeClassifier │ │ │ │ │ - cv::DefaultDeleter< CvHaarClassifierCascade > │ │ │ │ │ - cv::DetectionROI │ │ │ │ │ - cv::HOGDescriptor │ │ │ │ │ - cv::BaseCascadeClassifier::MaskGenerator │ │ │ │ │ - cv::QRCodeEncoder::Params │ │ │ │ │ - cv::QRCodeDetectorAruco::Params │ │ │ │ │ - cv::QRCodeDetector │ │ │ │ │ - cv::QRCodeDetectorAruco │ │ │ │ │ - cv::QRCodeEncoder │ │ │ │ │ - cv::SimilarRects │ │ │ │ │ - cv │ │ │ │ │ - │ │ │ │ │ - struct CvHaarClassifierCascade │ │ │ │ │ - CvHaarClassifierCascade │ │ │ │ │ - d8/da3/objdetect_8hpp.html │ │ │ │ │ - a71f158abd69d9859e94b3318f2ae396d │ │ │ │ │ - │ │ │ │ │ - │ │ │ │ │ - │ │ │ │ │ - │ │ │ │ │ - objdetect.hpp │ │ │ │ │ - opencv2/objdetect/ │ │ │ │ │ - d7/df0/objdetect_2objdetect_8hpp.html │ │ │ │ │ - opencv2/objdetect.hpp │ │ │ │ │ - │ │ │ │ │ - │ │ │ │ │ photo.hpp │ │ │ │ │ opencv2/ │ │ │ │ │ dc/d81/photo_8hpp.html │ │ │ │ │ opencv2/core.hpp │ │ │ │ │ opencv2/imgproc.hpp │ │ │ │ │ cv::AlignExposures │ │ │ │ │ cv::AlignMTB │ │ │ │ │ @@ -197053,21 +197053,14 @@ │ │ │ │ │ util_inl.hpp │ │ │ │ │ opencv2/stitching/detail/ │ │ │ │ │ d7/dab/util__inl_8hpp.html │ │ │ │ │ opencv2/core.hpp │ │ │ │ │ util.hpp │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ - warpers_inl.hpp │ │ │ │ │ - opencv2/stitching/detail/ │ │ │ │ │ - d4/d82/warpers__inl_8hpp.html │ │ │ │ │ - opencv2/core.hpp │ │ │ │ │ - warpers.hpp │ │ │ │ │ - │ │ │ │ │ - │ │ │ │ │ warpers.hpp │ │ │ │ │ opencv2/stitching/detail/ │ │ │ │ │ dc/de7/detail_2warpers_8hpp.html │ │ │ │ │ opencv2/core.hpp │ │ │ │ │ opencv2/core/cuda.hpp │ │ │ │ │ opencv2/imgproc.hpp │ │ │ │ │ warpers_inl.hpp │ │ │ │ │ @@ -197127,14 +197120,21 @@ │ │ │ │ │ cv::SphericalWarper │ │ │ │ │ cv::StereographicWarper │ │ │ │ │ cv::TransverseMercatorWarper │ │ │ │ │ cv::WarperCreator │ │ │ │ │ cv │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ + warpers_inl.hpp │ │ │ │ │ + opencv2/stitching/detail/ │ │ │ │ │ + d4/d82/warpers__inl_8hpp.html │ │ │ │ │ + opencv2/core.hpp │ │ │ │ │ + warpers.hpp │ │ │ │ │ + │ │ │ │ │ + │ │ │ │ │ background_segm.hpp │ │ │ │ │ opencv2/video/ │ │ │ │ │ db/d73/background__segm_8hpp.html │ │ │ │ │ opencv2/core.hpp │ │ │ │ │ cv::BackgroundSubtractor │ │ │ │ │ cv::BackgroundSubtractorKNN │ │ │ │ │ cv::BackgroundSubtractorMOG2 │ │ │ │ │ @@ -197240,62 +197240,14 @@ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ videoio_overview.markdown │ │ │ │ │ videoio/doc/ │ │ │ │ │ dd/de3/videoio__overview_8markdown.html │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ - cap_ios.h │ │ │ │ │ - opencv2/videoio/ │ │ │ │ │ - d9/d4d/cap__ios_8h.html │ │ │ │ │ - opencv2/core.hpp │ │ │ │ │ - CvAbstractCamera │ │ │ │ │ - CvPhotoCamera │ │ │ │ │ - CvPhotoCameraDelegate-p │ │ │ │ │ - CvVideoCamera │ │ │ │ │ - CvVideoCameraDelegate-p │ │ │ │ │ - │ │ │ │ │ - │ │ │ │ │ - cap_winrt.hpp │ │ │ │ │ - opencv2/videoio/ │ │ │ │ │ - d7/d64/cap__winrt_8hpp.html │ │ │ │ │ - opencv2/core/cvdef.h │ │ │ │ │ - cv │ │ │ │ │ - │ │ │ │ │ - │ │ │ │ │ - container_avi.private.hpp │ │ │ │ │ - opencv2/videoio/ │ │ │ │ │ - d2/db0/container__avi_8private_8hpp.html │ │ │ │ │ - opencv2/core/cvdef.h │ │ │ │ │ - cv::AVIReadContainer │ │ │ │ │ - cv::AVIWriteContainer │ │ │ │ │ - cv │ │ │ │ │ - │ │ │ │ │ - │ │ │ │ │ - hwaccel.doc.hpp │ │ │ │ │ - opencv2/videoio/doc/ │ │ │ │ │ - d5/d5b/hwaccel_8doc_8hpp.html │ │ │ │ │ - cv │ │ │ │ │ - │ │ │ │ │ - │ │ │ │ │ - registry.hpp │ │ │ │ │ - opencv2/videoio/ │ │ │ │ │ - d1/da2/registry_8hpp.html │ │ │ │ │ - opencv2/videoio.hpp │ │ │ │ │ - cv │ │ │ │ │ - cv::videoio_registry │ │ │ │ │ - │ │ │ │ │ - │ │ │ │ │ - utils.private.hpp │ │ │ │ │ - opencv2/videoio/ │ │ │ │ │ - d7/de2/utils_8private_8hpp.html │ │ │ │ │ - opencv2/core/cvdef.h │ │ │ │ │ - cv │ │ │ │ │ - │ │ │ │ │ - │ │ │ │ │ videoio.hpp │ │ │ │ │ opencv2/ │ │ │ │ │ dc/d3d/videoio_8hpp.html │ │ │ │ │ opencv2/core.hpp │ │ │ │ │ cv::VideoCapture │ │ │ │ │ cv::VideoWriter │ │ │ │ │ cv │ │ │ │ │ @@ -200649,14 +200601,62 @@ │ │ │ │ │ │ │ │ │ │ videoio.hpp │ │ │ │ │ opencv2/videoio/ │ │ │ │ │ d8/d8e/videoio_2videoio_8hpp.html │ │ │ │ │ opencv2/videoio.hpp │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ + cap_ios.h │ │ │ │ │ + opencv2/videoio/ │ │ │ │ │ + d9/d4d/cap__ios_8h.html │ │ │ │ │ + opencv2/core.hpp │ │ │ │ │ + CvAbstractCamera │ │ │ │ │ + CvPhotoCamera │ │ │ │ │ + CvPhotoCameraDelegate-p │ │ │ │ │ + CvVideoCamera │ │ │ │ │ + CvVideoCameraDelegate-p │ │ │ │ │ + │ │ │ │ │ + │ │ │ │ │ + cap_winrt.hpp │ │ │ │ │ + opencv2/videoio/ │ │ │ │ │ + d7/d64/cap__winrt_8hpp.html │ │ │ │ │ + opencv2/core/cvdef.h │ │ │ │ │ + cv │ │ │ │ │ + │ │ │ │ │ + │ │ │ │ │ + container_avi.private.hpp │ │ │ │ │ + opencv2/videoio/ │ │ │ │ │ + d2/db0/container__avi_8private_8hpp.html │ │ │ │ │ + opencv2/core/cvdef.h │ │ │ │ │ + cv::AVIReadContainer │ │ │ │ │ + cv::AVIWriteContainer │ │ │ │ │ + cv │ │ │ │ │ + │ │ │ │ │ + │ │ │ │ │ + hwaccel.doc.hpp │ │ │ │ │ + opencv2/videoio/doc/ │ │ │ │ │ + d5/d5b/hwaccel_8doc_8hpp.html │ │ │ │ │ + cv │ │ │ │ │ + │ │ │ │ │ + │ │ │ │ │ + registry.hpp │ │ │ │ │ + opencv2/videoio/ │ │ │ │ │ + d1/da2/registry_8hpp.html │ │ │ │ │ + opencv2/videoio.hpp │ │ │ │ │ + cv │ │ │ │ │ + cv::videoio_registry │ │ │ │ │ + │ │ │ │ │ + │ │ │ │ │ + utils.private.hpp │ │ │ │ │ + opencv2/videoio/ │ │ │ │ │ + d7/de2/utils_8private_8hpp.html │ │ │ │ │ + opencv2/core/cvdef.h │ │ │ │ │ + cv │ │ │ │ │ + │ │ │ │ │ + │ │ │ │ │ contrib_tutorials.markdown │ │ │ │ │ doc/ │ │ │ │ │ dd/df3/contrib__tutorials_8markdown.html │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ root.markdown │ │ │ │ │ doc/ │ │ ├── ./usr/share/doc/opencv-doc/opencv4/html/retina_TreeHdr_small.jpg │ │ │ ├── Image content │ │ │ │ @@ -1,23 +1,17 @@ │ │ │ │ -X@SS%%tttt;;:;::....... .. . .....::::::;;;;;tt%%SX@88888X%t │ │ │ │ -8@XXS%%%t;;:::... . . . . . ...::::;;:;;t;ttt%SSSSSX888XS; │ │ │ │ -88@XXXXS%%tt;;::................:::::t;tt;t;tttttt%S8%8888S% │ │ │ │ -88@XXSS%%S%tt;;;;:::::;;;;;;;;;;;;;;t;;;;t;;;;;tt%St%8%888SX │ │ │ │ -8@@XS%ttt;tt;;:;;;;;;;;;;ttt;t;t;tt;tttttt;tt;ttXS8%8888S888 │ │ │ │ -88XXSSt%tt;;;;;;:;;;;:;;t;t;tttttt%%%%SSSSSSSSXX8S88S888888@ │ │ │ │ -X@8888@XSS%tt;;;;;;;;;;t;:;;tt%%SSSSS@SX888S t88888; SXXSXSX │ │ │ │ - ;t%X@@888@SS%%ttt;;;:;::;:;;tt%S%SX@;8@%S8X@8%t8X888X%@8t. │ │ │ │ -t: :S:ttSX@8888@XXSSS%%%%%%%%SSS@@@@S8::;;8@S;X .8X:;;8tX.tt │ │ │ │ - 88X;@888.%t%XX@8@888888888888X8SXS8S :8; %8.X.8X8S %8 ; │ │ │ │ -888@8@@@@@%@8XX X%SSX8@@XXS@88@@8@8. 88@:%8 SX ;;.8SS8@8888 │ │ │ │ -tSXt%S%8888888@8888@8@8X8@888@8@@88X@88Xtt;SXS8;8tt@X@SSXSX8 │ │ │ │ -tXX8@@%%X@8XS%SS88@888@8X8@8XX8%888@8XX@88X8@S8SXXXS8%S%%SS% │ │ │ │ -%8X@X8888888@@888X@8X@@8X888X8@@X@@@@8X888S88X88888St@88888S │ │ │ │ -@8888888@88X88888888X888@88888X8X88@88X8X8@@8@@88888888@88@8 │ │ │ │ -%8X8X8S88@@@8X@88X88@8888@S8@@XXS88@8X888@S8@88@8@@88888@88X │ │ │ │ -t@XXXS@88888888@8@@S8%8@888X8X@88S%8@@88@888@8888S@X88888XX8 │ │ │ │ -tSX@X%X@8XSXX8@8@8@8@@88S8S@88888@S888888@X88@8S88X888@XSS@@ │ │ │ │ -%8SXS88X@@@S888@888@8S88888X@8@888X@8@8S@X88XXS888@8S88S@SX% │ │ │ │ -X%8X@S@@%X888@8SX@XXS@@88888888888@@8XX8@@S8@88@888888X8%@%8 │ │ │ │ -tX%S8X@S8X@88XSS%%SSS@S@@@8888S88X@@8S8888@88X8@88X88888XXS% │ │ │ │ -;%S@%8X8X8@8@8XSSXSSSS8X88@88X@8%%XSS@SX@X88S@88@@8@X@S@SX8t │ │ │ │ -:;SS@S88X@@@SSS%%Xt%SX88888@8S88XXtSSSSX@@88S88S@8S8%%@SXtSX │ │ │ │ + .X88@8888:. .8X. ...t;8@88@8@:.XSX t@S@88 tS8@8%S.8%SSX │ │ │ │ +..;t%X88:8;t.. :t:.. tt::t888X88S.:%X8X88 :8@:S8XX8.%;88XXX@ │ │ │ │ + .:;;S8X888SS:..:. .%tttX8@@88S;8tXX8X88XX8@8@888%8 8%8SX@@ │ │ │ │ + .::::.%Xt8888:.. .;@8XX888XS8888X; @%@88S%88@@@ @ @8SSX88 │ │ │ │ +:...:8S8888%888 .:SX%8tt;%X X8S.t8X8S88t88S8888.88:.%8 S8 │ │ │ │ +.SSX88%8888@88@ ..;%8tt;X;88 8X :S.@88X888%SS88t ;%8t. 88 │ │ │ │ + ;;.t8X%S88@8X8. ...:@SSXt@S8@@%88 %%88@88.S S8X8t 8%8:8@88 │ │ │ │ + ...:;t;t%;:;::. ..8%%;888t@@88@8@@@8:8Xtt%@8@8S;8888S :8 │ │ │ │ + ..:;;;%%@t;:.. .. ..t8@:::::St88888@@X8t88888@888S88XX@888 │ │ │ │ + ..:;;888%;.... . ..:SX%....@88888SX88%SX%XXS%SS@888%888X@ │ │ │ │ +.t;;;88t;:.. . . ..::S8@8S@8.888@88;XtStSt%t;t888X888S8@ │ │ │ │ + ;S@8St:.... . . .. ....;8888%8888@8%%%tt;ttttt;888SX@8@88X │ │ │ │ + ::tS:.... .. . . ..:8@@88SX888@@XSS@S888XX%8SX@8;8@XS8 │ │ │ │ + ...:.. .. .. . ... . . ;X@X;t@8X@8%@8888S8S8XXX8X888%S888 │ │ │ │ + .... . .. . ...::;.%X%S88X8X@8X8@8S@@@@8S8XS@888S │ │ │ │ + . ..... . .... .. ....X%%Xt%8888@88888@@88@88888SXX@ │ │ │ │ + .... . .. .. ..%@tS88X8@88X888@%8@@8@88SSX@SS │ │ │ ├── Image metadata │ │ │ │┄ error from `identify -format 'Image format: %m\nHeight: %[height]\nWidth: %[width]\nOrientation: %[orientation]\nCompression type: %[compression]\nCompression quality: %[quality]\nColorspace: %[colorspace]\nChannels: %[channels]\nDepth: %[depth]\nInterlace mode: %[interlace]\nRendering intent: %[rendering-intent]\nX resolution: %[resolution.x]\nY resolution: %[resolution.y]\nResolution units: %[units]\nTransparency channel enabled: %A\nGamma: %[gamma]\nNumber of unique colors: %[colors]\nComment: %c\nEXIF data: %[EXIF:*]' {}`: │ │ │ │┄ identify: unknown image property "%[rendering-intent]" @ warning/property.c/InterpretImageProperties/4238. │ │ │ │ @@ -1,19 +1,19 @@ │ │ │ │ Image format: JPEG │ │ │ │ -Height: 479 │ │ │ │ -Width: 720 │ │ │ │ +Height: 312 │ │ │ │ +Width: 640 │ │ │ │ Orientation: Undefined │ │ │ │ Compression type: JPEG │ │ │ │ -Compression quality: 95 │ │ │ │ +Compression quality: 85 │ │ │ │ Colorspace: sRGB │ │ │ │ Channels: srgb 3.0 │ │ │ │ Depth: 8 │ │ │ │ Interlace mode: None │ │ │ │ Rendering intent: │ │ │ │ X resolution: 72 │ │ │ │ Y resolution: 72 │ │ │ │ Resolution units: PixelsPerInch │ │ │ │ Transparency channel enabled: Undefined │ │ │ │ Gamma: 0.454545 │ │ │ │ -Number of unique colors: 40600 │ │ │ │ +Number of unique colors: 66642 │ │ │ │ Comment: │ │ │ │ EXIF data: │ │ ├── ./usr/share/doc/opencv-doc/opencv4/html/search/all_1d.js │ │ │ ├── js-beautify {} │ │ │ │ @@ -438,18 +438,18 @@ │ │ │ │ ['../d6/dd1/tutorial_univ_intrin.html#autotoc_md342', 1, 'Reduce and Mask'] │ │ │ │ ]], │ │ │ │ ['reduce_20noise_171', ['reduce noise', ['../d2/d2c/tutorial_sobel_derivatives.html#autotoc_md706', 1, 'Reduce noise'], │ │ │ │ ['../d5/db5/tutorial_laplace_operator.html#autotoc_md686', 1, 'Reduce noise'] │ │ │ │ ]], │ │ │ │ ['reduce_20noise_20and_20avoid_20false_20circle_20detection_3a_172', ['Apply a Median blur to reduce noise and avoid false circle detection:', ['../d4/d70/tutorial_hough_circle.html#autotoc_md659', 1, '']]], │ │ │ │ ['reduce_2ehpp_173', ['reduce.hpp', ['../d3/d78/modules_2core_2include_2opencv2_2core_2cuda_2reduce_8hpp.html', 1, '(Global Namespace)'], │ │ │ │ - ['../d3/d33/contrib_2modules_2cudev_2include_2opencv2_2cudev_2block_2reduce_8hpp.html', 1, '(Global Namespace)'], │ │ │ │ - ['../d4/d25/contrib_2modules_2cudev_2include_2opencv2_2cudev_2grid_2reduce_8hpp.html', 1, '(Global Namespace)'], │ │ │ │ + ['../da/dca/modules_2core_2include_2opencv2_2core_2cuda_2detail_2reduce_8hpp.html', 1, '(Global Namespace)'], │ │ │ │ ['../d7/da3/contrib_2modules_2cudev_2include_2opencv2_2cudev_2warp_2reduce_8hpp.html', 1, '(Global Namespace)'], │ │ │ │ - ['../da/dca/modules_2core_2include_2opencv2_2core_2cuda_2detail_2reduce_8hpp.html', 1, '(Global Namespace)'] │ │ │ │ + ['../d4/d25/contrib_2modules_2cudev_2include_2opencv2_2cudev_2grid_2reduce_8hpp.html', 1, '(Global Namespace)'], │ │ │ │ + ['../d3/d33/contrib_2modules_2cudev_2include_2opencv2_2cudev_2block_2reduce_8hpp.html', 1, '(Global Namespace)'] │ │ │ │ ]], │ │ │ │ ['reduce_5favg_174', ['REDUCE_AVG', ['../d2/de8/group__core__array.html#gga14cdedf2933367eb9395ec16798af994a85f039992a454ca367bc190529766c7e', 1, 'cv']]], │ │ │ │ ['reduce_5fkey_5fval_2ehpp_175', ['reduce_key_val.hpp', ['../d3/dbd/reduce__key__val_8hpp.html', 1, '']]], │ │ │ │ ['reduce_5fmax_176', ['REDUCE_MAX', ['../d2/de8/group__core__array.html#gga14cdedf2933367eb9395ec16798af994a928b4c3eb0a038ea41b61d122c0495ee', 1, 'cv']]], │ │ │ │ ['reduce_5fmin_177', ['REDUCE_MIN', ['../d2/de8/group__core__array.html#gga14cdedf2933367eb9395ec16798af994a1f40a2ed66c8a8b8198186da47ec7b76', 1, 'cv']]], │ │ │ │ ['reduce_5fsum_178', ['REDUCE_SUM', ['../d2/de8/group__core__array.html#gga14cdedf2933367eb9395ec16798af994a101441e283ed69f20cfc5468114f9867', 1, 'cv']]], │ │ │ │ ['reduce_5fsum2_179', ['REDUCE_SUM2', ['../d2/de8/group__core__array.html#gga14cdedf2933367eb9395ec16798af994aadf86c43faf54c6061fa412050efd469', 1, 'cv']]], │ │ ├── ./usr/share/doc/opencv-doc/opencv4/html/search/all_22.js │ │ │ ├── js-beautify {} │ │ │ │ @@ -83,16 +83,16 @@ │ │ │ │ ['../d5/d76/classcv_1_1PyRotationWarper.html#a1d9553ae2b6bdd1ad34e1903e6d1f6c7', 1, 'cv::PyRotationWarper::warpBackward()'] │ │ │ │ ]], │ │ │ │ ['warpcopy_30', ['warpCopy', ['../df/dfc/group__cudev.html#ga3ddaf6e451618b957deea9ab4570f4b3', 1, 'cv::cudev']]], │ │ │ │ ['warper_31', ['warper', ['../d2/d8d/classcv_1_1Stitcher.html#a0f4d7082ba0ef9250298950024a7496d', 1, 'cv::Stitcher::warper() const'], │ │ │ │ ['../d2/d8d/classcv_1_1Stitcher.html#a96084e9ad81687625c8cc92954f18160', 1, 'cv::Stitcher::warper()'] │ │ │ │ ]], │ │ │ │ ['warpercreator_32', ['WarperCreator', ['../d7/d1c/classcv_1_1WarperCreator.html', 1, 'cv']]], │ │ │ │ - ['warpers_2ehpp_33', ['warpers.hpp', ['../dc/de7/detail_2warpers_8hpp.html', 1, '(Global Namespace)'], │ │ │ │ - ['../da/d64/warpers_8hpp.html', 1, '(Global Namespace)'] │ │ │ │ + ['warpers_2ehpp_33', ['warpers.hpp', ['../da/d64/warpers_8hpp.html', 1, '(Global Namespace)'], │ │ │ │ + ['../dc/de7/detail_2warpers_8hpp.html', 1, '(Global Namespace)'] │ │ │ │ ]], │ │ │ │ ['warpers_5finl_2ehpp_34', ['warpers_inl.hpp', ['../d4/d82/warpers__inl_8hpp.html', 1, '']]], │ │ │ │ ['warpfill_35', ['warpFill', ['../df/dfc/group__cudev.html#gaa02a32764180cfb333f398aed49a8516', 1, 'cv::cudev']]], │ │ │ │ ['warpframe_36', ['warpFrame', ['../d2/d3a/group__rgbd.html#gac0db6aeba01fa17ec2c69694497926f0', 1, 'cv::rgbd']]], │ │ │ │ ['warpid_37', ['warpId', ['../d5/d3d/structcv_1_1cudev_1_1Warp.html#a6d9198bfd3cec4e7caa67c4fddb875ab', 1, 'cv::cudev::Warp']]], │ │ │ │ ['warpimage_38', ['warpImage', ['../df/dfe/classcv_1_1ShapeTransformer.html#a3ecb0f13ee58d6cf4a459051c974b5fc', 1, 'cv::ShapeTransformer']]], │ │ │ │ ['warping_39', ['warping', ['../db/d29/group__cudawarping.html', 1, 'Image Warping'], │ │ ├── ./usr/share/doc/opencv-doc/opencv4/html/search/files_15.js │ │ │ ├── js-beautify {} │ │ │ │ @@ -6,19 +6,19 @@ │ │ │ │ ['randpattern_2ehpp_4', ['randpattern.hpp', ['../de/dc5/randpattern_8hpp.html', 1, '']]], │ │ │ │ ['rapid_2ehpp_5', ['rapid.hpp', ['../dd/d04/rapid_8hpp.html', 1, '']]], │ │ │ │ ['raster_5fio_5fgdal_2emarkdown_6', ['raster_io_gdal.markdown', ['../d5/d67/raster__io__gdal_8markdown.html', 1, '']]], │ │ │ │ ['read_5fwrite_5fattributes_2emarkdown_7', ['read_write_attributes.markdown', ['../d9/d65/read__write__attributes_8markdown.html', 1, '']]], │ │ │ │ ['readme_2emd_8', ['README.md', ['../da/ddd/README_8md.html', 1, '']]], │ │ │ │ ['real_5ftime_5fpose_2emarkdown_9', ['real_time_pose.markdown', ['../dc/d83/real__time__pose_8markdown.html', 1, '']]], │ │ │ │ ['reconstruct_2ehpp_10', ['reconstruct.hpp', ['../d3/de1/reconstruct_8hpp.html', 1, '']]], │ │ │ │ - ['reduce_2ehpp_11', ['reduce.hpp', ['../da/dca/modules_2core_2include_2opencv2_2core_2cuda_2detail_2reduce_8hpp.html', 1, '(Global Namespace)'], │ │ │ │ - ['../d3/d78/modules_2core_2include_2opencv2_2core_2cuda_2reduce_8hpp.html', 1, '(Global Namespace)'], │ │ │ │ - ['../d7/da3/contrib_2modules_2cudev_2include_2opencv2_2cudev_2warp_2reduce_8hpp.html', 1, '(Global Namespace)'], │ │ │ │ + ['reduce_2ehpp_11', ['reduce.hpp', ['../d3/d78/modules_2core_2include_2opencv2_2core_2cuda_2reduce_8hpp.html', 1, '(Global Namespace)'], │ │ │ │ + ['../da/dca/modules_2core_2include_2opencv2_2core_2cuda_2detail_2reduce_8hpp.html', 1, '(Global Namespace)'], │ │ │ │ ['../d3/d33/contrib_2modules_2cudev_2include_2opencv2_2cudev_2block_2reduce_8hpp.html', 1, '(Global Namespace)'], │ │ │ │ - ['../d4/d25/contrib_2modules_2cudev_2include_2opencv2_2cudev_2grid_2reduce_8hpp.html', 1, '(Global Namespace)'] │ │ │ │ + ['../d4/d25/contrib_2modules_2cudev_2include_2opencv2_2cudev_2grid_2reduce_8hpp.html', 1, '(Global Namespace)'], │ │ │ │ + ['../d7/da3/contrib_2modules_2cudev_2include_2opencv2_2cudev_2warp_2reduce_8hpp.html', 1, '(Global Namespace)'] │ │ │ │ ]], │ │ │ │ ['reduce_5fkey_5fval_2ehpp_12', ['reduce_key_val.hpp', ['../d3/dbd/reduce__key__val_8hpp.html', 1, '']]], │ │ │ │ ['reduce_5fto_5fvec_2ehpp_13', ['reduce_to_vec.hpp', ['../d3/ddc/reduce__to__vec_8hpp.html', 1, '']]], │ │ │ │ ['reduction_2ehpp_14', ['reduction.hpp', ['../d2/da5/reduction_8hpp.html', 1, '']]], │ │ │ │ ['registry_2ehpp_15', ['registry.hpp', ['../d1/da2/registry_8hpp.html', 1, '']]], │ │ │ │ ['remap_2ehpp_16', ['remap.hpp', ['../d1/d59/remap_8hpp.html', 1, '']]], │ │ │ │ ['remap_2emarkdown_17', ['remap.markdown', ['../df/ded/remap_8markdown.html', 1, '']]], │ │ ├── ./usr/share/doc/opencv-doc/opencv4/html/search/files_c.js │ │ │ ├── js-beautify {} │ │ │ │ @@ -4,28 +4,28 @@ │ │ │ │ ['image_5fmanipulation_2emarkdown_2', ['image_manipulation.markdown', ['../d6/dd9/image__manipulation_8markdown.html', 1, '']]], │ │ │ │ ['img_5fhash_2ehpp_3', ['img_hash.hpp', ['../d4/d59/img__hash_8hpp.html', 1, '']]], │ │ │ │ ['img_5fhash_5fbase_2ehpp_4', ['img_hash_base.hpp', ['../d9/db6/img__hash__base_8hpp.html', 1, '']]], │ │ │ │ ['imgcodecs_2ehpp_5', ['imgcodecs.hpp', ['../d6/d87/imgcodecs_8hpp.html', 1, '(Global Namespace)'], │ │ │ │ ['../d7/dd8/imgcodecs_2imgcodecs_8hpp.html', 1, '(Global Namespace)'] │ │ │ │ ]], │ │ │ │ ['imgproc_2ehpp_6', ['imgproc.hpp', ['../d4/d75/gapi_2include_2opencv2_2gapi_2imgproc_8hpp.html', 1, '(Global Namespace)'], │ │ │ │ - ['../d9/dca/gapi_2include_2opencv2_2gapi_2ocl_2imgproc_8hpp.html', 1, '(Global Namespace)'], │ │ │ │ - ['../d0/d08/gapi_2include_2opencv2_2gapi_2cpu_2imgproc_8hpp.html', 1, '(Global Namespace)'], │ │ │ │ ['../d8/d8e/gapi_2include_2opencv2_2gapi_2gpu_2imgproc_8hpp.html', 1, '(Global Namespace)'], │ │ │ │ ['../de/da0/gapi_2include_2opencv2_2gapi_2fluid_2imgproc_8hpp.html', 1, '(Global Namespace)'], │ │ │ │ - ['../d1/d4f/imgproc_2include_2opencv2_2imgproc_8hpp.html', 1, '(Global Namespace)'], │ │ │ │ - ['../dd/d01/imgproc_2include_2opencv2_2imgproc_2imgproc_8hpp.html', 1, '(Global Namespace)'] │ │ │ │ + ['../dd/d01/imgproc_2include_2opencv2_2imgproc_2imgproc_8hpp.html', 1, '(Global Namespace)'], │ │ │ │ + ['../d9/dca/gapi_2include_2opencv2_2gapi_2ocl_2imgproc_8hpp.html', 1, '(Global Namespace)'], │ │ │ │ + ['../d0/d08/gapi_2include_2opencv2_2gapi_2cpu_2imgproc_8hpp.html', 1, '(Global Namespace)'], │ │ │ │ + ['../d1/d4f/imgproc_2include_2opencv2_2imgproc_8hpp.html', 1, '(Global Namespace)'] │ │ │ │ ]], │ │ │ │ ['index_5ftesting_2eh_7', ['index_testing.h', ['../db/dd9/index__testing_8h.html', 1, '']]], │ │ │ │ ['infer_2ehpp_8', ['infer.hpp', ['../d6/d32/infer_8hpp.html', 1, '(Global Namespace)'], │ │ │ │ ['../d8/db1/oak_2infer_8hpp.html', 1, '(Global Namespace)'] │ │ │ │ ]], │ │ │ │ ['inference_5fengine_2ehpp_9', ['inference_engine.hpp', ['../d8/dcd/inference__engine_8hpp.html', 1, '']]], │ │ │ │ - ['inpainting_2ehpp_10', ['inpainting.hpp', ['../d7/d72/xphoto_2include_2opencv2_2xphoto_2inpainting_8hpp.html', 1, '(Global Namespace)'], │ │ │ │ - ['../dc/dc7/videostab_2include_2opencv2_2videostab_2inpainting_8hpp.html', 1, '(Global Namespace)'] │ │ │ │ + ['inpainting_2ehpp_10', ['inpainting.hpp', ['../dc/dc7/videostab_2include_2opencv2_2videostab_2inpainting_8hpp.html', 1, '(Global Namespace)'], │ │ │ │ + ['../d7/d72/xphoto_2include_2opencv2_2xphoto_2inpainting_8hpp.html', 1, '(Global Namespace)'] │ │ │ │ ]], │ │ │ │ ['inpainting_2emarkdown_11', ['inpainting.markdown', ['../d0/d0f/inpainting_8markdown.html', 1, '']]], │ │ │ │ ['install_5ftesseract_2emarkdown_12', ['install_tesseract.markdown', ['../de/d5b/install__tesseract_8markdown.html', 1, '']]], │ │ │ │ ['instrumentation_2ehpp_13', ['instrumentation.hpp', ['../df/dab/instrumentation_8hpp.html', 1, '']]], │ │ │ │ ['integral_2ehpp_14', ['integral.hpp', ['../d3/da8/integral_8hpp.html', 1, '']]], │ │ │ │ ['intelperc_2emarkdown_15', ['intelperc.markdown', ['../d8/d80/intelperc_8markdown.html', 1, '']]], │ │ │ │ ['intensity_5ftransform_2ehpp_16', ['intensity_transform.hpp', ['../da/d3c/intensity__transform_8hpp.html', 1, '']]],