Commit 715ca399 authored by Gary Bradski's avatar Gary Bradski

docs

parent 8c48f3be
...@@ -9,7 +9,14 @@ ...@@ -9,7 +9,14 @@
using namespace cv; using namespace cv;
using namespace std; 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 namespace cv
{ {
...@@ -53,8 +60,11 @@ template<class T> ostream& operator<<(ostream& out, const Mat_<T>& mat) ...@@ -53,8 +60,11 @@ template<class T> ostream& operator<<(ostream& out, const Mat_<T>& mat)
return out; return out;
} }
int main() int main()
{ {
help();
cout << "Initializing background..."; cout << "Initializing background...";
Mat background(imgSize, CV_8UC3); Mat background(imgSize, CV_8UC3);
randu(background, Scalar::all(32), Scalar::all(255)); randu(background, Scalar::all(32), Scalar::all(255));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment