diff --git a/Modules/Core/Common/include/itkAnnulusOperator.h b/Modules/Core/Common/include/itkAnnulusOperator.h index 296db7a540b..d6ac848452a 100644 --- a/Modules/Core/Common/include/itkAnnulusOperator.h +++ b/Modules/Core/Common/include/itkAnnulusOperator.h @@ -177,7 +177,7 @@ class ITK_TEMPLATE_EXPORT AnnulusOperator : public NeighborhoodOperator *; - /** Const Interator */ + /** Const Iterator */ struct ConstIterator { ConstIterator() { m_NeighborhoodIterator = nullptr; } diff --git a/Modules/Core/Common/include/itkEllipsoidInteriorExteriorSpatialFunction.h b/Modules/Core/Common/include/itkEllipsoidInteriorExteriorSpatialFunction.h index e70bca9a3fc..ccd47f828c8 100644 --- a/Modules/Core/Common/include/itkEllipsoidInteriorExteriorSpatialFunction.h +++ b/Modules/Core/Common/include/itkEllipsoidInteriorExteriorSpatialFunction.h @@ -91,7 +91,7 @@ class ITK_TEMPLATE_EXPORT EllipsoidInteriorExteriorSpatialFunction /** The center of the ellipsoid. */ InputType m_Center; - /** The axes lenths of the ellipsoid. */ + /** The axes lengths of the ellipsoid. */ InputType m_Axes; /** The orientation vectors (must be orthogonal) of the ellipsoid axes. */ diff --git a/Modules/Core/Common/include/itkEventObject.h b/Modules/Core/Common/include/itkEventObject.h index 683672db243..0f6f6ea1b9b 100644 --- a/Modules/Core/Common/include/itkEventObject.h +++ b/Modules/Core/Common/include/itkEventObject.h @@ -154,7 +154,7 @@ operator<<(std::ostream & os, const EventObject & e) static_assert(true, "Compile time eliminated. Used to require a semi-colon at end of macro.") #if !defined(ITK_LEGACY_REMOVE) -// Suppport Pre 2015 code bases +// Support Pre 2015 code bases // This macro duplicates some of the declaration and definition // macro code. The purpose is to provide a backward compatibility API diff --git a/Modules/Core/Common/include/itkExtractImageFilter.h b/Modules/Core/Common/include/itkExtractImageFilter.h index bb3a045c8bf..5055297f29f 100644 --- a/Modules/Core/Common/include/itkExtractImageFilter.h +++ b/Modules/Core/Common/include/itkExtractImageFilter.h @@ -79,7 +79,7 @@ extern ITKCommon_EXPORT std::ostream & * starting index value provided in the ExtractRegion parameter. If you are * looking for a filter that will re-compute the origin of the output image, * and provide an output image region whose index is set to zeros, then you may - * want to use the RegionOfInterestImageFilter. The output spacing is is + * want to use the RegionOfInterestImageFilter. The output spacing is * simply the collapsed version of the input spacing. * * Determining the direction of the collapsed output image from an larger diff --git a/Modules/Core/Common/include/itkGaussianDerivativeOperator.h b/Modules/Core/Common/include/itkGaussianDerivativeOperator.h index 710f645c275..d0da15474b1 100644 --- a/Modules/Core/Common/include/itkGaussianDerivativeOperator.h +++ b/Modules/Core/Common/include/itkGaussianDerivativeOperator.h @@ -69,7 +69,7 @@ extern ITKCommon_EXPORT std::ostream & * it performs only smoothing as a standard itk::GaussianOperator) * * (3) The "maximum error" allowed in the discrete Gaussian - * function. "Maximum errror" is defined as the difference between the area + * function. "Maximum error" is defined as the difference between the area * under the discrete Gaussian curve and the area under the continuous * Gaussian. Maximum error affects the Gaussian operator size. Care should * be taken not to make this value too small relative to the variance diff --git a/Modules/Core/Common/include/itkGaussianOperator.h b/Modules/Core/Common/include/itkGaussianOperator.h index afec558c733..a16669f7019 100644 --- a/Modules/Core/Common/include/itkGaussianOperator.h +++ b/Modules/Core/Common/include/itkGaussianOperator.h @@ -39,7 +39,7 @@ namespace itk * (1) The floating-point variance of the desired Gaussian function. * * (2) The "maximum error" allowed in the discrete Gaussian - * function. "Maximum errror" is defined as the difference between the area + * function. "Maximum error" is defined as the difference between the area * under the discrete Gaussian curve and the area under the continuous * Gaussian. Maximum error affects the Gaussian operator size. Care should * be taken not to make this value too small relative to the variance diff --git a/Modules/Core/Common/include/itkImageBase.h b/Modules/Core/Common/include/itkImageBase.h index 40510b720f4..60ce0493c25 100644 --- a/Modules/Core/Common/include/itkImageBase.h +++ b/Modules/Core/Common/include/itkImageBase.h @@ -93,7 +93,7 @@ namespace itk * * ImageBase also provides helper routines for the ImageIterators * which convert an Index to an offset in memory from the first pixel - * address as well as covert an offset in memory from the first pixel + * address as well as convert an offset in memory from the first pixel * address to an Index. * * \ingroup ImageObjects @@ -199,7 +199,7 @@ class ITK_TEMPLATE_EXPORT ImageBase : public DataObject * (0.5, 0.866) * * The columns of the Direction matrix are expected to form an - * orthogonal right handed coordinate syste. But this is not + * orthogonal right handed coordinate system. But this is not * checked nor enforced in itk::ImageBase. * * For details, please see: @@ -723,7 +723,7 @@ class ITK_TEMPLATE_EXPORT ImageBase : public DataObject /** UpdateOutputData() is part of the pipeline infrastructure to * communicate between ProcessObjects and DataObjects. The method of - * the superclass is overriden to check if the requested image + * the superclass is overridden to check if the requested image * region has zero pixels. This is needed so that filters can set an * input's requested region to zero, to indicate that it does not * need to be updated or executed. diff --git a/Modules/Core/Common/include/itkImageBase.hxx b/Modules/Core/Common/include/itkImageBase.hxx index 95c2782f035..8ca1f83e39c 100644 --- a/Modules/Core/Common/include/itkImageBase.hxx +++ b/Modules/Core/Common/include/itkImageBase.hxx @@ -249,7 +249,7 @@ ImageBase::UpdateOutputData() { // If the requested region does not contain any pixels then there is // no reason to Update the output data. This is needed so that - // filters don't need to update all inputs. This occours in + // filters don't need to update all inputs. This occurs in // ImageBase as oppose to DataObject, but cause this statement // requires the specific GetNumberOfPixels methods ( as oppose to a // generic Region::IsEmpty method ). diff --git a/Modules/Core/Common/include/itkImageIORegion.h b/Modules/Core/Common/include/itkImageIORegion.h index 5f57cf3607f..68a81c896ff 100644 --- a/Modules/Core/Common/include/itkImageIORegion.h +++ b/Modules/Core/Common/include/itkImageIORegion.h @@ -162,7 +162,7 @@ class ITKCommon_EXPORT ImageIORegion : public Region bool IsInside(const IndexType & index) const; - /** Test if a region (the argument) is completly inside of this region */ + /** Test if a region (the argument) is completely inside of this region */ bool IsInside(const Self & region) const; diff --git a/Modules/Core/Common/include/itkImageRegionConstIterator.hxx b/Modules/Core/Common/include/itkImageRegionConstIterator.hxx index d034ef55b0c..f0903d9c578 100644 --- a/Modules/Core/Common/include/itkImageRegionConstIterator.hxx +++ b/Modules/Core/Common/include/itkImageRegionConstIterator.hxx @@ -89,7 +89,7 @@ ImageRegionConstIterator::Decrement() const typename ImageIterator::IndexType & startIndex = this->m_Region.GetIndex(); const typename ImageIterator::SizeType & size = this->m_Region.GetSize(); - // Deccrement along a row, then wrap at the beginning of the region row. + // Decrement along a row, then wrap at the beginning of the region row. // Check to see if we are past the first pixel in the region // Note that --ind[0] moves to the previous pixel along the row. diff --git a/Modules/Core/Common/include/itkImageRegionExclusionConstIteratorWithIndex.h b/Modules/Core/Common/include/itkImageRegionExclusionConstIteratorWithIndex.h index 47eef8e5af9..05f96873a3d 100644 --- a/Modules/Core/Common/include/itkImageRegionExclusionConstIteratorWithIndex.h +++ b/Modules/Core/Common/include/itkImageRegionExclusionConstIteratorWithIndex.h @@ -185,7 +185,7 @@ class ITK_TEMPLATE_EXPORT ImageRegionExclusionConstIteratorWithIndex : public Im /** Method to define the Exclusion region. The iterator will skip pixels * inside this region. - * \warning The exclusion region must be completly contained inside the + * \warning The exclusion region must be completely contained inside the * normal region used to construct the iterator. A border of at least one * pixel should exist between the normal region and the exclusion region. */ diff --git a/Modules/Core/Common/include/itkImageRegionReverseConstIterator.h b/Modules/Core/Common/include/itkImageRegionReverseConstIterator.h index 1c96c865ec7..8f8f692f294 100644 --- a/Modules/Core/Common/include/itkImageRegionReverseConstIterator.h +++ b/Modules/Core/Common/include/itkImageRegionReverseConstIterator.h @@ -265,7 +265,7 @@ class ITK_TEMPLATE_EXPORT ImageRegionReverseConstIterator : public ImageReverseC const typename ImageConstIterator::IndexType & startIndex = this->m_Region.GetIndex(); const typename ImageConstIterator::SizeType & size = this->m_Region.GetSize(); - // Deccrement along a row, then wrap at the beginning of the region row. + // Decrement along a row, then wrap at the beginning of the region row. bool done; unsigned int dim; diff --git a/Modules/Core/Common/include/itkImageSource.hxx b/Modules/Core/Common/include/itkImageSource.hxx index e7dbba9bbda..69103c54044 100644 --- a/Modules/Core/Common/include/itkImageSource.hxx +++ b/Modules/Core/Common/include/itkImageSource.hxx @@ -210,7 +210,7 @@ template void ImageSource::GenerateData() { - // Call a method that can be overriden by a subclass to allocate + // Call a method that can be overridden by a subclass to allocate // memory for the filter's outputs this->AllocateOutputs(); diff --git a/Modules/Core/Common/include/itkImageVectorOptimizerParametersHelper.h b/Modules/Core/Common/include/itkImageVectorOptimizerParametersHelper.h index f8090f78975..9ac750cce5d 100644 --- a/Modules/Core/Common/include/itkImageVectorOptimizerParametersHelper.h +++ b/Modules/Core/Common/include/itkImageVectorOptimizerParametersHelper.h @@ -54,7 +54,7 @@ class ITK_TEMPLATE_EXPORT ImageVectorOptimizerParametersHelper : public Optimize /** Set a new data pointer for *both* the Array and parameter image, * pointing both to a different memory block. - * The size of the new memroy block must be the same as current size of + * The size of the new memory block must be the same as current size of * Array and the parameter image's buffer, in elements of TValue. * Memory must be managed by caller afterwards. */ void diff --git a/Modules/Core/Common/include/itkIndexRange.h b/Modules/Core/Common/include/itkIndexRange.h index 3d76dddb23e..433ace403d0 100644 --- a/Modules/Core/Common/include/itkIndexRange.h +++ b/Modules/Core/Common/include/itkIndexRange.h @@ -404,7 +404,7 @@ class IndexRange final empty() const noexcept { // When an IndexRange is empty, each index value of m_MaxIndex is less than the corresponding - // index value of m_MinIndex. And vise versa: when an IndexRange is non-empty, each index value + // index value of m_MinIndex. And vice versa: when an IndexRange is non-empty, each index value // of m_MaxIndex is greater than or equal to the corresponding index value of m_MinIndex. // Note that the range contains one element when m_MaxIndex == m_MinIndex. return m_MaxIndex[0] < m_MinIndex[0]; diff --git a/Modules/Core/Common/include/itkLaplacianOperator.hxx b/Modules/Core/Common/include/itkLaplacianOperator.hxx index 1a4a22a7917..41ad7f66803 100644 --- a/Modules/Core/Common/include/itkLaplacianOperator.hxx +++ b/Modules/Core/Common/include/itkLaplacianOperator.hxx @@ -42,7 +42,7 @@ LaplacianOperator::CreateOperator() this->Fill(coefficients); } -// This function fills the coefficients into the corresponding neighborhodd. +// This function fills the coefficients into the corresponding neighborhood. template void LaplacianOperator::Fill(const CoefficientVector & coeff) diff --git a/Modules/Core/Common/include/itkMacro.h b/Modules/Core/Common/include/itkMacro.h index 697a551b0e7..16ccfc25bb5 100644 --- a/Modules/Core/Common/include/itkMacro.h +++ b/Modules/Core/Common/include/itkMacro.h @@ -31,7 +31,7 @@ * to interface to instance variables in a standard fashion. For example, * these macros manage modified time, debugging information, and provide a * standard interface to set and get instance variables. Macros are - * available for built-in types; for string classe; vector arrays; + * available for built-in types; for string classes; vector arrays; * object pointers; and debug, warning, and error printout information. */ diff --git a/Modules/Core/Common/include/itkMath.h b/Modules/Core/Common/include/itkMath.h index 2a6080a578e..09aac22e752 100644 --- a/Modules/Core/Common/include/itkMath.h +++ b/Modules/Core/Common/include/itkMath.h @@ -47,7 +47,7 @@ namespace Math // These constants originate from VXL's vnl_math.h. They have been // moved here to improve visibility, and to ensure that the constants // are available during compile time ( as opposed to static ITK_CONSTEXPR -// member vaiables ). +// member variables ). /** \brief \f[e\f] The base of the natural logarithm or Euler's number */ diff --git a/Modules/Core/Common/include/itkMetaDataDictionary.h b/Modules/Core/Common/include/itkMetaDataDictionary.h index ffcf759bd17..0bfcf47a8ff 100644 --- a/Modules/Core/Common/include/itkMetaDataDictionary.h +++ b/Modules/Core/Common/include/itkMetaDataDictionary.h @@ -117,7 +117,7 @@ class ITKCommon_EXPORT MetaDataDictionary std::vector GetKeys() const; - // Implement map's api. On some Micorsoft compilers, stl containers + // Implement map's api. On some Microsoft compilers, stl containers // cannot be exported. This causes problems when building DLL's. // Here we inherit privately from std::map and provide a simple // API. The implementation will be in the DLL. diff --git a/Modules/Core/Common/include/itkMetaDataObject.h b/Modules/Core/Common/include/itkMetaDataObject.h index edc87d19279..9e5f567244a 100644 --- a/Modules/Core/Common/include/itkMetaDataObject.h +++ b/Modules/Core/Common/include/itkMetaDataObject.h @@ -216,7 +216,7 @@ class ITK_TEMPLATE_EXPORT MetaDataObject : public MetaDataObjectBase * \param Dictionary TODO * \param key TODO * \param invalue the value of type T that is to be encapsulated. - * \return A smartpointer ot a MetaDataObject that is suitable for + * \return A smartpointer to a MetaDataObject that is suitable for * insertion into a MetaDataDictionary. */ template diff --git a/Modules/Core/Common/include/itkObjectFactoryBase.h b/Modules/Core/Common/include/itkObjectFactoryBase.h index fc501861ab0..154bf5f4efd 100644 --- a/Modules/Core/Common/include/itkObjectFactoryBase.h +++ b/Modules/Core/Common/include/itkObjectFactoryBase.h @@ -41,7 +41,7 @@ namespace itk * * ObjectFactoryBase is used to create itk objects. The base class * ObjectFactoryBase contains a static method CreateInstance() that is - * used to create itk objects from the list of registerd ObjectFactoryBase + * used to create itk objects from the list of registered ObjectFactoryBase * sub-classes. The first time CreateInstance() is called, all dll's or * shared libraries in the environment variable ITK_AUTOLOAD_PATH are loaded * into the current process. The C function itkLoad is called on each dll. diff --git a/Modules/Core/Common/include/itkPoint.h b/Modules/Core/Common/include/itkPoint.h index 891302fc120..9d725e663da 100644 --- a/Modules/Core/Common/include/itkPoint.h +++ b/Modules/Core/Common/include/itkPoint.h @@ -236,7 +236,7 @@ class ITK_TEMPLATE_EXPORT Point : public FixedArray + (1-w_1-w_2 ) * \overrightarrow{P}_3 * \f] * - * If the two weight are \f$ \in [0,1] \f$ , The resulting point will alway be placed + * If the two weight are \f$ \in [0,1] \f$ , The resulting point will always be placed * inside the triangle formed by the three points given as arguments. */ void SetToBarycentricCombination(const Self & A, const Self & B, const Self & C, double weightForA, double weightForB); diff --git a/Modules/Core/Common/include/itkPolygonCell.hxx b/Modules/Core/Common/include/itkPolygonCell.hxx index 21d8b844ad3..677f8294e24 100644 --- a/Modules/Core/Common/include/itkPolygonCell.hxx +++ b/Modules/Core/Common/include/itkPolygonCell.hxx @@ -222,7 +222,7 @@ PolygonCell::RemovePointId(PointIdentifier ptID) } /** - * clear all the point and edge informations + * clear all the point and edge information */ template void diff --git a/Modules/Core/Common/include/itkRGBAPixel.h b/Modules/Core/Common/include/itkRGBAPixel.h index db68c626b19..8b718b90747 100644 --- a/Modules/Core/Common/include/itkRGBAPixel.h +++ b/Modules/Core/Common/include/itkRGBAPixel.h @@ -102,7 +102,7 @@ class ITK_TEMPLATE_EXPORT RGBAPixel : public FixedArray RGBAPixel & operator=(const ComponentType r[4]); - /** Aritmetic operations between pixels. Return a new RGBAPixel. */ + /** Arithmetic operations between pixels. Return a new RGBAPixel. */ Self operator+(const Self & r) const; Self diff --git a/Modules/Core/Common/include/itkRGBPixel.h b/Modules/Core/Common/include/itkRGBPixel.h index a5d81cc5ba2..d2fa89aeddc 100644 --- a/Modules/Core/Common/include/itkRGBPixel.h +++ b/Modules/Core/Common/include/itkRGBPixel.h @@ -112,7 +112,7 @@ class ITK_TEMPLATE_EXPORT RGBPixel : public FixedArray Self & operator=(const ComponentType r[3]); - /** Aritmetic operations between pixels. Return a new RGBPixel. */ + /** Arithmetic operations between pixels. Return a new RGBPixel. */ Self operator+(const Self & r) const; Self diff --git a/Modules/Core/Common/include/itkRealTimeClock.h b/Modules/Core/Common/include/itkRealTimeClock.h index 5231e633e35..b4902f8c80a 100644 --- a/Modules/Core/Common/include/itkRealTimeClock.h +++ b/Modules/Core/Common/include/itkRealTimeClock.h @@ -50,7 +50,7 @@ class ITKCommon_EXPORT RealTimeClock : public Object /** Method for creation through the object factory */ itkNewMacro(Self); - /** Define the type for the timestap */ + /** Define the type for the timestamp */ using TimeStampType = double; /** Define the type for the frequency of the clock */ diff --git a/Modules/Core/Common/include/itkSize.h b/Modules/Core/Common/include/itkSize.h index 3dda87717db..88edc1a74a8 100644 --- a/Modules/Core/Common/include/itkSize.h +++ b/Modules/Core/Common/include/itkSize.h @@ -33,7 +33,7 @@ namespace itk * \brief Represent a n-dimensional size (bounds) of a n-dimensional image. * * Size is a templated class to represent multi-dimensional array bounds, - * i.e. (I,J,K,...). Size is templated over teh dimension of the bounds. + * i.e. (I,J,K,...). Size is templated over the dimension of the bounds. * ITK assumes the first element of a size (bounds) is the fastest moving index. * * For efficiency, Size does not define a default constructor, a diff --git a/Modules/Core/Common/include/itkSmapsFileParser.hxx b/Modules/Core/Common/include/itkSmapsFileParser.hxx index 3b852c64973..d9bc8d74331 100644 --- a/Modules/Core/Common/include/itkSmapsFileParser.hxx +++ b/Modules/Core/Common/include/itkSmapsFileParser.hxx @@ -47,7 +47,7 @@ MapFileParser::GetHeapUsage() -> MemoryLoadType { if (m_MapData.Empty()) { - std::cerr << "Read a map file before quering memory usage"; + std::cerr << "Read a map file before querying memory usage"; } return m_MapData.GetHeapUsage(); } @@ -58,7 +58,7 @@ MapFileParser::GetStackUsage() -> MemoryLoadType { if (m_MapData.Empty()) { - std::cerr << "Read a map file before quering memory usage"; + std::cerr << "Read a map file before querying memory usage"; } return m_MapData.GetStackUsage(); } @@ -69,7 +69,7 @@ MapFileParser::GetTotalMemoryUsage() -> MemoryLoadType { if (m_MapData.Empty()) { - std::cerr << "Read a map file before quering memory usage"; + std::cerr << "Read a map file before querying memory usage"; } return m_MapData.GetTotalMemoryUsage(); } @@ -80,7 +80,7 @@ MapFileParser::GetMemoryUsage(const char * filter, const char * to { if (m_MapData.Empty()) { - std::cerr << "Read a map file before quering memory usage"; + std::cerr << "Read a map file before querying memory usage"; } return m_MapData.GetMemoryUsage(filter, token); } diff --git a/Modules/Core/Common/include/itkStoppingCriterionBase.h b/Modules/Core/Common/include/itkStoppingCriterionBase.h index ad437800708..5a89e580ec3 100644 --- a/Modules/Core/Common/include/itkStoppingCriterionBase.h +++ b/Modules/Core/Common/include/itkStoppingCriterionBase.h @@ -49,7 +49,7 @@ class ITKCommon_EXPORT StoppingCriterionBase : public Object /** \return \c true if the stopping criterion is reached (and the algorithm must stop). - \return \c fasle else. */ + \return \c false else. */ virtual bool IsSatisfied() const = 0; virtual std::string diff --git a/Modules/Core/Common/include/itkStreamingImageFilter.hxx b/Modules/Core/Common/include/itkStreamingImageFilter.hxx index b6d64a426d4..bfbebfd2a5e 100644 --- a/Modules/Core/Common/include/itkStreamingImageFilter.hxx +++ b/Modules/Core/Common/include/itkStreamingImageFilter.hxx @@ -122,7 +122,7 @@ StreamingImageFilter::UpdateOutputData(DataObject * i } /** - * Tell all Observers that the filter is starting, before emiting + * Tell all Observers that the filter is starting, before emitting * the 0.0 Progress event */ this->InvokeEvent(StartEvent()); diff --git a/Modules/Core/Common/include/itkSymmetricEigenAnalysis.h b/Modules/Core/Common/include/itkSymmetricEigenAnalysis.h index b110df97aaa..c9551776842 100644 --- a/Modules/Core/Common/include/itkSymmetricEigenAnalysis.h +++ b/Modules/Core/Common/include/itkSymmetricEigenAnalysis.h @@ -595,7 +595,7 @@ class ITK_TEMPLATE_EXPORT SymmetricEigenAnalysis } - /* Implementation detail using EigenLib that do not peform a copy. + /* Implementation detail using EigenLib that do not perform a copy. * It needs the existence of a pointer to matrix data. \sa GetPointerToMatrixData * If new types want to use this method, an appropriate overload of GetPointerToMatrixData * should be included. @@ -698,7 +698,7 @@ class ITK_TEMPLATE_EXPORT SymmetricEigenAnalysis return 1; } - /* Implementation detail using EigenLib that do not peform a copy. + /* Implementation detail using EigenLib that do not perform a copy. * It needs the existence of a pointer to matrix data. \sa GetPointerToMatrixData * If new types want to use this method, an appropriate overload of GetPointerToMatrixData * should be included. @@ -890,7 +890,7 @@ class ITK_TEMPLATE_EXPORT SymmetricEigenAnalysisFixedDimension return QMatrix::ValueType(); } - /* Implementation detail using EigenLib that do not peform a copy. + /* Implementation detail using EigenLib that do not perform a copy. * It needs the existence of a pointer to matrix data. \sa GetPointerToMatrixData * If new types want to use this method, an appropriate overload of GetPointerToMatrixData * should be included. @@ -1048,7 +1048,7 @@ class ITK_TEMPLATE_EXPORT SymmetricEigenAnalysisFixedDimension return 1; } - /* Implementation detail using EigenLib that do not peform a copy. + /* Implementation detail using EigenLib that do not perform a copy. * It needs the existence of a pointer to matrix data. \sa GetPointerToMatrixData * If new types want to use this method, an appropriate overload of GetPointerToMatrixData * should be included. diff --git a/Modules/Core/Common/include/itkSymmetricSecondRankTensor.h b/Modules/Core/Common/include/itkSymmetricSecondRankTensor.h index f62a155f0a6..c193586f3f7 100644 --- a/Modules/Core/Common/include/itkSymmetricSecondRankTensor.h +++ b/Modules/Core/Common/include/itkSymmetricSecondRankTensor.h @@ -137,7 +137,7 @@ class ITK_TEMPLATE_EXPORT SymmetricSecondRankTensor : public FixedArray::operator=(const ComponentType & r) } /** - * Assigment from a plain array + * Assignment from a plain array */ template SymmetricSecondRankTensor & diff --git a/Modules/Core/Common/include/itkTimeStamp.h b/Modules/Core/Common/include/itkTimeStamp.h index 53b56cabaad..8509ffb7ef1 100644 --- a/Modules/Core/Common/include/itkTimeStamp.h +++ b/Modules/Core/Common/include/itkTimeStamp.h @@ -70,7 +70,7 @@ class ITKCommon_EXPORT TimeStamp static Self * New(); - /** Destoy this instance. */ + /** Destroy this instance. */ void Delete() { diff --git a/Modules/Core/Common/include/itkVariableLengthVector.h b/Modules/Core/Common/include/itkVariableLengthVector.h index 43b545cab33..58b46f35285 100644 --- a/Modules/Core/Common/include/itkVariableLengthVector.h +++ b/Modules/Core/Common/include/itkVariableLengthVector.h @@ -1202,7 +1202,7 @@ struct VariableLengthVectorExpression : m_lhs(lhs) , m_rhs(rhs) { - // Not neccessary actually as end-user/developer is not expected to + // Not necessary actually as end-user/developer is not expected to // provide new BinaryOperations static_assert(std::is_base_of::value, "The Binary Operation shall inherit from BinaryOperationConcept"); diff --git a/Modules/Core/Common/src/itkConfigure.h.in b/Modules/Core/Common/src/itkConfigure.h.in index 06636d56364..8bed85acda6 100644 --- a/Modules/Core/Common/src/itkConfigure.h.in +++ b/Modules/Core/Common/src/itkConfigure.h.in @@ -48,7 +48,7 @@ /* Test external applications to ensure that compatible compiler C++ standard API are used * by assuming that compiler standards are backwards (but not forwards) compatible with each * other. Strange behaviors may occur if external applications do not use the same compiler - * and compiler language featues (i.e. compiler flags). + * and compiler language features (i.e. compiler flags). * The warning is disabled for NVCC (NVidia CUDA) for use of ITK macros with CUDA versions * prior to v7. */ #if !defined(__CUDACC__) @@ -96,7 +96,7 @@ # define ITK_HAS_CPP11_TYPETRAITS #endif -// defined if the compiler support GNU's __attribute__(( algined(x) )) extension +// defined if the compiler support GNU's __attribute__(( aligned(x) )) extension #cmakedefine ITK_HAS_GNU_ATTRIBUTE_ALIGNED // defined if the C library as the mallinfo struct diff --git a/Modules/Core/Common/src/itkImageIORegion.cxx b/Modules/Core/Common/src/itkImageIORegion.cxx index bde25ec08a8..8dddf9b9776 100644 --- a/Modules/Core/Common/src/itkImageIORegion.cxx +++ b/Modules/Core/Common/src/itkImageIORegion.cxx @@ -190,7 +190,7 @@ ImageIORegion::IsInside(const IndexType & index) const return true; } -/** Test if a region (the argument) is completly inside of this region */ +/** Test if a region (the argument) is completely inside of this region */ bool ImageIORegion::IsInside(const Self & region) const { diff --git a/Modules/Core/Common/src/itkImageRegionSplitterMultidimensional.cxx b/Modules/Core/Common/src/itkImageRegionSplitterMultidimensional.cxx index 3083739edae..a6977240e62 100644 --- a/Modules/Core/Common/src/itkImageRegionSplitterMultidimensional.cxx +++ b/Modules/Core/Common/src/itkImageRegionSplitterMultidimensional.cxx @@ -104,7 +104,7 @@ ImageRegionSplitterMultidimensional::GetSplitInternal(unsigned int dim, /** * given the requestedNumber of regions to split the "region" argument - * into, it retures the number of splitted regions in each dimension + * into, it returns the number of splitted regions in each dimension * as "splits" and returns the total number of splitted regions */ unsigned int diff --git a/Modules/Core/Common/src/itkLightObject.cxx b/Modules/Core/Common/src/itkLightObject.cxx index ca78593032f..4b0827fd79e 100644 --- a/Modules/Core/Common/src/itkLightObject.cxx +++ b/Modules/Core/Common/src/itkLightObject.cxx @@ -115,7 +115,7 @@ LightObject::operator delete[](void * m, size_t) /** * This function will be common to all itk objects. It just calls the - * header/self/trailer virtual print methods, which can be overriden by + * header/self/trailer virtual print methods, which can be overridden by * subclasses (any itk object). */ void diff --git a/Modules/Core/Common/src/itkMultiThreaderBase.cxx b/Modules/Core/Common/src/itkMultiThreaderBase.cxx index 85f9cb535f7..0a2629232bf 100644 --- a/Modules/Core/Common/src/itkMultiThreaderBase.cxx +++ b/Modules/Core/Common/src/itkMultiThreaderBase.cxx @@ -298,7 +298,7 @@ MultiThreaderBase::GetGlobalDefaultNumberOfThreads() ThreadIdType threadCount = 0; /* The ITK_NUMBER_OF_THREADS_ENV_LIST contains is an * environmental variable that holds a ':' separated - * list of environmental variables that whould be + * list of environmental variables that would be * queried in order for setting the m_GlobalMaximumNumberOfThreads. * * This is intended to be a mechanism suitable to easy diff --git a/Modules/Core/Common/src/itkObjectFactoryBase.cxx b/Modules/Core/Common/src/itkObjectFactoryBase.cxx index 04867a57a82..f4b88add77b 100644 --- a/Modules/Core/Common/src/itkObjectFactoryBase.cxx +++ b/Modules/Core/Common/src/itkObjectFactoryBase.cxx @@ -543,7 +543,7 @@ ObjectFactoryBase::RegisterFactoryInternal(ObjectFactoryBase * factory) itkGenericExceptionMacro("A dynamic factory tried to be loaded internally!"); } - // Do not call general ::Initialize() method as that may envoke additional + // Do not call general ::Initialize() method as that may invoke additional // libraries to be loaded and this method is called during static // initialization. ObjectFactoryBase::InitializeFactoryList(); @@ -867,7 +867,7 @@ void ObjectFactoryBase::SynchronizeObjectFactoryBase(void * objectFactoryBasePrivate) { // We need to register the previously registered factories with the new pointer. - // We keep track of the previoulsy registered factory in `previousObjectFactoryBasePrivate` + // We keep track of the previously registered factory in `previousObjectFactoryBasePrivate` // but assign the new pointer to `m_PimplGlobals` so factories can be // registered directly with the new pointer. ObjectFactoryBasePrivate * previousObjectFactoryBasePrivate = m_PimplGlobals; diff --git a/Modules/Core/Common/src/itkProcessObject.cxx b/Modules/Core/Common/src/itkProcessObject.cxx index 32bb56be86b..00b5d67203d 100644 --- a/Modules/Core/Common/src/itkProcessObject.cxx +++ b/Modules/Core/Common/src/itkProcessObject.cxx @@ -80,7 +80,7 @@ ProcessObject::MakeOutput(const DataObjectIdentifierType & name) { /* * This is a default implementation to make sure we have something. - * Once all the subclasses of ProcessObject provide an appopriate + * Once all the subclasses of ProcessObject provide an appropriate * MakeOutput(), then ProcessObject::MakeOutput() can be made pure * virtual. */ diff --git a/Modules/Core/Common/src/itkProgressAccumulator.cxx b/Modules/Core/Common/src/itkProgressAccumulator.cxx index e454d66da6d..c1e40e1a8f2 100644 --- a/Modules/Core/Common/src/itkProgressAccumulator.cxx +++ b/Modules/Core/Common/src/itkProgressAccumulator.cxx @@ -84,7 +84,7 @@ ProgressAccumulator::ResetProgress() m_AccumulatedProgress = 0.0f; m_BaseAccumulatedProgress = 0.0f; - // Reset each of the individial progress meters + // Reset each of the individual progress meters FilterRecordVector::iterator it; for (it = m_FilterRecord.begin(); it != m_FilterRecord.end(); ++it) { diff --git a/Modules/Core/Common/src/itkSmapsFileParser.cxx b/Modules/Core/Common/src/itkSmapsFileParser.cxx index 692a2519fbf..892efc3fe8a 100644 --- a/Modules/Core/Common/src/itkSmapsFileParser.cxx +++ b/Modules/Core/Common/src/itkSmapsFileParser.cxx @@ -227,7 +227,7 @@ ITKCommon_EXPORT std::istream & } else { - // the name is folowed by an address + // the name is followed by an address in >> address; if (!in.good()) diff --git a/Modules/Core/Common/src/itkSpatialOrientationAdapter.cxx b/Modules/Core/Common/src/itkSpatialOrientationAdapter.cxx index f8c329cc27f..e7e19898d68 100644 --- a/Modules/Core/Common/src/itkSpatialOrientationAdapter.cxx +++ b/Modules/Core/Common/src/itkSpatialOrientationAdapter.cxx @@ -174,7 +174,7 @@ SpatialOrientationAdapter::ToDirectionCosines(const OrientationType & Or) break; } } - // TODO: Should check that directions are orthoganal. + // TODO: Should check that directions are orthogonal. return direction; } } // end namespace itk diff --git a/Modules/Core/Common/src/itkThreadPool.cxx b/Modules/Core/Common/src/itkThreadPool.cxx index 976c6edc2ca..dfcfc6164ca 100644 --- a/Modules/Core/Common/src/itkThreadPool.cxx +++ b/Modules/Core/Common/src/itkThreadPool.cxx @@ -106,7 +106,7 @@ ThreadPool::SetDoNotWaitForThreads(bool doNotWaitForThreads) ThreadPool::ThreadPool() { - // m_PimplGlobals->m_Mutex not needed to be acquired here because contruction only occurs via GetInstance which is + // m_PimplGlobals->m_Mutex not needed to be acquired here because construction only occurs via GetInstance which is // protected by call_once. m_PimplGlobals->m_ThreadPoolInstance = this; // threads need this diff --git a/Modules/Core/Common/test/CMakeLists.txt b/Modules/Core/Common/test/CMakeLists.txt index cfd0d69f1bd..a56212e4b60 100644 --- a/Modules/Core/Common/test/CMakeLists.txt +++ b/Modules/Core/Common/test/CMakeLists.txt @@ -191,7 +191,7 @@ if(ITK_BUILD_SHARED_LIBS AND ITK_DYNAMIC_LOADING) list(APPEND ITKCommon2Tests itkDownCastTest.cxx) endif() -# Note: Tests are arbitrarly split into two drivers to avoid memory issues. +# Note: Tests are arbitrarily split into two drivers to avoid memory issues. CreateTestDriver(ITKCommon1 "${ITKCommon-Test_LIBRARIES}" "${ITKCommon1Tests}" itkFloatingPointExceptionsExtern.cxx) CreateTestDriver(ITKCommon2 "${ITKCommon-Test_LIBRARIES}" "${ITKCommon2Tests}" itkFloatingPointExceptionsExtern.cxx) diff --git a/Modules/Core/Common/test/itkAutoPointerTest.cxx b/Modules/Core/Common/test/itkAutoPointerTest.cxx index dfeb40e265e..ecfc906a79b 100644 --- a/Modules/Core/Common/test/itkAutoPointerTest.cxx +++ b/Modules/Core/Common/test/itkAutoPointerTest.cxx @@ -26,7 +26,7 @@ class TestObject using Self = TestObject; using AutoPointer = itk::AutoPointer; using ConstAutoPointer = itk::AutoPointer; - TestObject() { std::cout << "TestObject Contructed" << std::endl; } + TestObject() { std::cout << "TestObject Constructed" << std::endl; } virtual ~TestObject() { std::cout << "TestObject Destructed" << std::endl; } const char * GetClassName() const diff --git a/Modules/Core/Common/test/itkBoundingBoxTest.cxx b/Modules/Core/Common/test/itkBoundingBoxTest.cxx index 0194cf796ec..1f490392239 100644 --- a/Modules/Core/Common/test/itkBoundingBoxTest.cxx +++ b/Modules/Core/Common/test/itkBoundingBoxTest.cxx @@ -200,7 +200,7 @@ itkBoundingBoxTest(int, char *[]) { if (itk::Math::abs(originalBounds[i] - clonedbounds[i]) > tolerance) { - std::cerr << "Clonning test failed" << std::endl; + std::cerr << "Cloning test failed" << std::endl; std::cerr << originalBounds << std::endl; std::cerr << clonedbounds << std::endl; return EXIT_FAILURE; diff --git a/Modules/Core/Common/test/itkCommandObserverObjectTest.cxx b/Modules/Core/Common/test/itkCommandObserverObjectTest.cxx index 9f400c7732f..23bc60571f9 100644 --- a/Modules/Core/Common/test/itkCommandObserverObjectTest.cxx +++ b/Modules/Core/Common/test/itkCommandObserverObjectTest.cxx @@ -303,8 +303,8 @@ testLambdaCommand() /*----- SECOND OBSERVER LAMBDA */ o->AddObserver(itk::AnyEvent(), [&objRef, &name_of_class_cnt](const itk::EventObject & event) { ++name_of_class_cnt; - std::cout << "Ivocation # " << name_of_class_cnt << "\nObject: " << objRef.GetNameOfClass() << " Event: " << event - << std::endl; + std::cout << "Invocation # " << name_of_class_cnt << "\nObject: " << objRef.GetNameOfClass() + << " Event: " << event << std::endl; }); o->InvokeEvent(itk::AnyEvent()); diff --git a/Modules/Core/Common/test/itkCommonTypeTraitsGTest.cxx b/Modules/Core/Common/test/itkCommonTypeTraitsGTest.cxx index 82775cd4a8d..d45a5ab6876 100644 --- a/Modules/Core/Common/test/itkCommonTypeTraitsGTest.cxx +++ b/Modules/Core/Common/test/itkCommonTypeTraitsGTest.cxx @@ -30,7 +30,7 @@ #include // info: is_pod (c++20 deprecated) is equivalent to is_trivial && is_standard_layout -// info: type_traits cannot differentiate if an explicit move constructible/assignmet exist. +// info: type_traits cannot differentiate if an explicit move constructible/assignment exist. TEST(CommonTypeTraits, FixedArrayIsPOD) { @@ -95,7 +95,7 @@ TEST(CommonTypeTraits, ContinuousIndexIsPOD) /************ FixedArray: noexcept move checks *************/ -/* Dummy class without noexcept move contructors. */ +/* Dummy class without noexcept move constructors. */ struct NotNoexceptMove { NotNoexceptMove() = default; @@ -105,7 +105,7 @@ struct NotNoexceptMove /* Check that move-constructing a FixedArray works as move-constructing an aggregate. * Move constructors are noexcept when the contained class has a noexcept move constructor. - * And when the contained class might throw at move, the qualifer automatically + * And when the contained class might throw at move, the qualifier automatically * propagates it to FixedArray. * This is the same behaviour as std::array. It proves there is no need to * add noexcept to the container. This would disallow using it diff --git a/Modules/Core/Common/test/itkImageGTest.cxx b/Modules/Core/Common/test/itkImageGTest.cxx index 1794ecc7e72..8a2e0b5466b 100644 --- a/Modules/Core/Common/test/itkImageGTest.cxx +++ b/Modules/Core/Common/test/itkImageGTest.cxx @@ -166,7 +166,7 @@ TEST(Image, EqualToItself) Expect_new_object_equal_to_itself>(); Expect_new_object_equal_to_itself>(); - // Tests an object that is allocated and intialized. + // Tests an object that is allocated and initialized. Expect_allocated_initialized_image_equal_to_itself>(); Expect_allocated_initialized_image_equal_to_itself>(); } diff --git a/Modules/Core/Common/test/itkLoggerOutputTest.cxx b/Modules/Core/Common/test/itkLoggerOutputTest.cxx index d199986547f..0e628b02f43 100644 --- a/Modules/Core/Common/test/itkLoggerOutputTest.cxx +++ b/Modules/Core/Common/test/itkLoggerOutputTest.cxx @@ -80,7 +80,7 @@ itkLoggerOutputTest(int argc, char * argv[]) } catch (...) { - std::cerr << "Exception catched !!" << std::endl; + std::cerr << "Exception caught !!" << std::endl; return EXIT_FAILURE; } diff --git a/Modules/Core/Common/test/itkLoggerTest.cxx b/Modules/Core/Common/test/itkLoggerTest.cxx index ed9aded1c82..b0e67b95713 100644 --- a/Modules/Core/Common/test/itkLoggerTest.cxx +++ b/Modules/Core/Common/test/itkLoggerTest.cxx @@ -124,7 +124,7 @@ itkLoggerTest(int argc, char * argv[]) } catch (...) { - std::cerr << "Exception catched !!" << std::endl; + std::cerr << "Exception caught !!" << std::endl; return EXIT_FAILURE; } diff --git a/Modules/Core/Common/test/itkLoggerThreadWrapperTest.cxx b/Modules/Core/Common/test/itkLoggerThreadWrapperTest.cxx index 63ffbeb587f..39d2aafb41b 100644 --- a/Modules/Core/Common/test/itkLoggerThreadWrapperTest.cxx +++ b/Modules/Core/Common/test/itkLoggerThreadWrapperTest.cxx @@ -280,7 +280,7 @@ itkLoggerThreadWrapperTest(int argc, char * argv[]) } catch (...) { - std::cerr << "Exception catched !!" << std::endl; + std::cerr << "Exception caught !!" << std::endl; return EXIT_FAILURE; } diff --git a/Modules/Core/Common/test/itkMathTest.cxx b/Modules/Core/Common/test/itkMathTest.cxx index 66f214d6ec4..7e7c04e5527 100644 --- a/Modules/Core/Common/test/itkMathTest.cxx +++ b/Modules/Core/Common/test/itkMathTest.cxx @@ -68,7 +68,7 @@ TestIntegersAreSame(const T1 & v1, const T2 & v2) int testPassStatus = EXIT_SUCCESS; if (static_cast(v1) != v2) { - std::cout << "ERROR: static cast did not perform as expected for wrap arround." << std::endl; + std::cout << "ERROR: static cast did not perform as expected for wrap around." << std::endl; std::cout << v1 << " static_cast " << static_cast(v1) << std::endl; std::cout << v2 << std::endl; testPassStatus = EXIT_FAILURE; diff --git a/Modules/Core/Common/test/itkMetaDataDictionaryTest.cxx b/Modules/Core/Common/test/itkMetaDataDictionaryTest.cxx index 3abac21fca2..c36cf044eae 100644 --- a/Modules/Core/Common/test/itkMetaDataDictionaryTest.cxx +++ b/Modules/Core/Common/test/itkMetaDataDictionaryTest.cxx @@ -150,7 +150,7 @@ itkMetaDataDictionaryTest(int, char *[]) catch (const itk::ExceptionObject & excp) { std::cout << excp << std::endl; - std::cout << "catched EXPECTED exception for invalid key string to MetaDataDictionary" << std::endl; + std::cout << "caught EXPECTED exception for invalid key string to MetaDataDictionary" << std::endl; } if (MyDictionary.Erase("ASimpleFloatChanged") == false) diff --git a/Modules/Core/Common/test/itkMinimumMaximumImageCalculatorTest.cxx b/Modules/Core/Common/test/itkMinimumMaximumImageCalculatorTest.cxx index bb569cdf684..4784f613dd6 100644 --- a/Modules/Core/Common/test/itkMinimumMaximumImageCalculatorTest.cxx +++ b/Modules/Core/Common/test/itkMinimumMaximumImageCalculatorTest.cxx @@ -67,7 +67,7 @@ itkMinimumMaximumImageCalculatorTest(int, char *[]) } // The minimum intensity index position will contain a single value: - // since all pixels have equal value, it will be ther first pixel + // since all pixels have equal value, it will be the first pixel itk::Index<3> minIntensityValueIndex; minIntensityValueIndex[0] = 0; minIntensityValueIndex[1] = 0; diff --git a/Modules/Core/Common/test/itkMultiThreaderTypeFromEnvironmentTest.cxx b/Modules/Core/Common/test/itkMultiThreaderTypeFromEnvironmentTest.cxx index f3fee4d080c..9905f5b148a 100644 --- a/Modules/Core/Common/test/itkMultiThreaderTypeFromEnvironmentTest.cxx +++ b/Modules/Core/Common/test/itkMultiThreaderTypeFromEnvironmentTest.cxx @@ -79,7 +79,7 @@ itkMultiThreaderTypeFromEnvironmentTest(int argc, char * argv[]) // When implementing a new multi-threader: // 1. insert it into threadersToTest set - // 2. add tests to Modules/Core/Common/test/CMakeLists.txt similarily to tests for other multi-threaders + // 2. add tests to Modules/Core/Common/test/CMakeLists.txt similarly to tests for other multi-threaders // 3. rewrite the condition below to use whatever is really the last threader type itkAssertOrThrowMacro(ThreaderEnum::TBB == ThreaderEnum::Last, "All multi-threader implementation have to be tested!"); diff --git a/Modules/Core/Common/test/itkMultipleLogOutputTest.cxx b/Modules/Core/Common/test/itkMultipleLogOutputTest.cxx index 1662c298105..35dfdad7a3c 100644 --- a/Modules/Core/Common/test/itkMultipleLogOutputTest.cxx +++ b/Modules/Core/Common/test/itkMultipleLogOutputTest.cxx @@ -57,7 +57,7 @@ itkMultipleLogOutputTest(int argc, char * argv[]) } catch (...) { - std::cerr << "Exception catched !!" << std::endl; + std::cerr << "Exception caught !!" << std::endl; return EXIT_FAILURE; } diff --git a/Modules/Core/Common/test/itkPeriodicBoundaryConditionTest.cxx b/Modules/Core/Common/test/itkPeriodicBoundaryConditionTest.cxx index ac94d4c245b..cfdf0d4ccf9 100644 --- a/Modules/Core/Common/test/itkPeriodicBoundaryConditionTest.cxx +++ b/Modules/Core/Common/test/itkPeriodicBoundaryConditionTest.cxx @@ -62,7 +62,7 @@ TestPrintNeighborhood(IteratorType & p, VectorIteratorType & v) std::cout << std::endl; } - std::cout << "Ouptut from GetPixel( const IndexType & index, const TImage * image ) const" << std::endl; + std::cout << "Output from GetPixel( const IndexType & index, const TImage * image ) const" << std::endl; i = 0; for (y = 0; y < p.GetSize()[1]; ++y) diff --git a/Modules/Core/Common/test/itkRangeGTestUtilities.h b/Modules/Core/Common/test/itkRangeGTestUtilities.h index 60d7722ccb3..589010b6223 100644 --- a/Modules/Core/Common/test/itkRangeGTestUtilities.h +++ b/Modules/Core/Common/test/itkRangeGTestUtilities.h @@ -180,7 +180,7 @@ class RangeGTestUtilities static void ExpectIteratorEqualsItself(TValue *) { - // Overload for the use of a pointer type as iterator. Intensionally does "nothing", as a pointer always + // Overload for the use of a pointer type as iterator. Intentionally does "nothing", as a pointer always // equals itself, by definition. Aims to avoid "warning: self-comparison always evaluates to false/true // [-Wtautological-compare]", as produced by clang 13.0.1 on Ubuntu 20.04. } diff --git a/Modules/Core/Common/test/itkSmartPointerGTest.cxx b/Modules/Core/Common/test/itkSmartPointerGTest.cxx index 7d0a0df3beb..d4bd03c37f2 100644 --- a/Modules/Core/Common/test/itkSmartPointerGTest.cxx +++ b/Modules/Core/Common/test/itkSmartPointerGTest.cxx @@ -145,7 +145,7 @@ TEST(SmartPointer, EmptyAndNull) // EXPECT_TRUE( ptr == 0 ); // EXPECT_TRUE( 0 == ptr ); - // Excercise pointer assignment + // Exercise pointer assignment auto p1 = Derived2::New(); Derived2::Pointer p2 = p1; Derived2::ConstPointer cp1 = p1; diff --git a/Modules/Core/Common/test/itkSmartPointerTest.cxx b/Modules/Core/Common/test/itkSmartPointerTest.cxx index 03113058aa0..4c242f5d585 100644 --- a/Modules/Core/Common/test/itkSmartPointerTest.cxx +++ b/Modules/Core/Common/test/itkSmartPointerTest.cxx @@ -119,7 +119,7 @@ itkSmartPointerTest(int, char *[]) // itkTestObject::Pointer p = sc; // For construction use the constructor call: - // Test casting up the tree, note no explict cast is required + // Test casting up the tree, note no explicit cast is required itkTestObject::Pointer p(sc); // No cast is required for assignment diff --git a/Modules/Core/Common/test/itkSymmetricEllipsoidInteriorExteriorSpatialFunctionTest.cxx b/Modules/Core/Common/test/itkSymmetricEllipsoidInteriorExteriorSpatialFunctionTest.cxx index da3d2ecb563..1ff038d6f76 100644 --- a/Modules/Core/Common/test/itkSymmetricEllipsoidInteriorExteriorSpatialFunctionTest.cxx +++ b/Modules/Core/Common/test/itkSymmetricEllipsoidInteriorExteriorSpatialFunctionTest.cxx @@ -49,7 +49,7 @@ itkSymmetricEllipsoidInteriorExteriorSpatialFunctionTest(int, char *[]) spatialFunc->SetCenter(center); // Define and set the orientation and axes lengths of the ellipsoid - // NOTE: Orienation vector must be normalized!!!! + // NOTE: Orientation vector must be normalized!!!! itk::Vector orientation; orientation[0] = 1 / std::sqrt(2.0); orientation[1] = 1 / std::sqrt(2.0); diff --git a/Modules/Core/Common/test/itkTimeProbeTest2.cxx b/Modules/Core/Common/test/itkTimeProbeTest2.cxx index cfc212d75a4..b8f6d14e8df 100644 --- a/Modules/Core/Common/test/itkTimeProbeTest2.cxx +++ b/Modules/Core/Common/test/itkTimeProbeTest2.cxx @@ -88,7 +88,7 @@ itkTimeProbeTest2(int, char *[]) // Print current values std::cout << "InstantValue: " << localTimer.GetInstantValue() << std::endl; - // Print a regualr report (including nameOfProbe, Iteration, Total, Min, Mean, Max, and STD) + // Print a regular report (including nameOfProbe, Iteration, Total, Min, Mean, Max, and STD) std::cout << std::endl << "Print a normal report" << std::endl; localTimer.Report(); diff --git a/Modules/Core/Common/test/itkTimeProbesTest.cxx b/Modules/Core/Common/test/itkTimeProbesTest.cxx index 9bfcb43749f..e4cea8d8423 100644 --- a/Modules/Core/Common/test/itkTimeProbesTest.cxx +++ b/Modules/Core/Common/test/itkTimeProbesTest.cxx @@ -147,11 +147,11 @@ itkTimeProbesTest(int, char *[]) collector.Stop("o:TransformPhysicalPointToIndex"); } - // Print a regualr report (including nameOfProbe, Iteration, Total, Min, Mean, Max, and STD) + // Print a regular report (including nameOfProbe, Iteration, Total, Min, Mean, Max, and STD) std::cout << std::endl << "Print normal reports from all probes" << std::endl; collector.Report(); - // Print a regualr report (including nameOfProbe, Iteration, Total, Min, Mean, Max, and STD) + // Print a regular report (including nameOfProbe, Iteration, Total, Min, Mean, Max, and STD) // of the probe of "Loop1" std::cout << std::endl << "Print a normal report of a specific probe" << std::endl; collector.Report("Loop1"); diff --git a/Modules/Core/Common/test/itkTimeStampTest.cxx b/Modules/Core/Common/test/itkTimeStampTest.cxx index 99784fe0fb0..b9e0f6635bf 100644 --- a/Modules/Core/Common/test/itkTimeStampTest.cxx +++ b/Modules/Core/Common/test/itkTimeStampTest.cxx @@ -120,7 +120,7 @@ itkTimeStampTest(int, char *[]) min_mtime = mtime; } - // initialiaze the array to false + // initialize the array to false istimestamped[k] = false; } diff --git a/Modules/Core/Common/test/itkZeroFluxBoundaryConditionTest.cxx b/Modules/Core/Common/test/itkZeroFluxBoundaryConditionTest.cxx index 630a3c0c78e..461701e208c 100644 --- a/Modules/Core/Common/test/itkZeroFluxBoundaryConditionTest.cxx +++ b/Modules/Core/Common/test/itkZeroFluxBoundaryConditionTest.cxx @@ -61,7 +61,7 @@ TestPrintNeighborhood(IteratorType & p, VectorIteratorType & v) std::cout << std::endl; } - std::cout << "Ouptut from GetPixel( const IndexType & index, const TImage * image ) const" << std::endl; + std::cout << "Output from GetPixel( const IndexType & index, const TImage * image ) const" << std::endl; i = 0; for (y = 0; y < p.GetSize()[1]; ++y) diff --git a/Modules/Core/GPUCommon/include/itkGPUInPlaceImageFilter.hxx b/Modules/Core/GPUCommon/include/itkGPUInPlaceImageFilter.hxx index 6ff8f7242ed..5969b822298 100644 --- a/Modules/Core/GPUCommon/include/itkGPUInPlaceImageFilter.hxx +++ b/Modules/Core/GPUCommon/include/itkGPUInPlaceImageFilter.hxx @@ -98,7 +98,7 @@ GPUInPlaceImageFilter::AllocateOu outputPtr->SetBufferedRegion(outputPtr->GetRequestedRegion()); outputPtr->Allocate(); } - // if the output is not of simular type then it is assumed the + // if the output is not of similar type then it is assumed the // the derived class allocated the output if needed. } } diff --git a/Modules/Core/GPUFiniteDifference/itk-module.cmake b/Modules/Core/GPUFiniteDifference/itk-module.cmake index 7a1e816be9d..c9ea371abd7 100644 --- a/Modules/Core/GPUFiniteDifference/itk-module.cmake +++ b/Modules/Core/GPUFiniteDifference/itk-module.cmake @@ -1,5 +1,5 @@ set(DOCUMENTATION "This module contains the GPU implementations of base classes -neede for finite difference image filters. Most of the classes in this module +needed for finite difference image filters. Most of the classes in this module are abstract and therefore are not intended to be instantiated by themselves.") itk_module(ITKGPUFiniteDifference diff --git a/Modules/Core/ImageAdaptors/test/itkImageAdaptorTest.cxx b/Modules/Core/ImageAdaptors/test/itkImageAdaptorTest.cxx index 34c66586fc4..d3e715c2c98 100644 --- a/Modules/Core/ImageAdaptors/test/itkImageAdaptorTest.cxx +++ b/Modules/Core/ImageAdaptors/test/itkImageAdaptorTest.cxx @@ -21,7 +21,7 @@ * Accessors * * The example shows how an Adaptor can be used to - * get acces only to thered component of an RGBPixel image + * get access only to the red component of an RGBPixel image * giving the appearance of being just a 'float' image * * That will allow to pass the red component of this diff --git a/Modules/Core/ImageAdaptors/test/itkNthElementPixelAccessorTest.cxx b/Modules/Core/ImageAdaptors/test/itkNthElementPixelAccessorTest.cxx index 40e5c9ef384..f0d7212331e 100644 --- a/Modules/Core/ImageAdaptors/test/itkNthElementPixelAccessorTest.cxx +++ b/Modules/Core/ImageAdaptors/test/itkNthElementPixelAccessorTest.cxx @@ -21,7 +21,7 @@ * NthElementPixelAccessor * * The example shows how an Adaptor can be used to - * get acces only to the Nth component of a vector image + * get access only to the Nth component of a vector image * giving the appearance of being just a 'float' image * * That will allow to pass the Nth component of this diff --git a/Modules/Core/ImageAdaptors/test/itkVectorImageToImageAdaptorTest.cxx b/Modules/Core/ImageAdaptors/test/itkVectorImageToImageAdaptorTest.cxx index 7ea2171fc90..57445ee47f4 100644 --- a/Modules/Core/ImageAdaptors/test/itkVectorImageToImageAdaptorTest.cxx +++ b/Modules/Core/ImageAdaptors/test/itkVectorImageToImageAdaptorTest.cxx @@ -23,7 +23,7 @@ #include "itkMath.h" // This test tests the basic functionality of -// VectorImageToImageAdaptor, espeically the Set/GetPixel() methods. +// VectorImageToImageAdaptor, especially the Set/GetPixel() methods. int itkVectorImageToImageAdaptorTest(int, char *[]) diff --git a/Modules/Core/ImageFunction/include/itkBSplineDecompositionImageFilter.hxx b/Modules/Core/ImageFunction/include/itkBSplineDecompositionImageFilter.hxx index 5fe824916c5..5f5eda9c51b 100644 --- a/Modules/Core/ImageFunction/include/itkBSplineDecompositionImageFilter.hxx +++ b/Modules/Core/ImageFunction/include/itkBSplineDecompositionImageFilter.hxx @@ -241,7 +241,7 @@ BSplineDecompositionImageFilter::DataToCoefficientsND ProgressReporter progress(this, 0, count, 10); - // Initialize coeffient array + // Initialize coefficient array this->CopyImageToImage(); // Coefficients are initialized to the input data // Loop through each dimension diff --git a/Modules/Core/ImageFunction/include/itkCentralDifferenceImageFunction.h b/Modules/Core/ImageFunction/include/itkCentralDifferenceImageFunction.h index 45a8389c971..96106b19e0e 100644 --- a/Modules/Core/ImageFunction/include/itkCentralDifferenceImageFunction.h +++ b/Modules/Core/ImageFunction/include/itkCentralDifferenceImageFunction.h @@ -210,14 +210,14 @@ class ITK_TEMPLATE_EXPORT CentralDifferenceImageFunction : public ImageFunction< PrintSelf(std::ostream & os, Indent indent) const override; private: - /** Structure for specialization of Evaulate* methods on OutputType */ + /** Structure for specialization of Evaluate* methods on OutputType */ template struct OutputTypeSpecializationStructType { using Type = T; }; - /** Specialized versions of EvaluteAtIndex() method to handle scalar or vector pixel types.*/ + /** Specialized versions of EvaluateAtIndex() method to handle scalar or vector pixel types.*/ template inline void EvaluateAtIndexSpecialized(const IndexType & index, @@ -229,7 +229,7 @@ class ITK_TEMPLATE_EXPORT CentralDifferenceImageFunction : public ImageFunction< OutputType & derivative, OutputTypeSpecializationStructType) const; - /** Specialized versions of EvaluteAtContinuousIndex() method to handle scalar or vector pixel types.*/ + /** Specialized versions of EvaluateAtContinuousIndex() method to handle scalar or vector pixel types.*/ template inline void EvaluateAtContinuousIndexSpecialized(const ContinuousIndexType & cindex, @@ -241,7 +241,7 @@ class ITK_TEMPLATE_EXPORT CentralDifferenceImageFunction : public ImageFunction< OutputType & derivative, OutputTypeSpecializationStructType) const; - /** Specialized versions of Evalute() method to handle scalar or vector pixel types.*/ + /** Specialized versions of Evaluate() method to handle scalar or vector pixel types.*/ // NOTE: for some unknown reason, making these methods inline (as those above are inlined) makes them run *slower*. template void diff --git a/Modules/Core/ImageFunction/include/itkGaussianBlurImageFunction.h b/Modules/Core/ImageFunction/include/itkGaussianBlurImageFunction.h index a01457ff47c..f45c73bf5e1 100644 --- a/Modules/Core/ImageFunction/include/itkGaussianBlurImageFunction.h +++ b/Modules/Core/ImageFunction/include/itkGaussianBlurImageFunction.h @@ -92,7 +92,7 @@ class ITK_TEMPLATE_EXPORT GaussianBlurImageFunction : public ImageFunctionModified(); } - /** Evalutate the in the given dimension at specified point + /** Evaluate the function in the given dimension at specified point * Subclasses should override this method. */ TOutput Evaluate(const PointType &) const override diff --git a/Modules/Core/ImageFunction/include/itkRayCastInterpolateImageFunction.hxx b/Modules/Core/ImageFunction/include/itkRayCastInterpolateImageFunction.hxx index d6b927e2402..1629410eafc 100644 --- a/Modules/Core/ImageFunction/include/itkRayCastInterpolateImageFunction.hxx +++ b/Modules/Core/ImageFunction/include/itkRayCastInterpolateImageFunction.hxx @@ -128,7 +128,7 @@ public: Initialise(); protected: - /// Calculate the endpoint coordinats of the ray in voxels. + /// Calculate the endpoint coordinates of the ray in voxels. void EndPointsInVoxels(); diff --git a/Modules/Core/ImageFunction/test/itkBSplineDecompositionImageFilterTest.cxx b/Modules/Core/ImageFunction/test/itkBSplineDecompositionImageFilterTest.cxx index 8f4379d9564..18dbd601329 100644 --- a/Modules/Core/ImageFunction/test/itkBSplineDecompositionImageFilterTest.cxx +++ b/Modules/Core/ImageFunction/test/itkBSplineDecompositionImageFilterTest.cxx @@ -65,7 +65,7 @@ ParseSplinePoles(char * splinePolesIn) /** Note: This is the same test used for the itkBSplineResampleImageFunctionTest - * It is duplicated here because it excercises the itkBSplineDecompositionFilter + * It is duplicated here because it exercises the itkBSplineDecompositionFilter * and demonstrates its use. */ diff --git a/Modules/Core/ImageFunction/test/itkBSplineResampleImageFunctionTest.cxx b/Modules/Core/ImageFunction/test/itkBSplineResampleImageFunctionTest.cxx index 7a1c0fab486..42de2cbf8b5 100644 --- a/Modules/Core/ImageFunction/test/itkBSplineResampleImageFunctionTest.cxx +++ b/Modules/Core/ImageFunction/test/itkBSplineResampleImageFunctionTest.cxx @@ -30,7 +30,7 @@ #include "makeRandomImageBsplineInterpolator.h" /** Note: This is the same test used for the itkBSplineDecompositionFilter - * It is duplicated here because it excercises the itkBSplineResampleImageFunctionTest + * It is duplicated here because it exercises the itkBSplineResampleImageFunctionTest * and demonstrates its use. */ diff --git a/Modules/Core/ImageFunction/test/itkCentralDifferenceImageFunctionOnVectorTest.cxx b/Modules/Core/ImageFunction/test/itkCentralDifferenceImageFunctionOnVectorTest.cxx index 51cd12447e0..1b81e49a6b9 100644 --- a/Modules/Core/ImageFunction/test/itkCentralDifferenceImageFunctionOnVectorTest.cxx +++ b/Modules/Core/ImageFunction/test/itkCentralDifferenceImageFunctionOnVectorTest.cxx @@ -305,7 +305,7 @@ itkCentralDifferenceImageFunctionOnVectorTestRun() if (center == left || center == right) { - std::cout << "ERROR: Failed for Evaluate at non-interger indices. Results are unexpectedly identical." << std::endl; + std::cout << "ERROR: Failed for Evaluate at non-integer indices. Results are unexpectedly identical." << std::endl; result = EXIT_FAILURE; } diff --git a/Modules/Core/ImageFunction/test/itkGaussianInterpolateImageFunctionTest.cxx b/Modules/Core/ImageFunction/test/itkGaussianInterpolateImageFunctionTest.cxx index 0d727607779..3ad81ab006b 100644 --- a/Modules/Core/ImageFunction/test/itkGaussianInterpolateImageFunctionTest.cxx +++ b/Modules/Core/ImageFunction/test/itkGaussianInterpolateImageFunctionTest.cxx @@ -101,7 +101,7 @@ itkGaussianInterpolateImageFunctionTest(int, char *[]) std::cerr << "Error: computed and expected values are different" << std::endl; std::cerr << "Point: " << point << std::endl; std::cerr << "Computed: " << computedValue << std::endl; - std::cerr << "Expectd: " << expectedValue[j] << std::endl; + std::cerr << "Expected: " << expectedValue[j] << std::endl; return EXIT_FAILURE; } diff --git a/Modules/Core/Mesh/include/itkMesh.hxx b/Modules/Core/Mesh/include/itkMesh.hxx index 15042ec6317..1b121d785f2 100644 --- a/Modules/Core/Mesh/include/itkMesh.hxx +++ b/Modules/Core/Mesh/include/itkMesh.hxx @@ -727,7 +727,7 @@ Mesh::GetCellBoundaryFeatureNeighbors(int */ delete tempCells; - /** delete the boundary feature added as a temporary auxiliar object, + /** delete the boundary feature added as a temporary auxiliary object, being an AutoPointer it will release memory when going out of scope */ /** diff --git a/Modules/Core/Mesh/include/itkParametricSpaceToImageSpaceMeshFilter.hxx b/Modules/Core/Mesh/include/itkParametricSpaceToImageSpaceMeshFilter.hxx index 7b1f9b415a8..9f3af6a2014 100644 --- a/Modules/Core/Mesh/include/itkParametricSpaceToImageSpaceMeshFilter.hxx +++ b/Modules/Core/Mesh/include/itkParametricSpaceToImageSpaceMeshFilter.hxx @@ -115,7 +115,7 @@ ParametricSpaceToImageSpaceMeshFilter::GenerateData() { for (unsigned int i = 0; i < OutputDimension; ++i) { - // Conver Index coordinates to MeshSpace + // Convert Index coordinates to MeshSpace point[i] = inputDataIt.Value()[i]; } diff --git a/Modules/Core/Mesh/include/itkSimplexMesh.h b/Modules/Core/Mesh/include/itkSimplexMesh.h index cc468c93ee6..8323c206c8b 100644 --- a/Modules/Core/Mesh/include/itkSimplexMesh.h +++ b/Modules/Core/Mesh/include/itkSimplexMesh.h @@ -35,7 +35,7 @@ namespace itk * A simplex mesh can be used for deformable model segmentation of 3D image data. * To create a simplex mesh one needs a triangle mesh, which can be converted * to using the class itkTriangleMeshToSimplexMeshFilter. The back filtering - * (from simplex to trinagle mesh)is done through a itkSimplexMeshToTriangleMeshFilter. + * (from simplex to triangle mesh)is done through a itkSimplexMeshToTriangleMeshFilter. * * \author Thomas Boettger. Division Medical and Biological Informatics, German Cancer Research Center, Heidelberg. * \ingroup ITKMesh diff --git a/Modules/Core/Mesh/include/itkTriangleMeshCurvatureCalculator.h b/Modules/Core/Mesh/include/itkTriangleMeshCurvatureCalculator.h index a14b4246c7b..e05a283cdaf 100644 --- a/Modules/Core/Mesh/include/itkTriangleMeshCurvatureCalculator.h +++ b/Modules/Core/Mesh/include/itkTriangleMeshCurvatureCalculator.h @@ -40,13 +40,13 @@ namespace itk * \brief * Calculator to compute curvature of a triangle mesh. Set the input triangle mesh and the * required curvature type first. Default curvature type is Gauss. After computing curvature the result - * can be obtained using the getter method. It throws exeption if the input mesh is not set. - * The implementation is same as in VTK. + * can be obtained using the getter method. It throws exception if the input mesh is not set. + * The implementation is the same as in VTK. * \ingroup ITKMesh */ /** \class TriangleMeshCurvatureCalculatorEnum - * \brief Different modes of operation. Currently only Guassian curvature is supported. + * \brief Different modes of operation. Currently only Gaussian curvature is supported. * Using enum for future extension to Mean, Max and Min curvature. */ class TriangleMeshCurvatureCalculatorEnums @@ -111,7 +111,7 @@ class ITK_TEMPLATE_EXPORT TriangleMeshCurvatureCalculator : public Object /** Get Gauss curvature. */ itkGetConstObjectMacro(GaussCurvatureData, DoubleVectorContainer); - /** Set the curvature type to Guass. */ + /** Set the curvature type to Gauss. */ void SetCurvatureTypeToGaussian() { diff --git a/Modules/Core/Mesh/include/itkTriangleMeshToBinaryImageFilter.h b/Modules/Core/Mesh/include/itkTriangleMeshToBinaryImageFilter.h index 586fb763989..3caea3dfd21 100644 --- a/Modules/Core/Mesh/include/itkTriangleMeshToBinaryImageFilter.h +++ b/Modules/Core/Mesh/include/itkTriangleMeshToBinaryImageFilter.h @@ -66,7 +66,7 @@ class Point1D * * \brief 3D Rasterization algorithm Courtesy of Dr David Gobbi of Atamai Inc. - * \author Leila Baghdadi, MICe, Hospital for Sick Childern, Toronto, Canada, + * \author Leila Baghdadi, MICe, Hospital for Sick Children, Toronto, Canada, * \ingroup ITKMesh */ template diff --git a/Modules/Core/Mesh/test/itkInteriorExteriorMeshFilterTest.cxx b/Modules/Core/Mesh/test/itkInteriorExteriorMeshFilterTest.cxx index b2f1eecff29..b569d2fccdb 100644 --- a/Modules/Core/Mesh/test/itkInteriorExteriorMeshFilterTest.cxx +++ b/Modules/Core/Mesh/test/itkInteriorExteriorMeshFilterTest.cxx @@ -32,8 +32,8 @@ itkInteriorExteriorMeshFilterTest(int, char *[]) // Declare the types of the Mesh // By default it is a 3D mesh using itk::Point - // on the vertices, and an itk::VectorContainter - // as containter for points + // on the vertices, and an itk::VectorContainer + // as container for points using MeshType = itk::Mesh; // Declare the type for PointsContainer diff --git a/Modules/Core/Mesh/test/itkMeshSourceGraftOutputTest.cxx b/Modules/Core/Mesh/test/itkMeshSourceGraftOutputTest.cxx index 781ab52e896..dca8ad21423 100644 --- a/Modules/Core/Mesh/test/itkMeshSourceGraftOutputTest.cxx +++ b/Modules/Core/Mesh/test/itkMeshSourceGraftOutputTest.cxx @@ -191,8 +191,8 @@ itkMeshSourceGraftOutputTest(int, char *[]) // Declare the types of the Mesh // By default it is a 3D mesh using itk::Point - // on the vertices, and an itk::VectorContainter - // as containter for points + // on the vertices, and an itk::VectorContainer + // as container for points using MeshType = itk::Mesh; // Declare the type for PointsContainer diff --git a/Modules/Core/Mesh/test/itkMeshTest.cxx b/Modules/Core/Mesh/test/itkMeshTest.cxx index e143efbeb0e..87ef64707fa 100644 --- a/Modules/Core/Mesh/test/itkMeshTest.cxx +++ b/Modules/Core/Mesh/test/itkMeshTest.cxx @@ -140,7 +140,7 @@ itkMeshTest(int, char *[]) { using namespace itkMeshTestTypes; // open the namespace here. - // this is safe because only happens localy. + // this is safe because only happens locally. itk::FileOutputWindow::Pointer fow = itk::FileOutputWindow::New(); fow->SetInstance(fow); diff --git a/Modules/Core/Mesh/test/itkTransformMeshFilterTest.cxx b/Modules/Core/Mesh/test/itkTransformMeshFilterTest.cxx index c8477c4811e..6ad7c3860fd 100644 --- a/Modules/Core/Mesh/test/itkTransformMeshFilterTest.cxx +++ b/Modules/Core/Mesh/test/itkTransformMeshFilterTest.cxx @@ -37,8 +37,8 @@ itkTransformMeshFilterTest(int, char *[]) // Declare the types of the Mesh // By default it is a 3D mesh using itk::Point - // on the vertices, and an itk::VectorContainter - // as containter for points + // on the vertices, and an itk::VectorContainer + // as container for points using MeshType = itk::Mesh; // Declare the type for PointsContainer @@ -134,7 +134,7 @@ itkTransformMeshFilterTest(int, char *[]) std::cout << "Output Mesh has " << outputMesh->GetNumberOfPoints() << " points " << std::endl; - std::cout << "Output Mesh from WithBaseTransfrom has " << outputMeshFromWithBase->GetNumberOfPoints() << " points " + std::cout << "Output Mesh from WithBaseTransform has " << outputMeshFromWithBase->GetNumberOfPoints() << " points " << std::endl; // Get the the point container diff --git a/Modules/Core/Mesh/wrapping/test/itkMeshArrayPixelTypeTest.py b/Modules/Core/Mesh/wrapping/test/itkMeshArrayPixelTypeTest.py index 5023cbb4dda..f18b498c044 100644 --- a/Modules/Core/Mesh/wrapping/test/itkMeshArrayPixelTypeTest.py +++ b/Modules/Core/Mesh/wrapping/test/itkMeshArrayPixelTypeTest.py @@ -52,7 +52,7 @@ assert mesh.GetPointData().ElementAt(2)[0] == 2 + 0 assert mesh.GetPointData().ElementAt(2)[4] == 2 + 4 -# resize the PixelDataSize to see if it can be altered succesfully +# resize the PixelDataSize to see if it can be altered successfully PixelDataSize = 10 for i in range(NumberOfPoints): pixel_data_reference = v.CreateElementAt(i) diff --git a/Modules/Core/QuadEdgeMesh/include/itkGeometricalQuadEdge.hxx b/Modules/Core/QuadEdgeMesh/include/itkGeometricalQuadEdge.hxx index 3eb2093b3ec..b8a2b1396bd 100644 --- a/Modules/Core/QuadEdgeMesh/include/itkGeometricalQuadEdge.hxx +++ b/Modules/Core/QuadEdgeMesh/include/itkGeometricalQuadEdge.hxx @@ -274,7 +274,7 @@ GeometricalQuadEdge::GetNextBo // / * | * \ // // / | \ // // - // On this example, and if we assume the Onext() oder is + // In this example, and if we assume the Onext() order is // represented counter-clockwise, the edges are ordered as // follows: // b1, b2, i3, b4, b5, i6, i7 @@ -437,7 +437,7 @@ GeometricalQuadEdge::ReorderOn // that this request is not absurd since the current situation at // P isn't the one of a 2-manifold: hence when building the current // Onext() ring of P, we had not enough information to decide - // wheter b4.Onext() should be b5 or b1. It is ONLY when we are + // whether b4.Onext() should be b5 or b1. It is ONLY when we are // required to build the triangle [P, A, B] that we have the // additional information that b4.Onext() is indeed b1. // When we are required to build triangle [P, A, B], we hence @@ -571,7 +571,7 @@ GeometricalQuadEdge::ReorderOn } else { - // Orientation is localy clockwise: + // Orientation is locally clockwise: bsplice = second; second->GetOprev()->Splice(bsplice); } diff --git a/Modules/Core/QuadEdgeMesh/include/itkQuadEdgeMesh.h b/Modules/Core/QuadEdgeMesh/include/itkQuadEdgeMesh.h index c5fb364482c..4230ee2c82c 100644 --- a/Modules/Core/QuadEdgeMesh/include/itkQuadEdgeMesh.h +++ b/Modules/Core/QuadEdgeMesh/include/itkQuadEdgeMesh.h @@ -437,7 +437,7 @@ class ITK_TEMPLATE_EXPORT QuadEdgeMesh : public Mesh::Clear() } } - // Clear the points potentialy left behind by LightWeightDeleteEdge(): + // Clear the points potentially left behind by LightWeightDeleteEdge(): if (this->GetPoints()) { this->GetPoints()->clear(); @@ -294,7 +294,7 @@ QuadEdgeMesh::Splice(QEPrimal * a, QEPrimal * b) -> } // Notice that when aLeftFace == m_NoFace and bLeftFace == m_NoFace - // we simply proceed... (with MustReconstructFace initialy set to + // we simply proceed... (with MustReconstructFace initially set to // false. /////////////////////////////////////////////////////////////// diff --git a/Modules/Core/SpatialObjects/include/itkBoxSpatialObject.h b/Modules/Core/SpatialObjects/include/itkBoxSpatialObject.h index 72c3506795a..38d57e44a21 100644 --- a/Modules/Core/SpatialObjects/include/itkBoxSpatialObject.h +++ b/Modules/Core/SpatialObjects/include/itkBoxSpatialObject.h @@ -88,7 +88,7 @@ class ITK_TEMPLATE_EXPORT BoxSpatialObject : public SpatialObject BoxSpatialObject(); ~BoxSpatialObject() override = default; - /** Print the object informations in a stream. */ + /** Print the object information in a stream. */ void PrintSelf(std::ostream & os, Indent indent) const override; diff --git a/Modules/Core/SpatialObjects/include/itkCastSpatialObjectFilter.h b/Modules/Core/SpatialObjects/include/itkCastSpatialObjectFilter.h index 86791eb3dc3..7e272aa0bd4 100644 --- a/Modules/Core/SpatialObjects/include/itkCastSpatialObjectFilter.h +++ b/Modules/Core/SpatialObjects/include/itkCastSpatialObjectFilter.h @@ -46,7 +46,7 @@ namespace itk * \brief This filter casts one spatialobject to another, when the class * hierarchy supports it (e.g., Tube to PointBased). * Particularly useful in Python where casting objects without public - * contructors (e.g., objects managed by smartpointers) is problematic. + * constructors (e.g., objects managed by smartpointers) is problematic. * \ingroup ITKSpatialObjects */ diff --git a/Modules/Core/SpatialObjects/include/itkDTITubeSpatialObjectPoint.h b/Modules/Core/SpatialObjects/include/itkDTITubeSpatialObjectPoint.h index 22fda5eac58..23e232337d5 100644 --- a/Modules/Core/SpatialObjects/include/itkDTITubeSpatialObjectPoint.h +++ b/Modules/Core/SpatialObjects/include/itkDTITubeSpatialObjectPoint.h @@ -143,7 +143,7 @@ class ITK_TEMPLATE_EXPORT DTITubeSpatialObjectPoint : public TubeSpatialObjectPo return m_Fields; } - /** Return the value of the specific fiedls */ + /** Return the value of the specific fields */ float GetField(const char * name) const; diff --git a/Modules/Core/SpatialObjects/include/itkEllipseSpatialObject.h b/Modules/Core/SpatialObjects/include/itkEllipseSpatialObject.h index 42da921f90b..fa93dec49b3 100644 --- a/Modules/Core/SpatialObjects/include/itkEllipseSpatialObject.h +++ b/Modules/Core/SpatialObjects/include/itkEllipseSpatialObject.h @@ -110,7 +110,7 @@ class ITK_TEMPLATE_EXPORT EllipseSpatialObject : public SpatialObject void GaussianSpatialObject::ComputeMyBoundingBox() { - itkDebugMacro("Computing Guassian bounding box"); + itkDebugMacro("Computing Gaussian bounding box"); PointType pnt1; PointType pnt2; diff --git a/Modules/Core/SpatialObjects/include/itkMeshSpatialObject.h b/Modules/Core/SpatialObjects/include/itkMeshSpatialObject.h index 6365a5ecdd8..8cc7b6b377e 100644 --- a/Modules/Core/SpatialObjects/include/itkMeshSpatialObject.h +++ b/Modules/Core/SpatialObjects/include/itkMeshSpatialObject.h @@ -103,7 +103,7 @@ class ITK_TEMPLATE_EXPORT MeshSpatialObject : public SpatialObject::ComputeTangentsAndNormals() while (it3 < static_cast(length)) { - // Compute tanget using the adjacent points + // Compute tangent using the adjacent points x1 = this->GetPoint(it1)->GetPositionInObjectSpace(); x3 = this->GetPoint(it3)->GetPositionInObjectSpace(); l = 0; @@ -407,7 +407,7 @@ TubeSpatialObject::ComputeTangentsAndNormals() ++it3; } - // Calculate tangets are the first and last point on a tube + // Calculate tangents are the first and last point on a tube it1 = 0; it2 = 1; t = ((TubePointType *)(this->GetPoint(it2)))->GetTangentInObjectSpace(); @@ -443,7 +443,7 @@ TubeSpatialObject::ComputeTangentsAndNormals() if (TDimension == 2) { - // The normal to the tanget in 2D is the orthogonal direction to the + // The normal to the tangent in 2D is the orthogonal direction to the // tangent. n1[0] = t[1]; n1[1] = -t[0]; @@ -464,7 +464,7 @@ TubeSpatialObject::ComputeTangentsAndNormals() } else if (TDimension == 3) { - // The normal to the tanget in 3D is the cross product of adjacent + // The normal to the tangent in 3D is the cross product of adjacent // tangent directions. n1[0] = t[1] * t2[2] - t[2] * t2[1]; n1[1] = t[2] * t2[0] - t[0] * t2[2]; diff --git a/Modules/Core/SpatialObjects/test/itkImageMaskSpatialObjectTest2.cxx b/Modules/Core/SpatialObjects/test/itkImageMaskSpatialObjectTest2.cxx index e60e09b4da2..cce8f69247c 100644 --- a/Modules/Core/SpatialObjects/test/itkImageMaskSpatialObjectTest2.cxx +++ b/Modules/Core/SpatialObjects/test/itkImageMaskSpatialObjectTest2.cxx @@ -153,11 +153,11 @@ itkImageMaskSpatialObjectTest2(int, char *[]) retval = EXIT_FAILURE; break; } - // Should be the same as WorldSpace since there is no heirarchy. + // Should be the same as WorldSpace since there is no hierarchy. const bool test_object_space = maskSO->IsInsideInObjectSpace(point); if (test != test_object_space) { - std::cerr << "IsInsideInObjectSpace != IsInsideInWorldSpace for object that does not have heirarchy." + std::cerr << "IsInsideInObjectSpace != IsInsideInWorldSpace for object that does not have hierarchy." << std::endl; std::cerr << "Index failed = " << constIndex << std::endl; std::cerr << "Point failed = " << point << std::endl; diff --git a/Modules/Core/SpatialObjects/test/itkImageMaskSpatialObjectTest4.cxx b/Modules/Core/SpatialObjects/test/itkImageMaskSpatialObjectTest4.cxx index a9d76c5742b..8d7a5818e4a 100644 --- a/Modules/Core/SpatialObjects/test/itkImageMaskSpatialObjectTest4.cxx +++ b/Modules/Core/SpatialObjects/test/itkImageMaskSpatialObjectTest4.cxx @@ -86,7 +86,7 @@ Test3dImageMask() auto imageFilter = SpatialObjectToImageFilterType::New(); - // note visual studio 2015 u1 (release mode) fails to exectute .Fill + // note visual studio 2015 u1 (release mode) fails to execute. Fill // properly here by not initializing the last member. With initializer it // is happy. itk::Size<3> size = { { 10, 10, 10 } }; @@ -207,7 +207,7 @@ Test2dImageMask() } // Now generate an imageMaskSpatial Object from box1 - // Should have the same bounding box. withing pixelation bounds + // Should have the same bounding box. within pixelation bounds using ImageType = itk::Image; using ImageMaskSpatialObjectType = itk::ImageMaskSpatialObject<2>; diff --git a/Modules/Core/TestKernel/include/itkPipelineMonitorImageFilter.hxx b/Modules/Core/TestKernel/include/itkPipelineMonitorImageFilter.hxx index 6762e2b1077..a594ecb2ed2 100644 --- a/Modules/Core/TestKernel/include/itkPipelineMonitorImageFilter.hxx +++ b/Modules/Core/TestKernel/include/itkPipelineMonitorImageFilter.hxx @@ -286,8 +286,8 @@ PipelineMonitorImageFilter::GenerateData() ++m_NumberOfUpdates; - // We are finished with the input data, so release it. Whill this is - // ussually done in ReleaseInputs, it doesn't do any harm to release + // We are finished with the input data, so release it. While this is + // usually done in ReleaseInputs, it doesn't do any harm to release // it early input->ReleaseData(); } diff --git a/Modules/Core/TestKernel/include/itkTestingHashImageFilter.hxx b/Modules/Core/TestKernel/include/itkTestingHashImageFilter.hxx index fe76aa6d892..ca2c11f267b 100644 --- a/Modules/Core/TestKernel/include/itkTestingHashImageFilter.hxx +++ b/Modules/Core/TestKernel/include/itkTestingHashImageFilter.hxx @@ -112,7 +112,7 @@ HashImageFilter::AfterThreadedGenerateData() } catch (...) { - // free all resources when an exception occours + // free all resources when an exception occurs itksysMD5_Delete(md5); throw; } diff --git a/Modules/Core/TestKernel/src/itkTestDriverInclude.cxx b/Modules/Core/TestKernel/src/itkTestDriverInclude.cxx index 7aec656d869..22673a00e34 100644 --- a/Modules/Core/TestKernel/src/itkTestDriverInclude.cxx +++ b/Modules/Core/TestKernel/src/itkTestDriverInclude.cxx @@ -86,7 +86,7 @@ usage() std::cerr << std::endl; std::cerr << " --add-before-env NAME VALUE" << std::endl; std::cerr << " Add a VALUE to the variable name in the environment." << std::endl; - std::cerr << " The seperator used is the default one on the system." << std::endl; + std::cerr << " The separator used is the default one on the system." << std::endl; std::cerr << " This option can be used several times." << std::endl; std::cerr << std::endl; std::cerr << " --add-before-env-with-sep NAME VALUE SEP" << std::endl; @@ -199,7 +199,7 @@ ProcessArguments(int * argc, ArgumentStringType * argv, ProcessedOutputType * pr // convert hash to all lowercase letters std::transform(md5hash0.begin(), md5hash0.end(), md5hash0.begin(), my_to_lower); - // chech that the hash is of expected format + // check that the hash is of expected format if (md5hash0.size() != 32 || md5hash0.find_first_not_of("0123456789abcdef") != std::string::npos) { std::cerr << "Warning: argument does not appear to be a valid md5 hash \"" << md5hash0 << "\"." << std::endl; @@ -538,11 +538,11 @@ RegressionTestHelper(const char * testImageFilename, std::cout << "" << std::endl; } - // if there are discrepencies, create an diff image + // if there are discrepancies, create an diff image if ((status > numberOfPixelsTolerance) && reportErrors) { - // Report actuall image error to best baseline + // Report actual image error to best baseline std::cout << ""; std::cout << status; std::cout << "" << std::endl; @@ -951,7 +951,7 @@ HashTestImage(const char * testImageFilename, const std::vector & b } catch (...) { - std::cerr << "Unknow error during rescale and writing of " << testName.str() << std::endl; + std::cerr << "Unknown error during rescale and writing of " << testName.str() << std::endl; } std::cout << ""; diff --git a/Modules/Core/Transform/include/itkBSplineBaseTransform.h b/Modules/Core/Transform/include/itkBSplineBaseTransform.h index f53018b3a94..f8ab8d7a0a6 100644 --- a/Modules/Core/Transform/include/itkBSplineBaseTransform.h +++ b/Modules/Core/Transform/include/itkBSplineBaseTransform.h @@ -304,7 +304,7 @@ class ITK_TEMPLATE_EXPORT BSplineBaseTransform : public Transform::Tran { while (!coeffIterator[0].IsAtEndOfLine()) { - // multiply weigth with coefficient + // multiply weight with coefficient for (unsigned int j = 0; j < SpaceDimension; ++j) { outputPoint[j] += static_cast(weights[counter] * coeffIterator[j].Get()); diff --git a/Modules/Core/Transform/include/itkBSplineTransform.h b/Modules/Core/Transform/include/itkBSplineTransform.h index 945c4f6a7b5..9c0a8361715 100644 --- a/Modules/Core/Transform/include/itkBSplineTransform.h +++ b/Modules/Core/Transform/include/itkBSplineTransform.h @@ -242,7 +242,7 @@ class ITK_TEMPLATE_EXPORT BSplineTransform : public BSplineBaseTransform::TransformPoint { while (!coeffIterator[0].IsAtEndOfLine()) { - // Multiply weigth with coefficient + // Multiply weight with coefficient for (unsigned int j = 0; j < SpaceDimension; ++j) { outputPoint[j] += static_cast(weights[counter] * coeffIterator[j].Get()); diff --git a/Modules/Core/Transform/include/itkCompositeTransform.h b/Modules/Core/Transform/include/itkCompositeTransform.h index c0fbe4db9f9..b9cf5606310 100644 --- a/Modules/Core/Transform/include/itkCompositeTransform.h +++ b/Modules/Core/Transform/include/itkCompositeTransform.h @@ -198,7 +198,7 @@ class ITK_TEMPLATE_EXPORT CompositeTransform : public MultiTransform::ComputeMatrix() RotationZ[2][1] = zero; RotationZ[2][2] = one; - /** Aply the rotation first around Y then X then Z */ + /** Apply the rotation first around Y then X then Z */ if (m_ComputeZYX) { this->SetVarMatrix(RotationZ * RotationY * RotationX); diff --git a/Modules/Core/Transform/include/itkRigid2DTransform.h b/Modules/Core/Transform/include/itkRigid2DTransform.h index 6855f3d5413..46dc430436c 100644 --- a/Modules/Core/Transform/include/itkRigid2DTransform.h +++ b/Modules/Core/Transform/include/itkRigid2DTransform.h @@ -47,7 +47,7 @@ namespace itk * Access methods for the center, translation and underlying matrix * offset vectors are documented in the superclass MatrixOffsetTransformBase. * - * \sa Transfrom + * \sa Transform * \sa MatrixOffsetTransformBase * * \ingroup ITKTransform diff --git a/Modules/Core/Transform/include/itkRigid2DTransform.hxx b/Modules/Core/Transform/include/itkRigid2DTransform.hxx index b0e5ea7d3e2..0ca62b23ca4 100644 --- a/Modules/Core/Transform/include/itkRigid2DTransform.hxx +++ b/Modules/Core/Transform/include/itkRigid2DTransform.hxx @@ -70,7 +70,7 @@ Rigid2DTransform::SetMatrix(const MatrixType & matrix, con { itkDebugMacro("setting m_Matrix to " << matrix); // The matrix must be orthogonal otherwise it is not - // representing a valid rotaion in 2D space + // representing a valid rotation in 2D space typename MatrixType::InternalMatrixType test = matrix.GetVnlMatrix() * matrix.GetTranspose(); if (!test.is_identity(tolerance)) diff --git a/Modules/Core/Transform/include/itkTransform.h b/Modules/Core/Transform/include/itkTransform.h index 4658021ccaa..0af768f5a93 100644 --- a/Modules/Core/Transform/include/itkTransform.h +++ b/Modules/Core/Transform/include/itkTransform.h @@ -421,14 +421,14 @@ class ITK_TEMPLATE_EXPORT Transform : public TransformBaseTemplateGetNumberOfParameters(); } - /** Return the number of parameters that completely define the Transfom */ + /** Return the number of parameters that completely define the Transform */ NumberOfParametersType GetNumberOfParameters() const override { return this->m_Parameters.Size(); } - /** Return the number of parameters that define the constant elements of a Transfom */ + /** Return the number of parameters that define the constant elements of a Transform */ virtual NumberOfParametersType GetNumberOfFixedParameters() const { @@ -440,7 +440,7 @@ class ITK_TEMPLATE_EXPORT Transform : public TransformBaseTemplate