[][src]Function opencv::features2d::draw_keypoints

pub fn draw_keypoints(
    image: &dyn ToInputArray,
    keypoints: &VectorOfKeyPoint,
    out_image: &mut dyn ToInputOutputArray,
    color: Scalar,
    flags: i32
) -> Result<()>

Draws keypoints.

Parameters

  • image: Source image.
  • keypoints: Keypoints from the source image.
  • outImage: Output image. Its content depends on the flags value defining what is drawn in the output image. See possible flags bit values below.
  • color: Color of keypoints.
  • flags: Flags setting drawing features. Possible flags bit values are defined by DrawMatchesFlags. See details above in drawMatches .

Note: For Python API, flags are modified as cv2.DRAW_MATCHES_FLAGS_DEFAULT, cv2.DRAW_MATCHES_FLAGS_DRAW_RICH_KEYPOINTS, cv2.DRAW_MATCHES_FLAGS_DRAW_OVER_OUTIMG, cv2.DRAW_MATCHES_FLAGS_NOT_DRAW_SINGLE_POINTS

C++ default parameters

  • color: Scalar::all(-1)
  • flags: DrawMatchesFlags::DEFAULT