Skip to content

Commit be038a0

Browse files
committed
ENH: Remove unneeded const_cast
1 parent 9d24e4f commit be038a0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

include/itkCoocurrenceTextureFeaturesImageFilter.hxx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ void
7777
CoocurrenceTextureFeaturesImageFilter<TInputImage, TOutputImage>
7878
::BeforeThreadedGenerateData()
7979
{
80-
InputImageType * maskPointer = const_cast<TInputImage *>(this->GetMaskImage());
80+
const InputImageType * maskPointer = this->GetMaskImage();
8181
this->m_DigitalisedInputImageg = InputImageType::New();
8282
this->m_DigitalisedInputImageg->SetRegions(this->GetInput()->GetRequestedRegion());
8383
this->m_DigitalisedInputImageg->CopyInformation(this->GetInput());
@@ -418,7 +418,6 @@ CoocurrenceTextureFeaturesImageFilter<TInputImage, TOutputImage>
418418
{
419419
for(unsigned int b = 0; b < m_NumberOfBinsPerAxis; b++)
420420
{
421-
int k = hist[a][b];
422421
float frequency = hist[a][b] / (float)totalNumberOfFreq;
423422
pixelMean += a * frequency;
424423
marginalSums[a] += frequency;

0 commit comments

Comments
 (0)