mirror of
https://github.com/opencv/opencv.git
synced 2026-07-31 00:03:03 +04:00
docs: fix typos in documentation and code comments
Fixed 19 typos across 15 files: - properies → properties - posible → possible (2×) - indeces → indices - matrixs → matrices (2×) - grater → greater - whith → with - ouput → output - choosen → chosen (4×) - constains → contains - refrence → reference - dont → don't (4×) - cant → can't
This commit is contained in:
@@ -258,7 +258,7 @@ struct CV_EXPORTS_W_SIMPLE RefineParameters {
|
||||
*/
|
||||
CV_PROP_RW float errorCorrectionRate;
|
||||
|
||||
/** @brief checkAllOrders consider the four posible corner orders in the rejectedCorners array.
|
||||
/** @brief checkAllOrders consider the four possible corner orders in the rejectedCorners array.
|
||||
*
|
||||
* If it set to false, only the provided corner order is considered (default true).
|
||||
*/
|
||||
|
||||
@@ -67,7 +67,7 @@ class CV_EXPORTS_W_SIMPLE Dictionary {
|
||||
|
||||
/** @brief Returns Hamming distance of the input bits to the specific id.
|
||||
*
|
||||
* If `allRotations` flag is set, the four posible marker rotations are considered
|
||||
* If `allRotations` flag is set, the four possible marker rotations are considered
|
||||
*/
|
||||
CV_WRAP int getDistanceToId(InputArray bits, int id, bool allRotations = true) const;
|
||||
|
||||
|
||||
@@ -518,9 +518,9 @@ void CharucoBoardImpl::generateImage(Size outSize, OutputArray img, int marginSi
|
||||
for(int x = 0; x < size.width; x++) {
|
||||
|
||||
if(legacyPattern && (size.height % 2 == 0)) { // legacy behavior only for even row count patterns
|
||||
if((y + 1) % 2 != x % 2) continue; // white corner, dont do anything
|
||||
if((y + 1) % 2 != x % 2) continue; // white corner, don't do anything
|
||||
} else {
|
||||
if(y % 2 != x % 2) continue; // white corner, dont do anything
|
||||
if(y % 2 != x % 2) continue; // white corner, don't do anything
|
||||
}
|
||||
|
||||
float startX = pixInSquare * float(x);
|
||||
|
||||
@@ -1399,7 +1399,7 @@ void ArucoDetector::refineDetectedMarkers(InputArray _image, const Board& _board
|
||||
|
||||
// last filter, check if inner code is close enough to the assigned marker code
|
||||
int codeDistance = 0;
|
||||
// if errorCorrectionRate, dont check code
|
||||
// if errorCorrectionRate, don't check code
|
||||
if(refineParams.errorCorrectionRate >= 0) {
|
||||
|
||||
// extract bits
|
||||
|
||||
@@ -117,7 +117,7 @@ struct CharucoDetector::CharucoDetectorImpl {
|
||||
minDist = min(dist, minDist);
|
||||
counter++;
|
||||
}
|
||||
// if this is the first closest marker, dont do anything
|
||||
// if this is the first closest marker, don't do anything
|
||||
if(counter == 0)
|
||||
continue;
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user