[vtkusers] vtkImageReslice speed

zlf jxdw_zlf at yahoo.com.cn
Wed Jun 20 08:19:29 EDT 2012


Testing was done in release mode. Thanks.


John Drescher-2 wrote
> 
> On Wed, Jun 20, 2012 at 5:09 AM, zlf <jxdw_zlf at .com> wrote:
>> Hi all,
>> 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?
>>
> 
> Are you testing in Release mode? On windows Debug mode can be 100
> times slower than release mode for some filters.
> 
> John
> _______________________________________________
> Powered by www.kitware.com
> 
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
> 
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
> 
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
> 

John Drescher-2 wrote
> 
> On Wed, Jun 20, 2012 at 5:09 AM, zlf <jxdw_zlf at .com> wrote:
>> Hi all,
>> 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?
>>
> 
> Are you testing in Release mode? On windows Debug mode can be 100
> times slower than release mode for some filters.
> 
> John
> _______________________________________________
> Powered by www.kitware.com
> 
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
> 
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
> 
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
> 

John Drescher-2 wrote
> 
> On Wed, Jun 20, 2012 at 5:09 AM, zlf <jxdw_zlf at .com> wrote:
>> Hi all,
>> 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?
>>
> 
> Are you testing in Release mode? On windows Debug mode can be 100
> times slower than release mode for some filters.
> 
> John
> _______________________________________________
> Powered by www.kitware.com
> 
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
> 
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
> 
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
> 


--
View this message in context: http://vtk.1045678.n5.nabble.com/vtkImageReslice-speed-tp5714027p5714034.html
Sent from the VTK - Users mailing list archive at Nabble.com.



More information about the vtkusers mailing list