Skip to content

Commit

Permalink
DOC: Spelling errors
Browse files Browse the repository at this point in the history
Using codespell to check for spelling errors on comments.

Change-Id: Id3c7e92f4b35b725cdd5e746628b2a74673f8a53
STYLE: Tests failing style
  • Loading branch information
lorensen committed Mar 11, 2012
1 parent a94938c commit 6435080
Show file tree
Hide file tree
Showing 98 changed files with 206 additions and 245 deletions.
4 changes: 2 additions & 2 deletions Modules/Core/Common/include/itkArray.h
Expand Up @@ -135,9 +135,9 @@ class Array:public vnl_vector< TValueType >
void SetData(TValueType *data, bool LetArrayManageMemory = false);

/** Similar to the previous method. In the above method, the size must be
* seperately set prior to using user-supplied data. This introduces an
* separately set prior to using user-supplied data. This introduces an
* unnecessary allocation step to be performed. This method avoids it
* and should be used to import data whereever possible to avoid this.
* and should be used to import data wherever possible to avoid this.
* Set the pointer from which the data is imported.
* If "LetArrayManageMemory" is false, then the application retains
* the responsibility of freeing the memory for this data. If
Expand Down
4 changes: 2 additions & 2 deletions Modules/Core/Common/include/itkArray.hxx
Expand Up @@ -101,9 +101,9 @@ Array< TValueType >
}

/** Similar to the previous method. In the above method, the size must be
* seperately set prior to using user-supplied data. This introduces an
* separately set prior to using user-supplied data. This introduces an
* unnecessary allocation step to be performed. This method avoids it
* and should be used to import data whereever possible to avoid this.
* and should be used to import data wherever possible to avoid this.
* Set the pointer from which the data is imported.
* If "LetArrayManageMemory" is false, then the application retains
* the responsibility of freeing the memory for this data. If
Expand Down
Expand Up @@ -84,7 +84,7 @@ BSplineInterpolationWeightFunction< TCoordRep, VSpaceDimension, VSplineOrder >
os << indent << "SupportSize: " << m_SupportSize << std::endl;
}

/** Compute weights for interpolation at continous index position */
/** Compute weights for interpolation at continuous index position */
template< class TCoordRep, unsigned int VSpaceDimension,
unsigned int VSplineOrder >
typename BSplineInterpolationWeightFunction< TCoordRep, VSpaceDimension,
Expand All @@ -102,7 +102,7 @@ BSplineInterpolationWeightFunction< TCoordRep, VSpaceDimension, VSplineOrder >
return weights;
}

/** Compute weights for interpolation at continous index position */
/** Compute weights for interpolation at continuous index position */
template< class TCoordRep, unsigned int VSpaceDimension,
unsigned int VSplineOrder >
void BSplineInterpolationWeightFunction< TCoordRep, VSpaceDimension,
Expand Down
6 changes: 3 additions & 3 deletions Modules/Core/Common/include/itkColorTable.h
Expand Up @@ -54,7 +54,7 @@ class ITK_EXPORT ColorTable:public Object

/** Generate a lookup table of 8 discrete colors. The colors are Red,
* Purple, Aqua, Yellow, Green, Blue, Grey0.70, White. For integral
* pixel types, the color range is bewteen NonpositiveMin() and max(). For
* pixel types, the color range is between NonpositiveMin() and max(). For
* continuous types, the range is 0.0 to 1.0.
*/
void UseDiscreteColors(void);
Expand All @@ -67,14 +67,14 @@ class ITK_EXPORT ColorTable:public Object

/** Generate a lookup table of n values good for showing
* "temperatures". For integral pixel types, the color range is
* bewteen NonpositiveMin() and max(). For continuous types, the
* between NonpositiveMin() and max(). For continuous types, the
* range is 0.0 to 1.0.
*/
void UseHeatColors(unsigned int n = 256);

/** Generate a lookup table of n random values. For integral pixel
* types, the color range is between NonpositiveMin() and
* max(). For continous types, the range is 0.0 to 1.0.
* max(). For continuous types, the range is 0.0 to 1.0.
*/
void UseRandomColors(unsigned int n = 256);

Expand Down
2 changes: 1 addition & 1 deletion Modules/Core/Common/include/itkConstNeighborhoodIterator.h
Expand Up @@ -430,7 +430,7 @@ class ITK_EXPORT ConstNeighborhoodIterator:
protected:

/** Default method for setting the coordinate location of the iterator.
* Loop indicies correspond to the actual Image region index. */
* Loop indices correspond to the actual Image region index. */
virtual void SetLoop(const IndexType & p)
{ m_Loop = p; m_IsInBoundsValid = false; }

Expand Down
Expand Up @@ -601,7 +601,7 @@ void ConstNeighborhoodIterator< TImage, TBoundaryCondition >
SizeType imageBRSize = m_ConstImage->GetBufferedRegion().GetSize();

// Set the bounds and the wrapping offsets. Inner bounds are the loop
// indicies where the iterator will begin to overlap the edge of the image
// indices where the iterator will begin to overlap the edge of the image
// buffered region.
for ( DimensionValueType i = 0; i < Dimension; ++i )
{
Expand Down
Expand Up @@ -306,11 +306,11 @@ class ITK_EXPORT ConstShapedNeighborhoodIterator:
m_CenterIsActive = false;
}

/** Returns the list of active indicies in the neighborhood */
/** Returns the list of active indices in the neighborhood */
const IndexListType & GetActiveIndexList() const
{ return m_ActiveIndexList; }

/** Returns the size of the list of active neighborhood indicies. */
/** Returns the size of the list of active neighborhood indices. */
typename IndexListType::size_type GetActiveIndexListSize() const
{ return m_ActiveIndexList.size(); }

Expand Down
2 changes: 1 addition & 1 deletion Modules/Core/Common/include/itkConstSliceIterator.h
Expand Up @@ -39,7 +39,7 @@ namespace itk
* container's operator[] method.
*
* References:
* Modeled after a slice iterator proposed by Bjarne Stroustrup
* Modelled after a slice iterator proposed by Bjarne Stroustrup
* in C++ Programming Language, Third Edition. Bjarne Stroustrup. Addison
* Wesley, Reading, MA. 1997.
*
Expand Down
2 changes: 1 addition & 1 deletion Modules/Core/Common/include/itkContinuousIndex.h
Expand Up @@ -30,7 +30,7 @@ namespace itk
* (components).
* The template parameter TCoordRep can be any data type that behaves
* like a primitive (or atomic) data type (int, short, float, complex).
* The VIndexDimension defines the number of components in the continous
* The VIndexDimension defines the number of components in the continuous
* index array.
*
* \sa Point
Expand Down
2 changes: 1 addition & 1 deletion Modules/Core/Common/include/itkDataObject.h
Expand Up @@ -237,7 +237,7 @@ class ITKCommon_EXPORT InvalidRequestedRegionError:public DataObjectError
* filter needs to re-execute in order to satisfy a given request. For
* DataObjects that do not support Regions, this method always returns
* false. By always returning false, these types of DataObjects will
* update solely on the basis of modified times (wherease Images
* update solely on the basis of modified times (whereas Images
* update based on either modified times or the RequestedRegion
* needs). If this method always returned true, the DataObject would
* be updated on every single call to Update() (not recommended).
Expand Down
2 changes: 1 addition & 1 deletion Modules/Core/Common/include/itkDefaultConvertPixelTraits.h
Expand Up @@ -28,7 +28,7 @@ namespace itk
/** \class DefaultConvertPixelTraits
* \brief Traits class used to by ConvertPixels to convert blocks of pixels.
*
* TOutputPixelType is the destination type. The input type is infered
* TOutputPixelType is the destination type. The input type is inferred
* by the templated static function Convert.
*
* This implementaion, does a simple assignment operator, so if you are
Expand Down
2 changes: 1 addition & 1 deletion Modules/Core/Common/include/itkDefaultPixelAccessor.h
Expand Up @@ -28,7 +28,7 @@ namespace itk
*
* DefaultPixelAccessor is templated over an internal type and an
* external type representation. This class encapsulates a
* customized convertion between the internal and external
* customized conversion between the internal and external
* type representations.
*
* PixelAccessor is the class responsible for pixel-to-pixel
Expand Down
2 changes: 1 addition & 1 deletion Modules/Core/Common/include/itkDynamicLoader.h
Expand Up @@ -61,7 +61,7 @@ class ITKCommon_EXPORT DynamicLoader:public Object
static LibHandle OpenLibrary(const char *);

/** Attempt to detach a dynamic library from the
* process. A value of true is returned if it is sucessful. */
* process. A value of true is returned if it is successful. */
static int CloseLibrary(LibHandle);

/** Find the address of the symbol in the given library. */
Expand Down
2 changes: 1 addition & 1 deletion Modules/Core/Common/include/itkEventObject.h
Expand Up @@ -44,7 +44,7 @@ namespace itk
* as a consequence of changes occurring in state on some itk::Objects.
*
* itk::EventObject carries information in its own type, it relies on the
* appropiate use of the RTTI (Run Time Type Information).
* appropriate use of the RTTI (Run Time Type Information).
*
* A set of standard EventObjects is defined near the end of itkEventObject.h.
*
Expand Down
4 changes: 2 additions & 2 deletions Modules/Core/Common/include/itkExtractImageFilter.h
Expand Up @@ -150,7 +150,7 @@ class ITK_EXPORT ExtractImageFilter:
* else throw an exception. Use this strategy when it is known
* that properly identified physical space sub-volumes can be
* reliably extracted from a higher dimensional space. For
* example when the applicaiton programmer knows that a 4D image
* example when the application programmer knows that a 4D image
* is 3D+time, and that the 3D sub-space is properly defined.
*/
void SetDirectionCollapseToStrategy(const DIRECTIONCOLLAPSESTRATEGY choosenStrategy)
Expand All @@ -163,7 +163,7 @@ class ITK_EXPORT ExtractImageFilter:
break;
case DIRECTIONCOLLAPSETOUNKOWN:
default:
itkExceptionMacro( << "Invalid Strategy Choosen for itk::ExtractImageFilter" );
itkExceptionMacro( << "Invalid Strategy Chosen for itk::ExtractImageFilter" );
}

this->m_DirectionCollapseStrategy=choosenStrategy;
Expand Down
2 changes: 1 addition & 1 deletion Modules/Core/Common/include/itkImage.h
Expand Up @@ -36,7 +36,7 @@ namespace itk
* variables), and a dimension (number of independent variables). The
* container for the pixel data is the ImportImageContainer.
*
* Within the pixel container, images are modeled as arrays, defined by a
* Within the pixel container, images are modelled as arrays, defined by a
* start index and a size.
*
* There are three sets of meta-data describing an image. These are "Region"
Expand Down
2 changes: 1 addition & 1 deletion Modules/Core/Common/include/itkImageAlgorithm.h
Expand Up @@ -25,7 +25,7 @@ namespace itk
* \brief A container of static functions which can operate on Images
* with Iterators
*
* These methods are modeled after the STL algorithm. They may use
* These methods are modelled after the STL algorithm. They may use
* special optimization techniques to implement enhanced versions of
* the method.
*
Expand Down
6 changes: 3 additions & 3 deletions Modules/Core/Common/include/itkImageBase.h
Expand Up @@ -434,7 +434,7 @@ class ITK_EXPORT ImageBase:public DataObject
}

/** Get a physical point (in the space which
* the origin and spacing infomation comes from)
* the origin and spacing information comes from)
* from a continuous index (in the index space)
* \sa Transform */
template< class TCoordRep >
Expand All @@ -454,7 +454,7 @@ class ITK_EXPORT ImageBase:public DataObject
}

/** Get a physical point (in the space which
* the origin and spacing infomation comes from)
* the origin and spacing information comes from)
* from a discrete index (in the index space)
*
* \sa Transform */
Expand Down Expand Up @@ -485,7 +485,7 @@ class ITK_EXPORT ImageBase:public DataObject
}

/** Get a physical point (in the space which
* the origin and spacing infomation comes from)
* the origin and spacing information comes from)
* from a discrete index (in the index space)
*
* \sa Transform */
Expand Down
Expand Up @@ -158,7 +158,7 @@ ImageRegionMultidimensionalSplitter< VImageDimension >
}
}

// calculate the number of addtional pieces this split would add
// calculate the number of additional pieces this split would add
unsigned int additionalNumPieces = 1;
for ( i = 0; i < VImageDimension; ++i )
{
Expand Down
2 changes: 1 addition & 1 deletion Modules/Core/Common/include/itkImageToImageFilter.h
Expand Up @@ -180,7 +180,7 @@ class ITK_EXPORT ImageToImageFilter:public ImageSource< TOutputImage >
* have to override this method. In doing so, it should call its
* superclass' implementation as its first step. Note that imaging
* filters operate differently than the classes to this point in the
* class hierachy. Up till now, the base assumption has been that
* class hierarchy. Up till now, the base assumption has been that
* the largest possible region will be requested of the input.
*
* This implementation of GenerateInputRequestedRegion() only
Expand Down
8 changes: 4 additions & 4 deletions Modules/Core/Common/include/itkIntTypes.h
Expand Up @@ -40,7 +40,7 @@ namespace itk
#if defined( ITK_HAVE_STDINT_H )

// Note: these types are technically optional in C99 stdint.h file. As
// such a try complile for their existance may be needed.
// such a try complile for their existence may be needed.
typedef::int8_t int8_t;
typedef::uint8_t uint8_t;
typedef::int16_t int16_t;
Expand Down Expand Up @@ -78,7 +78,7 @@ typedef::uintptr_t uintptr_t;

#else // ITK_HAVE_STDINT_H

/** Fixed width interger types. */
/** Fixed width integer types. */
typedef::itksysFundamentalType_Int8 int8_t;
typedef::itksysFundamentalType_UInt8 uint8_t;
typedef::itksysFundamentalType_Int16 int16_t;
Expand All @@ -88,7 +88,7 @@ typedef::itksysFundamentalType_UInt32 uint32_t;
typedef::itksysFundamentalType_Int64 int64_t;
typedef::itksysFundamentalType_UInt64 uint64_t;

/** Types which are at least a certain size, these are prefered over
/** Types which are at least a certain size, these are preferred over
* fixed width. */
typedef int8_t int_least8_t;
typedef uint8_t uint_least8_t;
Expand All @@ -100,7 +100,7 @@ typedef int64_t int_least64_t;
typedef uint64_t uint_least64_t;

/** Types which are at least a certain size but may be greater if
* performace benifits, these are prefered over fixed width. */
* performace benefits, these are preferred over fixed width. */
typedef int8_t int_fast8_t;
typedef uint8_t uint_fast8_t;
typedef int16_t int_fast16_t;
Expand Down
8 changes: 4 additions & 4 deletions Modules/Core/Common/include/itkMath.h
Expand Up @@ -94,7 +94,7 @@ static const double sqrt1_2 = 0.70710678118654752440;

/** \brief Round towards nearest integer
*
* \tparam TReturn must be an interger type
* \tparam TReturn must be an integer type
* \tparam TInput must be float or double
*
* halfway cases are rounded towards the nearest even
Expand All @@ -115,7 +115,7 @@ itkTemplateFloatingToIntegerMacro(RoundHalfIntegerToEven);

/** \brief Round towards nearest integer
*
* \tparam TReturn must be an interger type
* \tparam TReturn must be an integer type
* \tparam TInput must be float or double
*
* halfway cases are rounded upward, e.g.
Expand All @@ -139,7 +139,7 @@ itkTemplateFloatingToIntegerMacro(RoundHalfIntegerUp);

/** \brief Round towards nearest integer (This is a synonym for RoundHalfIntegerUp)
*
* \tparam TReturn must be an interger type
* \tparam TReturn must be an integer type
* \tparam TInput must be float or double
*
* \sa RoundHalfIntegerUp<TReturn, TInput>()
Expand Down Expand Up @@ -188,7 +188,7 @@ inline TReturn CastWithRangeCheck(TInput x)
&& !( !itk::NumericTraits< TReturn >::is_signed && itk::NumericTraits< TInput >::is_signed ) )
{
// if the output type is bigger and we are not converting a signed
// interger to an unsigned interger then we have no problems
// integer to an unsigned integer then we have no problems
return ret;
}
else if ( sizeof( TReturn ) >= sizeof( TInput ) )
Expand Down
2 changes: 1 addition & 1 deletion Modules/Core/Common/include/itkMetaDataObject.h
Expand Up @@ -60,7 +60,7 @@ namespace itk
* to work around those deficiencies.
*
* The behavior of the MetaDataObject<Type>::Print() function has many plausible
* application dependant implementations. The default implementation prints the
* application dependent implementations. The default implementation prints the
* string "[UNKNOWN PRINT CHARACTERISTICS]" that works for all possible
* MetaDataObject types.
*
Expand Down
4 changes: 2 additions & 2 deletions Modules/Core/Common/include/itkNeighborhoodIterator.h
Expand Up @@ -160,7 +160,7 @@ namespace itk
* increasing dimension (as defined by the layout of the image data) . For
* itk::Image this is the first dimension specified (i.e. for 3-dimensional
* (x,y,z) NeighborhoodIterator proceeds along the x-dimension) (For random
* access iteration through N-dimensional indicies, use
* access iteration through N-dimensional indices, use
* RandomAccessNeighborhoodIterator.)
*
* Each subclass of a ConstNeighborhoodIterator may also define its own
Expand All @@ -169,7 +169,7 @@ namespace itk
* internal loop variables and offsets to trigger wraps at itk::Image region
* boundaries, and to identify the end of the itk::Image region.
*
* \todo Better support for regions with negative indicies.
* \todo Better support for regions with negative indices.
* \todo Add Begin() and End() methods?
*
* \sa DerivativeOperator \sa NeighborhoodInnerProduct
Expand Down
Expand Up @@ -173,7 +173,7 @@ class NumericTraits< CovariantVector< T, D > >
}
}

/** \note: the functions are prefered over the member variables as
/** \note: the functions are preferred over the member variables as
* they are defined for all partial specialization
*/
static const Self ITKCommon_EXPORT Zero;
Expand Down
Expand Up @@ -160,7 +160,7 @@ class NumericTraits< DiffusionTensor3D< T > >
}
}

/** \note: the functions are prefered over the member variables as
/** \note: the functions are preferred over the member variables as
* they are defined for all partial specialization
*/
static const Self ITKCommon_EXPORT Zero;
Expand Down
Expand Up @@ -173,7 +173,7 @@ class NumericTraits< FixedArray< T, D > >
}
}

/** \note: the functions are prefered over the member variables as
/** \note: the functions are preferred over the member variables as
* they are defined for all partial specialization
*/
static const Self ITKCommon_EXPORT Zero;
Expand Down
2 changes: 1 addition & 1 deletion Modules/Core/Common/include/itkNumericTraitsPointPixel.h
Expand Up @@ -160,7 +160,7 @@ class NumericTraits< Point< T , D > >
}
}

/** \note: the functions are prefered over the member variables as
/** \note: the functions are preferred over the member variables as
* they are defined for all partial specialization
*/
static const Self ITKCommon_EXPORT Zero;
Expand Down
2 changes: 1 addition & 1 deletion Modules/Core/Common/include/itkNumericTraitsRGBAPixel.h
Expand Up @@ -172,7 +172,7 @@ class NumericTraits< RGBAPixel< T > >
}
}

/** \note: the functions are prefered over the member variables as
/** \note: the functions are preferred over the member variables as
* they are defined for all partial specialization
*/
static const Self ITKCommon_EXPORT Zero;
Expand Down
2 changes: 1 addition & 1 deletion Modules/Core/Common/include/itkNumericTraitsRGBPixel.h
Expand Up @@ -172,7 +172,7 @@ class NumericTraits< RGBPixel< T > >
}
}

/** \note: the functions are prefered over the member variables as
/** \note: the functions are preferred over the member variables as
* they are defined for all partial specialization
*/
static const Self ITKCommon_EXPORT Zero;
Expand Down

0 comments on commit 6435080

Please sign in to comment.