Skip to content

Commit e805a55

Browse files
committed
Misc. modules/ typos (cont.)
Found via `codespell`
1 parent 17233c6 commit e805a55

File tree

35 files changed

+74
-74
lines changed

35 files changed

+74
-74
lines changed

doc/tutorials/imgproc/imgtrans/distance_transformation/distance_transform.markdown

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,16 +27,16 @@ Explanation / Result
2727
@snippet samples/cpp/tutorial_code/ImgTrans/imageSegmentation.cpp load_image
2828
![](images/source.jpeg)
2929

30-
-# Then if we have an image with a white background, it is good to transform it to black. This will help us to descriminate the foreground objects easier when we will apply the Distance Transform:
30+
-# Then if we have an image with a white background, it is good to transform it to black. This will help us to discriminate the foreground objects easier when we will apply the Distance Transform:
3131
@snippet samples/cpp/tutorial_code/ImgTrans/imageSegmentation.cpp black_bg
3232
![](images/black_bg.jpeg)
3333

34-
-# Afterwards we will sharp our image in order to acute the edges of the foreground objects. We will apply a laplacian filter with a quite strong filter (an approximation of second derivative):
34+
-# Afterwards we will sharpen our image in order to acute the edges of the foreground objects. We will apply a laplacian filter with a quite strong filter (an approximation of second derivative):
3535
@snippet samples/cpp/tutorial_code/ImgTrans/imageSegmentation.cpp sharp
3636
![](images/laplace.jpeg)
3737
![](images/sharp.jpeg)
3838

39-
-# Now we transfrom our new sharped source image to a grayscale and a binary one, respectively:
39+
-# Now we transform our new sharpened source image to a grayscale and a binary one, respectively:
4040
@snippet samples/cpp/tutorial_code/ImgTrans/imageSegmentation.cpp bin
4141
![](images/bin.jpeg)
4242

modules/calib3d/src/calibinit.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1391,7 +1391,7 @@ icvCheckQuadGroup( CvCBQuad **quad_group, int quad_count,
13911391
}
13921392
}
13931393

1394-
// start with a corner that belongs to a quad with a signle neighbor.
1394+
// start with a corner that belongs to a quad with a single neighbor.
13951395
// if we do not have such, start with a corner of a quad with two neighbors.
13961396
if( !first )
13971397
first = first2;
@@ -2173,7 +2173,7 @@ bool cv::findCirclesGrid2( InputArray _image, Size patternSize,
21732173
boxFinder.getAsymmetricHoles(centers);
21742174
break;
21752175
default:
2176-
CV_Error(CV_StsBadArg, "Unkown pattern type");
2176+
CV_Error(CV_StsBadArg, "Unknown pattern type");
21772177
}
21782178

21792179
if (i != 0)

modules/calib3d/src/circlesgrid.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -619,7 +619,7 @@ bool CirclesGridFinder::findHoles()
619619
}
620620

621621
default:
622-
CV_Error(Error::StsBadArg, "Unkown pattern type");
622+
CV_Error(Error::StsBadArg, "Unknown pattern type");
623623
}
624624
return (isDetectionCorrect());
625625
//CV_Error( 0, "Detection is not correct" );

modules/calib3d/src/five-point.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -506,7 +506,7 @@ int cv::recoverPose( InputArray E, InputArray _points1, InputArray _points2,
506506
// Do the cheirality check.
507507
// Notice here a threshold dist is used to filter
508508
// out far away points (i.e. infinite points) since
509-
// there depth may vary between postive and negtive.
509+
// their depth may vary between positive and negtive.
510510
std::vector<Mat> allTriangulations(4);
511511
Mat Q;
512512

modules/calib3d/src/opencl/stereobm.cl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ __kernel void stereoBM(__global const uchar * leftptr,
141141
__global const uchar * rightptr,
142142
__global uchar * dispptr, int disp_step, int disp_offset,
143143
int rows, int cols, // rows, cols of left and right images, not disp
144-
int textureTreshold, int uniquenessRatio)
144+
int textureThreshold, int uniquenessRatio)
145145
{
146146
int lz = get_local_id(0);
147147
int gx = get_global_id(1) * BLOCK_SIZE_X;

modules/calib3d/src/p3p.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ int p3p::solve(double R[4][3][3], double t[4][3],
192192
}
193193

194194
/// Given 3D distances between three points and cosines of 3 angles at the apex, calculates
195-
/// the lentghs of the line segments connecting projection center (P) and the three 3D points (A, B, C).
195+
/// the lengths of the line segments connecting projection center (P) and the three 3D points (A, B, C).
196196
/// Returned distances are for |PA|, |PB|, |PC| respectively.
197197
/// Only the solution to the main branch.
198198
/// Reference : X.S. Gao, X.-R. Hou, J. Tang, H.-F. Chang; "Complete Solution Classification for the Perspective-Three-Point Problem"

modules/calib3d/src/polynom_solver.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ int solve_deg3(double a, double b, double c, double d,
3232
double & x0, double & x1, double & x2)
3333
{
3434
if (a == 0) {
35-
// Solve second order sytem
35+
// Solve second order system
3636
if (b == 0) {
3737
// Solve first order system
3838
if (c == 0)

modules/calib3d/src/rho.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,7 @@ static inline void sacSub8x1 (float* Hout,
443443
/**
444444
* External access to context constructor.
445445
*
446-
* @return A pointer to the context if successful; NULL if an error occured.
446+
* @return A pointer to the context if successful; NULL if an error occurred.
447447
*/
448448

449449
Ptr<RHO_HEST> rhoInit(void){
@@ -1205,7 +1205,7 @@ inline void RHO_HEST_REFC::PROSACGoToNextPhase(void){
12051205

12061206
/**
12071207
* Get a sample according to PROSAC rules. Namely:
1208-
* - If we're past the phase end interation, select randomly 4 out of the first
1208+
* - If we're past the phase end interaction, select randomly 4 out of the first
12091209
* phNum matches.
12101210
* - Otherwise, select match phNum-1 and select randomly the 3 others out of
12111211
* the first phNum-1 matches.
@@ -1742,7 +1742,7 @@ inline void RHO_HEST_REFC::updateBounds(void){
17421742
}
17431743

17441744
/**
1745-
* Ouput the best model so far to the output argument.
1745+
* Output the best model so far to the output argument.
17461746
*
17471747
* Reads (direct): arg.finalH, best.H, arg.inl, best.inl, arg.N
17481748
* Reads (callees): arg.finalH, arg.inl, arg.N
@@ -1762,7 +1762,7 @@ inline void RHO_HEST_REFC::outputModel(void){
17621762
}
17631763

17641764
/**
1765-
* Ouput a zeroed H to the output argument.
1765+
* Output a zeroed H to the output argument.
17661766
*
17671767
* Reads (direct): arg.finalH, arg.inl, arg.N
17681768
* Reads (callees): None.

modules/calib3d/test/test_cameracalibration_tilt.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ class cameraCalibrationTiltTest : public ::testing::Test {
8080
static const double m_pointTargetDist;
8181
static const int m_pointTargetNum;
8282

83-
/** image distance coresponding to working distance */
83+
/** image distance corresponding to working distance */
8484
double m_imageDistance;
8585
/** image tilt angle corresponding to the tilt of the object plane */
8686
double m_imageTiltDegree;
@@ -202,7 +202,7 @@ void cameraCalibrationTiltTest::SetUp()
202202
double nearFarFactorImage[2] = {
203203
aperture/(aperture - circleConfusion),
204204
aperture/(aperture + circleConfusion)};
205-
// on the object side - points that determin the field of
205+
// on the object side - points that determine the field of
206206
// view
207207
std::vector<cv::Vec3d> fovBottomTop(6);
208208
std::vector<cv::Vec3d>::iterator itFov = fovBottomTop.begin();
@@ -552,7 +552,7 @@ void showVec(const std::string& name, const INPUT& in, const cv::Mat& est)
552552
For given camera matrix and distortion coefficients
553553
- project point target in different positions onto the sensor
554554
- add pixel noise
555-
- estimate camera modell with noisy measurements
555+
- estimate camera model with noisy measurements
556556
- compare result with initial model parameter
557557
558558
Parameter are differently affected by the noise
@@ -623,7 +623,7 @@ TEST_F(cameraCalibrationTiltTest, calibrateCamera)
623623
cv::TermCriteria::COUNT+cv::TermCriteria::EPS,
624624
50000,
625625
1e-14);
626-
// modell coice
626+
// model choice
627627
int flag =
628628
cv::CALIB_FIX_ASPECT_RATIO |
629629
// cv::CALIB_RATIONAL_MODEL |

modules/calib3d/test/test_posit.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ void CV_POSITTest::run( int start_from )
9494
const float flFocalLength = 760.f;
9595
const float flEpsilon = 0.5f;
9696

97-
/* Initilization */
97+
/* Initialization */
9898
criteria.type = CV_TERMCRIT_EPS|CV_TERMCRIT_ITER;
9999
criteria.epsilon = flEpsilon;
100100
criteria.max_iter = 10000;

0 commit comments

Comments
 (0)