<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-&gt;SetFileName(filename);</P>
<P>vtkMDHReader-&gt;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>&nbsp;</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>&nbsp;<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>&nbsp;<BR></FONT></DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">----- Original Message ----<BR>From: Luis Ibanez &lt;luis.ibanez@kitware.com&gt;<BR>To: tony hakki &lt;tony2007vtk@yahoo.com&gt;<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>&nbsp;&nbsp;&nbsp;&nbsp; PointSet to Image Registration<BR><BR><BR>You may want to look at<BR><BR>&nbsp;&nbsp;&nbsp;&nbsp;Insight/Testing/Code/Algorithms<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;itkPointSetToImageRegistrationTest_1.cxx<BR><BR><BR><BR>&nbsp;&nbsp; Regards,<BR><BR><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Luis<BR><BR><BR><BR>-----------------<BR>tony hakki
 wrote:<BR>&gt; Hi;<BR>&gt; I don't want to set the name of the file names . I have already written <BR>&gt; the datas.&nbsp;&nbsp;<BR>&gt;&nbsp;&nbsp;<BR>&gt; <BR>&gt; typedef itk::ImageFileReader&lt; FixedImageType&nbsp;&nbsp;&gt; FixedImageReaderType;<BR>&gt; <BR>&gt;&nbsp;&nbsp; typedef itk::ImageFileReader&lt; MovingImageType &gt; MovingImageReaderType;<BR>&gt; <BR>&gt;&nbsp;&nbsp;<BR>&gt; <BR>&gt;&nbsp;&nbsp; FixedImageReaderType::Pointer&nbsp;&nbsp;fixedImageReader&nbsp;&nbsp;= <BR>&gt; FixedImageReaderType::New();<BR>&gt; <BR>&gt;&nbsp;&nbsp; MovingImageReaderType::Pointer movingImageReader = <BR>&gt; MovingImageReaderType::New();<BR>&gt; <BR>&gt;&nbsp;&nbsp; fixedImageReader-&gt;SetFileName(&nbsp;&nbsp;argv[1] );<BR>&gt; <BR>&gt;&nbsp;&nbsp; movingImageReader-&gt;SetFileName( argv[2] );<BR>&gt; <BR>&gt;&nbsp;&nbsp;registration-&gt;SetFixedImage( fixedImageReader-&gt;GetOutput() );<BR>&gt; <BR>&gt;&nbsp;&nbsp;registration-&gt;SetMovingImage(
 movingImageReader-&gt;GetOutput() );<BR>&gt; <BR>&gt;&nbsp;&nbsp;fixedImageReader-&gt;Update();<BR>&gt; <BR>&gt;&nbsp;&nbsp;<BR>&gt; <BR>&gt;&nbsp;&nbsp;<BR>&gt; <BR>&gt; So is it possible to Set Fixed Images Like this instead of above;<BR>&gt; <BR>&gt;&nbsp;&nbsp;<BR>&gt; <BR>&gt; typedef itk::ImageFileReader&lt; FixedImageType&nbsp;&nbsp;&gt; FixedImageReaderType;<BR>&gt; <BR>&gt;&nbsp;&nbsp; typedef itk::ImageFileReader&lt; MovingImageType &gt; MovingImageReaderType;<BR>&gt; <BR>&gt; registration-&gt;SetFixedImage( mesh-&gt;GetOutput() );//ITK mesh data (I have <BR>&gt; already written before<BR>&gt; <BR>&gt; registration-&gt;SetMovingImage( vtkMDHReader-&gt;GetOutput() ); //Volume data<BR>&gt; <BR>&gt;&nbsp;&nbsp;<BR>&gt; <BR>&gt; *Thank you very much*<BR>&gt; <BR>&gt; *Tony*<BR>&gt; <BR>&gt; <BR>&gt; ------------------------------------------------------------------------<BR>&gt; Finding fabulous fares is fun.<BR>&gt; Let Yahoo! FareChase search your favorite travel
 sites <BR>&gt; &lt;<A href="http://farechase.yahoo.com/promo-generic-14795097;_ylc=X3oDMTFtNW45amVpBF9TAzk3NDA3NTg5BF9zAzI3MTk0ODEEcG9zAzEEc2VjA21haWx0YWdsaW5lBHNsawNxMS0wNw" target=_blank>http://farechase.yahoo.com/promo-generic-14795097;_ylc=X3oDMTFtNW45amVpBF9TAzk3NDA3NTg5BF9zAzI3MTk0ODEEcG9zAzEEc2VjA21haWx0YWdsaW5lBHNsawNxMS0wNw</A>-- <BR>&gt;&nbsp;&nbsp;&gt; to find flight and hotel bargains.<BR>&gt; <BR>&gt; <BR>&gt; ------------------------------------------------------------------------<BR>&gt; <BR>&gt; _______________________________________________<BR>&gt; Insight-users mailing list<BR>&gt; Insight-users@itk.org<BR>&gt; <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>