The simplest choice for the reference shape in the patch_models class is the average shape of the training set, scaled to a desired size. Assuming that a shape model has previously been trained for this dataset, the reference shape is computed by first loading the shape model stored in argv[2] as follows: