[Insight-developers] extracting components of vector image
Luis Ibanez
luis . ibanez at kitware . com
Fri, 09 Aug 2002 10:14:31 -0400
Tessa,
In fact, Jim already wrote the full example
for the NthElementImageFilter.
Please take a look at the test in:
Insight/Testing/Code/BasicFilters/itkAdaptImageFilterTest2.cxx
It shows the approach that Jim just described, using the
AdaptImageFilter and the NthElementPixelAccessor.
Maybe we could move this to BasicFilters as a filter on
its own. The same goes for the itkAdaptImageFilterTest.cxx
which implements a RGB pixel accessor.
This also shows that we should probably move all the
Accessors out of the ImageAdaptors (where they are now)
and put them in independent .h files so they can be reused
for Adapting filters.
Luis