hi everyone jeff put together a system that tries to maximize code reuse across image metrics that support both scalar and vector pixels. http://review.source.kitware.com/#/c/4807/ lots of traits magic & such. would be helpful to get some feedback on this. brian