66 const CByteImage *pImage,
int nColumns,
int nRows,
float fSquareSize,
69 printf(
"not yet implemented\n");
77 const Vec3d worldPointX = { 2.0f * fSquareSize, 0.0f, 0.0f };
78 const Vec3d worldPointY = { 0.0f, 2.0f * fSquareSize, 0.0f };
80 Vec2d imagePoint0, imagePointX, imagePointY;
89 if (pPoints && nPoints > 0)
94 for (
int i = 0; i < nPoints; i++)
97 hsv2rgb(
int(
float(i) / (nPoints - 1) * 240), 255, 255, r, g, b);
void hsv2rgb(int h, int s, int v, int &r, int &g, int &b)
Data structure for the representation of a 3D vector.
Data structure for the representation of 8-bit grayscale images and 24-bit RGB (or HSV) color images ...
void DrawCircle(CByteImage *pImage, float mx, float my, float radius, int r=255, int g=255, int b=255, int thickness=1, bool bAntiAlias=false)
Draws a circle into a CByteImage.
bool GetPointsAndTranslationAndRotation(const CCalibration *pCalibration, const CByteImage *pImage, int nColumns, int nRows, float fSquareSize, Vec2d *pPoints, Mat3d &rotation, Vec3d &translation)
void DrawLine(CByteImage *pImage, const PointPair2d &line, int r=255, int g=255, int b=255, int thickness=1)
Draws a line segment into a CByteImage, given its two end points.
GLdouble GLdouble GLdouble r
Data structure for the representation of a 2D vector.
void SetVec(Vec2d &vec, float x, float y)
void DrawExtrinsic(CByteImage *pResultImage, const CCalibration *pCalibration, const Vec2d *pPoints, int nPoints, float fSquareSize)
Data structure for the representation of a 3x3 matrix.
Camera model parameters and functions for a single camera.
void WorldToImageCoordinates(const Vec3d &worldPoint, Vec2d &imagePoint, bool bUseDistortionParameters=true) const
Transforms 3D world coordinates to 2D image coordinates.