OpenCV for Unity  2.6.0
Enox Software / Please refer to OpenCV official document ( http://docs.opencv.org/4.9.0/index.html ) for the details of the argument of the method.
Static Public Member Functions | Public Attributes | List of all members
OpenCVForUnity.Features2dModule.Features2d Class Reference

Static Public Member Functions

static void drawKeypoints (Mat image, MatOfKeyPoint keypoints, Mat outImage, Scalar color, int flags)
 Draws keypoints. More...
 
static void drawKeypoints (Mat image, MatOfKeyPoint keypoints, Mat outImage, Scalar color)
 Draws keypoints. More...
 
static void drawKeypoints (Mat image, MatOfKeyPoint keypoints, Mat outImage)
 Draws keypoints. More...
 
static void drawMatches (Mat img1, MatOfKeyPoint keypoints1, Mat img2, MatOfKeyPoint keypoints2, MatOfDMatch matches1to2, Mat outImg, Scalar matchColor, Scalar singlePointColor, MatOfByte matchesMask, int flags)
 Draws the found matches of keypoints from two images. More...
 
static void drawMatches (Mat img1, MatOfKeyPoint keypoints1, Mat img2, MatOfKeyPoint keypoints2, MatOfDMatch matches1to2, Mat outImg, Scalar matchColor, Scalar singlePointColor, MatOfByte matchesMask)
 Draws the found matches of keypoints from two images. More...
 
static void drawMatches (Mat img1, MatOfKeyPoint keypoints1, Mat img2, MatOfKeyPoint keypoints2, MatOfDMatch matches1to2, Mat outImg, Scalar matchColor, Scalar singlePointColor)
 Draws the found matches of keypoints from two images. More...
 
static void drawMatches (Mat img1, MatOfKeyPoint keypoints1, Mat img2, MatOfKeyPoint keypoints2, MatOfDMatch matches1to2, Mat outImg, Scalar matchColor)
 Draws the found matches of keypoints from two images. More...
 
static void drawMatches (Mat img1, MatOfKeyPoint keypoints1, Mat img2, MatOfKeyPoint keypoints2, MatOfDMatch matches1to2, Mat outImg)
 Draws the found matches of keypoints from two images. More...
 
static void drawMatches (Mat img1, MatOfKeyPoint keypoints1, Mat img2, MatOfKeyPoint keypoints2, MatOfDMatch matches1to2, Mat outImg, int matchesThickness, Scalar matchColor, Scalar singlePointColor, MatOfByte matchesMask, int flags)
 
static void drawMatches (Mat img1, MatOfKeyPoint keypoints1, Mat img2, MatOfKeyPoint keypoints2, MatOfDMatch matches1to2, Mat outImg, int matchesThickness, Scalar matchColor, Scalar singlePointColor, MatOfByte matchesMask)
 
static void drawMatches (Mat img1, MatOfKeyPoint keypoints1, Mat img2, MatOfKeyPoint keypoints2, MatOfDMatch matches1to2, Mat outImg, int matchesThickness, Scalar matchColor, Scalar singlePointColor)
 
static void drawMatches (Mat img1, MatOfKeyPoint keypoints1, Mat img2, MatOfKeyPoint keypoints2, MatOfDMatch matches1to2, Mat outImg, int matchesThickness, Scalar matchColor)
 
static void drawMatches (Mat img1, MatOfKeyPoint keypoints1, Mat img2, MatOfKeyPoint keypoints2, MatOfDMatch matches1to2, Mat outImg, int matchesThickness)
 
static void drawMatchesKnn (Mat img1, MatOfKeyPoint keypoints1, Mat img2, MatOfKeyPoint keypoints2, List< MatOfDMatch > matches1to2, Mat outImg, Scalar matchColor, Scalar singlePointColor, List< MatOfByte > matchesMask, int flags)
 
static void drawMatchesKnn (Mat img1, MatOfKeyPoint keypoints1, Mat img2, MatOfKeyPoint keypoints2, List< MatOfDMatch > matches1to2, Mat outImg, Scalar matchColor, Scalar singlePointColor, List< MatOfByte > matchesMask)
 
static void drawMatchesKnn (Mat img1, MatOfKeyPoint keypoints1, Mat img2, MatOfKeyPoint keypoints2, List< MatOfDMatch > matches1to2, Mat outImg, Scalar matchColor, Scalar singlePointColor)
 
static void drawMatchesKnn (Mat img1, MatOfKeyPoint keypoints1, Mat img2, MatOfKeyPoint keypoints2, List< MatOfDMatch > matches1to2, Mat outImg, Scalar matchColor)
 
static void drawMatchesKnn (Mat img1, MatOfKeyPoint keypoints1, Mat img2, MatOfKeyPoint keypoints2, List< MatOfDMatch > matches1to2, Mat outImg)
 

Public Attributes

const int DrawMatchesFlags_DEFAULT = 0
 
const int DrawMatchesFlags_DRAW_OVER_OUTIMG = 1
 
const int DrawMatchesFlags_NOT_DRAW_SINGLE_POINTS = 2
 
const int DrawMatchesFlags_DRAW_RICH_KEYPOINTS = 4
 

Member Function Documentation

◆ drawKeypoints() [1/3]

static void OpenCVForUnity.Features2dModule.Features2d.drawKeypoints ( Mat  image,
MatOfKeyPoint  keypoints,
Mat  outImage,
Scalar  color,
int  flags 
)
static

Draws keypoints.

Parameters
imageSource image.
keypointsKeypoints from the source image.
outImageOutput image. Its content depends on the flags value defining what is drawn in the output image. See possible flags bit values below.
colorColor of keypoints.
flagsFlags setting drawing features. Possible flags bit values are defined by DrawMatchesFlags. See details above in drawMatches .
Note
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

◆ drawKeypoints() [2/3]

static void OpenCVForUnity.Features2dModule.Features2d.drawKeypoints ( Mat  image,
MatOfKeyPoint  keypoints,
Mat  outImage,
Scalar  color 
)
static

Draws keypoints.

Parameters
imageSource image.
keypointsKeypoints from the source image.
outImageOutput image. Its content depends on the flags value defining what is drawn in the output image. See possible flags bit values below.
colorColor of keypoints.
flagsFlags setting drawing features. Possible flags bit values are defined by DrawMatchesFlags. See details above in drawMatches .
Note
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

◆ drawKeypoints() [3/3]

static void OpenCVForUnity.Features2dModule.Features2d.drawKeypoints ( Mat  image,
MatOfKeyPoint  keypoints,
Mat  outImage 
)
static

Draws keypoints.

Parameters
imageSource image.
keypointsKeypoints from the source image.
outImageOutput image. Its content depends on the flags value defining what is drawn in the output image. See possible flags bit values below.
colorColor of keypoints.
flagsFlags setting drawing features. Possible flags bit values are defined by DrawMatchesFlags. See details above in drawMatches .
Note
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

◆ drawMatches() [1/10]

static void OpenCVForUnity.Features2dModule.Features2d.drawMatches ( Mat  img1,
MatOfKeyPoint  keypoints1,
Mat  img2,
MatOfKeyPoint  keypoints2,
MatOfDMatch  matches1to2,
Mat  outImg,
Scalar  matchColor,
Scalar  singlePointColor,
MatOfByte  matchesMask,
int  flags 
)
static

Draws the found matches of keypoints from two images.

Parameters
img1First source image.
keypoints1Keypoints from the first source image.
img2Second source image.
keypoints2Keypoints from the second source image.
matches1to2Matches from the first image to the second one, which means that keypoints1[i] has a corresponding point in keypoints2[matches[i]] .
outImgOutput image. Its content depends on the flags value defining what is drawn in the output image. See possible flags bit values below.
matchColorColor of matches (lines and connected keypoints). If matchColor==Scalar::all(-1) , the color is generated randomly.
singlePointColorColor of single keypoints (circles), which means that keypoints do not have the matches. If singlePointColor==Scalar::all(-1) , the color is generated randomly.
matchesMaskMask determining which matches are drawn. If the mask is empty, all matches are drawn.
flagsFlags setting drawing features. Possible flags bit values are defined by DrawMatchesFlags.

This function draws matches of keypoints from two images in the output image. Match is a line connecting two keypoints (circles). See cv::DrawMatchesFlags.

◆ drawMatches() [2/10]

static void OpenCVForUnity.Features2dModule.Features2d.drawMatches ( Mat  img1,
MatOfKeyPoint  keypoints1,
Mat  img2,
MatOfKeyPoint  keypoints2,
MatOfDMatch  matches1to2,
Mat  outImg,
Scalar  matchColor,
Scalar  singlePointColor,
MatOfByte  matchesMask 
)
static

Draws the found matches of keypoints from two images.

Parameters
img1First source image.
keypoints1Keypoints from the first source image.
img2Second source image.
keypoints2Keypoints from the second source image.
matches1to2Matches from the first image to the second one, which means that keypoints1[i] has a corresponding point in keypoints2[matches[i]] .
outImgOutput image. Its content depends on the flags value defining what is drawn in the output image. See possible flags bit values below.
matchColorColor of matches (lines and connected keypoints). If matchColor==Scalar::all(-1) , the color is generated randomly.
singlePointColorColor of single keypoints (circles), which means that keypoints do not have the matches. If singlePointColor==Scalar::all(-1) , the color is generated randomly.
matchesMaskMask determining which matches are drawn. If the mask is empty, all matches are drawn.
flagsFlags setting drawing features. Possible flags bit values are defined by DrawMatchesFlags.

This function draws matches of keypoints from two images in the output image. Match is a line connecting two keypoints (circles). See cv::DrawMatchesFlags.

◆ drawMatches() [3/10]

static void OpenCVForUnity.Features2dModule.Features2d.drawMatches ( Mat  img1,
MatOfKeyPoint  keypoints1,
Mat  img2,
MatOfKeyPoint  keypoints2,
MatOfDMatch  matches1to2,
Mat  outImg,
Scalar  matchColor,
Scalar  singlePointColor 
)
static

Draws the found matches of keypoints from two images.

Parameters
img1First source image.
keypoints1Keypoints from the first source image.
img2Second source image.
keypoints2Keypoints from the second source image.
matches1to2Matches from the first image to the second one, which means that keypoints1[i] has a corresponding point in keypoints2[matches[i]] .
outImgOutput image. Its content depends on the flags value defining what is drawn in the output image. See possible flags bit values below.
matchColorColor of matches (lines and connected keypoints). If matchColor==Scalar::all(-1) , the color is generated randomly.
singlePointColorColor of single keypoints (circles), which means that keypoints do not have the matches. If singlePointColor==Scalar::all(-1) , the color is generated randomly.
matchesMaskMask determining which matches are drawn. If the mask is empty, all matches are drawn.
flagsFlags setting drawing features. Possible flags bit values are defined by DrawMatchesFlags.

This function draws matches of keypoints from two images in the output image. Match is a line connecting two keypoints (circles). See cv::DrawMatchesFlags.

◆ drawMatches() [4/10]

static void OpenCVForUnity.Features2dModule.Features2d.drawMatches ( Mat  img1,
MatOfKeyPoint  keypoints1,
Mat  img2,
MatOfKeyPoint  keypoints2,
MatOfDMatch  matches1to2,
Mat  outImg,
Scalar  matchColor 
)
static

Draws the found matches of keypoints from two images.

Parameters
img1First source image.
keypoints1Keypoints from the first source image.
img2Second source image.
keypoints2Keypoints from the second source image.
matches1to2Matches from the first image to the second one, which means that keypoints1[i] has a corresponding point in keypoints2[matches[i]] .
outImgOutput image. Its content depends on the flags value defining what is drawn in the output image. See possible flags bit values below.
matchColorColor of matches (lines and connected keypoints). If matchColor==Scalar::all(-1) , the color is generated randomly.
singlePointColorColor of single keypoints (circles), which means that keypoints do not have the matches. If singlePointColor==Scalar::all(-1) , the color is generated randomly.
matchesMaskMask determining which matches are drawn. If the mask is empty, all matches are drawn.
flagsFlags setting drawing features. Possible flags bit values are defined by DrawMatchesFlags.

This function draws matches of keypoints from two images in the output image. Match is a line connecting two keypoints (circles). See cv::DrawMatchesFlags.

◆ drawMatches() [5/10]

static void OpenCVForUnity.Features2dModule.Features2d.drawMatches ( Mat  img1,
MatOfKeyPoint  keypoints1,
Mat  img2,
MatOfKeyPoint  keypoints2,
MatOfDMatch  matches1to2,
Mat  outImg 
)
static

Draws the found matches of keypoints from two images.

Parameters
img1First source image.
keypoints1Keypoints from the first source image.
img2Second source image.
keypoints2Keypoints from the second source image.
matches1to2Matches from the first image to the second one, which means that keypoints1[i] has a corresponding point in keypoints2[matches[i]] .
outImgOutput image. Its content depends on the flags value defining what is drawn in the output image. See possible flags bit values below.
matchColorColor of matches (lines and connected keypoints). If matchColor==Scalar::all(-1) , the color is generated randomly.
singlePointColorColor of single keypoints (circles), which means that keypoints do not have the matches. If singlePointColor==Scalar::all(-1) , the color is generated randomly.
matchesMaskMask determining which matches are drawn. If the mask is empty, all matches are drawn.
flagsFlags setting drawing features. Possible flags bit values are defined by DrawMatchesFlags.

This function draws matches of keypoints from two images in the output image. Match is a line connecting two keypoints (circles). See cv::DrawMatchesFlags.

◆ drawMatches() [6/10]

static void OpenCVForUnity.Features2dModule.Features2d.drawMatches ( Mat  img1,
MatOfKeyPoint  keypoints1,
Mat  img2,
MatOfKeyPoint  keypoints2,
MatOfDMatch  matches1to2,
Mat  outImg,
int  matchesThickness,
Scalar  matchColor,
Scalar  singlePointColor,
MatOfByte  matchesMask,
int  flags 
)
static

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

◆ drawMatches() [7/10]

static void OpenCVForUnity.Features2dModule.Features2d.drawMatches ( Mat  img1,
MatOfKeyPoint  keypoints1,
Mat  img2,
MatOfKeyPoint  keypoints2,
MatOfDMatch  matches1to2,
Mat  outImg,
int  matchesThickness,
Scalar  matchColor,
Scalar  singlePointColor,
MatOfByte  matchesMask 
)
static

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

◆ drawMatches() [8/10]

static void OpenCVForUnity.Features2dModule.Features2d.drawMatches ( Mat  img1,
MatOfKeyPoint  keypoints1,
Mat  img2,
MatOfKeyPoint  keypoints2,
MatOfDMatch  matches1to2,
Mat  outImg,
int  matchesThickness,
Scalar  matchColor,
Scalar  singlePointColor 
)
static

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

◆ drawMatches() [9/10]

static void OpenCVForUnity.Features2dModule.Features2d.drawMatches ( Mat  img1,
MatOfKeyPoint  keypoints1,
Mat  img2,
MatOfKeyPoint  keypoints2,
MatOfDMatch  matches1to2,
Mat  outImg,
int  matchesThickness,
Scalar  matchColor 
)
static

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

◆ drawMatches() [10/10]

static void OpenCVForUnity.Features2dModule.Features2d.drawMatches ( Mat  img1,
MatOfKeyPoint  keypoints1,
Mat  img2,
MatOfKeyPoint  keypoints2,
MatOfDMatch  matches1to2,
Mat  outImg,
int  matchesThickness 
)
static

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

◆ drawMatchesKnn() [1/5]

static void OpenCVForUnity.Features2dModule.Features2d.drawMatchesKnn ( Mat  img1,
MatOfKeyPoint  keypoints1,
Mat  img2,
MatOfKeyPoint  keypoints2,
List< MatOfDMatch matches1to2,
Mat  outImg,
Scalar  matchColor,
Scalar  singlePointColor,
List< MatOfByte matchesMask,
int  flags 
)
static

◆ drawMatchesKnn() [2/5]

static void OpenCVForUnity.Features2dModule.Features2d.drawMatchesKnn ( Mat  img1,
MatOfKeyPoint  keypoints1,
Mat  img2,
MatOfKeyPoint  keypoints2,
List< MatOfDMatch matches1to2,
Mat  outImg,
Scalar  matchColor,
Scalar  singlePointColor,
List< MatOfByte matchesMask 
)
static

◆ drawMatchesKnn() [3/5]

static void OpenCVForUnity.Features2dModule.Features2d.drawMatchesKnn ( Mat  img1,
MatOfKeyPoint  keypoints1,
Mat  img2,
MatOfKeyPoint  keypoints2,
List< MatOfDMatch matches1to2,
Mat  outImg,
Scalar  matchColor,
Scalar  singlePointColor 
)
static

◆ drawMatchesKnn() [4/5]

static void OpenCVForUnity.Features2dModule.Features2d.drawMatchesKnn ( Mat  img1,
MatOfKeyPoint  keypoints1,
Mat  img2,
MatOfKeyPoint  keypoints2,
List< MatOfDMatch matches1to2,
Mat  outImg,
Scalar  matchColor 
)
static

◆ drawMatchesKnn() [5/5]

static void OpenCVForUnity.Features2dModule.Features2d.drawMatchesKnn ( Mat  img1,
MatOfKeyPoint  keypoints1,
Mat  img2,
MatOfKeyPoint  keypoints2,
List< MatOfDMatch matches1to2,
Mat  outImg 
)
static

Member Data Documentation

◆ DrawMatchesFlags_DEFAULT

const int OpenCVForUnity.Features2dModule.Features2d.DrawMatchesFlags_DEFAULT = 0

◆ DrawMatchesFlags_DRAW_OVER_OUTIMG

const int OpenCVForUnity.Features2dModule.Features2d.DrawMatchesFlags_DRAW_OVER_OUTIMG = 1

◆ DrawMatchesFlags_DRAW_RICH_KEYPOINTS

const int OpenCVForUnity.Features2dModule.Features2d.DrawMatchesFlags_DRAW_RICH_KEYPOINTS = 4

◆ DrawMatchesFlags_NOT_DRAW_SINGLE_POINTS

const int OpenCVForUnity.Features2dModule.Features2d.DrawMatchesFlags_NOT_DRAW_SINGLE_POINTS = 2

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