From 715ca399f1d990b3062fb9a274b919a96e1fed8e Mon Sep 17 00:00:00 2001 From: Gary Bradski Date: Mon, 29 Nov 2010 08:32:57 +0000 Subject: [PATCH] docs --- samples/cpp/calibration_artificial.cpp | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/samples/cpp/calibration_artificial.cpp b/samples/cpp/calibration_artificial.cpp index 3cea1d6092..ef5a02807a 100644 --- a/samples/cpp/calibration_artificial.cpp +++ b/samples/cpp/calibration_artificial.cpp @@ -9,7 +9,14 @@ using namespace cv; using namespace std; - +void help() +{ + cout << "\nThis code generates an artificial camera and artificial chessboard views,\n" + << "and then calibrates. It is basically test code for calibration that shows\n" + << "how to package calibration points and then calibrate the camera.\n" + << "Call:\n" + << "./calibration_artificial\n" << endl; +} namespace cv { @@ -53,8 +60,11 @@ template ostream& operator<<(ostream& out, const Mat_& mat) return out; } + + int main() { + help(); cout << "Initializing background..."; Mat background(imgSize, CV_8UC3); randu(background, Scalar::all(32), Scalar::all(255));