[Insight-developers] VectorImageToImageAdaptor dysfunctional

Kris Zygmunt krismz at sci.utah.edu
Tue May 29 15:45:24 EDT 2012


I'm fine with that since NthElementImageAdaptor will provide that same  
functionality that VectorImageToImageAdaptor was attempting.  I'll  
need to modify the denoising filter to use NthElementImageAdaptor  
instead, but that should be no problem.  It should be easy enough to  
modify VectorImageTest to use NthElementImageAdaptor as well.
-Kris

On May 29, 2012, at 12:12 PM, Bradley Lowekamp wrote:

> 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/97305983/attachment-0001.htm>


More information about the Insight-developers mailing list