From 5b8c0981ff36724cc0315ec7111050daeb9c0787 Mon Sep 17 00:00:00 2001 From: Fabien Spindler Date: Sat, 12 Feb 2022 17:15:18 +0100 Subject: [PATCH] Fix lintain spelling-error-in-binary (see https://lintian.debian.org/sources/visp) --- 3rdparty/apriltag/common/matd.cpp | 2 +- 3rdparty/atidaq/xmlparse.h | 10 +++---- 3rdparty/atidaq/xmltok.h | 6 ++-- 3rdparty/catch2/catch.hpp | 28 +++++++++---------- 3rdparty/clapack/include/f2c.h | 4 +-- 3rdparty/pugixml-1.9/pugixml.cpp | 12 ++++---- 3rdparty/pugixml-1.9/pugixml.hpp | 2 +- 3rdparty/reflex-takktile2/reflex_driver2.cpp | 2 +- 3rdparty/simdlib/Simd/SimdPerformance.h | 2 +- modules/core/include/visp3/core/vpEndian.h | 2 +- modules/core/include/visp3/core/vpImage.h | 4 +-- modules/core/include/visp3/core/vpMatrix.h | 2 +- .../core/include/visp3/core/vpMomentAlpha.h | 4 +-- .../include/visp3/core/vpMomentDatabase.h | 2 +- .../include/visp3/core/vpQuaternionVector.h | 2 +- .../include/visp3/core/vpTranslationVector.h | 2 +- modules/core/src/image/vpImagePoint.cpp | 6 ++-- modules/core/src/image/vpRGBa.cpp | 8 +++--- .../core/src/math/kalman/vpKalmanFilter.cpp | 2 +- modules/core/src/math/matrix/vpColVector.cpp | 8 +++--- modules/core/src/math/matrix/vpMatrix.cpp | 16 +++++------ modules/core/src/math/matrix/vpRowVector.cpp | 8 +++--- .../core/src/math/matrix/vpSubColVector.cpp | 2 +- .../core/src/math/matrix/vpSubRowVector.cpp | 2 +- .../src/math/transformation/vpPoseVector.cpp | 4 +-- .../transformation/vpQuaternionVector.cpp | 6 ++-- .../transformation/vpTranslationVector.cpp | 8 +++--- modules/core/src/tools/serial/vpSerial.cpp | 2 +- .../core/src/tracking/moments/vpMoment.cpp | 4 +-- .../image-with-dataset/perfImageAddSub.cpp | 4 +-- .../image-with-dataset/testImageAddSub.cpp | 4 +-- modules/detection/src/dnn/vpDetectorDNN.cpp | 2 +- .../detection/src/tag/vpDetectorAprilTag.cpp | 4 +-- .../include/visp3/imgproc/vpContours.h | 2 +- modules/java/generator/gen_java.py | 2 +- .../src/real-robot/afma4/vpRobotAfma4.cpp | 2 +- .../src/real-robot/afma4/vpServolens.cpp | 2 +- .../src/real-robot/afma6/vpRobotAfma6.cpp | 2 +- .../src/real-robot/viper/vpRobotViper650.cpp | 2 +- .../src/real-robot/viper/vpRobotViper850.cpp | 2 +- .../vpWireFrameSimulator.cpp | 22 +++++++-------- .../framegrabber/1394/vp1394TwoGrabber.cpp | 2 +- .../directshow/vpDirectShowGrabberImpl.cpp | 4 +-- .../directshow/vpDirectShowSampleGrabberI.cpp | 4 +-- .../mbt/include/visp3/mbt/vpMbTracker.h | 2 +- .../mbt/src/depth/vpMbtFaceDepthNormal.cpp | 4 +-- .../me/src/moving-edges/vpMeEllipse.cpp | 4 +-- .../src/visual-feature/vpFeatureMoment.cpp | 2 +- .../visual-feature/vpFeaturePointPolar.cpp | 2 +- .../src/visual-feature/vpFeatureSegment.cpp | 2 +- 50 files changed, 119 insertions(+), 119 deletions(-) diff --git a/3rdparty/apriltag/common/matd.cpp b/3rdparty/apriltag/common/matd.cpp index c5e85c0594..ac57039dd4 100644 --- a/3rdparty/apriltag/common/matd.cpp +++ b/3rdparty/apriltag/common/matd.cpp @@ -786,7 +786,7 @@ static matd_t *matd_op_recurse(const char *expr, int *pos, matd_t *acc, matd_t * } default: { - fprintf(stderr, "matd_op(): Unknown character: '%c'\n", expr[*pos]); + fprintf(stderr, "matd_op(): Unknownn character: '%c'\n", expr[*pos]); assert(expr[*pos] != expr[*pos]); } } diff --git a/3rdparty/atidaq/xmlparse.h b/3rdparty/atidaq/xmlparse.h index d9e61cf945..3b9b6953c9 100644 --- a/3rdparty/atidaq/xmlparse.h +++ b/3rdparty/atidaq/xmlparse.h @@ -224,7 +224,7 @@ typedef int (*XML_ExternalEntityRefHandler)(XML_Parser parser, const XML_Char *systemId, const XML_Char *publicId); -/* This structure is filled in by the XML_UnknownEncodingHandler +/* This structure is filled in by the XML_UnknownnEncodingHandler to provide information to the parser about encodings that are unknown to the parser. The map[b] member gives information about byte sequences @@ -274,7 +274,7 @@ typedef struct { /* This is called for an encoding that is unknown to the parser. The encodingHandlerData argument is that which was passed as the -second argument to XML_SetUnknownEncodingHandler. +second argument to XML_SetUnknownnEncodingHandler. The name argument gives the name of the encoding as specified in the encoding declaration. If the callback can provide information about the encoding, @@ -283,7 +283,7 @@ Otherwise it must return 0. If info does not describe a suitable encoding, then the parser will return an XML_UNKNOWN_ENCODING error. */ -typedef int (*XML_UnknownEncodingHandler)(void *encodingHandlerData, +typedef int (*XML_UnknownnEncodingHandler)(void *encodingHandlerData, const XML_Char *name, XML_Encoding *info); @@ -363,8 +363,8 @@ void XMLPARSEAPI XML_SetExternalEntityRefHandlerArg(XML_Parser, void *arg); void XMLPARSEAPI -XML_SetUnknownEncodingHandler(XML_Parser parser, - XML_UnknownEncodingHandler handler, +XML_SetUnknownnEncodingHandler(XML_Parser parser, + XML_UnknownnEncodingHandler handler, void *encodingHandlerData); /* This can be called within a handler for a start element, end element, diff --git a/3rdparty/atidaq/xmltok.h b/3rdparty/atidaq/xmltok.h index 4a83a1aac1..80d6dbf3ea 100644 --- a/3rdparty/atidaq/xmltok.h +++ b/3rdparty/atidaq/xmltok.h @@ -289,9 +289,9 @@ const ENCODING XMLTOKAPI *XmlGetUtf16InternalEncoding(void); int XMLTOKAPI XmlUtf8Encode(int charNumber, char *buf); int XMLTOKAPI XmlUtf16Encode(int charNumber, unsigned short *buf); -int XMLTOKAPI XmlSizeOfUnknownEncoding(void); +int XMLTOKAPI XmlSizeOfUnknownnEncoding(void); ENCODING XMLTOKAPI * -XmlInitUnknownEncoding(void *mem, +XmlInitUnknownnEncoding(void *mem, int *table, int (*conv)(void *userData, const char *p), void *userData); @@ -309,7 +309,7 @@ int XMLTOKAPI XmlInitEncodingNS(INIT_ENCODING *, const ENCODING **, const char * const ENCODING XMLTOKAPI *XmlGetUtf8InternalEncodingNS(void); const ENCODING XMLTOKAPI *XmlGetUtf16InternalEncodingNS(void); ENCODING XMLTOKAPI * -XmlInitUnknownEncodingNS(void *mem, +XmlInitUnknownnEncodingNS(void *mem, int *table, int (*conv)(void *userData, const char *p), void *userData); diff --git a/3rdparty/catch2/catch.hpp b/3rdparty/catch2/catch.hpp index 86a02c2781..0c5421b311 100644 --- a/3rdparty/catch2/catch.hpp +++ b/3rdparty/catch2/catch.hpp @@ -1349,7 +1349,7 @@ namespace Catch { // ResultWas::OfType enum struct ResultWas { enum OfType { - Unknown = -1, + Unknownn = -1, Ok = 0, Info = 1, Warning = 2, @@ -1572,7 +1572,7 @@ namespace Catch { }; template - std::string convertUnknownEnumToString( E e ); + std::string convertUnknownnEnumToString( E e ); template typename std::enable_if< @@ -1591,7 +1591,7 @@ namespace Catch { typename std::enable_if< std::is_enum::value , std::string>::type convertUnstreamable( T const& value ) { - return convertUnknownEnumToString( value ); + return convertUnknownnEnumToString( value ); } #if defined(_MANAGED) @@ -1644,7 +1644,7 @@ namespace Catch { } template - std::string convertUnknownEnumToString( E e ) { + std::string convertUnknownnEnumToString( E e ) { return ::Catch::Detail::stringify(static_cast::type>(e)); } @@ -10134,7 +10134,7 @@ namespace { case Colour::Bright: CATCH_INTERNAL_ERROR( "not a colour" ); default: - CATCH_ERROR( "Unknown colour requested" ); + CATCH_ERROR( "Unknownn colour requested" ); } } @@ -10195,7 +10195,7 @@ namespace { case Colour::BrightYellow: return setColour( "[1;33m" ); case Colour::Bright: CATCH_INTERNAL_ERROR( "not a colour" ); - default: CATCH_INTERNAL_ERROR( "Unknown colour requested" ); + default: CATCH_INTERNAL_ERROR( "Unknownn colour requested" ); } } static IColourImpl* instance() { @@ -10721,7 +10721,7 @@ namespace Catch { return msg; } catch(...) { - return "Unknown exception"; + return "Unknownn exception"; } } @@ -11596,7 +11596,7 @@ namespace Floating { case FloatingPointKind::Double: return almostEqualUlps(matchee, m_target, m_ulps); default: - CATCH_INTERNAL_ERROR( "Unknown FloatingPointKind value" ); + CATCH_INTERNAL_ERROR( "Unknownn FloatingPointKind value" ); } } @@ -12809,7 +12809,7 @@ namespace Catch { } void RunContext::resetAssertionInfo() { m_lastAssertionInfo.macroName = StringRef(); - m_lastAssertionInfo.capturedExpression = "{Unknown expression after the reported line}"_sr; + m_lastAssertionInfo.capturedExpression = "{Unknownn expression after the reported line}"_sr; } bool RunContext::sectionStarted(SectionInfo const & sectionInfo, Counts & assertions) { @@ -14471,7 +14471,7 @@ namespace TestCaseTracking { CATCH_INTERNAL_ERROR( "Illogical state: " << m_runState ); default: - CATCH_INTERNAL_ERROR( "Unknown state: " << m_runState ); + CATCH_INTERNAL_ERROR( "Unknownn state: " << m_runState ); } moveToParent(); m_ctx.completeCycle(); @@ -15416,7 +15416,7 @@ namespace Catch { case WildcardAtBothEnds: return contains( normaliseString( str ), m_pattern ); default: - CATCH_INTERNAL_ERROR( "Unknown enum" ); + CATCH_INTERNAL_ERROR( "Unknownn enum" ); } } @@ -15957,7 +15957,7 @@ class AssertionPrinter { printRemainingMessages(Colour::None); break; // These cases are here to prevent compiler warnings - case ResultWas::Unknown: + case ResultWas::Unknownn: case ResultWas::FailureBit: case ResultWas::Exception: printResultType(Colour::Error, "** internal error **"); @@ -16194,7 +16194,7 @@ class ConsoleAssertionPrinter { messageLabel = "explicitly with messages"; break; // These cases are here to prevent compiler warnings - case ResultWas::Unknown: + case ResultWas::Unknownn: case ResultWas::FailureBit: case ResultWas::Exception: passOrFail = "** internal error **"; @@ -17030,7 +17030,7 @@ namespace Catch { case ResultWas::Info: case ResultWas::Warning: case ResultWas::Ok: - case ResultWas::Unknown: + case ResultWas::Unknownn: case ResultWas::FailureBit: case ResultWas::Exception: elementName = "internalError"; diff --git a/3rdparty/clapack/include/f2c.h b/3rdparty/clapack/include/f2c.h index b94ee7c8e1..b7e1b4590d 100644 --- a/3rdparty/clapack/include/f2c.h +++ b/3rdparty/clapack/include/f2c.h @@ -168,7 +168,7 @@ typedef struct Namelist Namelist; #define F2C_proc_par_types 1 #ifdef __cplusplus -typedef int /* Unknown procedure type */ (*U_fp)(...); +typedef int /* Unknownn procedure type */ (*U_fp)(...); typedef shortint (*J_fp)(...); typedef integer (*I_fp)(...); typedef real (*R_fp)(...); @@ -180,7 +180,7 @@ typedef shortlogical (*K_fp)(...); typedef /* Character */ VOID (*H_fp)(...); typedef /* Subroutine */ int (*S_fp)(...); #else -typedef int /* Unknown procedure type */ (*U_fp)(); +typedef int /* Unknownn procedure type */ (*U_fp)(); typedef shortint (*J_fp)(); typedef integer (*I_fp)(); typedef real (*R_fp)(); diff --git a/3rdparty/pugixml-1.9/pugixml.cpp b/3rdparty/pugixml-1.9/pugixml.cpp index c46335b4b2..a0d262855e 100644 --- a/3rdparty/pugixml-1.9/pugixml.cpp +++ b/3rdparty/pugixml-1.9/pugixml.cpp @@ -6830,7 +6830,7 @@ namespace pugi case status_no_document_element: return "No document element found"; - default: return "Unknown error"; + default: return "Unknownn error"; } } @@ -9783,7 +9783,7 @@ PUGI__NS_BEGIN break; default: - assert(false && "Unknown axis"); // unreachable + assert(false && "Unknownn axis"); // unreachable } return false; @@ -10809,7 +10809,7 @@ PUGI__NS_BEGIN return step_do(c, stack, eval, axis_to_type()); default: - assert(false && "Unknown axis"); // unreachable + assert(false && "Unknownn axis"); // unreachable return xpath_node_set_raw(); } } @@ -11296,14 +11296,14 @@ PUGI__NS_BEGIN xpath_lexer_string name = _lexer.contents(); if (!_variables) - return error("Unknown variable: variable set is not provided"); + return error("Unknownn variable: variable set is not provided"); xpath_variable* var = 0; if (!get_variable_scratch(_scratch, _variables, name.begin, name.end, &var)) return error_oom(); if (!var) - return error("Unknown variable: variable set does not contain the given name"); + return error("Unknownn variable: variable set does not contain the given name"); _lexer.next(); @@ -11478,7 +11478,7 @@ PUGI__NS_BEGIN axis = parse_axis_name(nt_name, axis_specified); if (!axis_specified) - return error("Unknown axis"); + return error("Unknownn axis"); // read actual node test _lexer.next(); diff --git a/3rdparty/pugixml-1.9/pugixml.hpp b/3rdparty/pugixml-1.9/pugixml.hpp index ea252d9361..6563db9d19 100644 --- a/3rdparty/pugixml-1.9/pugixml.hpp +++ b/3rdparty/pugixml-1.9/pugixml.hpp @@ -1072,7 +1072,7 @@ namespace pugi // XPath query return type enum xpath_value_type { - xpath_type_none, // Unknown type (query failed to compile) + xpath_type_none, // Unknownn type (query failed to compile) xpath_type_node_set, // Node set (xpath_node_set) xpath_type_number, // Number xpath_type_string, // String diff --git a/3rdparty/reflex-takktile2/reflex_driver2.cpp b/3rdparty/reflex-takktile2/reflex_driver2.cpp index 03da8c499b..673b60819e 100644 --- a/3rdparty/reflex-takktile2/reflex_driver2.cpp +++ b/3rdparty/reflex-takktile2/reflex_driver2.cpp @@ -56,7 +56,7 @@ void ReflexDriver::open(const std::string &network_interface_, load_params(); populate_tactile_thresholds(DEFAULT_CONTACT_THRESHOLD); - // Intialize the reflex_hand object + // initialize the reflex_hand object printf("Starting reflex_hand_driver on network interface %s.\n", network_interface_.c_str()); rh = &reflex_hand; diff --git a/3rdparty/simdlib/Simd/SimdPerformance.h b/3rdparty/simdlib/Simd/SimdPerformance.h index e695326a69..3c93b3a82d 100644 --- a/3rdparty/simdlib/Simd/SimdPerformance.h +++ b/3rdparty/simdlib/Simd/SimdPerformance.h @@ -66,7 +66,7 @@ namespace Simd bool _entered, _paused; public: - PerformanceMeasurer(const String& name = "Unknown", int64_t flop = 0); + PerformanceMeasurer(const String& name = "Unknownn", int64_t flop = 0); PerformanceMeasurer(const PerformanceMeasurer& pm); diff --git a/modules/core/include/visp3/core/vpEndian.h b/modules/core/include/visp3/core/vpEndian.h index c432e53bd0..c27219254d 100644 --- a/modules/core/include/visp3/core/vpEndian.h +++ b/modules/core/include/visp3/core/vpEndian.h @@ -66,7 +66,7 @@ typedef unsigned short uint16_t; #define VISP_PDP_ENDIAN //#error PDP endian is not supported. //Uncomment if needed/happens #else -#error Unknown machine endianness detected. +#error Unknownn machine endianness detected. #endif #elif defined(_BIG_ENDIAN) && !defined(_LITTLE_ENDIAN) || defined(__BIG_ENDIAN__) && !defined(__LITTLE_ENDIAN__) #define VISP_BIG_ENDIAN diff --git a/modules/core/include/visp3/core/vpImage.h b/modules/core/include/visp3/core/vpImage.h index 66745775fa..de34e8ca00 100644 --- a/modules/core/include/visp3/core/vpImage.h +++ b/modules/core/include/visp3/core/vpImage.h @@ -1629,7 +1629,7 @@ template void vpImage::sub(const vpImage &B, vpImagegetWidth() != B.getWidth()) || (this->getHeight() != B.getHeight())) { - throw(vpException(vpException::memoryAllocationError, "vpImage mismatch in vpImage/vpImage substraction ")); + throw(vpException(vpException::memoryAllocationError, "vpImage mismatch in vpImage/vpImage subtraction")); } for (unsigned int i = 0; i < this->getWidth() * this->getHeight(); i++) { @@ -1660,7 +1660,7 @@ template void vpImage::sub(const vpImage &A, const vpIm } if ((A.getWidth() != B.getWidth()) || (A.getHeight() != B.getHeight())) { - throw(vpException(vpException::memoryAllocationError, "vpImage mismatch in vpImage/vpImage substraction ")); + throw(vpException(vpException::memoryAllocationError, "vpImage mismatch in vpImage/vpImage subtraction ")); } for (unsigned int i = 0; i < A.getWidth() * A.getHeight(); i++) { diff --git a/modules/core/include/visp3/core/vpMatrix.h b/modules/core/include/visp3/core/vpMatrix.h index 8af47dad85..2eeabee2cd 100644 --- a/modules/core/include/visp3/core/vpMatrix.h +++ b/modules/core/include/visp3/core/vpMatrix.h @@ -383,7 +383,7 @@ vpMatrix M(R); //! Add x to all the element of the matrix : Aij = Aij + x vpMatrix &operator+=(double x); - //! Substract x to all the element of the matrix : Aij = Aij - x + //! subtract x to all the element of the matrix : Aij = Aij - x vpMatrix &operator-=(double x); //! Multiply all the element of the matrix by x : Aij = Aij * x vpMatrix &operator*=(double x); diff --git a/modules/core/include/visp3/core/vpMomentAlpha.h b/modules/core/include/visp3/core/vpMomentAlpha.h index 63264d9aa4..dc54ed81d5 100644 --- a/modules/core/include/visp3/core/vpMomentAlpha.h +++ b/modules/core/include/visp3/core/vpMomentAlpha.h @@ -58,7 +58,7 @@ interval by the formula \f$ \alpha = \frac{1}{2} \mathrm{atan2}(2\mu_{11}, \mu_{20}-\mu_{02}) \f$. - To obtain a \f$ [-\pi ; \pi] \f$ precision for non symetric object, you + To obtain a \f$ [-\pi ; \pi] \f$ precision for non symmetric object, you have to specify a reference information. This reference information is an alpha computed using the previous formula in \f$ [-\pi/2 ; \pi/2] \f$. Obtaining this precision comes from third-order centered moments and this @@ -155,7 +155,7 @@ int main() vpMomentDatabase db; // Database vpMomentGravityCenter g; // Declaration of gravity center - vpMomentCentered mc; // mc containts centered moments + vpMomentCentered mc; // mc contains centered moments vpMomentAlpha alpha(mu3ref, alphaRef.get()); // Declare alpha as relative to a reference g.linkTo(db); // Add gravity center to database diff --git a/modules/core/include/visp3/core/vpMomentDatabase.h b/modules/core/include/visp3/core/vpMomentDatabase.h index 4e7303f8f8..988e56ffdc 100644 --- a/modules/core/include/visp3/core/vpMomentDatabase.h +++ b/modules/core/include/visp3/core/vpMomentDatabase.h @@ -94,7 +94,7 @@ int main() vpMomentDatabase db; vpMomentGravityCenter g; // declaration of gravity center - vpMomentCentered mc; // mc containts centered moments + vpMomentCentered mc; // mc contains centered moments g.linkTo(db); //add gravity center to database mc.linkTo(db); //centered moments depend on gravity, add them to the diff --git a/modules/core/include/visp3/core/vpQuaternionVector.h b/modules/core/include/visp3/core/vpQuaternionVector.h index cfb9ac0750..178b07a647 100644 --- a/modules/core/include/visp3/core/vpQuaternionVector.h +++ b/modules/core/include/visp3/core/vpQuaternionVector.h @@ -73,7 +73,7 @@ It also defines common operations on a quaternion such as: - multiplication (scalar and quaternion) - addition - - substraction. + - subtraction. You can set values accessing each element: \code diff --git a/modules/core/include/visp3/core/vpTranslationVector.h b/modules/core/include/visp3/core/vpTranslationVector.h index 9403b8884d..8c94ec14c5 100644 --- a/modules/core/include/visp3/core/vpTranslationVector.h +++ b/modules/core/include/visp3/core/vpTranslationVector.h @@ -143,7 +143,7 @@ class VISP_EXPORT vpTranslationVector : public vpArray2D // translation vectors additions c = a + b (a, b unchanged) vpTranslationVector operator+(const vpTranslationVector &tv) const; vpTranslationVector operator+(const vpColVector &v) const; - // translation vectors substraction c = a - b (a, b unchanged) + // translation vectors subtraction c = a - b (a, b unchanged) vpTranslationVector operator-(const vpTranslationVector &tv) const; // negate t = -a (t is unchanged) vpTranslationVector operator-() const; diff --git a/modules/core/src/image/vpImagePoint.cpp b/modules/core/src/image/vpImagePoint.cpp index 510b2131e1..fd9ccc76b3 100644 --- a/modules/core/src/image/vpImagePoint.cpp +++ b/modules/core/src/image/vpImagePoint.cpp @@ -266,7 +266,7 @@ VISP_EXPORT vpImagePoint operator-(const vpImagePoint &ip1, const vpImagePoint & /*! \relates vpImagePoint - Returns a vpImagePoint with an offset substracted to the two coordinates. + Returns a vpImagePoint with an offset subtracted to the two coordinates. \code #include @@ -290,7 +290,7 @@ VISP_EXPORT vpImagePoint operator-(const vpImagePoint &ip1, int offset) /*! \relates vpImagePoint - Returns a vpImagePoint with an offset substracted to the two coordinates. + Returns a vpImagePoint with an offset subtracted to the two coordinates. \code #include @@ -314,7 +314,7 @@ VISP_EXPORT vpImagePoint operator-(const vpImagePoint &ip1, unsigned int offset) /*! \relates vpImagePoint - Returns a vpImagePoint with an offset substracted to the two coordinates. + Returns a vpImagePoint with an offset subtracted to the two coordinates. \code #include diff --git a/modules/core/src/image/vpRGBa.cpp b/modules/core/src/image/vpRGBa.cpp index 652be9e1ac..db49bed305 100644 --- a/modules/core/src/image/vpRGBa.cpp +++ b/modules/core/src/image/vpRGBa.cpp @@ -136,8 +136,8 @@ bool vpRGBa::operator==(const vpRGBa &v) bool vpRGBa::operator!=(const vpRGBa &v) { return (R != v.R || G != v.G || B != v.B || A != v.A); } /*! - Substraction operator : "this" - v. - \param v : Color to substract to the current object "this". + subtraction operator : "this" - v. + \param v : Color to subtract to the current object "this". \return "this" - v */ vpColVector vpRGBa::operator-(const vpRGBa &v) const @@ -167,8 +167,8 @@ vpRGBa vpRGBa::operator+(const vpRGBa &v) const } /*! - Substraction operator : "this" - v. - \param v : Color to substract to the current object "this". + subtraction operator : "this" - v. + \param v : Color to subtract to the current object "this". \return "this" - v */ vpColVector vpRGBa::operator-(const vpColVector &v) const diff --git a/modules/core/src/math/kalman/vpKalmanFilter.cpp b/modules/core/src/math/kalman/vpKalmanFilter.cpp index 664b38dfbd..c86a483537 100644 --- a/modules/core/src/math/kalman/vpKalmanFilter.cpp +++ b/modules/core/src/math/kalman/vpKalmanFilter.cpp @@ -199,7 +199,7 @@ void vpKalmanFilter::prediction() and where the updated covariance of the state is given by \f[ {\bf P}_{k \mid k} = \left({\bf I} - {\bf W}_k {\bf H} \right) {\bf P}_{k - \mid k-1} \f] or in a symetric form \f[ + \mid k-1} \f] or in a symmetric form \f[ {\bf P}_{k \mid k} = {\bf P}_{k \mid k-1} - {\bf W}_k {\bf S}_k {\bf W}^T_k \f] with diff --git a/modules/core/src/math/matrix/vpColVector.cpp b/modules/core/src/math/matrix/vpColVector.cpp index 54ad8141c5..c89bb328a5 100644 --- a/modules/core/src/math/matrix/vpColVector.cpp +++ b/modules/core/src/math/matrix/vpColVector.cpp @@ -120,11 +120,11 @@ vpColVector &vpColVector::operator+=(vpColVector v) (*this)[i] += v[i]; return (*this); } -//! Operator that allows to substract two column vectors. +//! Operator that allows to subtract two column vectors. vpColVector &vpColVector::operator-=(vpColVector v) { if (getRows() != v.getRows()) { - throw(vpException(vpException::dimensionError, "Cannot substract (%dx1) column vector to (%dx1) column vector", + throw(vpException(vpException::dimensionError, "Cannot subtract (%dx1) column vector to (%dx1) column vector", getRows(), v.getRows())); } @@ -175,13 +175,13 @@ vpMatrix vpColVector::operator*(const vpRowVector &v) const return M; } -//! operator substraction of two vectors V = A-v +//! operator subtraction of two vectors V = A-v vpColVector vpColVector::operator-(const vpColVector &m) const { if (getRows() != m.getRows()) { throw(vpException(vpException::dimensionError, "Bad size during vpColVector (%dx1) and vpColVector " - "(%dx1) substraction", + "(%dx1) subtraction", getRows(), m.getRows())); } vpColVector v(rowNum); diff --git a/modules/core/src/math/matrix/vpMatrix.cpp b/modules/core/src/math/matrix/vpMatrix.cpp index bef85d7cb9..2ca2730aec 100644 --- a/modules/core/src/math/matrix/vpMatrix.cpp +++ b/modules/core/src/math/matrix/vpMatrix.cpp @@ -1435,7 +1435,7 @@ void vpMatrix::sub2Matrices(const vpColVector &A, const vpColVector &B, vpColVec C.resize(A.rowNum); if ((A.colNum != B.getCols()) || (A.rowNum != B.getRows())) { - throw(vpException(vpException::dimensionError, "Cannot substract (%dx%d) matrix to (%dx%d) matrix", A.getRows(), + throw(vpException(vpException::dimensionError, "Cannot subtract (%dx%d) matrix to (%dx%d) matrix", A.getRows(), A.getCols(), B.getRows(), B.getCols())); } @@ -1468,7 +1468,7 @@ void vpMatrix::sub2Matrices(const vpMatrix &A, const vpMatrix &B, vpMatrix &C) C.resize(A.rowNum, A.colNum, false, false); if ((A.colNum != B.getCols()) || (A.rowNum != B.getRows())) { - throw(vpException(vpException::dimensionError, "Cannot substract (%dx%d) matrix to (%dx%d) matrix", A.getRows(), + throw(vpException(vpException::dimensionError, "Cannot subtract (%dx%d) matrix to (%dx%d) matrix", A.getRows(), A.getCols(), B.getRows(), B.getCols())); } @@ -1516,7 +1516,7 @@ vpMatrix &vpMatrix::operator+=(const vpMatrix &B) vpMatrix &vpMatrix::operator-=(const vpMatrix &B) { if ((colNum != B.getCols()) || (rowNum != B.getRows())) { - throw(vpException(vpException::dimensionError, "Cannot substract (%dx%d) matrix to (%dx%d) matrix", rowNum, colNum, + throw(vpException(vpException::dimensionError, "Cannot subtract (%dx%d) matrix to (%dx%d) matrix", rowNum, colNum, B.getRows(), B.getCols())); } @@ -1658,7 +1658,7 @@ vpMatrix &vpMatrix::operator+=(double x) return *this; } -//! Substract x to all the element of the matrix : Aij = Aij - x +//! subtract x to all the element of the matrix : Aij = Aij - x vpMatrix &vpMatrix::operator-=(double x) { for (unsigned int i = 0; i < rowNum; i++) @@ -6047,13 +6047,13 @@ vpColVector vpMatrix::eigenValues() const rowNum, colNum)); } - // Check if the matrix is symetric: At - A = 0 + // Check if the matrix is symmetric: At - A = 0 vpMatrix At_A = (*this).t() - (*this); for (unsigned int i = 0; i < rowNum; i++) { for (unsigned int j = 0; j < rowNum; j++) { // if (At_A[i][j] != 0) { if (std::fabs(At_A[i][j]) > std::numeric_limits::epsilon()) { - throw(vpException(vpException::fatalError, "Cannot compute eigen values on a non symetric matrix")); + throw(vpException(vpException::fatalError, "Cannot compute eigen values on a non symmetric matrix")); } } } @@ -6168,13 +6168,13 @@ void vpMatrix::eigenValues(vpColVector &evalue, vpMatrix &evector) const rowNum, colNum)); } - // Check if the matrix is symetric: At - A = 0 + // Check if the matrix is symmetric: At - A = 0 vpMatrix At_A = (*this).t() - (*this); for (unsigned int i = 0; i < rowNum; i++) { for (unsigned int j = 0; j < rowNum; j++) { // if (At_A[i][j] != 0) { if (std::fabs(At_A[i][j]) > std::numeric_limits::epsilon()) { - throw(vpException(vpException::fatalError, "Cannot compute eigen values on a non symetric matrix")); + throw(vpException(vpException::fatalError, "Cannot compute eigen values on a non symmetric matrix")); } } } diff --git a/modules/core/src/math/matrix/vpRowVector.cpp b/modules/core/src/math/matrix/vpRowVector.cpp index 1efb3a04fc..3406508c87 100644 --- a/modules/core/src/math/matrix/vpRowVector.cpp +++ b/modules/core/src/math/matrix/vpRowVector.cpp @@ -391,13 +391,13 @@ vpRowVector vpRowVector::operator-() const } /*! - Operator that allows to substract to row vectors that have the same size. + Operator that allows to subtract to row vectors that have the same size. \exception vpException::dimensionError If the vectors size differ. */ vpRowVector vpRowVector::operator-(const vpRowVector &m) const { if (getCols() != m.getCols()) { - throw(vpException(vpException::dimensionError, "Cannot substract (1x%d) row vector to (1x%d) row vector", getCols(), + throw(vpException(vpException::dimensionError, "Cannot subtract (1x%d) row vector to (1x%d) row vector", getCols(), m.getCols())); } @@ -444,14 +444,14 @@ vpRowVector &vpRowVector::operator+=(vpRowVector v) } /*! - Operator that allows to substract two row vectors that have the same size. + Operator that allows to subtract two row vectors that have the same size. \exception vpException::dimensionError If the size of the two vectors differ. */ vpRowVector &vpRowVector::operator-=(vpRowVector v) { if (getCols() != v.getCols()) { - throw(vpException(vpException::dimensionError, "Cannot substract (1x%d) row vector to (1x%d) row vector", getCols(), + throw(vpException(vpException::dimensionError, "Cannot subtract (1x%d) row vector to (1x%d) row vector", getCols(), v.getCols())); } diff --git a/modules/core/src/math/matrix/vpSubColVector.cpp b/modules/core/src/math/matrix/vpSubColVector.cpp index a490c11714..128f3085ed 100644 --- a/modules/core/src/math/matrix/vpSubColVector.cpp +++ b/modules/core/src/math/matrix/vpSubColVector.cpp @@ -90,7 +90,7 @@ void vpSubColVector::init(vpColVector &v, const unsigned int &offset, const unsi dsize = rowNum; } else { throw(vpException(vpException::dimensionError, "Cannot create a sub-column vector that is not " - "completely containt in the parrent column vector")); + "completely contained in the parrent column vector")); } } diff --git a/modules/core/src/math/matrix/vpSubRowVector.cpp b/modules/core/src/math/matrix/vpSubRowVector.cpp index a8ab3641cb..817ce0dd64 100644 --- a/modules/core/src/math/matrix/vpSubRowVector.cpp +++ b/modules/core/src/math/matrix/vpSubRowVector.cpp @@ -89,7 +89,7 @@ void vpSubRowVector::init(vpRowVector &v, const unsigned int &offset, const unsi dsize = colNum; } else { throw(vpException(vpException::dimensionError, "Cannot create a sub-row vector that is not completely " - "containt in the parrent row vector")); + "contained in the parrent row vector")); } } diff --git a/modules/core/src/math/transformation/vpPoseVector.cpp b/modules/core/src/math/transformation/vpPoseVector.cpp index b40aa10700..46236b838a 100644 --- a/modules/core/src/math/transformation/vpPoseVector.cpp +++ b/modules/core/src/math/transformation/vpPoseVector.cpp @@ -361,7 +361,7 @@ void vpPoseVector::save(std::ofstream &f) const if (!f.fail()) { f << *this; } else { - throw(vpException(vpException::ioError, "Cannot save the pose vector: ofstream not openned")); + throw(vpException(vpException::ioError, "Cannot save the pose vector: ofstream not opened")); } } @@ -382,7 +382,7 @@ void vpPoseVector::load(std::ifstream &f) f >> (*this)[i]; } } else { - throw(vpException(vpException::ioError, "Cannot read pose vector: ifstream not openned")); + throw(vpException(vpException::ioError, "Cannot read pose vector: ifstream not opened")); } } diff --git a/modules/core/src/math/transformation/vpQuaternionVector.cpp b/modules/core/src/math/transformation/vpQuaternionVector.cpp index 613263b2d9..95dba9f8f8 100644 --- a/modules/core/src/math/transformation/vpQuaternionVector.cpp +++ b/modules/core/src/math/transformation/vpQuaternionVector.cpp @@ -175,11 +175,11 @@ vpQuaternionVector vpQuaternionVector::operator+(const vpQuaternionVector &q) co return vpQuaternionVector(x() + q.x(), y() + q.y(), z() + q.z(), w() + q.w()); } /*! - Quaternion substraction. + Quaternion subtraction. - Substracts a quaternion from another. Substraction is component-wise. + subtracts a quaternion from another. subtraction is component-wise. - \param q : quaternion to substract. + \param q : quaternion to subtract. */ vpQuaternionVector vpQuaternionVector::operator-(const vpQuaternionVector &q) const { diff --git a/modules/core/src/math/transformation/vpTranslationVector.cpp b/modules/core/src/math/transformation/vpTranslationVector.cpp index 2344e02188..8200ec60dd 100644 --- a/modules/core/src/math/transformation/vpTranslationVector.cpp +++ b/modules/core/src/math/transformation/vpTranslationVector.cpp @@ -266,12 +266,12 @@ vpTranslationVector vpTranslationVector::operator+(const vpColVector &v) const } /*! - Operator that allows to substract two translation vectors. + Operator that allows to subtract two translation vectors. - \param tv : Translation vector to substract. + \param tv : Translation vector to subtract. - \return The substraction of the current translation vector (*this) and the - one to substract. + \return The subtraction of the current translation vector (*this) and the + one to subtract. \code vpTranslationVector t1(1,2,3); vpTranslationVector t2(4,5,6); diff --git a/modules/core/src/tools/serial/vpSerial.cpp b/modules/core/src/tools/serial/vpSerial.cpp index 8ba64e5bf1..b861123a53 100644 --- a/modules/core/src/tools/serial/vpSerial.cpp +++ b/modules/core/src/tools/serial/vpSerial.cpp @@ -221,7 +221,7 @@ void vpSerial::close() /*! Open the serial port. - If the serial port name is empty, or if the serial port is already openned an exception + If the serial port name is empty, or if the serial port is already opened an exception vpException::fatalError is thrown. The following example shows how to open the serial port `/dev/ttyUSB0` without using the constructor: diff --git a/modules/core/src/tracking/moments/vpMoment.cpp b/modules/core/src/tracking/moments/vpMoment.cpp index 369c177117..4a7f63882c 100644 --- a/modules/core/src/tracking/moments/vpMoment.cpp +++ b/modules/core/src/tracking/moments/vpMoment.cpp @@ -76,7 +76,7 @@ int main() vpMomentDatabase db; vpMomentGravityCenter G; // declaration of gravity center - vpMomentCentered mc; // mc containts centered moments + vpMomentCentered mc; // mc contains centered moments G.linkTo(db); //add gravity center to database mc.linkTo(db); //centered moments depend on gravity, add them to the @@ -98,7 +98,7 @@ int main() void vpMoment::linkTo(vpMomentDatabase &data_base) { if (strlen(name()) >= 255) { - throw(vpException(vpException::memoryAllocationError, "Not enough memory to intialize the moment name")); + throw(vpException(vpException::memoryAllocationError, "Not enough memory to initialize the moment name")); } std::strcpy(_name, name()); diff --git a/modules/core/test/image-with-dataset/perfImageAddSub.cpp b/modules/core/test/image-with-dataset/perfImageAddSub.cpp index 4455a1f5b2..06cbc53d33 100644 --- a/modules/core/test/image-with-dataset/perfImageAddSub.cpp +++ b/modules/core/test/image-with-dataset/perfImageAddSub.cpp @@ -29,7 +29,7 @@ * WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. * * Description: - * Test image addition / substraction. + * Test image addition / subtraction. * *****************************************************************************/ @@ -38,7 +38,7 @@ /*! \example perfImageAddSub.cpp - \brief Test images addition / substraction performances. + \brief Test images addition / subtraction performances. */ #if defined(VISP_HAVE_CATCH2) diff --git a/modules/core/test/image-with-dataset/testImageAddSub.cpp b/modules/core/test/image-with-dataset/testImageAddSub.cpp index 287bed9783..99f1f3dc42 100644 --- a/modules/core/test/image-with-dataset/testImageAddSub.cpp +++ b/modules/core/test/image-with-dataset/testImageAddSub.cpp @@ -29,7 +29,7 @@ * WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. * * Description: - * Test image addition / substraction. + * Test image addition / subtraction. * *****************************************************************************/ @@ -38,7 +38,7 @@ /*! \example testImageAddSub.cpp - \brief Test images addition / substraction. + \brief Test images addition / subtraction. */ #if defined(VISP_HAVE_CATCH2) diff --git a/modules/detection/src/dnn/vpDetectorDNN.cpp b/modules/detection/src/dnn/vpDetectorDNN.cpp index 4e92f9a1cc..3dd4f0db64 100644 --- a/modules/detection/src/dnn/vpDetectorDNN.cpp +++ b/modules/detection/src/dnn/vpDetectorDNN.cpp @@ -322,7 +322,7 @@ void vpDetectorDNN::postProcess() { } } else - CV_Error(cv::Error::StsNotImplemented, "Unknown output layer type: " + outLayerType); + CV_Error(cv::Error::StsNotImplemented, "Unknownn output layer type: " + outLayerType); cv::dnn::NMSBoxes(m_boxes, m_confidences, m_confidenceThreshold, m_nmsThreshold, m_indices); m_boxesNMS.resize(m_indices.size()); diff --git a/modules/detection/src/tag/vpDetectorAprilTag.cpp b/modules/detection/src/tag/vpDetectorAprilTag.cpp index 07d91bea99..b13a4121dc 100644 --- a/modules/detection/src/tag/vpDetectorAprilTag.cpp +++ b/modules/detection/src/tag/vpDetectorAprilTag.cpp @@ -121,7 +121,7 @@ class vpDetectorAprilTag::Impl break; default: - throw vpException(vpException::fatalError, "Unknow Tag family!"); + throw vpException(vpException::fatalError, "Unknown Tag family!"); } if (m_tagFamily != TAG_36ARTOOLKIT && m_tf) { @@ -190,7 +190,7 @@ class vpDetectorAprilTag::Impl break; default: - throw vpException(vpException::fatalError, "Unknow Tag family!"); + throw vpException(vpException::fatalError, "Unknown Tag family!"); } if (m_tagFamily != TAG_36ARTOOLKIT && m_tf) { diff --git a/modules/imgproc/include/visp3/imgproc/vpContours.h b/modules/imgproc/include/visp3/imgproc/vpContours.h index 5978e2001a..29360c9043 100644 --- a/modules/imgproc/include/visp3/imgproc/vpContours.h +++ b/modules/imgproc/include/visp3/imgproc/vpContours.h @@ -207,7 +207,7 @@ struct vpContour { m_contourType = other.m_contourType; if (m_parent == NULL) { - // We are a root or an unintialized contour so delete everything + // We are a root or an uninitialized contour so delete everything for (std::vector::iterator it = m_children.begin(); it != m_children.end(); ++it) { (*it)->m_parent = NULL; if (*it != NULL) { diff --git a/modules/java/generator/gen_java.py b/modules/java/generator/gen_java.py index dcb4380c26..91783fd343 100755 --- a/modules/java/generator/gen_java.py +++ b/modules/java/generator/gen_java.py @@ -668,7 +668,7 @@ def gen_func(self, ci, fi, prop_name=''): if a.defval: a.ctype = '' continue - msg = "// Unknown type '%s' (%s), skipping the function\n\n" % (a.ctype, a.out or "I") + msg = "// Unknownn type '%s' (%s), skipping the function\n\n" % (a.ctype, a.out or "I") self.skipped_func_list.append(c_decl + "\n" + msg) j_code.write(" " * 4 + msg) logging.warning("SKIP:" + c_decl.strip() + "\t due to ARG type" + a.ctype + "/" + (a.out or "I")) diff --git a/modules/robot/src/real-robot/afma4/vpRobotAfma4.cpp b/modules/robot/src/real-robot/afma4/vpRobotAfma4.cpp index 94688efae2..9babf99c19 100644 --- a/modules/robot/src/real-robot/afma4/vpRobotAfma4.cpp +++ b/modules/robot/src/real-robot/afma4/vpRobotAfma4.cpp @@ -797,7 +797,7 @@ void vpRobotAfma4::setPosition(const vpRobot::vpControlFrameType frame, const vp if (TryStt == InvalidPosition || TryStt == -1023) std::cout << " : Position out of range.\n"; else if (TryStt < 0) - std::cout << " : Unknown error (see Fabien).\n"; + std::cout << " : Unknownn error (see Fabien).\n"; else if (error == -1) std::cout << "Position out of range.\n"; diff --git a/modules/robot/src/real-robot/afma4/vpServolens.cpp b/modules/robot/src/real-robot/afma4/vpServolens.cpp index e547f89c16..396cdbdab9 100644 --- a/modules/robot/src/real-robot/afma4/vpServolens.cpp +++ b/modules/robot/src/real-robot/afma4/vpServolens.cpp @@ -99,7 +99,7 @@ vpServolens::~vpServolens() { this->close(); } \param port : Serial device like /dev/ttyS0 or /dev/ttya. \exception vpRobotException::communicationError : If cannot open - Servolens serial port or intialize the serial link. + Servolens serial port or initialize the serial link. \sa close() */ diff --git a/modules/robot/src/real-robot/afma6/vpRobotAfma6.cpp b/modules/robot/src/real-robot/afma6/vpRobotAfma6.cpp index 7d1a944219..e039fec349 100644 --- a/modules/robot/src/real-robot/afma6/vpRobotAfma6.cpp +++ b/modules/robot/src/real-robot/afma6/vpRobotAfma6.cpp @@ -1210,7 +1210,7 @@ void vpRobotAfma6::setPosition(const vpRobot::vpControlFrameType frame, const vp if (TryStt == InvalidPosition || TryStt == -1023) std::cout << " : Position out of range.\n"; else if (TryStt < 0) - std::cout << " : Unknown error (see Fabien).\n"; + std::cout << " : Unknownn error (see Fabien).\n"; else if (error == -1) std::cout << "Position out of range.\n"; diff --git a/modules/robot/src/real-robot/viper/vpRobotViper650.cpp b/modules/robot/src/real-robot/viper/vpRobotViper650.cpp index e7563daacf..876fde1870 100644 --- a/modules/robot/src/real-robot/viper/vpRobotViper650.cpp +++ b/modules/robot/src/real-robot/viper/vpRobotViper650.cpp @@ -1214,7 +1214,7 @@ void vpRobotViper650::setPosition(const vpRobot::vpControlFrameType frame, const std::cout << " : Cartesian position leads to a joint position out of " "range.\n"; } else if (TryStt < 0) - std::cout << " : Unknown error (see Fabien).\n"; + std::cout << " : Unknownn error (see Fabien).\n"; else if (error == -1) std::cout << "Position out of range.\n"; diff --git a/modules/robot/src/real-robot/viper/vpRobotViper850.cpp b/modules/robot/src/real-robot/viper/vpRobotViper850.cpp index 9a461cb0e3..eb28cde769 100644 --- a/modules/robot/src/real-robot/viper/vpRobotViper850.cpp +++ b/modules/robot/src/real-robot/viper/vpRobotViper850.cpp @@ -1233,7 +1233,7 @@ void vpRobotViper850::setPosition(const vpRobot::vpControlFrameType frame, const std::cout << " : Cartesian position leads to a joint position out of " "range.\n"; } else if (TryStt < 0) - std::cout << " : Unknown error (see Fabien).\n"; + std::cout << " : Unknownn error (see Fabien).\n"; else if (error == -1) std::cout << "Position out of range.\n"; diff --git a/modules/robot/src/wireframe-simulator/vpWireFrameSimulator.cpp b/modules/robot/src/wireframe-simulator/vpWireFrameSimulator.cpp index 50226d836b..a43270be22 100644 --- a/modules/robot/src/wireframe-simulator/vpWireFrameSimulator.cpp +++ b/modules/robot/src/wireframe-simulator/vpWireFrameSimulator.cpp @@ -268,7 +268,7 @@ void vpWireFrameSimulator::initScene(const vpSceneObject &obj, const vpSceneDesi const char *scene_dir_ = scene_dir.c_str(); if (strlen(scene_dir_) >= FILENAME_MAX) { - throw(vpException(vpException::memoryAllocationError, "Not enough memory to intialize the camera name")); + throw(vpException(vpException::memoryAllocationError, "Not enough memory to initialize the camera name")); } strcpy(name_cam, scene_dir_); @@ -355,7 +355,7 @@ void vpWireFrameSimulator::initScene(const vpSceneObject &obj, const vpSceneDesi scene_dir_ = scene_dir.c_str(); if (strlen(scene_dir_) >= FILENAME_MAX) { - throw(vpException(vpException::memoryAllocationError, "Not enough memory to intialize the desired object name")); + throw(vpException(vpException::memoryAllocationError, "Not enough memory to initialize the desired object name")); } switch (desiredObject) { @@ -439,7 +439,7 @@ void vpWireFrameSimulator::initScene(const char *obj, const char *desired_object const char *scene_dir_ = scene_dir.c_str(); if (strlen(scene_dir_) >= FILENAME_MAX) { - throw(vpException(vpException::memoryAllocationError, "Not enough memory to intialize the camera name")); + throw(vpException(vpException::memoryAllocationError, "Not enough memory to initialize the camera name")); } strcpy(name_cam, scene_dir_); @@ -447,7 +447,7 @@ void vpWireFrameSimulator::initScene(const char *obj, const char *desired_object set_scene(name_cam, &camera, cameraFactor); if (strlen(obj) >= FILENAME_MAX) { - throw(vpException(vpException::memoryAllocationError, "Not enough memory to intialize the name")); + throw(vpException(vpException::memoryAllocationError, "Not enough memory to initialize the name")); } strcpy(name, obj); @@ -458,11 +458,11 @@ void vpWireFrameSimulator::initScene(const char *obj, const char *desired_object else if (model == WRL_MODEL) set_scene_wrl(name, &(this->scene), 1.0); else if (model == UNKNOWN_MODEL) { - vpERROR_TRACE("Unknown file extension for the 3D model"); + vpERROR_TRACE("Unknownn file extension for the 3D model"); } if (strlen(desired_object) >= FILENAME_MAX) { - throw(vpException(vpException::memoryAllocationError, "Not enough memory to intialize the camera name")); + throw(vpException(vpException::memoryAllocationError, "Not enough memory to initialize the camera name")); } strcpy(name, desired_object); @@ -472,7 +472,7 @@ void vpWireFrameSimulator::initScene(const char *obj, const char *desired_object else if (model == WRL_MODEL) set_scene_wrl(name, &(this->desiredScene), 1.0); else if (model == UNKNOWN_MODEL) { - vpERROR_TRACE("Unknown file extension for the 3D model"); + vpERROR_TRACE("Unknownn file extension for the 3D model"); } add_rfstack(IS_BACK); @@ -532,7 +532,7 @@ void vpWireFrameSimulator::initScene(const vpSceneObject &obj) const char *scene_dir_ = scene_dir.c_str(); if (strlen(scene_dir_) >= FILENAME_MAX) { - throw(vpException(vpException::memoryAllocationError, "Not enough memory to intialize the camera name")); + throw(vpException(vpException::memoryAllocationError, "Not enough memory to initialize the camera name")); } strcpy(name_cam, scene_dir_); @@ -671,7 +671,7 @@ void vpWireFrameSimulator::initScene(const char *obj) const char *scene_dir_ = scene_dir.c_str(); if (strlen(scene_dir_) >= FILENAME_MAX) { - throw(vpException(vpException::memoryAllocationError, "Not enough memory to intialize the camera name")); + throw(vpException(vpException::memoryAllocationError, "Not enough memory to initialize the camera name")); } strcpy(name_cam, scene_dir_); @@ -679,7 +679,7 @@ void vpWireFrameSimulator::initScene(const char *obj) set_scene(name_cam, &camera, cameraFactor); if (strlen(obj) >= FILENAME_MAX) { - throw(vpException(vpException::memoryAllocationError, "Not enough memory to intialize the name")); + throw(vpException(vpException::memoryAllocationError, "Not enough memory to initialize the name")); } strcpy(name, obj); @@ -690,7 +690,7 @@ void vpWireFrameSimulator::initScene(const char *obj) else if (model == WRL_MODEL) set_scene_wrl(name, &(this->scene), 1.0); else if (model == UNKNOWN_MODEL) { - vpERROR_TRACE("Unknown file extension for the 3D model"); + vpERROR_TRACE("Unknownn file extension for the 3D model"); } add_rfstack(IS_BACK); diff --git a/modules/sensor/src/framegrabber/1394/vp1394TwoGrabber.cpp b/modules/sensor/src/framegrabber/1394/vp1394TwoGrabber.cpp index 36ef396661..a4b47b2f91 100644 --- a/modules/sensor/src/framegrabber/1394/vp1394TwoGrabber.cpp +++ b/modules/sensor/src/framegrabber/1394/vp1394TwoGrabber.cpp @@ -2989,7 +2989,7 @@ void vp1394TwoGrabber::resetBus() dc1394_camera_free(cameras[i]); } - printf("Reseting bus...\n"); + printf("Resetting bus...\n"); dc1394_reset_bus(camera); dc1394_camera_free(camera); diff --git a/modules/sensor/src/framegrabber/directshow/vpDirectShowGrabberImpl.cpp b/modules/sensor/src/framegrabber/directshow/vpDirectShowGrabberImpl.cpp index ca86f5f5ed..2aa031d19a 100644 --- a/modules/sensor/src/framegrabber/directshow/vpDirectShowGrabberImpl.cpp +++ b/modules/sensor/src/framegrabber/directshow/vpDirectShowGrabberImpl.cpp @@ -56,7 +56,7 @@ void vpDirectShowGrabberImpl::HRtoStr(std::string str) DWORD res = AMGetErrorText(hr, szErr, MAX_ERROR_TEXT_LEN); if (res == 0) - str = "Unknown Error: 0x%2x"; + str = "Unknownn Error: 0x%2x"; char msg[MAX_ERROR_TEXT_LEN]; sprintf(msg, "%s", szErr); @@ -464,7 +464,7 @@ bool vpDirectShowGrabberImpl::checkSourceType(CComPtr &pCapSourcePin) // see fourcc.org to know which format is bottom-up oriented and thus // needs invertedSource sets to true else { - std::cout << "Unknown FourCC compression type, assuming top-down " + std::cout << "Unknownn FourCC compression type, assuming top-down " "orientation. Image may be inverted." << std::endl; sgCB.invertedSource = false; // consider that the image is topdown oriented by default diff --git a/modules/sensor/src/framegrabber/directshow/vpDirectShowSampleGrabberI.cpp b/modules/sensor/src/framegrabber/directshow/vpDirectShowSampleGrabberI.cpp index 9801afd158..011ccc40a1 100644 --- a/modules/sensor/src/framegrabber/directshow/vpDirectShowSampleGrabberI.cpp +++ b/modules/sensor/src/framegrabber/directshow/vpDirectShowSampleGrabberI.cpp @@ -67,8 +67,8 @@ STDMETHODIMP vpDirectShowSampleGrabberI::QueryInterface(REFIID riid, void **ppvO { if (NULL == ppvObject) return E_POINTER; - if (riid == __uuidof(IUnknown)) { - *ppvObject = static_cast(this); + if (riid == __uuidof(IUnknownn)) { + *ppvObject = static_cast(this); return S_OK; } if (riid == __uuidof(ISampleGrabberCB)) { diff --git a/modules/tracker/mbt/include/visp3/mbt/vpMbTracker.h b/modules/tracker/mbt/include/visp3/mbt/vpMbTracker.h index 37ed4c4445..1fe422322c 100644 --- a/modules/tracker/mbt/include/visp3/mbt/vpMbTracker.h +++ b/modules/tracker/mbt/include/visp3/mbt/vpMbTracker.h @@ -424,7 +424,7 @@ class VISP_EXPORT vpMbTracker virtual inline double getStopCriteriaEpsilon() const { return m_stopCriteriaEpsilon; } -// Intializer +// initializer #ifdef VISP_HAVE_MODULE_GUI virtual void initClick(const vpImage &I, const std::string &initFile, bool displayHelp = false, diff --git a/modules/tracker/mbt/src/depth/vpMbtFaceDepthNormal.cpp b/modules/tracker/mbt/src/depth/vpMbtFaceDepthNormal.cpp index 9b382f43a9..3c155881b5 100644 --- a/modules/tracker/mbt/src/depth/vpMbtFaceDepthNormal.cpp +++ b/modules/tracker/mbt/src/depth/vpMbtFaceDepthNormal.cpp @@ -297,7 +297,7 @@ bool vpMbtFaceDepthNormal::computeDesiredFeatures(const vpHomogeneousMatrix &cMo computeDesiredFeaturesRobustFeatures(point_cloud_face_custom, point_cloud_face_vec, cMo, desired_features, desired_normal, centroid_point); } else { - throw vpException(vpException::badValue, "Unknown feature estimation method!"); + throw vpException(vpException::badValue, "Unknownn feature estimation method!"); } computeDesiredNormalAndCentroid(cMo, desired_normal, centroid_point); @@ -456,7 +456,7 @@ bool vpMbtFaceDepthNormal::computeDesiredFeatures(const vpHomogeneousMatrix &cMo computeDesiredFeaturesRobustFeatures(point_cloud_face_custom, point_cloud_face, cMo, desired_features, desired_normal, centroid_point); } else { - throw vpException(vpException::badValue, "Unknown feature estimation method!"); + throw vpException(vpException::badValue, "Unknownn feature estimation method!"); } computeDesiredNormalAndCentroid(cMo, desired_normal, centroid_point); diff --git a/modules/tracker/me/src/moving-edges/vpMeEllipse.cpp b/modules/tracker/me/src/moving-edges/vpMeEllipse.cpp index b2d3f686b4..b43cbe86a2 100644 --- a/modules/tracker/me/src/moving-edges/vpMeEllipse.cpp +++ b/modules/tracker/me/src/moving-edges/vpMeEllipse.cpp @@ -604,7 +604,7 @@ void vpMeEllipse::leastSquare(const vpImage &I, const std::vector unsigned int dim = A.nullSpace(KerA, 1); if (dim > 1) { // case with less than 5 independent points // FC : should create a rankError exception - throw(vpException(vpException::fatalError, "Linear sytem for computing the ellipse equation ill conditionned")); + throw(vpException(vpException::fatalError, "Linear system for computing the ellipse equation ill conditionned")); } // the term um*vm is for counterbalancing the bad conditioning of the // inverse normalization below @@ -699,7 +699,7 @@ void vpMeEllipse::leastSquareRobust(const vpImage &I) unsigned int dim = DA.nullSpace(KerDA, 1); if (dim > 1) { // case with less than 5 independent points // FC : should create a rankError exception - throw(vpException(vpException::fatalError, "Linear sytem for computing the ellipse equation ill conditionned")); + throw(vpException(vpException::fatalError, "Linear system for computing the ellipse equation ill conditionned")); } for (unsigned int i=0; i<6 ; i++) K[i] = KerDA[i][0]; // norm(K) = 1 diff --git a/modules/visual_features/src/visual-feature/vpFeatureMoment.cpp b/modules/visual_features/src/visual-feature/vpFeatureMoment.cpp index f51ed77e8b..8c6a199ac6 100644 --- a/modules/visual_features/src/visual-feature/vpFeatureMoment.cpp +++ b/modules/visual_features/src/visual-feature/vpFeatureMoment.cpp @@ -244,7 +244,7 @@ vpBasicFeature *vpFeatureMoment::duplicate() const void vpFeatureMoment::linkTo(vpFeatureMomentDatabase &featureMoments) { if (strlen(name()) >= 255) { - throw(vpException(vpException::memoryAllocationError, "Not enough memory to intialize the moment name")); + throw(vpException(vpException::memoryAllocationError, "Not enough memory to initialize the moment name")); } std::strcpy(_name, name()); diff --git a/modules/visual_features/src/visual-feature/vpFeaturePointPolar.cpp b/modules/visual_features/src/visual-feature/vpFeaturePointPolar.cpp index 2c17e936bf..65046f94ea 100644 --- a/modules/visual_features/src/visual-feature/vpFeaturePointPolar.cpp +++ b/modules/visual_features/src/visual-feature/vpFeaturePointPolar.cpp @@ -346,7 +346,7 @@ vpMatrix vpFeaturePointPolar::interaction(unsigned int select) For the angular component \f$\theta\f$, we define the error as \f$\theta \ominus \theta^*\f$, where \f$\ominus\f$ is modulo \f$2\pi\f$ - substraction. + subtraction. \param s_star : Desired 2D image point visual feature with polar coordinates. diff --git a/modules/visual_features/src/visual-feature/vpFeatureSegment.cpp b/modules/visual_features/src/visual-feature/vpFeatureSegment.cpp index 1065c80d10..4420c3097f 100644 --- a/modules/visual_features/src/visual-feature/vpFeatureSegment.cpp +++ b/modules/visual_features/src/visual-feature/vpFeatureSegment.cpp @@ -342,7 +342,7 @@ vpMatrix vpFeatureSegment::interaction(unsigned int select) For the angular component \f$\alpha\f$, we define the error as \f$\alpha \ominus \alpha^*\f$, where \f$\ominus\f$ is modulo \f$2\pi\f$ - substraction. + subtraction. \param s_star : Desired 2D segment feature.