<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>Hi; </DIV>
<DIV>I don't want to set the name of the file names . I have already written the datas. </DIV>
<DIV> </DIV>
<DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN lang=EN-GB style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-ansi-language: EN-GB">typedef itk::ImageFileReader< FixedImageType<SPAN style="mso-spacerun: yes"> </SPAN>> FixedImageReaderType;<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN lang=EN-GB style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-ansi-language: EN-GB"><SPAN style="mso-spacerun: yes"> </SPAN>typedef itk::ImageFileReader< MovingImageType > MovingImageReaderType;<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN lang=EN-GB style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-ansi-language: EN-GB"><o:p> </o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN lang=EN-GB style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-ansi-language: EN-GB"><SPAN style="mso-spacerun: yes"> </SPAN>FixedImageReaderType::Pointer<SPAN style="mso-spacerun: yes"> </SPAN>fixedImageReader<SPAN style="mso-spacerun: yes"> </SPAN>= FixedImageReaderType::New();<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN lang=EN-GB style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-ansi-language: EN-GB"><SPAN style="mso-spacerun: yes"> </SPAN>MovingImageReaderType::Pointer movingImageReader = MovingImageReaderType::New();<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN lang=EN-GB style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-ansi-language: EN-GB"><o:p> </o:p></SPAN><SPAN lang=EN-GB style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-ansi-language: EN-GB"><SPAN style="mso-spacerun: yes"> </SPAN>fixedImageReader->SetFileName(<SPAN style="mso-spacerun: yes"> </SPAN><FONT color=#ff0000>argv[1]</FONT> );<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN lang=EN-GB style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-ansi-language: EN-GB"><SPAN style="mso-spacerun: yes"> </SPAN>movingImageReader->SetFileName( <FONT color=#ff0000>argv[2]</FONT> );<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN lang=EN-GB style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-ansi-language: EN-GB"><o:p> </o:p></SPAN><SPAN lang=EN-GB style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-ansi-language: EN-GB"><SPAN style="mso-spacerun: yes"><FONT color=#008000 size=2><FONT color=#000000>registration->SetFixedImage( fixedImageReader->GetOutput() );</FONT></P>
<P><FONT color=#000000> registration->SetMovingImage( movingImageReader->GetOutput() );</FONT></P></FONT></SPAN></SPAN>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN lang=EN-GB style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-ansi-language: EN-GB"><SPAN style="mso-spacerun: yes"> </SPAN>fixedImageReader->Update();<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN lang=EN-GB style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-ansi-language: EN-GB"><o:p> </o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN lang=EN-GB style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-ansi-language: EN-GB"><o:p></o:p></SPAN> </P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN lang=EN-GB style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-ansi-language: EN-GB"><o:p><FONT color=#ff0000 size=4>So is it possible to Set Fixed Images Like this instead of above</FONT>;</o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN lang=EN-GB style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-ansi-language: EN-GB"><o:p></o:p></SPAN> </P><SPAN lang=EN-GB style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-ansi-language: EN-GB"><o:p><FONT size=2>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN lang=EN-GB style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-ansi-language: EN-GB">typedef itk::ImageFileReader< FixedImageType<SPAN style="mso-spacerun: yes"> </SPAN>> FixedImageReaderType;<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN lang=EN-GB style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-ansi-language: EN-GB"><SPAN style="mso-spacerun: yes"> </SPAN>typedef itk::ImageFileReader< MovingImageType > MovingImageReaderType;<o:p></o:p></SPAN></P>
<P>registration->SetFixedImage( <FONT color=#ff0000>mesh</FONT>->GetOutput() );</FONT><FONT color=#008000 size=2>//ITK mesh data (I have already written before</P></FONT><FONT size=2>
<P>registration->SetMovingImage( <FONT color=#ff0000>vtkMDHReader</FONT>->GetOutput() ); </FONT><FONT color=#008000 size=2>//Volume data</FONT></P>
<P><FONT color=#008000 size=2></FONT> </P>
<P><FONT color=#008000 size=2><STRONG>Thank you very much</STRONG></FONT></P>
<P><FONT color=#008000 size=2><STRONG>Tony</STRONG></P></FONT></o:p></SPAN></DIV></div><br>
<hr size=1>Finding fabulous fares is fun.<br><a href="http://farechase.yahoo.com/promo-generic-14795097;_ylc=X3oDMTFtNW45amVpBF9TAzk3NDA3NTg5BF9zAzI3MTk0ODEEcG9zAzEEc2VjA21haWx0YWdsaW5lBHNsawNxMS0wNw--
">Let Yahoo! FareChase search your favorite travel sites</a> to find flight and hotel bargains.</body></html>