<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><DIV>hi all, i am new ti itk </DIV>
<DIV>&nbsp;</DIV>
<DIV>the hello world run with out any problem</DIV>
<DIV>&nbsp;</DIV>
<DIV>but when run data-representation example no any image displayed,just the black screen appear quickly and disappear</DIV>
<DIV>&nbsp;</DIV>
<DIV>i dont know what is the problm ,, i set the file name to</DIV><FONT size=2>
<DIV>reader-&gt;SetFileName( </FONT><FONT color=#a31515 size=2><FONT color=#a31515 size=2>"C:\Users\Rahaf\Pictures\1.jpg"</FONT></FONT><FONT size=2>);</FONT></DIV>
<DIV><FONT size=2></FONT>&nbsp;</DIV>
<DIV><FONT size=2>because i dont know how to set parameters for argv[1] .......</FONT></DIV>
<DIV><FONT size=2></FONT>&nbsp;</DIV>
<DIV><FONT size=2>i spent alot of time in reading and searching , at the end i try to send this message which i hope i will find answer to my questions.</FONT></DIV>
<DIV><FONT size=2></FONT>&nbsp;</DIV>
<DIV><FONT size=2>her is the code:</FONT></DIV>
<DIV>&nbsp;</DIV><FONT size=2><FONT color=#0000ff size=2><FONT color=#0000ff size=2>
<DIV>#if</FONT></FONT><FONT size=2> </FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>defined</FONT></FONT><FONT size=2>(_MSC_VER)</DIV></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>
<DIV>#pragma</FONT></FONT><FONT size=2> </FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>warning</FONT></FONT><FONT size=2> ( </FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>disable</FONT></FONT><FONT size=2> : 4786 )</DIV></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>
<DIV>#endif</DIV>
<DIV>#include</FONT></FONT><FONT size=2> </FONT><FONT color=#a31515 size=2><FONT color=#a31515 size=2>"itkImage.h"</DIV></FONT></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>
<DIV>#include</FONT></FONT><FONT size=2> </FONT><FONT color=#a31515 size=2><FONT color=#a31515 size=2>"itkImageFileReader.h"</DIV></FONT></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>
<DIV>#include</FONT></FONT><FONT size=2> </FONT><FONT color=#a31515 size=2><FONT color=#a31515 size=2>"itkGradientMagnitudeImageFilter.h"</DIV></FONT></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>
<DIV>int</FONT></FONT><FONT size=2> main( </FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>int</FONT></FONT><FONT size=2> argc, </FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>char</FONT></FONT><FONT size=2> **argv ) {</DIV></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>
<DIV>typedef</FONT></FONT><FONT size=2> itk::Image&lt;</FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>unsigned</FONT></FONT><FONT size=2> </FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>short</FONT></FONT><FONT size=2>,2&gt; ImageType;</DIV></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>
<DIV>typedef</FONT></FONT><FONT size=2> itk::ImageFileReader&lt;ImageType&gt; ReaderType;</DIV></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>
<DIV>typedef</FONT></FONT><FONT size=2> itk::GradientMagnitudeImageFilter&lt; </DIV>
<DIV>ImageType,ImageType&gt; FilterType;</DIV>
<DIV>ReaderType::Pointer reader = ReaderType::New();</DIV>
<DIV>FilterType::Pointer filter = FilterType::New();</DIV>
<DIV>reader-&gt;SetFileName( </FONT><FONT color=#a31515 size=2><FONT color=#a31515 size=2>"C:\Users\Rahaf\Pictures\1.jpg"</FONT></FONT><FONT size=2> );</DIV>
<DIV>filter-&gt;SetInput( reader-&gt;GetOutput() );</DIV>
<DIV>filter-&gt;Update();</DIV></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>
<DIV>return</FONT></FONT><FONT size=2> 0;</DIV>
<DIV>}</DIV>
<DIV>&nbsp;</DIV>
<DIV>theCmakelists</DIV>
<DIV><BR>PROJECT(ImageExamples)<BR>INCLUDE_REGULAR_EXPRESSION("^.*$")</DIV>
<DIV>FIND_PACKAGE ( ITK)<BR>IF ( ITK_FOUND)<BR>INCLUDE( ${USE_ITK_FILE} )<BR>ENDIF( ITK_FOUND)</DIV>
<DIV>&nbsp;</DIV>
<DIV>ADD_EXECUTABLE(Image2 Image2.cxx )<BR>TARGET_LINK_LIBRARIES(Image2 ITKBasicFilters ITKCommon ITKIO)</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV></FONT></FONT></td></tr></table><br>