# Diffeomorphic demons registration algorithms work with vector image types?

**URL:** <https://discourse.itk.org/t/diffeomorphic-demons-registration-algorithms-work-with-vector-image-types/5920>\
**Category:** Algorithms\
**Created:** [May 2, 2023, 7:36pm UTC](https://discourse.itk.org/t/diffeomorphic-demons-registration-algorithms-work-with-vector-image-types/5920 "2023-05-02T19:36:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ericrhenry](https://discourse.itk.org/letter_avatar_proxy/v4/letter/e/7ab992/32.png) [@ericrhenry](https://discourse.itk.org/u/ericrhenry)\
**Post date:** [May 2, 2023, 7:36pm UTC](https://discourse.itk.org/t/diffeomorphic-demons-registration-algorithms-work-with-vector-image-types/5920/1 "2023-05-02T19:36:14Z")

</div>

I might be able to figure this out by plumbing the internals, or maybe trying to template a filter using a vector image, but I just wanted to see if anybody has the answer “at the ready”. In principle, registration by optimization based on intensity differences **should** work if the intensity differences are replaced by, for example, magnitude of difference vectors, but if the existing formulations aren’t set to handle such a difference calculation, things would break down. Any guidance would be greatly appreciated.
