<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman,new york,times,serif;font-size:12pt"><div>ok<br>the error message i have is "DicomImageReadWrite.cxx<br>.\DicomImageReadWrite.cxx(8) : fatal error
C1083: Impossible d'ouvrir le fichier include :
'itkImageFileReader.h' : No such file or directory" and i<br>Now,i try to change cmake file now as follows:<br>CMAKE_MINIMUM_REQUIRED(VERSION 2.6)<br>IF(COMMAND CMAKE_POLICY)<br> CMAKE_POLICY(SET CMP0003 NEW)<br>ENDIF(COMMAND CMAKE_POLICY)<br># Find ITK.<br>FIND_PACKAGE(ITK REQUIRED)<br>INCLUDE(${ITK_USE_FILE})<br><br>PROJECT(IOExamples)<br>INCLUDE_REGULAR_EXPRESSION("^.*$")<br>ADD_EXECUTABLE(DicomImageReadWrite DicomImageReadWrite.cxx )<br>TARGET_LINK_LIBRARIES(DicomImageReadWrite ITKIO)<br>but when i execute cmake i have this error (look at the joined file plz)<br><br><br><img src="file:///C:/DOCUME%7E1/Sirouna/LOCALS%7E1/Temp/moz-screenshot.jpg" alt=""><br></div><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><font size="2" face="Tahoma"><hr size="1"><b><span style="font-weight: bold;">De :</span></b> Luis Ibanez
<luis.ibanez@kitware.com><br><b><span style="font-weight: bold;">À :</span></b> Syrine Sahmim <syrine.sahmim@yahoo.fr><br><b><span style="font-weight: bold;">Cc :</span></b> insight-users@itk.org<br><b><span style="font-weight: bold;">Envoyé le :</span></b> Mercredi, 17 Juin 2009, 11h33mn 17s<br><b><span style="font-weight: bold;">Objet :</span></b> Re: [Insight-users] what's this error plz<br></font><br><br>Hy Syrine,<br><br>The code looks ok.<br><br>You may be confused with the normal termination of the program.<br><br>If you run it in Debug mode, and walk line by line,<br>do you get up to the end of the program ?<br><br>
Please let us know,<br><br><br> Thanks,<br><br><br> Luis<br><br><br>----------------------------------------<br><div class="gmail_quote">On Wed, Jun 17, 2009 at 4:34 AM, Syrine Sahmim <span dir="ltr"><<a rel="nofollow" ymailto="mailto:syrine.sahmim@yahoo.fr" target="_blank" href="mailto:syrine.sahmim@yahoo.fr">syrine.sahmim@yahoo.fr</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div style="font-family: times new roman,new york,times,serif; font-size: 12pt; color: rgb(0, 0, 0);">
<div>hi,<br>i try the program below but i have this error when i run it:"the program '[640] Image1.exe: Natif' is stopped with code 0 (0x0)."<br>what does mean this error?<br>#if defined(_MSC_VER)<br>#pragma warning ( disable : 4786 )<br>
#endif<br>#include "itkImage.h"<br>int main(int, char *[])<br>{ typedef itk::Image< unsigned short, 3 > ImageType;<br> ImageType::Pointer image = ImageType::New(); <br> ImageType::IndexType start;<br>
start[0] = 0; // first index on X<br> start[1] = 0; // first index on Y<br> start[2] = 0; // first index on Z<br> ImageType::SizeType size;<br> size[0] = 200; // size along
X<br> size[1] = 200; // size along Y<br> size[2] = 200; // size along Z<br> ImageType::RegionType region;<br> region.SetSize( size );<br> region.SetIndex( start );<br> image->SetRegions( region );<br> image->Allocate();<br>
system("pause");<br> return 0;<br></div></div><br>
</div><br>_____________________________________<br>
Powered by <a rel="nofollow" target="_blank" href="http://www.kitware.com">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at<br>
<a rel="nofollow" target="_blank" href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ITK FAQ at: <a rel="nofollow" target="_blank" href="http://www.itk.org/Wiki/ITK_FAQ">http://www.itk.org/Wiki/ITK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a rel="nofollow" target="_blank" href="http://www.itk.org/mailman/listinfo/insight-users">http://www.itk.org/mailman/listinfo/insight-users</a><br>
<br></blockquote></div><br>
</div></div></div><br>
</body></html>