Reimplementation of 3D slicer CPR using pure VTK

Hello everyone,

I’m trying to develop 3d Slicer Curve Planar Reformation in my own PACS Viewer, specifically OHIF:

I’m looking to use VTK Wasm to implement this. My question is:
Since Slicer’s CPR extension is made specifically for Slicer, is it possible to translate those Slicer’s MRML abstractions to pure vtk/vtk.js code?
How should I approach this?

1 Like

Hi @S-Linh,

VTK js already has a CPR implementation : ImageCPRMapper | VTK.js

There is also a pure VTK CPR implementation available through the vtkOpenGLSurfaceProbeVolumeMapper

For the C++ implementation, you can have a look at the tests for an example on how to use the mapper.

For VTK js, you also have an example available

Best,
Thibault

1 Like