[Insight-users] itkLinearInterpolateImageFunctionTest Failing?

Rick Frank rickf at fullspectrumsw.com
Wed Feb 15 14:20:34 EST 2012


Hi,

 

On our build, 64 bit Windows Vision Studio 2010, ITK 4.0.0 (from the
.zip file on the main web page, not from Git Repo)

 

The itkLinearInterpolateImageFunctionTest is failing with the output
below; Is this a known issue, a configuration issue on our part?

 

Thanks

 

 

Rick Frank

 

------- Results below--------------

 

***** Testing dimensionality of 1 *****

Image (00000000031A6660)

  RTTI typeinfo:   class itk::Image<float,1>

  Reference Count: 1

  Modified Time: 29

  Debug: Off

  Observers: 

    none

  Source: (none)

  Source output name: (none)

  Release Data: Off

  Data Released: False

  Global Release Data: Off

  PipelineMTime: 0

  UpdateMTime: 0

  RealTimeStamp: 0 seconds 

  LargestPossibleRegion: 

    Dimension: 1

    Index: [0]

    Size: [3]

  BufferedRegion: 

    Dimension: 1

    Index: [0]

    Size: [3]

  RequestedRegion: 

    Dimension: 1

    Index: [0]

    Size: [3]

  Spacing: [1]

  Origin: [0]

  Direction: 

1

 

  IndexToPointMatrix: 

  1

 

  PointToIndexMatrix: 

  1

 

  Inverse Direction: 

  1

 

  PixelContainer: 

    ImportImageContainer (0000000002D0FDE0)

      RTTI typeinfo:   class itk::ImportImageContainer<unsigned
long,float>

      Reference Count: 1

      Modified Time: 30

      Debug: Off

      Observers: 

        none

      Pointer: 0000000003181100

      Container manages memory: true

      Size: 3

      Capacity: 3

Image Data: 

* dimIt[3], dimIt[2]: 0, 0

0 3 6 

Error found while computing variable  vector interpolation 

Point = [0]

Expected variablevector = [0, 0, 0, 0]

Computed variablevector = [-4.31602e+008, -4.31602e+008, -4.31602e+008,
-4.31602e+008]

Difference     = [4.31602e+008, 4.31602e+008, 4.31602e+008,
4.31602e+008]

Failed for dimensionality 1.

 

This also fails similarly for dimensionality 2, 3 and 4.

 

Here is the code where it's failing in
itkLinearInterpolateImageFunctionTest.cxx:

 

                   const InterpolatedVariableVectorType
variablevectorpixel =

                    variablevectorinterpolator->Evaluate( point );

 

                   InterpolatedVariableVectorType
expectedvariablevector;

                   expectedvariablevector.SetSize(VectorDimension);

                   expectedvariablevector.Fill(expectedValue);

 

                   const double varerrornorm =

                    (expectedvariablevector -
variablevectorpixel).GetNorm();

 

                   if( varerrornorm > tolerance )

                     {

                     std::cerr << "Error found while computing variable
"

                               << " vector interpolation " << std::endl;

                     std::cerr << "Point = " << point << std::endl;

                     std::cerr << "Expected variablevector = "

                      << expectedvariablevector << std::endl;

                     std::cerr << "Computed variablevector = "

                      << variablevectorpixel << std::endl;

                     std::cerr << "Difference     = "

                      << (expectedvariablevector - variablevectorpixel)

                      << std::endl;

                     return EXIT_FAILURE;

                     }

 

 

The particular Evaluate method called is the following:

 

  virtual OutputType Evaluate(const PointType & point) const

  {

    ContinuousIndexType index;

 

 
this->GetInputImage()->TransformPhysicalPointToContinuousIndex(point,
index);

    return ( this->EvaluateAtContinuousIndex(index) );

  }

 

 

 

Full Spectrum Software

225 Turnpike Rd.

Southborough, MA 01772

O. 508-620-6400

F. 508-620-6465

An ISO 13485 Certified Company

rickf at fullspectrumsoftware.com <mailto:rickf at fullspectrumsoftware.com> 

 

www.FullSpectrumSoftware.com <http://www.FullSpectrumSoftware.com> 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20120215/38a404c2/attachment.htm>


More information about the Insight-users mailing list