I am generating the spharm-pdm output of amygdala shapes for my shape analysis. Previously, I did it for hippocampus on around 400 subjects. Thank you @styner for your support throughout.
For generating the spharm-pdm output files, in the “Advanced Parameters to SPHARM Mesh”, I am using “template_pp_surf_SPHARM.vtk” as my “Reg Template” file and “template_pp_surf_SPHARM.coef” as my “Flip Template” file. I have selected “No Flip” in the “Flip Options”. Let me know if there is a correction in this step, please.
Now, when I look at the output files from SPHARM-PDM, I can see the mismatch in the _paraphi color coded visualization (See the figure attached). Only subject 2, 4 & 5 match with the template’s parametrization. I think this is due to the issue with object symmetry. Correct me if I am wrong. Now, in order to correct for this parametrization step, what should I do? After the parametrization correction on the “Subject_pp_surf_SPHARM.vtk” file, I am looking for the “Subject_pp_surf_SPHARM_procalign.vtk” file as the final output with the correct parametrization and procrustes alignment.
Sorry I was out while you posted it and did not see it until now.
Indeed this is an issue of rotational symmetry and the correspondence generated by SPHARM-PDM (via the axes of it’s first order ellipsoid representation) is not sufficient to deal with this (and the amygdala is probably the most obvious brain structure to generate head aches in that regard as it is quite oblong or even spherical in shape).
The flip options only help when simple flips of the ellipsoid axes identification help with improving the correspondence, i.e. if right vs left, or anterior vs posterior, or inferior vs superior, are a problem, but not if you want to rotate the correspondence e.g. by 90 degrees of X degrees (as needs to be done for your amygdalae). So, for the issue present here, flipping won’t be enough.
SlicerSALT has a way to improve the correspondence using the spharm-pdm correspondence improvement: this needs fiducials (surface landmarks) on every surface (minimally three) to optimally rotate the spherical parametrization. This can be run as a separate module or as part of the main SPHARM-PDM generator module.
Thank you for the explaining the matter in details.
I am currently using the CLI modules which can be found within the contents of SLICERSALT software. Using “-NoParaAlign” option in Step 3 kind of takes care of the problem (given that my subjects are somewhat pre aligned from whole brain registration). And afterwards, the final procalign output files come out just fine from the SPHARM-PDM module (which I am using for my case). However, looking closely at the SPHARM.vtk files in shape population viewer with paraPhi and paraTheta vizualisation, I see that the correspondence are not that great for many of the subjects. I am wondering if using “spharm-pdm correspondence improvement” would help. Can you please let me know how to generate the fiducials for my 800 subjects? Also what would be the common unit sphere which needs to be given as an input?
There is a tutorial. The Correspondence Improvement module uses the RigidAlignment tool from GROUPS. Look at this tutorial - Step 1:
The main thing is that you need landmarks/fiducials (in fcsv format) on each surfaces, which are then realigned in a groupwise rigid alignment. Commonly these fiducials would be placed by hand using Slicer or SlicerSALT, which is quite time consuming. For your amygdalae, which do not really have easily identifiable landmarks (which makes shape analysis of the amygdala really difficult to compute and validate), you could use the try to use semi-landmarks that you automatically compute, e.g. by deforming a template amygdala (with a few manually placed landmarks) to each of your amygdalae and apply the deformation to the template landmarks, or simply an anterior-most point, posterior-most point etc (assuming the data is well aligned).
The resulting correspondence from these semi-landmarks won’t be wonderful, but then no correspondence on the amygdala will look great (as it is really difficult to see/know when a given correspondence is great on a blob-like structure as the amygdala).
Martin