Solar
Public Member Functions | List of all members
SolAR::MODULES::OPENCV::SolARMatchesOverlayOpencv Class Reference

Displays matching keypoints between two images. UUID: e95302be-3fe1-44e0-97bf-a98380464af9 More...

#include <SolARMatchesOverlayOpencv.h>

Inheritance diagram for SolAR::MODULES::OPENCV::SolARMatchesOverlayOpencv:
Inheritance graph
[legend]
Collaboration diagram for SolAR::MODULES::OPENCV::SolARMatchesOverlayOpencv:
Collaboration graph
[legend]

Public Member Functions

void draw (const SRef< datastructure::Image > image1, const SRef< datastructure::Image > image2, SRef< datastructure::Image > &outImage, const std::vector< datastructure::Point2Df > &points_image1, const std::vector< datastructure::Point2Df > &points_image2, const std::vector< datastructure::DescriptorMatch > &matches=std::vector< datastructure::DescriptorMatch >()) override
 dra Match Lines. Draw all the lines joining the keypoints that match between two images More...
 
void draw (const SRef< datastructure::Image > image1, const SRef< datastructure::Image > image2, SRef< datastructure::Image > &outImage, const std::vector< datastructure::Keypoint > &keypoints_image1, const std::vector< datastructure::Keypoint > &keypoints_image2, const std::vector< datastructure::DescriptorMatch > &matches=std::vector< datastructure::DescriptorMatch >()) override
 dra Match Lines. Draw all the lines joining the keypoints that match between two images More...
 
void draw (const SRef< datastructure::Image > image, SRef< datastructure::Image > &outImage, const std::vector< datastructure::Point2Df > &points_image1, const std::vector< datastructure::Point2Df > &points_image2, const std::vector< datastructure::DescriptorMatch > &matches=std::vector< datastructure::DescriptorMatch >()) override
 draw Match Lines. Draw all the lines joining the keypoints that match between two images More...
 
void draw (const SRef< datastructure::Image > image, SRef< datastructure::Image > &outImage, const std::vector< datastructure::Keypoint > &keypoints_image1, const std::vector< datastructure::Keypoint > &keypoints_image2, const std::vector< datastructure::DescriptorMatch > &matches=std::vector< datastructure::DescriptorMatch >()) override
 dra Match Lines. Draw all the lines joining the keypoints that match between two images More...
 
void unloadComponent () override final
 

Detailed Description

Displays matching keypoints between two images. UUID: e95302be-3fe1-44e0-97bf-a98380464af9

Properties
thickness thickness of the lines displaying the matches between the two images
type: int; range : [0..MAX INT]; default: 1
color the color of the linse displaying the matches between the two images
size: 3, elem type: uint; range : [0..255]; default: [ 0, 255, 0 ]
mode if not null, the color will be randomized for each line (values among ["COLOR", "RANDOM", "FADING"])
type: string; default: "COLOR"
maxMatches the maximum number of matches to display. If negative, all matches are displayed
type: int; range : [-1..MAX INT]; default: -1

Member Function Documentation

◆ draw() [1/4]

void SolAR::MODULES::OPENCV::SolARMatchesOverlayOpencv::draw ( const SRef< datastructure::Image >  image,
SRef< datastructure::Image > &  outImage,
const std::vector< datastructure::Keypoint > &  keypoints_image1,
const std::vector< datastructure::Keypoint > &  keypoints_image2,
const std::vector< datastructure::DescriptorMatch > &  matches = std::vector< datastructure::DescriptorMatch >() 
)
override

dra Match Lines. Draw all the lines joining the keypoints that match between two images

Parameters
[in]imageThe image to display for drawing in overlay the matches
[out]outImageThe resulting image diaplying matches in overlay. If outImage has not been initialized, it will be done by this method. If it size is not the good one, it will be resized by this method.
[in]keypoints_image1The keypoints of image1 that match with keypoints of image2. The Nth keypoint of this vector match with the Nth keypoint of the vector points_image2.
[in]keypoints_image2The keypoints of image2 that match with keypoints of image1. The Nth keypoint of this vector match with the Nth keypoint of the vector points_image1.
[in|out]matches, a vector of matches between the first and second image that will be displayed. If this vector is empty, we consider that the ith point of points_image1 matches with the ith point of points_image2.

◆ draw() [2/4]

void SolAR::MODULES::OPENCV::SolARMatchesOverlayOpencv::draw ( const SRef< datastructure::Image >  image,
SRef< datastructure::Image > &  outImage,
const std::vector< datastructure::Point2Df > &  points_image1,
const std::vector< datastructure::Point2Df > &  points_image2,
const std::vector< datastructure::DescriptorMatch > &  matches = std::vector< datastructure::DescriptorMatch >() 
)
override

draw Match Lines. Draw all the lines joining the keypoints that match between two images

Parameters
[in]imageThe image to display for drawing in overlay the matches
[out]outImageThe resulting image diaplying matches in overlay. If outImage has not been initialized, it will be done by this method. If it size is not the good one, it will be resized by this method.
[in]points_image1The keypoints of image1 that match with keypoints of image2. The Nth keypoint of this vector match with the Nth keypoint of the vector points_image2.
[in]points_image2The keypoints of image2 that match with keypoints of image1. The Nth keypoint of this vector match with the Nth keypoint of the vector points_image1.
[in|out]matches, a vector of matches between the first and second image that will be displayed. If this vector is empty, we consider that the ith point of points_image1 matches with the ith point of points_image2.

◆ draw() [3/4]

void SolAR::MODULES::OPENCV::SolARMatchesOverlayOpencv::draw ( const SRef< datastructure::Image >  image1,
const SRef< datastructure::Image >  image2,
SRef< datastructure::Image > &  outImage,
const std::vector< datastructure::Keypoint > &  keypoints_image1,
const std::vector< datastructure::Keypoint > &  keypoints_image2,
const std::vector< datastructure::DescriptorMatch > &  matches = std::vector< datastructure::DescriptorMatch >() 
)
override

dra Match Lines. Draw all the lines joining the keypoints that match between two images

Parameters
[in]image1The first image on which have been extracted the first vector keypoints
[in]image2The second image on which have been extracted the second vector of keypoints
[out]outImageThe resulting image merging image1 and image2 in side-by-side. If outImage has not been initialized, it will be done by this method. If it size is not the good one, it will be resized by this method.
[in]keypoints_image1The keypoints of image1 that match with keypoints of image2. The Nth keypoint of this vector match with the Nth keypoint of the vector points_image2.
[in]keypoints_image2The keypoints of image2 that match with keypoints of image1. The Nth keypoint of this vector match with the Nth keypoint of the vector points_image1.
[in|out]matches, a vector of matches between the first and second image that will be displayed. If this vector is empty, we consider that the ith point of points_image1 matches with the ith point of points_image2.

◆ draw() [4/4]

void SolAR::MODULES::OPENCV::SolARMatchesOverlayOpencv::draw ( const SRef< datastructure::Image >  image1,
const SRef< datastructure::Image >  image2,
SRef< datastructure::Image > &  outImage,
const std::vector< datastructure::Point2Df > &  points_image1,
const std::vector< datastructure::Point2Df > &  points_image2,
const std::vector< datastructure::DescriptorMatch > &  matches = std::vector< datastructure::DescriptorMatch >() 
)
override

dra Match Lines. Draw all the lines joining the keypoints that match between two images

Parameters
[in]image1The first image on which have been extracted the first vector keypoints
[in]image2The second image on which have been extracted the second vector of keypoints
[out]outImageThe resulting image merging image1 and image2 in side-by-side. If outImage has not been initialized, it will be done by this method. If it size is not the good one, it will be resized by this method.
[in]points_image1The keypoints of image1 that match with keypoints of image2. The Nth keypoint of this vector match with the Nth keypoint of the vector points_image2.
[in]points_image2The keypoints of image2 that match with keypoints of image1. The Nth keypoint of this vector match with the Nth keypoint of the vector points_image1.
[in|out]matches, a vector of matches between the first and second image that will be displayed. If this vector is empty, we consider that the ith point of points_image1 matches with the ith point of points_image2.

The documentation for this class was generated from the following file: