Skip to content

Commit

Permalink
COMP: Fix Nonunit/Review/test error: 'cindex': undeclared identifier
Browse files Browse the repository at this point in the history
Fixed compile errors saying:

> error C2065: 'cindex': undeclared identifier

These compile errors were introduced by pull request #4000
commit 7cda5ba
"COMP: Fix TransformPhysicalPointToContinuousIndex `nodiscard` warnings"
  • Loading branch information
N-Dekker authored and hjmjohnson committed Apr 7, 2023
1 parent fd2b6d6 commit 1a1281c
Showing 1 changed file with 4 additions and 2 deletions.
Expand Up @@ -132,7 +132,8 @@ itkDiscreteHessianGaussianImageFunctionTestND(int argc, char * argv[])
IteratorType outIter(output, output->GetRequestedRegion());

using PointType = typename HessianGaussianImageFunctionType::PointType;
PointType point;
PointType point;
using ContinuousIndexType = typename HessianGaussianImageFunctionType::ContinuousIndexType;
const unsigned long nop = reader->GetOutput()->GetRequestedRegion().GetNumberOfPixels();
unsigned long pixelNumber = 0;
while (!it.IsAtEnd())
Expand All @@ -148,7 +149,6 @@ itkDiscreteHessianGaussianImageFunctionTestND(int argc, char * argv[])
}
else
{
using ContinuousIndexType = typename HessianGaussianImageFunctionType::ContinuousIndexType;
using ContinuousIndexValueType = typename ContinuousIndexType::ValueType;

reader->GetOutput()->TransformIndexToPhysicalPoint(it.GetIndex(), point);
Expand Down Expand Up @@ -240,6 +240,8 @@ itkDiscreteHessianGaussianImageFunctionTestND(int argc, char * argv[])
inputImage->TransformIndexToPhysicalPoint(index, point);
hessian = function->Evaluate(point);

ContinuousIndexType cindex;

// Exercise the fractional computation of the linear interpolator
for (unsigned int i = 0; i < Dimension; ++i)
{
Expand Down

0 comments on commit 1a1281c

Please sign in to comment.