Hello,
I am looking to analyse shape variation of different human lungs. For this, I have generated a template lung with adequate surface landmark coverage which can be used for the ALPACA function. However, when I run ALPACA with the template lung, template source landmarks, and the new sample I want superimposed, neither the warped source model or the ALPACA initial landmarks is displayed. Has anyone else experienced this issue?
Did turn on the visibility for the TPS deformed model (first screenshot)? Also what Slicer version are you using? This alpaca results are either incomplete or you are using an older version. Resultant files should be now nested under a folder in the Data module (second screenshot):
Ok, this version is 5.6.1, and surprisingly, the ALPACA display settings are not able to be switched on. I have provided the two screenshots showing the issue on my end, but I am grateful for any more advice on this issue.
The only time I saw this happening when ALPACA stopped working in the middle due to an error. Can you share the log file (CTRL+0), better yet can you share those two models and the LMs.
I’ve attached a google drive with the template model, template landmarks, target model, and log file for this stage: https://drive.google.com/drive/folders/1SHq7x5Ea4qnyc-4Xl0PS9nb6gakRa_aA?usp=drive_link
It is possible the template may need an extra ‘dummy patch’ for fully cover the lung, which can be removed at a later date. Once again, thank you for the assistance!
this is not publicly shared, it says I need access
My apologies, the file should be available now.
ALPACA is failing at the end of the deformable registration (cpd), it is doing the rigid and scaling fine. We have to investigate this @smrolfe @agporto can you take a look?
Independently, your models are generating these warnings when loaded into Slicer. I don’t know if this has anything to do with how they are created, or causing an issue. But there are lots of these warnings:
Generic Warning: In vtkMath.cxx, line 799 vtkMath::Jacobi: Error extracting eigenfunctions
@lassoan @jcfr is this a concern, or is it harmless? I am not seeing any other 3D models generating this warning when loaded into Slicer.
Do you get this message when applying a thin-plate spline transform?
The error message probably indicates some error, for example the transformation may fold into itself (and therefore become non-invertible). But this may not necessarily cause any problem (for example, if you do not need the inverse transform in regions where it cannot be computed then you do not need to worry about it).
I would recommend to use tools in Transforms module’s Display section to verify the computed transform.
No, the warnings are generated while loading the sample lung models. Nothing to do with transforms or alpaca.
I havent seen these warnings with any other model load, so i was wondering if there is anything unique about the.
For clarity, the template model was originally generated in Slicer but then cleaned with an automated routine using Rvcg/Morpho packages in R. I can send further codes and files if that will help with your investigation. Thank you again for the help.
There is something wrong with these models. Try alpaca with the model you exported directly from your slicer segmentation and see if it works.
You can also try Surface Toolbox in Slicer to clean the model (maybe there are coincident points, incorrect normals, etc.).
I am using this template to process 220 samples for a wider growth study on juvenile lung development, manually cleaning each model may be a challenge. @muratmaga I have repeated the same ALPACA process for the right lung template with successful results, and I am now batch processing my entire dataset of right lungs. This means there is a specific issue with the left lung template model, but I can’t think of anything in my process which was different to the right lung template.
Let me know what else you might need.