@@ -49,7 +49,7 @@ RunLengthTextureFeaturesImageFilter< TInputImage, TOutputImage >
4949 hood.SetRadius ( 1 );
5050
5151 // Select all "previous" neighbors that are face+edge+vertex
52- // connected to the iterated pixel. Do not include the curentInNeighborhood pixel.
52+ // connected to the iterated pixel. Do not include the currentInNeighborhood pixel.
5353 unsigned int centerIndex = hood.GetCenterNeighborhoodIndex ();
5454 OffsetVectorPointer offsets = OffsetVector::New ();
5555 for ( unsigned int d = 0 ; d < centerIndex; d++ )
@@ -178,7 +178,7 @@ RunLengthTextureFeaturesImageFilter<TInputImage, TOutputImage>
178178 }
179179
180180 // Declaration of the variables useful to iterate over the all neighborhood region
181- PixelType curentInNeighborhoodPixelIntensity ;
181+ PixelType currentInNeighborhoodPixelIntensity ;
182182
183183 // Declaration of the variables useful to iterate over the run
184184 PixelType pixelIntensity ( NumericTraits<PixelType>::ZeroValue () );
@@ -223,10 +223,10 @@ RunLengthTextureFeaturesImageFilter<TInputImage, TOutputImage>
223223 // Iteration over the all neighborhood region
224224 for (NeighborIndexType nb = 0 ; nb<inputNIt.Size (); ++nb)
225225 {
226- curentInNeighborhoodPixelIntensity = inputNIt.GetPixel (nb);
226+ currentInNeighborhoodPixelIntensity = inputNIt.GetPixel (nb);
227227 tempOffset = inputNIt.GetOffset (nb);
228228 // Checking if the value is out-of-bounds or is outside the mask.
229- if ( curentInNeighborhoodPixelIntensity < 0 || // The pixel is outside of the mask or outside of bounds
229+ if ( currentInNeighborhoodPixelIntensity < 0 || // The pixel is outside of the mask or outside of bounds
230230 alreadyVisitedImage->GetPixel ( boolCurentInNeighborhoodIndex + tempOffset) )
231231 {
232232 continue ;
@@ -253,7 +253,7 @@ RunLengthTextureFeaturesImageFilter<TInputImage, TOutputImage>
253253 // Special attention paid to boundaries of bins.
254254 // For the last bin, it is left close and right close (following the previous
255255 // gerrit patch). For all other bins, the bin is left close and right open.
256- if ( pixelIntensity == curentInNeighborhoodPixelIntensity )
256+ if ( pixelIntensity == currentInNeighborhoodPixelIntensity )
257257 {
258258 alreadyVisitedImage->SetPixel ( boolCurentInNeighborhoodIndex + iteratedOffset, true );
259259 pixelDistance++;
@@ -267,7 +267,7 @@ RunLengthTextureFeaturesImageFilter<TInputImage, TOutputImage>
267267 }
268268 // Increase the corresponding bin in the histogram
269269 this ->IncreaseHistogram (histogram, totalNumberOfRuns,
270- curentInNeighborhoodPixelIntensity ,
270+ currentInNeighborhoodPixelIntensity ,
271271 offset, pixelDistance);
272272 }
273273 }
@@ -396,7 +396,7 @@ template<typename TInputImage, typename TOutputImage>
396396void
397397RunLengthTextureFeaturesImageFilter<TInputImage, TOutputImage>
398398::IncreaseHistogram (unsigned int **histogram, unsigned int &totalNumberOfRuns,
399- const PixelType &curentInNeighborhoodPixelIntensity ,
399+ const PixelType ¤tInNeighborhoodPixelIntensity ,
400400 const OffsetType &offset, const unsigned int &pixelDistance)
401401{
402402 float offsetDistance = 0 ;
@@ -412,7 +412,7 @@ RunLengthTextureFeaturesImageFilter<TInputImage, TOutputImage>
412412 if (offsetDistanceBin < static_cast < int >( m_NumberOfBinsPerAxis ))
413413 {
414414 totalNumberOfRuns++;
415- histogram[curentInNeighborhoodPixelIntensity ][offsetDistanceBin]++;
415+ histogram[currentInNeighborhoodPixelIntensity ][offsetDistanceBin]++;
416416 }
417417}
418418
0 commit comments