[vtk-developers] imaging pipeline

David Gobbi dgobbi at irus.rri.ca
Mon Jun 17 16:20:36 EDT 2002


Kind of along the same lines of how to best simplify the imaging
pipelin, a huge number of filters simply map a each input voxel
through a function to get each output voxel.

All of these filters loop over the pixels in exactly the same manner,
resulting in a lot of duplicated code (less so now that iterators
have been introduced).

Why can't these filters simply have a method that will generate a
'pixel in -> pixel out' function  e.g.

    Func(void *inPtr, void *outPtr)

and have all of the looping handled by the superclass?

This could also lead to greater unification of the imaging
and graphics pipelines, since these filters could be made to
operate on any data that has scalar values, not necessarily
just vtkImageData.

 - David

--
  David Gobbi, MSc                       dgobbi at irus.rri.ca
  Advanced Imaging Research Group
  Robarts Research Institute, University of Western Ontario




More information about the vtk-developers mailing list