[Insight-developers] VectorImageToImageAdaptor dysfunctional
Bradley Lowekamp
blowekamp at mail.nih.gov
Tue May 29 14:12:10 EDT 2012
Hello,
I would like to declare the VectorImageToImageAdaptor dysfunctional and deprecate it to clarify the robust behavior and more favored usage of the NthElementImageAdaptor.
Currently, the VectorImageToImageAdaptor does not work with Iterators, and therefore does not work with just about every ImageFilter. This adaptor is only for VectorImages, and it is currently little used and does not have a practical example[1].
While there is currently the NthElementImageAdaptor which currently working only with itk::Images of pixel types like RGBPixel or Vector etc.
I propose deprecating the VectorImageToimageAdaptor, and it's related Accessor so that the NthElementImageAdaptor can uniformly be used for ITK's image class. This greatly simplifies is usage and make writing filters which use it easier.
I have already implemented the specialization of the NthElementPixelAccessor, and just need to improve the documentation[2]. I however am reluctant to invest in deprecating the VectorImageToImageAdaptor until it is agreed that is the best way to proceed.
Thanks,
Brad
[1] http://www.itk.org/Wiki/ITK/Examples/VectorImages/VectorImageToImageAdaptor
[2] http://review.source.kitware.com/#/c/5842/
========================================================
Bradley Lowekamp
Medical Science and Computing for
Office of High Performance Computing and Communications
National Library of Medicine
blowekamp at mail.nih.gov
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-developers/attachments/20120529/fa162562/attachment.htm>
More information about the Insight-developers
mailing list