<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 style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><br><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">thak you very much xabier, i have one question again : <br>at question 2 :<br>> 2). how with the image file?? , is the image file 3D?? , where can <br>> i get the file, i mean the image 3D.<br>Your program just reads the image (filename is missing!), but you are <br>not doing anything with it.<br><br>---> ya, it just read the image, if i add VTK code i dan virw it, is it right?? <br> and, i don't have the example of 3D image, where can i get the 3D image?? thanksss..<br><br>knoppix corn <<a ymailto="mailto:knoppixc@yahoo.com"
href="mailto:knoppixc@yahoo.com">knoppixc@yahoo.com</a>> ha escrito:<br><br>> haii every one... help me.. i have a question about reading an image <br>> 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><br>Have a look at page 17 of the Software Guide.<br><br>> 2). how with the image file?? , is the image file 3D?? , where can <br>> i get the file, i mean the image 3D.<br>Your program just reads the image (filename is missing!), but you are <br>not doing anything with it.<br><br>> 3). to view the image, is it need VTK??<br>You need an image viewer, for example ImageJ.<br><br>> 4). what is the input an output from this system or program???<br>You mean your program? I think you should have a look at the Software <br>Guide, starting with the Hello World example (pg. 17) and then maybe <br>you can go to section 7.1 to learn how to read and write
images.<br><br>T<br>><br>> any one help me.. i need for my study... thank you very much..<br>><br>><br>><br>><br><br><br><br>----------------------------------------------------------------<br>Este mensaje ha sido enviado desde <a href="https://webmail.unav.es" target="_blank">https://webmail.unav.es</a><br><br>_______________________________________________<br>Insight-users mailing list<br><a ymailto="mailto:Insight-users@itk.org" href="mailto:Insight-users@itk.org">Insight-users@itk.org</a><br><a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br></div></div></div><br>
</body></html>