<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&nbsp;that there are two ImageRegistration2 examples in</div><div><br></div><div>the ITK registration examples directory.&nbsp;The second one is&nbsp;distinguished</div><div><br></div><div>with the letter "o"&nbsp;in the end (ImageRegistration2o.cxx)&nbsp;and the Cmake</div><div><br></div><div>list for these two examples is different. The Cmake list&nbsp;for&nbsp;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)&nbsp;</div><div><br></div><div>TARGET_LINK_LIBRARIES(MultiResImageRegistration2 ITKIO ITKNumerics)</div><div><br></div><div>And the Cmake list for ImageRegistration2o.cxx&nbsp;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 )&nbsp;</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 &nbsp;short".You can see the pixel types for different file formats on</div><div><br></div><div>the following &nbsp;link,&nbsp;<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&nbsp;them or disable them.</div><div><br></div><div>Best regards,</div><div><br></div><div>Davoud.</div></td></tr></table><br>