Skip to content

Conversation

yehan0223
Copy link

@yehan0223 yehan0223 commented Apr 9, 2025

Mesh Data Imprinter module allows imprinting data from a model, an image or a file to a target model for visualization and analysis.
image

Test data: surfacetoolbox_revamp_test.zip

  • Mesh-to-mesh: this can be used for transferring data from an individual model to another template model with different topology. Test: shape_00.vtk to shape_01.vtk after imprinting data to shape_00.vtk using tests below.
  • Image-to-mesh: this functionality interpolates image data to target model with choice of linear, nearest or cubic interpolation kernels. Test: test_image.nrrd to shape_00.vtk.
  • File-to-mesh: this is used for importing scalar point data fields from a .csv file. An example usage is to import statistical analysis results from postprocessed surface properties generated by Surface Feature Extractor. Test: test.csv to shape_00.vtk.

Note: need ctkPathLineEdit to be added in https://github.com/Slicer/Slicer/blob/main/Base/Python/slicer/util.py#L400 to support parameter node. @jcfr

Related issue: #68

cc: @bpaniagua @lassoan @pieper

jcfr added a commit to slicersalt/Slicer that referenced this pull request Apr 9, 2025
This commit updates SlicerSurfaceToolbox to backport the following modules
from the SlicerSALT fork:
- AverageMesh
- MeshDataImprinter
- SurfaceDistance
- SurfaceFeatureExtractor

It also backports improvements associated with the MeshAlignment module.

These changes correspond to those proposed in the following pull requests
which are still under review and not yet merged upstream:
- Slicer/SlicerSurfaceToolbox#71
- Slicer/SlicerSurfaceToolbox#72
- Slicer/SlicerSurfaceToolbox#73
- Slicer/SlicerSurfaceToolbox#74
- Slicer/SlicerSurfaceToolbox#75

List of changes:

```
$ git shortlog 26715cf..389b220 --no-merges
Ye Han (5):
      [Backport PR-71] ENH:Add MeshAlignment module
      [Backport PR-72] ENH: Add MeshDataImprinter module
      [Backport PR-73] ENH: Add SurfaceFeatureExtractor module
      [Backport PR-74] ENH: Add SurfaceDistance Module
      [Backport PR-75] ENH: Add AverageMesh module
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant