unibas-gravis / scalismo-faces

Scalable Image Analysis and Shape Modelling: Module to work with 2d images, with a focus on face images
Apache License 2.0
118 stars 27 forks source link

added reconstructive model helpers and tests #127

Closed Andreas-Forster closed 4 years ago

Andreas-Forster commented 4 years ago

When building a model it is always the question, on which area to calculate the statistics. The introduced helper function createReconstructiveUsingPCA lets the user specify a mask for the region the statistic should be calculated on. Then a reconstructive model is built. The resulting model produces for the mask area the same instance as a masked model, when given the same coefficients.

Andreas-Forster commented 4 years ago

As there seem to be no concerns against merging this PR, I will merge it now. Concerns arising later can then be addressed in a next PR.