<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;color:#000000;"><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>
</body></html>