-
- Downloads
ENH: Update extract structured data filters
This commit updates the extract/sub-sample structured data filters to reflect the changes of refactoring the piece and extent in VTK. Namely, vtkExtractGrid, vtkExtractVOI and vtkExtractRectilinearGrid, which operate on vtkStructuredGrid, vtkImageData, and vtkRectilinearGrid respectively, are updated. These datatypes, albeit different, they share common functionality. To avoid replicating essentially the same code in all of these three classes, a helper class, called vtkExtractStructuredGridHelper, is introduced. This new class is part of VTK's vtkCommonDataModel module since it needs to be used by both the vtkImagingCore and vtkFiltersExtraction module. One minor caveat, is that Imaging algorithms/tests require that the origin of the image to be retained and that the output extent is w.r.t. to the input extent, when there is no sub-sampling. For that reason, when there is no sub-sampling vtkExtractVOI, will yield an output extent that is with respect to the origin. All other filters re-number the output extent starting from zero. The output extent is always re-numbered when the data is sub-sampled. Change-Id: I26fe5a115032333db9814987a6c9dc949e51ef52
Showing
- Common/DataModel/CMakeLists.txt 1 addition, 0 deletionsCommon/DataModel/CMakeLists.txt
- Common/DataModel/vtkExtractStructuredGridHelper.cxx 338 additions, 0 deletionsCommon/DataModel/vtkExtractStructuredGridHelper.cxx
- Common/DataModel/vtkExtractStructuredGridHelper.h 135 additions, 0 deletionsCommon/DataModel/vtkExtractStructuredGridHelper.h
- Filters/Extraction/CMakeLists.txt 1 addition, 1 deletionFilters/Extraction/CMakeLists.txt
- Filters/Extraction/Testing/Cxx/CMakeLists.txt 1 addition, 0 deletionsFilters/Extraction/Testing/Cxx/CMakeLists.txt
- Filters/Extraction/Testing/Cxx/TestExtractRectilinearGrid.cxx 179 additions, 0 deletions...ers/Extraction/Testing/Cxx/TestExtractRectilinearGrid.cxx
- Filters/Extraction/module.cmake 1 addition, 0 deletionsFilters/Extraction/module.cmake
- Filters/Extraction/vtkExtractGrid.cxx 72 additions, 333 deletionsFilters/Extraction/vtkExtractGrid.cxx
- Filters/Extraction/vtkExtractGrid.h 6 additions, 1 deletionFilters/Extraction/vtkExtractGrid.h
- Filters/Extraction/vtkExtractRectilinearGrid.cxx 110 additions, 343 deletionsFilters/Extraction/vtkExtractRectilinearGrid.cxx
- Filters/Extraction/vtkExtractRectilinearGrid.h 5 additions, 1 deletionFilters/Extraction/vtkExtractRectilinearGrid.h
- Imaging/Core/module.cmake 3 additions, 2 deletionsImaging/Core/module.cmake
- Imaging/Core/vtkExtractVOI.cxx 156 additions, 309 deletionsImaging/Core/vtkExtractVOI.cxx
- Imaging/Core/vtkExtractVOI.h 18 additions, 1 deletionImaging/Core/vtkExtractVOI.h
Loading
Please register or sign in to comment