[][src]Function opencv::line_descriptor::draw_line_matches

pub fn draw_line_matches(
    img1: &Mat,
    keylines1: &Vector<KeyLine>,
    img2: &Mat,
    keylines2: &Vector<KeyLine>,
    matches1to2: &Vector<DMatch>,
    out_img: &mut Mat,
    match_color: Scalar,
    single_line_color: Scalar,
    matches_mask: &Vector<i8>,
    flags: i32
) -> Result<()>

Draws the found matches of keylines from two images.

Parameters

  • img1: first image
  • keylines1: keylines extracted from first image
  • img2: second image
  • keylines2: keylines extracted from second image
  • matches1to2: vector of matches
  • outImg: output matrix to draw on
  • matchColor: drawing color for matches (chosen randomly in case of default value)
  • singleLineColor: drawing color for keylines (chosen randomly in case of default value)
  • matchesMask: mask to indicate which matches must be drawn
  • flags: drawing flags, see DrawLinesMatchesFlags

Note: If both matchColor and singleLineColor are set to their default values, function draws matched lines and line connecting them with same color

C++ default parameters

  • match_color: Scalar::all(-1)
  • single_line_color: Scalar::all(-1)
  • matches_mask: std::vector()
  • flags: DrawLinesMatchesFlags::DEFAULT