[Insight-users] question Demon Registration

Dey, Joyoni Joyoni.Dey at umassmed.edu
Sat Mar 31 09:51:06 EDT 2012


Thanks, and FYI:

I tried ITK 4.1.0 and had some other issues.

Good news is I went to ITK 3.20.1 and both following demons algorithms seem fine:

DiffeomorphicDemons-2009-06-Vercauteren-IJSource

and

LogDomainDemonsRegistration-0.0.5-Source



________________________________________
From: Matt McCormick [matt.mccormick at kitware.com]
Sent: Wednesday, March 28, 2012 4:50 PM
To: Dey, Joyoni
Cc: insight-users at itk.org
Subject: Re: [Insight-users] question Demon Registration

Hi Joyoni,

Try ITK 3.20.1, or better yet, 4.1.0 ;-)

Matt

On Wed, Mar 28, 2012 at 2:22 PM, Dey, Joyoni <Joyoni.Dey at umassmed.edu> wrote:
>
> I downloaded the and installed the following
> http://www.insight-journal.org/browse/publication/154
>
> I have InsightToolkit-3.20.0 installed. cmake version 2.8.4
>
> I am getting following error when compiling:
>
> Did anyone have same errors ?
>
> thanks much for any help.
>
> Joyoni
>
> --------------------------
> SNAPSHOT OF ERROR:
>
>
>            from /home/joyoni/itk_practice/itk_registration/src/DiffeomorphicDemons-2009-06-Vercauteren-IJSource/DemonsRegistration.cxx:16:
> /usr/local/include/InsightToolkit/IO/itkConvertPixelBuffer.txx: In static member function ‘static void itk::ConvertPixelBuffer<InputPixelType, OutputPixelType, OutputConvertTraits>::ConvertMultiComponentToGray(InputPixelType*, int, OutputPixelType*, size_t)’:
> /usr/local/include/InsightToolkit/IO/itkConvertPixelBuffer.txx:255:5: error: ‘ptrdiff_t’ was not declared in this scope
> /usr/local/include/InsightToolkit/IO/itkConvertPixelBuffer.txx:255:5: note: suggested alternatives:
> /usr/include/c++/4.6/x86_64-linux-gnu/./bits/c++config.h:156:28: note:   ‘std::ptrdiff_t’
> /usr/include/c++/4.6/x86_64-linux-gnu/./bits/c++config.h:156:28: note:   ‘std::ptrdiff_t’
> /usr/local/include/InsightToolkit/IO/itkConvertPixelBuffer.txx:255:15: error: expected ‘;’ before ‘diff’
> /usr/local/include/InsightToolkit/IO/itkConvertPixelBuffer.txx:268:20: error: ‘diff’ was not declared in this scope
> /usr/local/include/InsightToolkit/IO/itkConvertPixelBuffer.txx: In static member function ‘static void itk::ConvertPixelBuffer<InputPixelType, OutputPixelType, OutputConvertTraits>::ConvertMultiComponentToRGB(InputPixelType*, int, OutputPixelType*, size_t)’:
> /usr/local/include/InsightToolkit/IO/itkConvertPixelBuffer.txx:384:5: error: ‘ptrdiff_t’ was not declared in this scope
> /usr/local/include/InsightToolkit/IO/itkConvertPixelBuffer.txx:384:5: note: suggested alternatives:
> /usr/include/c++/4.6/x86_64-linux-gnu/./bits/c++config.h:156:28: note:   ‘std::ptrdiff_t’
> /usr/include/c++/4.6/x86_64-linux-gnu/./bits/c++config.h:156:28: note:   ‘std::ptrdiff_t’
> /usr/local/include/InsightToolkit/IO/itkConvertPixelBuffer.txx:384:15: error: expected ‘;’ before ‘diff’
> /usr/local/include/InsightToolkit/IO/itkConvertPixelBuffer.txx:398:20: error: ‘diff’ was not declared in this scope
> /usr/local/include/InsightToolkit/IO/itkConvertPixelBuffer.txx: In static member function ‘static void itk::ConvertPixelBuffer<InputPixelType, OutputPixelType, OutputConvertTraits>::ConvertMultiComponentToRGBA(InputPixelType*, int, OutputPixelType*, size_t)’:
> /usr/local/include/InsightToolkit/IO/itkConvertPixelBuffer.txx:522:5: error: ‘ptrdiff_t’ was not declared in this scope
> /usr/local/include/InsightToolkit/IO/itkConvertPixelBuffer.txx:522:5: note: suggested alternatives:
> /usr/include/c++/4.6/x86_64-linux-gnu/./bits/c++config.h:156:28: note:   ‘std::ptrdiff_t’
> /usr/include/c++/4.6/x86_64-linux-gnu/./bits/c++config.h:156:28: note:   ‘std::ptrdiff_t’
> /usr/local/include/InsightToolkit/IO/itkConvertPixelBuffer.txx:522:15: error: expected ‘;’ before ‘diff’
> /usr/local/include/InsightToolkit/IO/itkConvertPixelBuffer.txx:539:20: error: ‘diff’ was not declared in this scope
> /usr/local/include/InsightToolkit/IO/itkConvertPixelBuffer.txx: In static member function ‘static void itk::ConvertPixelBuffer<InputPixelType, OutputPixelType, OutputConvertTraits>::ConvertMultiComponentToComplex(InputPixelType*, int, OutputPixelType*, size_t)’:
> /usr/local/include/InsightToolkit/IO/itkConvertPixelBuffer.txx:664:3: error: ‘ptrdiff_t’ was not declared in this scope
> /usr/local/include/InsightToolkit/IO/itkConvertPixelBuffer.txx:664:3: note: suggested alternatives:
> /usr/include/c++/4.6/x86_64-linux-gnu/./bits/c++config.h:156:28: note:   ‘std::ptrdiff_t’
> /usr/include/c++/4.6/x86_64-linux-gnu/./bits/c++config.h:156:28: note:   ‘std::ptrdiff_t’
> /usr/local/include/InsightToolkit/IO/itkConvertPixelBuffer.txx:664:13: error: expected ‘;’ before ‘diff’
> /usr/local/include/InsightToolkit/IO/itkConvertPixelBuffer.txx:675:20: error: ‘diff’ was not declared in this scope
> make[2]: *** [CMakeFiles/DemonsRegistration.dir/DemonsRegistration.cxx.o] Error 1
> make[1]: *** [CMakeFiles/DemonsRegistration.dir/all] Error 2
> make: *** [all] Error 2
>
>
> _____________________________________
> 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.php
>
> 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