Something wrong with my ProjectSemiLM

4.11
windows10
I use ProjectSemiLM to transfer semilandmarks across samples.I have existing manual landmarks on each model and use the PseudoLMGenerator to set surface semilandmarks by generating pseudo-landmarks for the whole template and removing the landmark set with the MarkupEditor.But when I use ProjectSemiLM,no new semilandmarks are generated.
1.The models of samples are cropped by crop volume,I can’t guarantee the ROI is the same,does it matter?
2.Is markups fiducial CSV same as fiducial CSV?what kind of landmarks should I save? And what kind of model shoule I choose when I select the reference model used to place the initial semi-landmark points?vtk or stl?
3.Is there anyelse reference videos or tutorial other than SlicerMorph Patch Based Semi-landmarking (Part 2) Transferring the patches to new samples - YouTube and SlicerMorph/Docs/ProjectSemiLM at master · SlicerMorph/SlicerMorph · GitHub?

Thank you very much!!!

To me this points out to potential an issue with the landmark correspondence between reference landmark sets (issues with ordering, number etc). If the thin plate spline transform fails, no landmarks will be transferred to the target.

Do you see an error if you open the log (Ctrl+0). Without seeing your data, this is as much as I can guess.

2.Is markups fiducial CSV same as fiducial CSV?what kind of landmarks should I save? And what kind of model shoule I choose when I select the reference model used to place the initial semi-landmark points?vtk or stl?

Yes, both markups fcsv and fcsv are the same format. We suggest using PLY format as our model format actually (not vtk or stl).

The reference tutorial is what you linked. Are you having problem following the instructions there?

I checked the ordering and the number of my 11 landmarks, and the log said it can not load my file which has my target model inside.

Log shows you are trying to load the models from a scene file. You should follow the instructions of the ProjectSemiLMPatches carefully.

It asks for a folder of model files.

In the beginning, I put all the files in the same folder, or this caused projectsemiLM loaded the models from a scene file. Now I put the landmarks and model files in different folders and tried different save formats. But log said IndexError: list index out of range. I looked it up online and it might mean the list is empty. When I choose the mesh dictionary and the landmark dictionary,the preview window shows that No items match my search criteria. But I do put the target files in the folders. I have no idea of this.



Currently, the ProjectSemiLM module assumes that each mesh and landmark file will have a numerical ID in the filename so they can be matched. For example, if you add “_1” at the end of the filenames for the corresponding mesh and landmark file in your “lm” and “stl” folders, it should resolve this issue should work.

I will also update the interface so this is no longer a requirement, so if you’d like to wait a day or two for a new build it should be available soon.

1 Like

Thank you very much for your help. I transferred semilandmarks across samples successfully!!!

1 Like