<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">Dear Farbia,<div><br></div><div><br><div>Welcome to ITK, to use the ITK examples you have to build them first. To do this place</div><div><br></div><div>the source file in any folder you like then place a CMake file in the same folder. The</div><div><br></div><div>CMake file for the Imageregistration2 example would be somthing like the following,</div><div><br></div><div><br></div><div><div><div>PROJECT(ImageRegistration2)</div><div><br></div><div>FIND_PACKAGE ( ITK )</div><div><br></div><div>IF ( ITK_FOUND )</div><div><br></div><div>INCLUDE( ${ITK_USE_FILE} )</div><div><br></div><div>ENDIF( ITK_FOUND )</div><div><br></div></div><div>ADD_EXECUTABLE(ImageRegistration2 ImageRegistration2.cxx )</div><div><br></div><div>TARGET_LINK_LIBRARIES(ImageRegistration2 ITKStatistics ITKIO ITKNumerics)</div><div><br></div><div>If you want to know the CMake list for any other
 example there is a CMake file in the</div><div><br></div><div>examples directory, you can search for the name of the example to find it faster in the</div><div><br></div><div>list. Now you are ready to generate your solution, I assume you already have the CMake</div><div><br></div><div>software, run the CMake software and choose the source directory which is the folder you</div><div><br></div><div>put the source file and CMake list earlier then choose the binary directory which is best to</div><div><br></div><div>not to be the same directory as the source files. Now press configure then after choosing</div><div><br></div><div>the debug program (I assume visual studio) press finish after that press configure again&nbsp;</div><div><br></div><div>when you see the message "configuring done" press generate and you should see the</div><div><br></div><div>message "generating done" then you know you're all set and good to go, just building
 the</div><div><br></div><div>binary files is the only thing left to do. Regarding using your images, you should give more</div><div><br></div><div>information about your images, notice that different images take different data types in ITK</div><div><br></div><div>for pixel representation.&nbsp;For an instance data type "short" represents the DICOM&nbsp;</div><div><br></div><div>(.dcm format ) pixels. Let us know if you encounter any problems.</div><div><br></div><div>Regards, &nbsp;Davoud.</div></div></div></td></tr></table><br>