Skip to content

Add vtkImageProbeFilter for efficient probing into an vtkImageData

Chun-Ming Chen requested to merge chunmingchen/vtk:image-probe-filter into master

Unlike vtkProbeFilter, this filter loops through each source cell and checks whether the cell is within the input image grids. Fast indexing of image data saves time locating the memory location of the grid points.

Note: The filter is directly modified from vtkProbeFilter and thus supports resampling of both point data and cell data, with the same behavior of vtkProbeFilter. The validity mask (default vtkValidPointMask) will also be generated. The difference is that I assign zeros to all attribute values of invalid points so that it looks better in volume rendering.

Testing codes: https://gitlab.kitware.com/chunmingchen/ResamplingSerial

cc: @sujin.philip @utkarsh.ayachit

Merge request reports