<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><div>Dear Fariba,</div><div><br></div><div>As Stuart said, first thing to do is to check your Cmake list however,</div><div><br></div><div>you should notice that there are two ImageRegistration2 examples in</div><div><br></div><div>the ITK registration examples directory. The second one is distinguished</div><div><br></div><div>with the letter "o" in the end (ImageRegistration2o.cxx) and the Cmake</div><div><br></div><div>list for these two examples is different. The Cmake list for ImageRegistration2.cxx</div><div><br></div><div>is,</div><div><br></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(MultiResImageRegistration2 MultiResImageRegistration2.cxx) </div><div><br></div><div>TARGET_LINK_LIBRARIES(MultiResImageRegistration2 ITKIO ITKNumerics)</div><div><br></div><div>And the Cmake list for ImageRegistration2o.cxx is,</div><div><br></div><div><div><div>PROJECT(ImageRegistration2o)</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><div><br></div><div>ADD_EXECUTABLE(ImageRegistration20 ImageRegistration20.cxx ) </div><div><br></div><div>TARGET_LINK_LIBRARIES(ImageRegistration20 ITKStatistics ITKIO ITKNumerics)</div><div><br></div><div>If you have the right Cmake list there is one more thing that I can think</div><div><br></div><div>of as the source of error, after building the ITK in visual studio (to install
ITK)</div><div><br></div><div>don't clean the solution.</div><div><br></div><div>The two common pixel types for PNG format are, "unsigned char" and</div><div><br></div><div>"unsigned short".You can see the pixel types for different file formats on</div><div><br></div><div>the following link, <a href="http://www.itk.org/Wiki/ITK_File_Formats">http://www.itk.org/Wiki/ITK_File_Formats</a>.</div><div><br></div><div>Regarding the warnings on visual studio, generally they are harmless</div><div><br></div><div>and you can ignore them or disable them.</div><div><br></div><div>Best regards,</div><div><br></div><div>Davoud.</div></td></tr></table><br>