#include <Drawing.h>
List of all members.
Static Public Member Functions |
| static void | drawBox (cv::Mat &image, const cv::Mat &cRo, const cv::Mat &cto, float width, float height, const cv::Mat &A, const cv::Mat &K=cv::Mat()) |
| static void | drawBox (cv::Mat &image, const cv::Mat &sHb, int cols, int rows) |
| static void | drawCorrespondences (cv::Mat &image, const cv::Mat &im1, const cv::Mat &im2, const std::vector< cv::KeyPoint > &kp1, const std::vector< cv::KeyPoint > &kp2, const std::vector< int > &c1, const std::vector< int > &c2) |
| static void | drawKeyPoints (cv::Mat &image, const std::vector< cv::KeyPoint > &keypoints) |
| static void | drawReferenceSystem (cv::Mat &image, const cv::Mat &cTo, const cv::Mat &A, const cv::Mat &K=cv::Mat(), float length=0.1) |
| static void | drawReferenceSystem (cv::Mat &image, const cv::Mat &cRo, const cv::Mat &cto, const cv::Mat &A, const cv::Mat &K=cv::Mat(), float length=0.1) |
| static void | saveCorrespondenceImage (const std::string &filename, const cv::Mat &im1, const cv::Mat &im2, const std::vector< cv::KeyPoint > &kp1, const std::vector< cv::KeyPoint > &kp2, const std::vector< int > &c1, const std::vector< int > &c2) |
| static void | saveKeyPointImage (const std::string &filename, const cv::Mat &image, const std::vector< cv::KeyPoint > &keypoints) |
Detailed Description
Definition at line 33 of file Drawing.h.
Member Function Documentation
| void Drawing::drawBox |
( |
cv::Mat & |
image, |
|
|
const cv::Mat & |
cRo, |
|
|
const cv::Mat & |
cto, |
|
|
float |
width, |
|
|
float |
height, |
|
|
const cv::Mat & |
A, |
|
|
const cv::Mat & |
K = cv::Mat() |
|
) |
| [static] |
Draws a rectangle in the image from its location in the 3D space
- Parameters:
-
| image | image to draw |
| cRo | rotation from camera to the center of the rectangle |
| cto | translation from camera to the center of the rectangle |
| width | |
| height | dimensions of the rectangle in metres |
| A | intrinsic camera parameters |
| K | distortion of the camera |
Definition at line 221 of file Drawing.cpp.
| void Drawing::drawBox |
( |
cv::Mat & |
image, |
|
|
const cv::Mat & |
sHb, |
|
|
int |
cols, |
|
|
int |
rows |
|
) |
| [static] |
Draws a rectangle in the image from an homography
- Parameters:
-
| image | image to draw |
| sHb | homography from a orthonormal plane to the image |
| cols | |
| rows | dimensions of the plane in pixels |
Definition at line 252 of file Drawing.cpp.
Creates an image with correspondences
- Parameters:
-
| image | return image |
| im1 | |
| im2 | |
| kp1 | keypoints from im1 |
| kp2 | keypoints from im2 |
| c1 | indices of correspondences from kp1 |
| c2 | indices of correspondences from kp2 |
Definition at line 85 of file Drawing.cpp.
Draws keypoints on an image
- Parameters:
-
Definition at line 34 of file Drawing.cpp.
| void Drawing::drawReferenceSystem |
( |
cv::Mat & |
image, |
|
|
const cv::Mat & |
cTo, |
|
|
const cv::Mat & |
A, |
|
|
const cv::Mat & |
K = cv::Mat(), |
|
|
float |
length = 0.1 |
|
) |
| [static] |
Draws a reference system in the given image with axes x red, y green, z blue
- Parameters:
-
| image | image to draw |
| cTo | transformation from camera to the origin of the drawn reference |
| A | intrinsic camera parameters |
| K | distortion of the camera |
| length | length of axes |
Definition at line 155 of file Drawing.cpp.
| void Drawing::drawReferenceSystem |
( |
cv::Mat & |
image, |
|
|
const cv::Mat & |
cRo, |
|
|
const cv::Mat & |
cto, |
|
|
const cv::Mat & |
A, |
|
|
const cv::Mat & |
K = cv::Mat(), |
|
|
float |
length = 0.1 |
|
) |
| [static] |
Draws a reference system in the given image with axes x red, y green, z blue
- Parameters:
-
| image | image to draw |
| cRo | rotation from camera to the origin of the drawn reference |
| cto | translation from camera to the origin of the drawn reference |
| A | intrinsic camera parameters |
| K | distortion of the camera |
| length | length of axes |
Definition at line 179 of file Drawing.cpp.
Creates and saves an image with correspondences
- Parameters:
-
| filename | file to create |
| im1 | |
| im2 | |
| kp1 | keypoints from im1 |
| kp2 | keypoints from im2 |
| c1 | indices of correspondences from kp1 |
| c2 | indices of correspondences from kp2 |
Definition at line 72 of file Drawing.cpp.
Draws and saves keypoints on an image
- Parameters:
-
Definition at line 62 of file Drawing.cpp.
The documentation for this class was generated from the following files: