[Insight-users] Exception in groupwise registration code
Xi Liang
xliang.cad at gmail.com
Thu May 24 09:38:01 EDT 2012
The following is the error messages. I tried to modify some source
code, but I later on found out that some header functions or elements
in the source code are not used in ITK4 as more, such as m_Jacobian
element does not exist anymore.
1>------ Build started: Project: ComputeDice, Configuration: Debug Win32 ------
2>------ Build started: Project: ComputeOutputs, Configuration: Debug
Win32 ------
3>------ Build started: Project: CreateImageSetAffine, Configuration:
Debug Win32 ------
4>------ Build started: Project: GroupwiseRegistration, Configuration:
Debug Win32 ------
3>Compiling...
2>Compiling...
4>Compiling...
1>Compiling...
4>GradientDescentLineSearchOptimizer.cxx
3>CreateImageSetAffine.cxx
2>ComputeOutputs.cxx
1>ComputeDice.cxx
4>GroupwiseRegistrationExample.cxx
2>e:\dropbox\matlab_workspace\niisegmentation\itk\groupwiseregistration_v4\multiimageregistration\source\BSplineDeformableTransformOpt.h(378)
: error C2555: 'itk::BSplineDeformableTransformOpt<TScalarType,NDimensions,VSplineOrder>::GetNumberOfParameters':
overriding virtual function return type differs and is not covariant
from 'itk::Transform<TScalarType,NInputDimensions,NOutputDimensions>::GetNumberOfParameters'
1>e:\dropbox\matlab_workspace\niisegmentation\itk\groupwiseregistration_v4\multiimageregistration\source\BSplineDeformableTransformOpt.h(378)
: error C2555: 'itk::BSplineDeformableTransformOpt<TScalarType,NDimensions,VSplineOrder>::GetNumberOfParameters':
overriding virtual function return type differs and is not covariant
from 'itk::Transform<TScalarType,NInputDimensions,NOutputDimensions>::GetNumberOfParameters'
2> with
1> with
2> [
1> [
2> TScalarType=double,
1> TScalarType=double,
2> NDimensions=3,
1> NDimensions=3,
1> VSplineOrder=3
2> VSplineOrder=3
2> ]
1> ]
1> and
2> and
2> [
1> [
1> TScalarType=double,
2> TScalarType=double,
2> NInputDimensions=3,
1> NInputDimensions=3,
2> NOutputDimensions=3
1> NOutputDimensions=3
2> ]
1> ]
2> e:\software\insighttoolkit-4.1.0\modules\core\transform\include\itkTransform.h(417)
: see declaration of
'itk::Transform<TScalarType,NInputDimensions,NOutputDimensions>::GetNumberOfParameters'
1> e:\software\insighttoolkit-4.1.0\modules\core\transform\include\itkTransform.h(417)
: see declaration of
'itk::Transform<TScalarType,NInputDimensions,NOutputDimensions>::GetNumberOfParameters'
2> with
1> with
1> [
2> [
2> TScalarType=double,
1> TScalarType=double,
2> NInputDimensions=3,
1> NInputDimensions=3,
1> NOutputDimensions=3
2> NOutputDimensions=3
2> ]
1> ]
1> ..\..\..\Dropbox\MATLAB_workspace\NIIsegmentation\ITK\GroupwiseRegistration_v4\MultiImageRegistration\Source\ComputeDice.cxx(303)
: see reference to class template instantiation
'itk::BSplineDeformableTransformOpt<TScalarType,NDimensions,VSplineOrder>'
being compiled
2> ..\..\..\Dropbox\MATLAB_workspace\NIIsegmentation\ITK\GroupwiseRegistration_v4\MultiImageRegistration\Source\ComputeOutputs.cxx(296)
: see reference to class template instantiation
'itk::BSplineDeformableTransformOpt<TScalarType,NDimensions,VSplineOrder>'
being compiled
2> with
1> with
1> [
2> [
2> TScalarType=double,
1> TScalarType=double,
1> NDimensions=3,
2> NDimensions=3,
2> VSplineOrder=3
1> VSplineOrder=3
1> ]
2> ]
3>e:\software\insighttoolkit-4.1.0\modules\io\imagebase\include\itkImageFileReader.hxx(440)
: warning C4996: 'std::copy': Function call with parameters that may
be unsafe - this call relies on the caller to check that the passed
values are correct. To disable this warning, use
-D_SCL_SECURE_NO_WARNINGS. See documentation on how to use Visual C++
'Checked Iterators'
3> d:\Program Files\Microsoft Visual Studio
9.0\VC\include\xutility(2550) : see declaration of 'std::copy'
3> e:\software\insighttoolkit-4.1.0\modules\io\imagebase\include\itkImageFileReader.hxx(353)
: while compiling class template member function 'void
itk::ImageFileReader<TOutputImage>::GenerateData(void)'
3> with
3> [
3> TOutputImage=InputImageType
3> ]
3> ..\..\..\Dropbox\MATLAB_workspace\NIIsegmentation\ITK\GroupwiseRegistration_v4\MultiImageRegistration\Source\CreateImageSetAffine.cxx(65)
: see reference to class template instantiation
'itk::ImageFileReader<TOutputImage>' being compiled
3> with
3> [
3> TOutputImage=InputImageType
3> ]
4>e:\dropbox\matlab_workspace\niisegmentation\itk\groupwiseregistration_v4\multiimageregistration\source\UnivariateEntropyMultiImageMetric.h(24)
: fatal error C1083: Cannot open include file: 'itkKernelFunction.h':
No such file or directory
4>Generating Code...
2>Build log was saved at
"file://e:\ITK4_Apps\GroupwiseRegistration\Source\ComputeOutputs.dir\Debug\BuildLog.htm"
1>Build log was saved at
"file://e:\ITK4_Apps\GroupwiseRegistration\Source\ComputeDice.dir\Debug\BuildLog.htm"
1>ComputeDice - 1 error(s), 0 warning(s)
2>ComputeOutputs - 1 error(s), 0 warning(s)
3>Compiling manifest to resources...
4>Build log was saved at
"file://e:\ITK4_Apps\GroupwiseRegistration\Source\GroupwiseRegistration.dir\Debug\BuildLog.htm"
4>GroupwiseRegistration - 1 error(s), 0 warning(s)
5>------ Build started: Project: TransformImage, Configuration: Debug
Win32 ------
6>------ Build started: Project: CreateImageSetBspline, Configuration:
Debug Win32 ------
5>Compiling...
6>Compiling...
3>Microsoft (R) Windows (R) Resource Compiler Version 6.0.5724.0
3>Copyright (C) Microsoft Corporation. All rights reserved.
3>Linking...
6>CreateImageSetBspline.cxx
5>TransformImage.cxx
3>LINK : fatal error LNK1104: cannot open file 'ITKBasicFilters.lib'
3>Build log was saved at
"file://e:\ITK4_Apps\GroupwiseRegistration\Source\CreateImageSetAffine.dir\Debug\BuildLog.htm"
3>CreateImageSetAffine - 1 error(s), 1 warning(s)
5>e:\dropbox\matlab_workspace\niisegmentation\itk\groupwiseregistration_v4\multiimageregistration\source\BSplineDeformableTransformOpt.h(378)
: error C2555: 'itk::BSplineDeformableTransformOpt<TScalarType,NDimensions,VSplineOrder>::GetNumberOfParameters':
overriding virtual function return type differs and is not covariant
from 'itk::Transform<TScalarType,NInputDimensions>::GetNumberOfParameters'
5> with
5> [
5> TScalarType=double,
5> NDimensions=3,
5> VSplineOrder=3
5> ]
5> and
5> [
5> TScalarType=double,
5> NInputDimensions=3
5> ]
5> E:\Software\InsightToolkit-4.1.0\Modules\Core\Transform\include\itkTransform.h(417)
: see declaration of
'itk::Transform<TScalarType,NInputDimensions>::GetNumberOfParameters'
5> with
5> [
5> TScalarType=double,
5> NInputDimensions=3
5> ]
5> ..\..\..\Dropbox\MATLAB_workspace\NIIsegmentation\ITK\GroupwiseRegistration_v4\MultiImageRegistration\Source\TransformImage.cxx(66)
: see reference to class template instantiation
'itk::BSplineDeformableTransformOpt<TScalarType,NDimensions,VSplineOrder>'
being compiled
5> with
5> [
5> TScalarType=double,
5> NDimensions=3,
5> VSplineOrder=3
5> ]
6>e:\dropbox\matlab_workspace\niisegmentation\itk\groupwiseregistration_v4\multiimageregistration\source\BSplineDeformableTransformOpt.h(378)
: error C2555: 'itk::BSplineDeformableTransformOpt<TScalarType,NDimensions,VSplineOrder>::GetNumberOfParameters':
overriding virtual function return type differs and is not covariant
from 'itk::Transform<TScalarType,NInputDimensions,NOutputDimensions>::GetNumberOfParameters'
6> with
6> [
6> TScalarType=double,
6> NDimensions=3,
6> VSplineOrder=3
6> ]
6> and
6> [
6> TScalarType=double,
6> NInputDimensions=3,
6> NOutputDimensions=3
6> ]
6> E:\Software\InsightToolkit-4.1.0\Modules\Core\Transform\include\itkTransform.h(417)
: see declaration of
'itk::Transform<TScalarType,NInputDimensions,NOutputDimensions>::GetNumberOfParameters'
6> with
6> [
6> TScalarType=double,
6> NInputDimensions=3,
6> NOutputDimensions=3
6> ]
6> ..\..\..\Dropbox\MATLAB_workspace\NIIsegmentation\ITK\GroupwiseRegistration_v4\MultiImageRegistration\Source\CreateImageSetBspline.cxx(100)
: see reference to class template instantiation
'itk::BSplineDeformableTransformOpt<TScalarType,NDimensions,VSplineOrder>'
being compiled
6> with
6> [
6> TScalarType=double,
6> NDimensions=3,
6> VSplineOrder=3
6> ]
6>Build log was saved at
"file://e:\ITK4_Apps\GroupwiseRegistration\Source\CreateImageSetBspline.dir\Debug\BuildLog.htm"
6>CreateImageSetBspline - 1 error(s), 0 warning(s)
5>Build log was saved at
"file://e:\ITK4_Apps\GroupwiseRegistration\Source\TransformImage.dir\Debug\BuildLog.htm"
5>TransformImage - 1 error(s), 0 warning(s)
7>------ Skipped Build: Project: ALL_BUILD, Configuration: Debug Win32 ------
7>Project not selected to build for this solution configuration
========== Build: 0 succeeded, 6 failed, 1 up-to-date, 1 skipped ==========
More information about the Insight-users
mailing list