[Insight-users] raw data resolution reduction

tony hakki tony2007vtk at yahoo.com
Thu Mar 15 11:27:14 EST 2007


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 :Unhandle exception at 0x00783444 in nfinity.exe:0xC0000005:Access violation reading location 0x00000038(nfinity.exe is my exe's name)and a code page is opened  in Visual studio which name is just vector. It's name is neither vector.h nor vector.cxx ,just vector  on that pages it shows the following line.
What might the problem do you think? any suggestion will be really appreciated. Thank you very much
Tony



----- Original Message ----
From: "neil at bwh.harvard.edu" <neil at bwh.harvard.edu>
To: tony hakki <tony2007vtk at yahoo.com>
Sent: Thursday, March 15, 2007 5:15:25 PM
Subject: Re: [Insight-users] raw data resolution reduction


Hi tony, you might want to check out the Doxygen page for 
ShrinkImageFilter:

http://www.itk.org/Doxygen/html/classitk_1_1ShrinkImageFilter.html


The formula for output image size (from the web page) is:

outputSize[j] = max( vcl_floor(inputSize[j]/shrinkFactor[j]), 1 );


So if  you want to shrink to 1/4 size, you set shrinkFactor[j] to 4 for 
all dimensions (j's).  Setting it to 1 should simply output the same image 
that you input.

The Doxygen documentation is often not as helpful, but in this case seems 
to have what you need.


Best regards,
Neil



On Thu, 16 Mar 2007, tony hakki wrote:

> hi;
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?

thanks in advance
Tony


typedef itk::NormalizeImageFilter<MovingImageType,MovingImageType> 
NormalizeFilter;
typedef itk::ChangeInformationImageFilter<MovingImageType> 
ChangeInformationFilter;
typedef itk::ShrinkImageFilter<MovingImageType,MovingImageType> ShrinkFilter;
NormalizeFilter::Pointer movingNormalize = NormalizeFilter::New();
sf[0] = 1;
sf[1] = 1;
sf[2] = 1;
ShrinkFilter::Pointer movingShrink = ShrinkFilter::New();
movingShrink->SetInput(input);
movingShrink->SetShrinkFactors(sf);
ChangeInformationFilter::Pointer movingChange = 
ChangeInformationFilter::New();
movingChange->SetInput(movingShrink->GetOutput());
movingChange->CenterImageOn();
movingChange->Update();
input->Delete();



----- Original Message ----
From: Xabier Artaechevarria Artieda <xabiarta at unav.es>
To: insight-users at itk.org
Sent: Thursday, March 15, 2007 2:57:16 PM
Subject: Re: [Insight-users] raw data resolution reduction


Hi Tony,

you can use the ShrinkImageFilter

Regards,
Xabi

-- 
Xabier Artaechevarria
Cancer Imaging Laboratory
Centre for Applied Medical Research
www.cima.es



tony hakki <tony2007vtk at yahoo.com> ha escrito:

> I have been having difficulty reducing the dataset size ,how can I 
> reduce the resolution of my .raw 3D dataset. Which class is suitable
>  to manage it.
> Tony
>
>
>
> ____________________________________________________________________________________
> Now that's room service!  Choose from over 150,000 hotels
> in 45,000 destinations on Yahoo! Travel to find your fit.
> http://farechase.yahoo.com/promo-generic-14795097



----------------------------------------------------------------
Este mensaje ha sido enviado desde https://webmail.unav.es

_______________________________________________
Insight-users mailing list
Insight-users at itk.org
http://www.itk.org/mailman/listinfo/insight-users



____________________________________________________________________________________
Finding fabulous fares is fun. 
Let Yahoo! FareChase search your favorite travel sites to find flight and hotel bargains.
http://farechase.yahoo.com/promo-generic-14795097


 
____________________________________________________________________________________
Finding fabulous fares is fun.  
Let Yahoo! FareChase search your favorite travel sites to find flight and hotel bargains.
http://farechase.yahoo.com/promo-generic-14795097
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/insight-users/attachments/20070315/f3c71d19/attachment.htm


More information about the Insight-users mailing list