The almost complete idiot guide to making your first shape model.
This repository contains the setup coding scripts and data used in the YouTube video series How to Shape Model.
In the video series, I go over all the practical design decisions when creating a statistical shape model (SSM).
Links to blog posts and videos of each tutorial
- Introduction/Overview and Point-correspondence
- Rigid Alignment
- Template design
- Deformable template / Kernel design
- Non-rigid registration/fitting
- Model evaluation
- Model visualization
The accompanying code can be found in the source folder. To generate all the output files as shown in the videos, execute each of the scala
scripts in order.
If running from the command line, remember to include the project.scala
file in the execution, e.g.:
// cd how-to-shape-model
scala-cli project.scala src/prepare_data/01_alignment.scala
scala-cli project.scala src/prepare_data/02_defineModel.scala
scala-cli project.scala src/prepare_data/03_registration.scala
scala-cli project.scala src/prepare_data/04_buildSSM.scala
Data is found in the data/
folder. Link to the original source of the data:
- The Vertebrates are extracted from the images provided for the MICCAI 2020 Challenge
- The Face template is from the Basel Face Model
- The Femur template is from the Publication code repo - Learning Shape Priors