$search

cvgeometry.h File Reference

#include <stdio.h>
#include <opencv/cv.h>
Include dependency graph for cvgeometry.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void cvDistort (const CvMat *pIntrinsicDistort, const CvMat *pDistortion, const CvPoint *pSrc, CvPoint *pDes)
 Distorts a point.
void cvDistort (const CvMat *pIntrinsicDistort, const CvMat *pDistortion, const CvPoint2D64f *pSrc, CvPoint2D64f *pDes)
 Distorts a point.
void cvDistort (const double *pIntrinsicDistort, const double *pDistortion, const double *pSrc, double *pDes)
 Distorts a point.
void cvInitUndistortMapExact (const CvMat *pIntrinsicDistort, const CvMat *pDistortion, CvMat *pMapX, CvMat *pMapY)
 Undistort a image by using the equations
x = dx*(1 + k1r^2 + k2r^4) + 2*p1*dx*dy + p2(r^2+2*dx^2)
y = dy*(1 + k1r^2 + k2r^4) + p1(r^2+2*dy^2) + 2*p2*dx*dy.
template<typename A , typename B >
void cvProjectPoint (const CvMat *pMintMext, const A *pSrc, B *pDes)
 projects a 3D point into the image plane
void cvProjectPoint (const CvMat *pMintMext, const CvPoint2D64f *pSrc, CvPoint2D64f *pDes)
 projects a 3D point into the image plane
void cvProjectPoint (const double *pMintMext, const double *pSrc, double *pDes)
 projects a 3D point into the image plane
bool cvUndistort (const CvMat *pIntrinsicDistort, const CvMat *pDistortion, const CvPoint2D64f *pSrc, CvPoint2D64f *pDes, double maxError=1)
 Undistorts a point.
bool cvUndistort (const double *pIntrinsicDistort, const double *pDistortion, const double *pSrc, double *pDes, double maxError=1)
 Undistorts a point.
void cvUndistortExact (const CvMat *pIntrinsicDistort, const CvMat *pDistortion, const IplImage *pSrc, IplImage *pDes)
 Undistort a image by using the equations
x = dx*(1 + k1r^2 + k2r^4) + 2*p1*dx*dy + p2(r^2+2*dx^2)
y = dy*(1 + k1r^2 + k2r^4) + p1(r^2+2*dy^2) + 2*p2*dx*dy.
bool Undistort (const CvMat *pIntrinsicDistort, const CvMat *pDistortion, const CvPoint *pSrc, CvPoint *pDes, double maxError=1)
 Undistorts a point.

Detailed Description

Author:
Markus Bader
Date:
Mo Jul 9 2009
Version:
0.1
See also:

Definition in file cvgeometry.h.


Function Documentation

void cvDistort ( const CvMat *  pIntrinsicDistort,
const CvMat *  pDistortion,
const CvPoint *  pSrc,
CvPoint *  pDes 
) [inline]

Distorts a point.

Parameters:
pIntrinsicDistort Intrinsic Matrinx of the distort image (camera image) in [3x3] matrix
pDistortion DistortionCoeff pointer to an array [k1, k2, p1, p2]
pSrc source point [x, y]
pDes destination point [x, y]

Definition at line 72 of file cvgeometry.h.

void cvDistort ( const CvMat *  pIntrinsicDistort,
const CvMat *  pDistortion,
const CvPoint2D64f *  pSrc,
CvPoint2D64f *  pDes 
) [inline]

Distorts a point.

Parameters:
pIntrinsicDistort Intrinsic Matrinx of the distort image (camera image) in [3x3] matrix
pDistortion DistortionCoeff pointer to an array [k1, k2, p1, p2]
pSrc source point [x, y]
pDes destination point [x, y]

Definition at line 61 of file cvgeometry.h.

void cvDistort ( const double *  pIntrinsicDistort,
const double *  pDistortion,
const double *  pSrc,
double *  pDes 
) [inline]

Distorts a point.

Parameters:
pIntrinsicDistort Intrinsic Matrinx of the distort image (camera image) in [3x3] matrix
pDistortion DistortionCoeff pointer to an array [k1, k2, p1, p2]
pSrc source point [x, y]
pDes destination point [x, y]

Definition at line 25 of file cvgeometry.h.

void cvInitUndistortMapExact ( const CvMat *  pIntrinsicDistort,
const CvMat *  pDistortion,
CvMat *  pMapX,
CvMat *  pMapY 
) [inline]

Undistort a image by using the equations
x = dx*(1 + k1r^2 + k2r^4) + 2*p1*dx*dy + p2(r^2+2*dx^2)
y = dy*(1 + k1r^2 + k2r^4) + p1(r^2+2*dy^2) + 2*p2*dx*dy.

Parameters:
pIntrinsicDistort Intrinsic Matrinx of the distort image (camera image) in [3x3] matrix
pDistortion DistortionCoeff pointer to an array [k1, k2, p1, p2]
pMapX destination X map (it must be of the type 32fC1 -> float)
pMapY destination Y map (it must be of the type 32fC1 -> float)

Definition at line 87 of file cvgeometry.h.

template<typename A , typename B >
void cvProjectPoint ( const CvMat *  pMintMext,
const A pSrc,
B *  pDes 
) [inline]

projects a 3D point into the image plane

Parameters:
pMintMext = Mint*Mext [4x4]
pSrc source point 3D [x, y, z]
pDes destination point 2D [x, y]

Definition at line 207 of file cvgeometry.h.

void cvProjectPoint ( const CvMat *  pMintMext,
const CvPoint2D64f *  pSrc,
CvPoint2D64f *  pDes 
) [inline]

projects a 3D point into the image plane

Parameters:
pMintMext = Mint*Mext [4x4]
pSrc source point 3D [x, y, z]
pDes destination point 2D [x, y]

Definition at line 197 of file cvgeometry.h.

void cvProjectPoint ( const double *  pMintMext,
const double *  pSrc,
double *  pDes 
) [inline]

projects a 3D point into the image plane

Parameters:
pMintMext = Mint*Mext [4x4]
pSrc source point 3D [x, y, z]
pDes destination point 2D [x, y]

Definition at line 183 of file cvgeometry.h.

bool cvUndistort ( const CvMat *  pIntrinsicDistort,
const CvMat *  pDistortion,
const CvPoint2D64f *  pSrc,
CvPoint2D64f *  pDes,
double  maxError = 1 
) [inline]

Undistorts a point.

Parameters:
pIntrinsicDistort Intrinsic Matrinx of the distort image (camera image) in [3x3] matrix
pDistortion DistortionCoeff pointer to an array [k1, k2, p1, p2]
pSrc source point [x, y]
pDes destination point [x, y]

Definition at line 159 of file cvgeometry.h.

bool cvUndistort ( const double *  pIntrinsicDistort,
const double *  pDistortion,
const double *  pSrc,
double *  pDes,
double  maxError = 1 
) [inline]

Undistorts a point.

Parameters:
pIntrinsicDistort Intrinsic Matrinx of the distort image (camera image) in [3x3] matrix
pDistortion DistortionCoeff pointer to an array [k1, k2, p1, p2]
pSrc source point [x, y]
pDes destination point [x, y]

Definition at line 133 of file cvgeometry.h.

void cvUndistortExact ( const CvMat *  pIntrinsicDistort,
const CvMat *  pDistortion,
const IplImage *  pSrc,
IplImage *  pDes 
) [inline]

Undistort a image by using the equations
x = dx*(1 + k1r^2 + k2r^4) + 2*p1*dx*dy + p2(r^2+2*dx^2)
y = dy*(1 + k1r^2 + k2r^4) + p1(r^2+2*dy^2) + 2*p2*dx*dy.

Parameters:
pIntrinsicDistort Intrinsic Matrinx of the distort image (camera image) in [3x3] matrix
pDistortion DistortionCoeff pointer to an array [k1, k2, p1, p2]
pSrc source point [x, y]
pDes destination point [x, y]

Definition at line 117 of file cvgeometry.h.

bool Undistort ( const CvMat *  pIntrinsicDistort,
const CvMat *  pDistortion,
const CvPoint *  pSrc,
CvPoint *  pDes,
double  maxError = 1 
) [inline]

Undistorts a point.

Parameters:
pIntrinsicDistort Intrinsic Matrinx of the distort image (camera image) in [3x3] matrix
pDistortion DistortionCoeff pointer to an array [k1, k2, p1, p2]
pSrc source point [x, y]
pDes destination point [x, y]

Definition at line 170 of file cvgeometry.h.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines


blort
Author(s): Michael Zillich, Thomas Mörwald, Johann Prankl, Andreas Richtsfeld, Bence Magyar (ROS version)
autogenerated on Fri Mar 1 16:57:17 2013