How to build plastimatch binary as part of SlicerRT extension?

I understand Plastimatch library is a dependency of SlicerRT, and I would like to build the command-line plastimatch binary as part of the superbuild. Is this possible? I can’t figure out how to enable it via cmake… I thought this was possible in the earlier versions of this extension.

Several command-line tools of Plastimatch are build as part of SlicerRT (PlmBspline, PlmDrr, PlmLandwarp, PlmMismatchError, PlmProtonDoseEngine, PlmRegister, PlmSynth, PlmThreshbox, PlmVectorFieldAnalysis). Is there a specific binary that you would like to use and not included already?

I was looking for plastimatch convert, as documented here: plastimatch — Plastimatch 1.10.0 documentation.

Plastimatch is statically built into SlicerRT, so executables and DLLs are not generated, only as part of the SlicerRT DLLs. I think you’ll need to build Plastimatch separately to get those.

1 Like

Thanks for the quick reply!

I was looking for a command line tool to convert RTSTRUCT into raster volume, and Plastimatch convert was my first choice. Unfortunately, it is no longer installable with Linux package manager, there is no linux or mac binary provided, and I could not find the “official” docker image. I next tried to compile it myself from source, but ran into C++17 standard errors. Since I am able to compile SlicerRT, and I know it is used there, that was my next choice.

I ended up using Platipy and specifically this function: platipy/platipy/dicom/io/rtstruct_to_nifti.py at master · pyplati/platipy · GitHub. I don’t know how robust it is, but it seems to work for the contours I needed to process.

1 Like