[Insight-users] Insight-users Digest, Vol 78, Issue 39
Dav
masslawi at gmail.com
Sat Oct 30 18:46:54 EDT 2010
Dear Fariba,
As Stuart said, first thing to do is to check your Cmake list however,
you should notice that there are two ImageRegistration2 examples in
the ITK registration examples directory. The second one is distinguished
with the letter "o" in the end (ImageRegistration2o.cxx) and the Cmake
list for these two examples is different. The Cmake list for ImageRegistration2.cxx
is,
PROJECT(ImageRegistration2)
FIND_PACKAGE ( ITK )
IF ( ITK_FOUND )
INCLUDE( ${ITK_USE_FILE} )
ENDIF( ITK_FOUND )
ADD_EXECUTABLE(MultiResImageRegistration2 MultiResImageRegistration2.cxx)
TARGET_LINK_LIBRARIES(MultiResImageRegistration2 ITKIO ITKNumerics)
And the Cmake list for ImageRegistration2o.cxx is,
PROJECT(ImageRegistration2o)
FIND_PACKAGE ( ITK )
IF ( ITK_FOUND )
INCLUDE( ${ITK_USE_FILE} )
ENDIF( ITK_FOUND )
ADD_EXECUTABLE(ImageRegistration20 ImageRegistration20.cxx )
TARGET_LINK_LIBRARIES(ImageRegistration20 ITKStatistics ITKIO ITKNumerics)
If you have the right Cmake list there is one more thing that I can think
of as the source of error, after building the ITK in visual studio (to install ITK)
don't clean the solution.
The two common pixel types for PNG format are, "unsigned char" and
"unsigned short".You can see the pixel types for different file formats on
the following link, http://www.itk.org/Wiki/ITK_File_Formats.
Regarding the warnings on visual studio, generally they are harmless
and you can ignore them or disable them.
Best regards,
Davoud.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20101030/5bb29c79/attachment.htm>
More information about the Insight-users
mailing list