Static Public Member Functions
DUtilsCV::Drawing Class Reference

#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:
imageimage to draw
cRorotation from camera to the center of the rectangle
ctotranslation from camera to the center of the rectangle
width
heightdimensions of the rectangle in metres
Aintrinsic camera parameters
Kdistortion 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:
imageimage to draw
sHbhomography from a orthonormal plane to the image
cols
rowsdimensions of the plane in pixels

Definition at line 252 of file Drawing.cpp.

void Drawing::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]

Creates an image with correspondences

Parameters:
imagereturn image
im1
im2
kp1keypoints from im1
kp2keypoints from im2
c1indices of correspondences from kp1
c2indices of correspondences from kp2

Definition at line 85 of file Drawing.cpp.

void Drawing::drawKeyPoints ( cv::Mat &  image,
const std::vector< cv::KeyPoint > &  keypoints 
) [static]

Draws keypoints on an image

Parameters:
image
keypoints

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:
imageimage to draw
cTotransformation from camera to the origin of the drawn reference
Aintrinsic camera parameters
Kdistortion of the camera
lengthlength 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:
imageimage to draw
cRorotation from camera to the origin of the drawn reference
ctotranslation from camera to the origin of the drawn reference
Aintrinsic camera parameters
Kdistortion of the camera
lengthlength of axes

Definition at line 179 of file Drawing.cpp.

void Drawing::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]

Creates and saves an image with correspondences

Parameters:
filenamefile to create
im1
im2
kp1keypoints from im1
kp2keypoints from im2
c1indices of correspondences from kp1
c2indices of correspondences from kp2

Definition at line 72 of file Drawing.cpp.

void Drawing::saveKeyPointImage ( const std::string &  filename,
const cv::Mat &  image,
const std::vector< cv::KeyPoint > &  keypoints 
) [static]

Draws and saves keypoints on an image

Parameters:
filename
image
keypoints

Definition at line 62 of file Drawing.cpp.


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


re_vision
Author(s): Dorian Galvez-Lopez
autogenerated on Sun Jan 5 2014 11:34:29