[Insight-developers] vector metrics

brian avants stnava at gmail.com
Fri Apr 27 13:13:08 EDT 2012


hi everyone

if you want a high-level view of the vector metrics that jeff put
together, then you can compare this example ( for a vector / rgb type
image ):

http://review.source.kitware.com/#/c/4807/1/Modules/Registration/Metricsv4/test/itkDemonsImageToImageMetricv4OnVectorTest.cxx

to this one (scalar already in ITK):

Modules/Registration/Metricsv4/test/itkMeanSquaresImageToImageMetricv4Test.cxx

jeff's contribution basically lets one use an almost identical
registration pipeline for scalar or vector images ...  this is
achieved through some new traits.

so the same framework will be usable on images typedefd as


typedef itk::Vector<double, 2>                             PixelType;
typedef itk::Image< PixelType, imageDimensionality >      ImageType;

or  as

typedef double                             PixelType;
typedef itk::Image< PixelType, imageDimensionality >      ImageType;

...

brian


More information about the Insight-developers mailing list