DECA mean shape model: partly coarse surface

Hi,

I am using DECA for some shape analysis. I am wondering why the resulting reference / atlas shape model appears to have partly coarse surface.

The workflow for comparing 2 groups looks like this:

  • first: using DeCAL to increase the number of points –> up to > 200 from initially manually 20 LM place of both groups
  • second: use the LM_aligned_200points and model_alignes_200points of one group to create an atlas using DECA
  • third: use this resulting atlas for comparing the shape variance between the atlas and the indiviual samples of group 2 using DECA

Maybe the initial number of manually placed LM is too less. Although I checked the initially aligned models based on the 20 LM –> they are well aligned with the resulting first base / reference.

Any idea how to improve the mesh of the reference model?

THANKS!

Best,
Markus

Do you have damage or missing parts in your input models?

Hi,

the models which are used are fine. No issues visible, size 40 MB after decimation, repair, normals recomputation and minor smoothing.

These data is used for generating the reference using DECA.

And the computed reference models are not similar affected showing more or less ripples.
Infact several reference models are derived from different starting data.

In short: the starting data seems to be fine.

Best,
Markus

Hi,

I repeated the compuation of the mean shape. This time I used the mouse data of the DECA tutorial. GitHub - SlicerMorph/Mouse_Models · GitHub

Again one can notice kind of rough surface. I am wondering where does this come from?
Mean shape of 60 skulls, I expect that there won´t be such edges / ripples generated.

Is this normal behaviour? I am wondering, such kind of “notch” is not visible in the skull data….

Could you please comment on this mean shape outcome.

Thanks!

Best,
Markus

There shouldn’t be an artifact like that, unless one of the models have it. And I don’t think any of the models included in the sample data has a damage.

The other place it can possibly come is a mismatched landmarked that is warping the model incorrectly. Unfortunately as it is, DeCaL does not save the intermediate steps in the atlas creation. But DeCA does.

So use DeCa module to create the atlas from scratch one more time. Selections are very similar to DeCaL. Just make sure you enabled the “Create Output for Error checking” option. When you run DeCa this will create the folder errorChecking in the specified output folder where the warped models are saved. Load all of them into your scene, and see if there are any that appears warped incorrectly or have artifacts like that.

Hi,

the processing was repeated using DeCA and the available public data set ( GitHub - SlicerMorph/Mouse_Models · GitHub )

The result was the same. None of the data sample showed such a kind of ripple/ notch in that specific anatomical location.

I assume that this is the “normal” behaviour of the algorithm. According to the publication (DOI:10.1007/978-3-031-46914-5_21) the step of “mean template building” is described as:

“….Optionally, the mean templatemodel can first be smoothed to remove unwanted local shape variation or decimated to reduce the number of point correspondences…”

Regarding mismatch of the landmarks:

  • how to define “mismatch” in the situation of altered anatomical shape? → it is this shape difference which is of interest
  • alternative rigid registration approach –> make use of the available “fast alignment” module?

Besides smoothing the reference atlas, one “simple /fuzzy” option is to use GPA and select the resulting sample which is closest to the mean shape of the group.

I guess every user needs to find out which “approach” / “workflow” is best suited for the actual
analysis. And the ripple/notch is introduced by the generation of the mean shape step.

I guess that´s how it is :man_shrugging:

Sorry for the late response it has been a busy week.

Your conclusion is correct you need to decide whether the produced template is correct and needs editing, smoothing is required.

Where the defects comes from:

  1. DeCA ultimately uses one of the models as a reference to calculate the final template. This changes based on the samples and landmark distribution.
  2. It appears to me one of the samples (LP.ply) in that set of mouse models have a slight scanning artifact right in that area, and that sample ended up being chosen as to serve as the basis of the template. So the issue in the sample propagated to the template. That’s a common problem in the template based analyses. I am going to update that module UI log clearly specifies what samples are chosen for each step (there are two different steps for that), so that finding these kind of issues would be a bit easier.

I didn’t look all samples very carefully, but there is another sample (PWD) with an unfused cranium

That would have been a bad sample to serve as a reference (it can, because that decision is based on the landmark coordinates, not the model itself).

So if you want you can take these two out, retry the pipeline and see if you can get a smoother atlas. But in the end, there will always be some sort of a template bias that you should be mindful of.

Thank you very much for taking the time to look into this matter.

I removed the two samples. The reference looks little bit better now:

Best,
Markus

If you update your DenseCorrespondence extension to the latest version, it now output the names of the samples selected for both initial rigid alignment and base mesh calculation. Most cases these would be the same, but it is not guaranteed to be the case. You can then check that specific sample and evaluate whether that’s a high quality model to serve as a template:

(This is displayed in the log Widget of both DeCAL and DeCA tabs)

Sample selected for rigid alignment: B6C3F1

Generating the average template

Sample selected for base model calculation: B6C3F1_align

Saving atlas model to /Users/amaga/Desktop/Mouse_Models/2/Mouse_Models/DeCaL_Out/2026_03-16_08_53_30/decaAtlasModel.ply

Saving atlas landmarks to /Users/amaga/Desktop/Mouse_Models/2/Mouse_Models/DeCaL_Out/2026_03-16_08_53_30/decaAtlasLM.mrk.json

1 Like