Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "types/opencv/features2d_draw"

Index

Type aliases

DrawMatchesFlags

DrawMatchesFlags: any

Variables

Const DEFAULT

Output image matrix will be created ([Mat::create]), i.e. existing memory of output image may be reused. Two source image, matches and single keypoints will be drawn. For each keypoint only the center point will be drawn (without the circle around keypoint with keypoint size and orientation).

Const DRAW_OVER_OUTIMG

DRAW_OVER_OUTIMG: DrawMatchesFlags

Output image matrix will not be created ([Mat::create]). Matches will be drawn on existing content of output image.

Const DRAW_RICH_KEYPOINTS

DRAW_RICH_KEYPOINTS: DrawMatchesFlags

For each keypoint the circle around keypoint with keypoint size and orientation will be drawn.

Const NOT_DRAW_SINGLE_POINTS

NOT_DRAW_SINGLE_POINTS: DrawMatchesFlags

Functions

drawKeypoints

  • drawKeypoints(image: InputArray, keypoints: any, outImage: InputOutputArray, color?: any, flags?: DrawMatchesFlags): void
  • For Python API, flags are modified as cv.DRAW_MATCHES_FLAGS_DEFAULT, cv.DRAW_MATCHES_FLAGS_DRAW_RICH_KEYPOINTS, cv.DRAW_MATCHES_FLAGS_DRAW_OVER_OUTIMG, cv.DRAW_MATCHES_FLAGS_NOT_DRAW_SINGLE_POINTS

    Parameters

    • image: InputArray

      Source image.

    • keypoints: any

      Keypoints from the source image.

    • outImage: InputOutputArray

      Output image. Its content depends on the flags value defining what is drawn in the output image. See possible flags bit values below.

    • Optional color: any

      Color of keypoints.

    • Optional flags: DrawMatchesFlags

      Flags setting drawing features. Possible flags bit values are defined by DrawMatchesFlags. See details above in drawMatches .

    Returns void

drawMatches

  • drawMatches(img1: InputArray, keypoints1: any, img2: InputArray, keypoints2: any, matches1to2: any, outImg: InputOutputArray, matchColor?: any, singlePointColor?: any, matchesMask?: any, flags?: DrawMatchesFlags): void
  • drawMatches(img1: InputArray, keypoints1: any, img2: InputArray, keypoints2: any, matches1to2: any, outImg: InputOutputArray, matchColor?: any, singlePointColor?: any, matchesMask?: any, flags?: DrawMatchesFlags): void
  • This function draws matches of keypoints from two images in the output image. Match is a line connecting two keypoints (circles). See [cv::DrawMatchesFlags].

    Parameters

    • img1: InputArray

      First source image.

    • keypoints1: any

      Keypoints from the first source image.

    • img2: InputArray

      Second source image.

    • keypoints2: any

      Keypoints from the second source image.

    • matches1to2: any

      Matches from the first image to the second one, which means that keypoints1[i] has a corresponding point in keypoints2[matches[i]] .

    • outImg: InputOutputArray

      Output image. Its content depends on the flags value defining what is drawn in the output image. See possible flags bit values below.

    • Optional matchColor: any

      Color of matches (lines and connected keypoints). If matchColor==Scalar::all(-1) , the color is generated randomly.

    • Optional singlePointColor: any

      Color of single keypoints (circles), which means that keypoints do not have the matches. If singlePointColor==Scalar::all(-1) , the color is generated randomly.

    • Optional matchesMask: any

      Mask determining which matches are drawn. If the mask is empty, all matches are drawn.

    • Optional flags: DrawMatchesFlags

      Flags setting drawing features. Possible flags bit values are defined by DrawMatchesFlags.

    Returns void

  • This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

    Parameters

    • img1: InputArray
    • keypoints1: any
    • img2: InputArray
    • keypoints2: any
    • matches1to2: any
    • outImg: InputOutputArray
    • Optional matchColor: any
    • Optional singlePointColor: any
    • Optional matchesMask: any
    • Optional flags: DrawMatchesFlags

    Returns void

Generated using TypeDoc