<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">thank you;I have a one more problem ,Could you please have a look at my problem, it is really important for me. I have tried to implement PointSetToImage registration. when I run the my program the registration starts and continues 3 minutes then it gives break or continue error; Error is opened on a new window and says :<EM>Unhandle exception at 0x00783444 in nfinity.exe:0xC0000005:Access violation reading location 0x00000038</EM>(nfinity.exe is my exe's name)and a code page is opened in Visual studio which name is just <EM><STRONG>vector. </STRONG></EM>It's name is neither <EM><STRONG>vector.h</STRONG></EM> nor <EM><STRONG>vector.cxx</STRONG></EM> ,just<STRONG> <EM>vector</EM></STRONG> on that pages it shows the
following line.
<P><FONT size=3>What might the problem do you think? any suggestion will be really appreciated. Thank you very much</FONT></P>
<P>Tony</P><BR><BR>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">----- Original Message ----<BR>From: "neil@bwh.harvard.edu" <neil@bwh.harvard.edu><BR>To: tony hakki <tony2007vtk@yahoo.com><BR>Sent: Thursday, March 15, 2007 5:15:25 PM<BR>Subject: Re: [Insight-users] raw data resolution reduction<BR><BR>
<DIV>Hi tony, you might want to check out the Doxygen page for <BR>ShrinkImageFilter:<BR><BR><A href="http://www.itk.org/Doxygen/html/classitk_1_1ShrinkImageFilter.html" target=_blank>http://www.itk.org/Doxygen/html/classitk_1_1ShrinkImageFilter.html</A><BR><BR><BR>The formula for output image size (from the web page) is:<BR><BR>outputSize[j] = max( vcl_floor(inputSize[j]/shrinkFactor[j]), 1 );<BR><BR><BR>So if you want to shrink to 1/4 size, you set shrinkFactor[j] to 4 for <BR>all dimensions (j's). Setting it to 1 should simply output the same image <BR>that you input.<BR><BR>The Doxygen documentation is often not as helpful, but in this case seems <BR>to have what you need.<BR><BR><BR>Best regards,<BR>Neil<BR><BR><BR><BR>On Thu, 16 Mar 2007, tony hakki wrote:<BR><BR>> hi;<BR>first of all thank you for your fast reply. I have just started to use shrinkImageFilter. How can we decide how much resolution reduction to do. I found
an example ,but i didn't understand that how it is decided. For example I would like to do 1/4 resolution reduction. which command makes it?<BR><BR>thanks in advance<BR>Tony<BR><BR><BR>typedef itk::NormalizeImageFilter<MovingImageType,MovingImageType> <BR>NormalizeFilter;<BR>typedef itk::ChangeInformationImageFilter<MovingImageType> <BR>ChangeInformationFilter;<BR>typedef itk::ShrinkImageFilter<MovingImageType,MovingImageType> ShrinkFilter;<BR>NormalizeFilter::Pointer movingNormalize = NormalizeFilter::New();<BR>sf[0] = 1;<BR>sf[1] = 1;<BR>sf[2] = 1;<BR>ShrinkFilter::Pointer movingShrink = ShrinkFilter::New();<BR>movingShrink->SetInput(input);<BR>movingShrink->SetShrinkFactors(sf);<BR>ChangeInformationFilter::Pointer movingChange = <BR>ChangeInformationFilter::New();<BR>movingChange->SetInput(movingShrink->GetOutput());<BR>movingChange->CenterImageOn();<BR>movingChange->Update();<BR>input->Delete();<BR><BR><BR><BR>-----
Original Message ----<BR>From: Xabier Artaechevarria Artieda <xabiarta@unav.es><BR>To: insight-users@itk.org<BR>Sent: Thursday, March 15, 2007 2:57:16 PM<BR>Subject: Re: [Insight-users] raw data resolution reduction<BR><BR><BR>Hi Tony,<BR><BR>you can use the ShrinkImageFilter<BR><BR>Regards,<BR>Xabi<BR><BR>-- <BR>Xabier Artaechevarria<BR>Cancer Imaging Laboratory<BR>Centre for Applied Medical Research<BR><A href="http://www.cima.es/" target=_blank>www.cima.es</A><BR><BR><BR><BR>tony hakki <tony2007vtk@yahoo.com> ha escrito:<BR><BR>> I have been having difficulty reducing the dataset size ,how can I <BR>> reduce the resolution of my .raw 3D dataset. Which class is suitable<BR>> to manage it.<BR>> Tony<BR>><BR>><BR>><BR>> ____________________________________________________________________________________<BR>> Now that's room service! Choose from over 150,000 hotels<BR>> in 45,000 destinations on Yahoo! Travel
to find your fit.<BR>> <A href="http://farechase.yahoo.com/promo-generic-14795097" target=_blank>http://farechase.yahoo.com/promo-generic-14795097</A><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>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><BR><BR><BR><BR>____________________________________________________________________________________<BR>Finding fabulous fares is fun. <BR>Let Yahoo! FareChase search your favorite travel sites to find flight and hotel bargains.<BR><A href="http://farechase.yahoo.com/promo-generic-14795097" target=_blank>http://farechase.yahoo.com/promo-generic-14795097</A></DIV></DIV><BR></DIV></div><br>
<hr size=1>Be a PS3 game guru.<br>Get your game face on with <a href="http://us.rd.yahoo.com/evt=49936/*http://videogames.yahoo.com">the latest PS3 news and previews at Yahoo! Games.</a></body></html>