[vtkusers] vtkImageReslice speed
Sean McBride
sean at rogue-research.com
Wed Jun 20 10:49:47 EDT 2012
On Wed, 20 Jun 2012 02:09:12 -0700, zlf said:
>I need to call vtkImageReslice in a high frequency (30 times per second).
>The problem I meet is the CPU is nearly 100% once I start to run
>vtkImageReslice.
>
>1. I need only translation. No rotation and scale. I thought it will be much
>faster if the translation value specified is integral multiple of spacing.
>e.g: (0,0,image->GetSpacing()[2]). But my test result says no.
>
>2. Lower resolution is acceptable as well.
>
>Anyway to accelerate it?
The best approach is to measure what exactly is slow. For that, you need to use a profiler:
http://en.wikipedia.org/wiki/Profiling_(computer_programming)
--
____________________________________________________________
Sean McBride, B. Eng sean at rogue-research.com
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
More information about the vtkusers
mailing list