<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle" type="text/css">
<!--
p
        {margin-top:0;
        margin-bottom:0}
p
        {margin-top:0;
        margin-bottom:0}
-->
P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;"><font size="3">Hello everybody,</font><br>
<div style="font-family: Times New Roman; color: #000000; font-size: 16px">
<div>
<div style="direction:ltr; font-family:Tahoma; color:#000000; font-size:10pt">
<div style="font-family:Times New Roman; color:#000000; font-size:16px">
<div>
<div style="direction:ltr; font-family:Tahoma; color:#000000; font-size:10pt"><font size="2"><span style="font-size:10pt"><br>
<font size="3">I try to compile a tool (dtiprocess) using ITK</font></span></font><font size="3"> (ITKv4.3.0 from git://itk.org/ITK.git, commit from 12-16-2012 13:05:15)</font><font size="2"><span style="font-size:10pt"><font size="2"><font size="3"> on Windows
(Windows 7 with Visual Studio 208).<br>
ITK compiled without any problem, but </font><font size="2"><font size="3">the tool fails
</font><font size="2"><font size="3">to compile and gives me an error in </font><font size="2"><font size="3">one of the ITK classes:</font><br>
"<br>
<font size="2">1>Compiling... <br>
1>tensorscalars.cxx <br>
1>C:\Devel\E-b\DTIAtlasBuilder-build\I4-i\include\ITK-4.3\itkVectorIndexSelectionCastImageFilter.h(145) : error C2039: 'NumericTraits' : is not a member of 'itk::itk'
<br>
1> C:\Devel\E-b\DTIAtlasBuilder-build\I4-i\include\ITK-4.3\itkVectorIndexSelectionCastImageFilter.h(136) : while compiling class template member function 'void itk::VectorIndexSelectionCastImageFilter<TInputImage,TOutputImage>::BeforeThreadedGenerateData(void)'
<br>
1> with <br>
1> [ <br>
1> TInputImage=itk::Image<DeformationPixelType,3>, <br>
1> TOutputImage=RealImageType <br>
1> ] <br>
1> ..\..\dtiprocessTK\PrivateLibrary\tensorscalars.cxx(93) : see reference to class template instantiation 'itk::VectorIndexSelectionCastImageFilter<TInputImage,TOutputImage>' being compiled
<br>
1> with <br>
1> [ <br>
1> TInputImage=itk::Image<DeformationPixelType,3>, <br>
1> TOutputImage=RealImageType <br>
1> ] <br>
1>C:\Devel\E-b\DTIAtlasBuilder-build\I4-i\include\ITK-4.3\itkVectorIndexSelectionCastImageFilter.h(145) : warning C4091: 'typedef ' : ignored on left of 'itk::NumericTraits' when no variable is declared
<br>
1>C:\Devel\E-b\DTIAtlasBuilder-build\I4-i\include\ITK-4.3\itkVectorIndexSelectionCastImageFilter.h(145) : error C2143: syntax error : missing ';' before '<'
<br>
1>C:\Devel\E-b\DTIAtlasBuilder-build\I4-i\include\ITK-4.3\itkVectorIndexSelectionCastImageFilter.h(145) : error C2143: syntax error : missing ';' before '<'
<br>
1>C:\Devel\E-b\DTIAtlasBuilder-build\I4-i\include\ITK-4.3\itkVectorIndexSelectionCastImageFilter.h(148) : error C2039: 'NumericTraits' : is not a member of 'itk::itk'
<br>
1>C:\Devel\E-b\DTIAtlasBuilder-build\I4-i\include\ITK-4.3\itkVectorIndexSelectionCastImageFilter.h(148) : warning C4091: 'typedef ' : ignored on left of 'itk::NumericTraits' when no variable is declared
<br>
1>C:\Devel\E-b\DTIAtlasBuilder-build\I4-i\include\ITK-4.3\itkVectorIndexSelectionCastImageFilter.h(148) : error C2143: syntax error : missing ';' before '<'
<br>
1>C:\Devel\E-b\DTIAtlasBuilder-build\I4-i\include\ITK-4.3\itkVectorIndexSelectionCastImageFilter.h(148) : error C2143: syntax error : missing ';' before '<'
<br>
1>C:\Devel\E-b\DTIAtlasBuilder-build\I4-i\include\ITK-4.3\itkVectorIndexSelectionCastImageFilter.h(148) : error C2039: 'ScalarRealType' : is not a member of '`global namespace''
<br>
1>C:\Devel\E-b\DTIAtlasBuilder-build\I4-i\include\ITK-4.3\itkVectorIndexSelectionCastImageFilter.h(152) : error C2065: 'PixelRealType' : undeclared identifier
<br>
1>C:\Devel\E-b\DTIAtlasBuilder-build\I4-i\include\ITK-4.3\itkVectorIndexSelectionCastImageFilter.h(152) : error C2070: ''unknown-type'': illegal sizeof operand
<br>
1>C:\Devel\E-b\DTIAtlasBuilder-build\I4-i\include\ITK-4.3\itkVectorIndexSelectionCastImageFilter.h(152) : error C2065: 'PixelScalarRealType' : undeclared identifier
<br>
1>C:\Devel\E-b\DTIAtlasBuilder-build\I4-i\include\ITK-4.3\itkVectorIndexSelectionCastImageFilter.h(152) : error C2070: ''unknown-type'': illegal sizeof operand</font><br>
<font size="2">"<br>
<br>
<font size="2"><font size="3">The part of the tool's code </font><font size="2"><font size="3">where the error appears is:</font><br>
<font size="2">(tensorscalars.cxx:93)</font><br>
</font>"<br>
<font size="2">#include "itkVectorIndexSelectionCastImageFilter.h" <br>
<br>
(...)<br>
<br>
template<> <br>
itk::Image<double, 3>::Pointer createLambda<double>(TensorImageType::Pointer timg, // Tensor image<br>
EigenValueIndex lambdaind) // Lambda index<br>
{<br>
// Not really a deformation image output jsut a 3-vector of doubles. <br>
typedef itk::FastSymmetricEigenAnalysisImageFilter<TensorImageType,DeformationImageType> LambdaFilterType;<br>
LambdaFilterType::Pointer lambdafilter = LambdaFilterType::New();<br>
lambdafilter->SetInput(timg);<br>
lambdafilter->OrderEigenValuesBy(LambdaFilterType::FunctorType::OrderByValue);<br>
lambdafilter->Update(); <br>
<br>
(l.93)<b> typedef itk::VectorIndexSelectionCastImageFilter<LambdaFilterType::OutputImageType, RealImageType> ElementSelectAdaptorType;</b><br>
ElementSelectAdaptorType::Pointer elementSelect = ElementSelectAdaptorType::New();<br>
elementSelect->SetInput(lambdafilter->GetOutput());<br>
// Reverse semanatics of lambda_1 from ITK.<br>
// In our convention lambda_1 is the largest eigenvalue whereas in<br>
// ITK its the smallest<br>
elementSelect->SetIndex(2 - lambdaind);<br>
elementSelect->Update(); <br>
<br>
return elementSelect->GetOutput(); <br>
}<br>
</font>"<br>
<br>
<font size="3">I did not write the tool myself, but I think the problem comes from the tool and not from ITK, I just can not figure out what I need to change to make it compile.<br>
Does anyone have any ideas ?<br>
<br>
Thanks,<br>
Best Regards,<br>
<br>
Adrien Kaiser<br>
University of North Carolina at Chapel Hill</font></font><br>
</font></font></font></font></font></span></font></div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>