<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-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">hi Luis;</DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">I really want to thank to your kind replies. You answered mine three important questions. I would like to tell a little bit more. I converted my stl data into ITK mesh with <FONT color=#ff0000>vtkPolyDataToITKMesh.cxx ( Its output is "mesh", Right?) .</FONT><FONT color=#000000>on the other hand I read my volumetric data with vtk ,<FONT size=2>
<P>vtkMetaImageReader* vtkMDHReader = vtkMetaImageReader::New(); </P>
<P>vtkMDHReader->SetFileName(filename);</P>
<P>vtkMDHReader->Update(); <FONT color=#c00000><FONT size=3>So its output is <FONT color=#c00000>vtkMDHReader, I think it is necessary to convert it ITK form,if yes please tell me how I can do that?</FONT></FONT></FONT></P>
<P><FONT color=#c00000 size=3></FONT> </P>
<P><FONT color=#ff0000 size=3>Finally ,you are right ,what I want to is to <FONT color=#ff0000>PointSet to Image Registration. and how can I Set the inputs without file names,because I have already read them,I just want to use output of reader,like </FONT><FONT color=#000000 size=2>vtkMDHReader.</FONT></FONT></P>
<P> <FONT size=3>I am really looking forward to your answer .</FONT></P>
<P><FONT size=3>Thank your very much.</FONT></P>
<P><FONT size=3>Tony</FONT></P></FONT><BR> <BR></FONT></DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">----- Original Message ----<BR>From: Luis Ibanez <luis.ibanez@kitware.com><BR>To: tony hakki <tony2007vtk@yahoo.com><BR>Cc: insight-users@itk.org<BR>Sent: Wednesday, January 24, 2007 4:05:16 PM<BR>Subject: Re: [Insight-users] SetFixedImage<BR><BR>
<DIV>Hi Tony<BR><BR><BR>Is the variable "mesh" a Mesh reader ?<BR><BR>Is the variable vtkMDHReader a reader that will produce an itk::Image ?<BR><BR>Is your registration class a ImageToImageRegistration ?<BR><BR><BR>If you are doing ImageToImage registration, you<BR>*should not* pass a Mesh as the FixedImage, because<BR>a Mesh is not an Image.<BR><BR>If your image reader is a VTK image reader, that<BR>returns a vtkImageData, then you must first convert<BR>this image to an itkImage before passing it as<BR>argument to the SetMovingImage method.<BR><BR>It seems that what you want to do is<BR><BR><BR> PointSet to Image Registration<BR><BR><BR>You may want to look at<BR><BR> Insight/Testing/Code/Algorithms<BR> itkPointSetToImageRegistrationTest_1.cxx<BR><BR><BR><BR> Regards,<BR><BR><BR> Luis<BR><BR><BR><BR>-----------------<BR>tony hakki
wrote:<BR>> Hi;<BR>> I don't want to set the name of the file names . I have already written <BR>> the datas. <BR>> <BR>> <BR>> typedef itk::ImageFileReader< FixedImageType > FixedImageReaderType;<BR>> <BR>> typedef itk::ImageFileReader< MovingImageType > MovingImageReaderType;<BR>> <BR>> <BR>> <BR>> FixedImageReaderType::Pointer fixedImageReader = <BR>> FixedImageReaderType::New();<BR>> <BR>> MovingImageReaderType::Pointer movingImageReader = <BR>> MovingImageReaderType::New();<BR>> <BR>> fixedImageReader->SetFileName( argv[1] );<BR>> <BR>> movingImageReader->SetFileName( argv[2] );<BR>> <BR>> registration->SetFixedImage( fixedImageReader->GetOutput() );<BR>> <BR>> registration->SetMovingImage(
movingImageReader->GetOutput() );<BR>> <BR>> fixedImageReader->Update();<BR>> <BR>> <BR>> <BR>> <BR>> <BR>> So is it possible to Set Fixed Images Like this instead of above;<BR>> <BR>> <BR>> <BR>> typedef itk::ImageFileReader< FixedImageType > FixedImageReaderType;<BR>> <BR>> typedef itk::ImageFileReader< MovingImageType > MovingImageReaderType;<BR>> <BR>> registration->SetFixedImage( mesh->GetOutput() );//ITK mesh data (I have <BR>> already written before<BR>> <BR>> registration->SetMovingImage( vtkMDHReader->GetOutput() ); //Volume data<BR>> <BR>> <BR>> <BR>> *Thank you very much*<BR>> <BR>> *Tony*<BR>> <BR>> <BR>> ------------------------------------------------------------------------<BR>> Finding fabulous fares is fun.<BR>> Let Yahoo! FareChase search your favorite travel
sites <BR>> <<A href="http://farechase.yahoo.com/promo-generic-14795097;_ylc=X3oDMTFtNW45amVpBF9TAzk3NDA3NTg5BF9zAzI3MTk0ODEEcG9zAzEEc2VjA21haWx0YWdsaW5lBHNsawNxMS0wNw" target=_blank>http://farechase.yahoo.com/promo-generic-14795097;_ylc=X3oDMTFtNW45amVpBF9TAzk3NDA3NTg5BF9zAzI3MTk0ODEEcG9zAzEEc2VjA21haWx0YWdsaW5lBHNsawNxMS0wNw</A>-- <BR>> > to find flight and hotel bargains.<BR>> <BR>> <BR>> ------------------------------------------------------------------------<BR>> <BR>> _______________________________________________<BR>> Insight-users mailing list<BR>> Insight-users@itk.org<BR>> <A href="http://www.itk.org/mailman/listinfo/insight-users" target=_blank>http://www.itk.org/mailman/listinfo/insight-users</A></DIV></DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif"><BR></DIV></div><br>
<hr size=1>It's here! Your new message!<br>Get
<a href="http://us.rd.yahoo.com/evt=49938/*http://tools.search.yahoo.com/toolbar/features/mail/"> new email alerts</a> with the free <a href="
http://us.rd.yahoo.com/evt=49938/*http://tools.search.yahoo.com/toolbar/features/mail/">Yahoo! Toolbar.</a></body></html>