[Insight-users] VNL 1.14 and ITK 3.20

Bill Lorensen bill.lorensen at gmail.com
Tue May 24 10:25:37 EDT 2011


The VXL folks made a non backward-compatible change to their API. The
following change has been made in ITKv4, but not ITK3.20.


In itkFEMLinearSystemWrapperVNL.cxx
go to the error line and replace it with the following:

#if VXL_VERSION_MAJOR == 1 && VXL_VERSION_MINOR == 9
 ((*m_Matrices)[LeftMatrixIndex])->mult(
*((*m_Matrices)[RightMatrixIndex]),
*((*m_Matrices)[ResultMatrixIndex]) );
#else
*((*m_Matrices)[ResultMatrixIndex]) =
*((*m_Matrices)[LeftMatrixIndex]) * ( *((*m_Matrices)[RightMatrixIndex]));
#endif

On Tue, May 24, 2011 at 8:46 AM, Estanislao Oubel <stan.oubel at gmail.com> wrote:
> Hi all,
>
> I'd like to use VNL 1.14 with ITK 3.20 because the vnl_sparse_matrix
> includes several
> useful methods absent in the VNL version included in ITK 3.20
> (sparse matrix multiplication for example)
>
> I've set ITK_USE_SYSTEM_VXL to ON but I get some compilation errors:
>
> [100%] [100%] [100%] Building CXX object
> Code/Numerics/FEM/CMakeFiles/ITKFEM.dir/itkFEMUtility.o
> Building CXX object
> Code/Numerics/FEM/CMakeFiles/ITKFEM.dir/itkFEMInitialization.o
> Building C object Code/Numerics/FEM/CMakeFiles/ITKFEM.dir/dsrc2c.o
> /home/miv/oubel/lib/vxl-1.14.0/core/vnl/vnl_sparse_matrix.h: In member
> function ‘virtual void
> itk::fem::LinearSystemWrapperVNL::MultiplyMatrixMatrix(unsigned int,
> unsigned int, unsigned int)’:
> /home/miv/oubel/lib/vxl-1.14.0/core/vnl/vnl_sparse_matrix.h:268: error:
> ‘void vnl_sparse_matrix<T>::mult(const vnl_sparse_matrix<T>&,
> vnl_sparse_matrix<T>&) const [with T = double]’ is protected
> /home/miv/oubel/lib/InsightToolkit-3.20.0/Code/Numerics/FEM/itkFEMLinearSystemWrapperVNL.cxx:265:
> error: within this context
> make[2]: ***
> [Code/Numerics/FEM/CMakeFiles/ITKFEM.dir/itkFEMLinearSystemWrapperVNL.o]
> Erreur 1
> make[2]: *** Attente des tâches non terminées....
> make[1]: *** [Code/Numerics/FEM/CMakeFiles/ITKFEM.dir/all] Erreur 2
> make[1]: *** Attente des tâches non terminées....
> Linking CXX shared library ../../bin/libITKIOReview.so
> [100%] Built target ITKIOReview
> Linking CXX executable ../../bin/itkTestDriver
> [100%] Built target itkTestDriver
> make: *** [all] Erreur 2
>
> Am I doing anything wrong? Have you found similar problems?
>
> Best
>
> stan
>
>
>
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://www.kitware.com/products/protraining.html
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-users
>


More information about the Insight-users mailing list