1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-25 21:33:04 +04:00

Misc. ./samples typos

Found via `codespell -q 3 --skip="./3rdparty" -I ../opencv-whitelist.txt`
This commit is contained in:
luz.paz
2018-02-08 05:51:54 -05:00
parent 0c07836fba
commit dbb57cd0ae
36 changed files with 60 additions and 60 deletions
@@ -91,7 +91,7 @@ int main(int argc, char** argv)
char key = 0;
while(key != 'q' && key != 'Q')
{
// those paramaters cannot be =0
// those parameters cannot be =0
// so we must check here
cannyThreshold = std::max(cannyThreshold, 1);
accumulatorThreshold = std::max(accumulatorThreshold, 1);
@@ -96,7 +96,7 @@ void goodFeaturesToTrack_Demo( int, void* )
namedWindow( source_window, WINDOW_AUTOSIZE );
imshow( source_window, copy );
/// Set the neeed parameters to find the refined corners
/// Set the needed parameters to find the refined corners
Size winSize = Size( 5, 5 );
Size zeroZone = Size( -1, -1 );
TermCriteria criteria = TermCriteria( TermCriteria::EPS + TermCriteria::COUNT, 40, 0.001 );
@@ -84,7 +84,7 @@ int main(int argc, char *argv[])
"{keypoints k |2000 | number of keypoints to detect }"
"{ratio r |0.7 | threshold for ratio test }"
"{iterations it |500 | RANSAC maximum iterations count }"
"{error e |2.0 | RANSAC reprojection errror }"
"{error e |2.0 | RANSAC reprojection error }"
"{confidence c |0.95 | RANSAC confidence }"
"{inliers in |30 | minimum inliers for Kalman update }"
"{method pnp |0 | PnP method: (0) ITERATIVE - (1) EPNP - (2) P3P - (3) DLS}"
@@ -13,7 +13,7 @@ static void help( char* progName)
{
cout << endl << progName
<< " shows how to use cv::Mat and IplImages together (converting back and forth)." << endl
<< "Also contains example for image read, spliting the planes, merging back and " << endl
<< "Also contains example for image read, splitting the planes, merging back and " << endl
<< " color conversion, plus iterating through pixels. " << endl
<< "Usage:" << endl
<< progName << " [image-name Default: ../data/lena.jpg]" << endl << endl;
@@ -9,14 +9,14 @@ using namespace cv;
static void help()
{
cout
<< "\n--------------------------------------------------------------------------" << endl
<< "\n---------------------------------------------------------------------------" << endl
<< "This program shows how to create matrices(cv::Mat) in OpenCV and its serial"
<< " out capabilities" << endl
<< "That is, cv::Mat M(...); M.create and cout << M. " << endl
<< "Shows how output can be formated to OpenCV, python, numpy, csv and C styles." << endl
<< "Usage:" << endl
<< "./mat_the_basic_image_container" << endl
<< "--------------------------------------------------------------------------" << endl
<< " out capabilities" << endl
<< "That is, cv::Mat M(...); M.create and cout << M. " << endl
<< "Shows how output can be formatted to OpenCV, python, numpy, csv and C styles." << endl
<< "Usage:" << endl
<< "./mat_the_basic_image_container" << endl
<< "-----------------------------------------------------------------------------" << endl
<< endl;
}
@@ -76,7 +76,7 @@ int main(int,char**)
randu(R, Scalar::all(0), Scalar::all(255));
//! [random]
// Demonstrate the output formating options
// Demonstrate the output formatting options
//! [out-default]
cout << "R (default) = " << endl << R << endl << endl;
//! [out-default]
@@ -15,7 +15,7 @@
* 6- Texture Flattening
* The program takes as input a source and a destination image (for 1-3 methods)
* and ouputs the cloned image.
* and outputs the cloned image.
*
* Download test images from opencv_extra folder @github.
*
@@ -15,7 +15,7 @@
* 6- Texture Flattening
* The program takes as input a source and a destination image (for 1-3 methods)
* and ouputs the cloned image.
* and outputs the cloned image.
* Step 1:
* -> In the source image, select the region of interest by left click mouse button. A Polygon ROI will be created by left clicking mouse button.
@@ -446,7 +446,7 @@ int main()
}
else
{
cout << "Wrong Option Choosen" << endl;
cout << "Wrong Option Chosen" << endl;
exit(0);
}