[Insight-users] Mutual Information

Dav masslawi at gmail.com
Wed Oct 27 18:34:38 EDT 2010


Dear Farbia,

Welcome to ITK, to use the ITK examples you have to build them first. To do this place
the source file in any folder you like then place a CMake file in the same folder. The
CMake file for the Imageregistration2 example would be somthing like the following,

PROJECT(ImageRegistration2)
FIND_PACKAGE ( ITK )
IF ( ITK_FOUND )
INCLUDE( ${ITK_USE_FILE} )
ENDIF( ITK_FOUND )
ADD_EXECUTABLE(ImageRegistration2 ImageRegistration2.cxx )
TARGET_LINK_LIBRARIES(ImageRegistration2 ITKStatistics ITKIO ITKNumerics)
If you want to know the CMake list for any other example there is a CMake file in the
examples directory, you can search for the name of the example to find it faster in the
list. Now you are ready to generate your solution, I assume you already have the CMake
software, run the CMake software and choose the source directory which is the folder you
put the source file and CMake list earlier then choose the binary directory which is best to
not to be the same directory as the source files. Now press configure then after choosing
the debug program (I assume visual studio) press finish after that press configure again 
when you see the message "configuring done" press generate and you should see the
message "generating done" then you know you're all set and good to go, just building the
binary files is the only thing left to do. Regarding using your images, you should give more
information about your images, notice that different images take different data types in ITK
for pixel representation. For an instance data type "short" represents the DICOM 
(.dcm format ) pixels. Let us know if you encounter any problems.
Regards,  Davoud.


      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20101027/dd0c186d/attachment.htm>


More information about the Insight-users mailing list