Skip to content

Commit 895a05e

Browse files
committed
BUG: Spelling: curent -> current
1 parent 9a431cc commit 895a05e

File tree

3 files changed

+16
-16
lines changed

3 files changed

+16
-16
lines changed

include/itkCoocurrenceTextureFeaturesImageFilter.hxx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ CoocurrenceTextureFeaturesImageFilter< TInputImage, TOutputImage >
5353
hood.SetRadius( 1 );
5454

5555
// Select all "previous" neighbors that are face+edge+vertex
56-
// connected to the iterated pixel. Do not include the curentInNeighborhood pixel.
56+
// connected to the iterated pixel. Do not include the currentInNeighborhood pixel.
5757
unsigned int centerIndex = hood.GetCenterNeighborhoodIndex();
5858
OffsetVectorPointer offsets = OffsetVector::New();
5959
for( unsigned int d = 0; d < centerIndex; d++ )
@@ -161,7 +161,7 @@ CoocurrenceTextureFeaturesImageFilter<TInputImage, TOutputImage>
161161
vnl_matrix<unsigned int> hist(m_NumberOfBinsPerAxis, m_NumberOfBinsPerAxis);
162162

163163
// Declaration of the variables useful to iterate over the all neighborhood region
164-
PixelType curentInNeighborhoodPixelIntensity;
164+
PixelType currentInNeighborhoodPixelIntensity;
165165

166166
// Declaration of the variables useful to iterate over the run
167167
PixelType pixelIntensity( NumericTraits<PixelType>::ZeroValue() );
@@ -196,14 +196,14 @@ CoocurrenceTextureFeaturesImageFilter<TInputImage, TOutputImage>
196196
// Iteration over the all neighborhood region
197197
for(NeighborIndexType nb = 0; nb<inputNIt.Size(); ++nb)
198198
{
199-
// Test if the curent voxel is in the mask and is the range of the image intensity specified
200-
curentInNeighborhoodPixelIntensity = inputNIt.GetPixel(nb);
201-
if( curentInNeighborhoodPixelIntensity < 0 )
199+
// Test if the current voxel is in the mask and is the range of the image intensity specified
200+
currentInNeighborhoodPixelIntensity = inputNIt.GetPixel(nb);
201+
if( currentInNeighborhoodPixelIntensity < 0 )
202202
{
203203
continue;
204204
}
205205

206-
// Test if the curent offset is still pointing to a voxel inside th neighborhood
206+
// Test if the current offset is still pointing to a voxel inside th neighborhood
207207
tempOffset = inputNIt.GetOffset(nb) + offset;
208208
if(!(this->IsInsideNeighborhood(tempOffset)))
209209
{
@@ -229,7 +229,7 @@ CoocurrenceTextureFeaturesImageFilter<TInputImage, TOutputImage>
229229

230230
// Increase the corresponding bin in the histogram
231231
totalNumberOfFreq++;
232-
hist[curentInNeighborhoodPixelIntensity][pixelIntensity]++;
232+
hist[currentInNeighborhoodPixelIntensity][pixelIntensity]++;
233233
}
234234
}
235235
// Compute the run length features

include/itkRunLengthTextureFeaturesImageFilter.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ class ITK_TEMPLATE_EXPORT RunLengthTextureFeaturesImageFilter:public ImageToImag
230230
void NormalizeOffsetDirection(OffsetType &offset);
231231
bool IsInsideNeighborhood(const OffsetType &iteratedOffset);
232232
void IncreaseHistogram(unsigned int **hist, unsigned int &totalNumberOfRuns,
233-
const PixelType &curentInNeighborhoodPixelIntensity,
233+
const PixelType &currentInNeighborhoodPixelIntensity,
234234
const OffsetType &offset, const unsigned int &pixelDistance);
235235
void ComputeFeatures( unsigned int **hist, const unsigned int &totalNumberOfRuns,
236236
typename TOutputImage::PixelType &outputPixel);

include/itkRunLengthTextureFeaturesImageFilter.hxx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -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>
396396
void
397397
RunLengthTextureFeaturesImageFilter<TInputImage, TOutputImage>
398398
::IncreaseHistogram(unsigned int **histogram, unsigned int &totalNumberOfRuns,
399-
const PixelType &curentInNeighborhoodPixelIntensity,
399+
const PixelType &currentInNeighborhoodPixelIntensity,
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

Comments
 (0)