I would like to obtain the spherical harmonic coefficients for a model.

However, SPHARM ask me to input the binary image or vtk model with para model.

I just have a model without para model.

How could I obtain spherical harmonic coefficients by using SPHARM?

You will need to first generate label voxel representation from your surface mesh using the “Model to Label Map” or “Mesh To Label Map” module (they operate slightly differently, and I have found that if one does not work well, then the other does, but neither works for all settings).

Martin

Dear Martin,

Thanks.

I used “Mesh To Label Map” and used the output volume as the input of GenParaMesh, I received errors.

I checked the output volume, nothing inside.

Regarding “Model to Label Map”, it ask me to specify another volume as the input.

I don’t know how to specify this volume.

Regards

Cheng

Martin Styner via 3D Slicer Community <slicer@discoursemail.com> 於 2020年7月18日 週六 上午2:26寫道：

For “Model to Label Map”, you need to first create (e.g. using Slicer) an input volume that fits with your surface.

You may actually be able to generate that input volume via the “Mesh To Label Map” module. Load the volume that was generated (and is empty, according to your email) and see whether the surface is inside the volume (using Slicer and select “show slice intersections” in the “models” module). Also, did you make sure to use appropriate settings for “Model to Label Map" (i.e. sufficiently fine spacing)?

Martin