The intro text to Perform Registration on Vector Images — v5.3.0 suggests that that code can be used with a
VectorImage. It uses
VectorImageToImageMetricTraitsv4, and the docs for that class say it works with
VectorImage. However, it takes
VNumberOfComponents as a template parameter, while
VectorImage can have a dynamic number of components.
Is there any way to do registration of vector images with a dynamic number of components, or must it be determined at compile-time?