<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><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><div>haii every one... help me.. i have a question about reading an image from a file,<br>according to itkSoftwareGuide page 70, i have a source code like this : <br><br>#include "itkImage.h"<br>#include "itkImageFileReader.h"<br><br>int main( int , char * argv[])<br>{  <br>&nbsp; typedef unsigned char&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; PixelType;<br>&nbsp; const unsigned int&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Dimension = 3;<br><br>&nbsp; typedef itk::Image&lt; PixelType, Dimension &gt;&nbsp;&nbsp; ImageType;&nbsp; <br><br>&nbsp; typedef itk::ImageFileReader&lt; ImageType &gt;&nbsp; ReaderType;<br>&nbsp; <br>&nbsp; ReaderType::Pointer reader =
 ReaderType::New();&nbsp;
 <br>&nbsp; <br>&nbsp; const char * filename = argv[1];<br>&nbsp; reader-&gt;SetFileName(
 filename );<br>&nbsp; <br>&nbsp; reader-&gt;Update();<br>&nbsp; <br>&nbsp; ImageType::Pointer image = reader-&gt;GetOutput();<br>&nbsp; <br>&nbsp; return 0;<br>}<br><br>i have a few question :<br>&nbsp;1). how to write a CMakeLists.txt ???<br>&nbsp;2). how with the image file?? , is the image file 3D?? , where can i get the file, i mean the image 3D.<br>&nbsp;3). to view the image, is it need VTK??<br>&nbsp;4). what is the input an output from this system or program???<br><br>any one help me.. i need for my study... thank you very much..<br></div></div></div></div><br>

      </body></html>