# Problems with the SPHARM-PDM on Slicer-4.8.0-linux-amd64 (Command-Line Tool, the step GenParaMesh)

**URL:** <https://discourse.slicer.org/t/problems-with-the-spharm-pdm-on-slicer-4-8-0-linux-amd64-command-line-tool-the-step-genparamesh/15877>\
**Category:** SlicerSALT\
**Created:** [February 7, 2021, 4:31am UTC](https://discourse.slicer.org/t/problems-with-the-spharm-pdm-on-slicer-4-8-0-linux-amd64-command-line-tool-the-step-genparamesh/15877 "2021-02-07T04:31:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Daisy\_Xiong](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/daisy_xiong/32/9035_2.png) [@Daisy\_Xiong](https://discourse.slicer.org/u/Daisy_Xiong)\
**Post date:** [February 7, 2021, 4:31am UTC](https://discourse.slicer.org/t/problems-with-the-spharm-pdm-on-slicer-4-8-0-linux-amd64-command-line-tool-the-step-genparamesh/15877/1 "2021-02-07T04:31:43Z")

</div>

Hello, everyone,

I tried to utilize the software Slicer(Slicer-4.8.0-linux-amd64) and the method SPHARM-PDM to get the some SPHARM Mesh ( such as the output files \*para.vtk and \*SPHARM\_Ellalign.vtk).

If I use the main window, and select the module through click ’ Modules – Shape Analysis Module’, and then select the input and output directories, I can run the SPDM analysis successfully.  
Finally, I can obtain the 3 output folders (Step1\_SegPostProcess , Step2\_GenMeshPara, Step3\_ParaToSPHARMMesh).

But if I try to use the SPHARM-PDM Command-Line Tool on Linux: ./Slicer --no-main-window --python-script share/Slicer-4.8/CommandLineTool/SPHARM-PDM.py share/Slicer-4.8/CommandLineTool/SPHARM-PDM-parameters.ini  
) for the same dataset as before, I will get some errors in the step GenParaMesh like the following content:

_GenParaMesh standard output:_

_itk::ExceptionObject (0x7ffddee49b80)_  
\*Location: “Unknown” \*  
_File: /home/kitware/Dashboards/Nightly/S-480-E-b/SPHARM-PDM/Libraries/Shape/Algorithms/BinaryMask3DEqualAreaParametricMeshSource.txx_  
_Line: 97_  
_Description: BinaryMask3DEqualAreaParametricMeshSource : Image empty_

_GenParaMesh completed with errors_

I tried to fix this error but failed. Could you kindly guide me to solve this problem? Thank you very much！

I would appreciate any help, thanks in advance.

Daisy
