ITK
6.0.0
Insight Toolkit
|
#include <itkImageHelper.h>
Fast Index/Offset computation.
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.
Public Types | |
using | ImageType = ImageBase< VImageDimension > |
using | IndexType = typename ImageType::IndexType |
using | IndexValueType = typename ImageType::IndexValueType |
using | OffsetType = typename ImageType::OffsetType |
using | OffsetValueType = typename ImageType::OffsetValueType |
Static Public Member Functions | |
static void | ComputeIndex (const IndexType &bufferedRegionIndex, OffsetValueType offset, const OffsetValueType offsetTable[], IndexType &index) |
static void | ComputeOffset (const IndexType &bufferedRegionIndex, const IndexType &index, const OffsetValueType offsetTable[], OffsetValueType &offset) |
using itk::ImageHelper< VImageDimension, VLoop >::ImageType = ImageBase<VImageDimension> |
Definition at line 56 of file itkImageHelper.h.
using itk::ImageHelper< VImageDimension, VLoop >::IndexType = typename ImageType::IndexType |
Definition at line 57 of file itkImageHelper.h.
using itk::ImageHelper< VImageDimension, VLoop >::IndexValueType = typename ImageType::IndexValueType |
Definition at line 60 of file itkImageHelper.h.
using itk::ImageHelper< VImageDimension, VLoop >::OffsetType = typename ImageType::OffsetType |
Definition at line 58 of file itkImageHelper.h.
using itk::ImageHelper< VImageDimension, VLoop >::OffsetValueType = typename ImageType::OffsetValueType |
Definition at line 59 of file itkImageHelper.h.
|
inlinestatic |
ComputeIndex with recursive templates
Definition at line 64 of file itkImageHelper.h.
References itk::ImageHelper< VImageDimension, VLoop >::ComputeIndex().
Referenced by itk::ImageHelper< VImageDimension, VLoop >::ComputeIndex(), itk::ImageBase< VImageDimension >::ComputeIndex(), and itk::ImageBase< VImageDimension >::FastComputeIndex().
|
inlinestatic |
Definition at line 92 of file itkImageHelper.h.
References itk::ImageHelper< VImageDimension, VLoop >::ComputeOffset().
Referenced by itk::ImageHelper< VImageDimension, VLoop >::ComputeOffset(), itk::ImageBase< VImageDimension >::ComputeOffset(), itk::ImageRegionRange< TImage >::ComputeOffset(), and itk::ImageBase< VImageDimension >::FastComputeOffset().