#include <itkImageHelper.h>
These helper methods use recursive templates to unroll the loops of simple calculations. The resulting speed improvement varies from compiler to compiler. Some gcc compilers with debug turned on exhibit slight speed increases, but most compilers see improvement. The ComputeOffset performance improvement is impressive. For example, the Windows VS7.0 compiler shows almost a factor of 2 speed improvement with the recursive templates. Usually recursive templates use partial specialization to terminate loops. Here we use a technique used by Brad King in the itk Concept Checking code.
Definition at line 53 of file itkImageHelper.h.
|
Definition at line 56 of file itkImageHelper.h. |
|
|
Definition at line 59 of file itkImageHelper.h. |
|
Definition at line 58 of file itkImageHelper.h. |
|
|
Definition at line 61 of file itkImageHelper.h. Referenced by itk::ImageHelper< NImageDimension, NLoop >::ComputeIndexInner(), and itk::ImageHelper< NImageDimension, NLoop >::ComputeOffsetInner(). |
|
Definition at line 62 of file itkImageHelper.h. Referenced by itk::ImageHelper< NImageDimension, NLoop >::ComputeIndexInner(), and itk::ImageHelper< NImageDimension, NLoop >::ComputeOffsetInner(). |
|
ComputeIndex with recursive templates Definition at line 65 of file itkImageHelper.h. References itk::ImageHelper< NImageDimension, NLoop >::IndexType, and itk::ImageHelper< NImageDimension, NLoop >::OffsetValueType. |
|
Definition at line 96 of file itkImageHelper.h. References itk::ImageHelper< NImageDimension, NLoop >::IndexType, itk::ImageHelper< NImageDimension, NLoop >::OffsetValueType, and itk::ImageHelper< NImageDimension, NLoop >::UniqueTypeBoolTrue. |
|
Definition at line 78 of file itkImageHelper.h. References itk::ImageHelper< NImageDimension, NLoop >::IndexType, itk::ImageHelper< NImageDimension, NLoop >::OffsetValueType, and itk::ImageHelper< NImageDimension, NLoop >::UniqueTypeBoolFalse. |
|
Definition at line 108 of file itkImageHelper.h. References itk::ImageHelper< NImageDimension, NLoop >::IndexType, and itk::ImageHelper< NImageDimension, NLoop >::OffsetValueType. |
|
Definition at line 138 of file itkImageHelper.h. References itk::ImageHelper< NImageDimension, NLoop >::IndexType, itk::ImageHelper< NImageDimension, NLoop >::OffsetValueType, and itk::ImageHelper< NImageDimension, NLoop >::UniqueTypeBoolTrue. |
|
Definition at line 121 of file itkImageHelper.h. References itk::ImageHelper< NImageDimension, NLoop >::IndexType, itk::ImageHelper< NImageDimension, NLoop >::OffsetValueType, and itk::ImageHelper< NImageDimension, NLoop >::UniqueTypeBoolFalse. |