<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>haii.. 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> typedef unsigned char PixelType;<br> const unsigned int Dimension = 3;<br><br> typedef itk::Image< PixelType, Dimension > ImageType; <br><br> typedef itk::ImageFileReader< ImageType > ReaderType;<br> <br> ReaderType::Pointer reader = ReaderType::New(); <br> <br> const char * filename = argv[1];<br> reader->SetFileName(
filename );<br> <br> reader->Update();<br> <br> ImageType::Pointer image = reader->GetOutput();<br> <br> return 0;<br>}<br><br>i have a few question :<br> 1). how to write a CMakeLists.txt ???<br> 2). how with the image file?? , is the image file 3D?? , where can i get the file??<br> 3). to view the image, is it need VTK??<br> 4). what is the input an output from this system or program???<br><br><br></div></div><br>
</body></html>