[vtk-developers] imaging pipeline

Lorensen, William E (Research) lorensen at crd.ge.com
Mon Jun 17 16:27:37 EDT 2002


That's how we do it in Insight.

-----Original Message-----
From: David Gobbi [mailto:dgobbi at irus.rri.ca]
Sent: Monday, June 17, 2002 4:21 PM
To: vtk-developers at public.kitware.com
Subject: [vtk-developers] imaging pipeline


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

_______________________________________________
vtk-developers mailing list
vtk-developers at public.kitware.com
http://public.kitware.com/mailman/listinfo/vtk-developers



More information about the vtk-developers mailing list