build_patch_reference_frame(landmarks, boundary=3, group='source', patch_shape=(17, 17))¶
Builds a patch-based reference frame from a particular set of landmarks.
landmarks (menpo.shape.PointCloud) – The landmarks that will be used to build the reference frame.
boundary (int, optional) – The number of pixels to be left as a safe margin on the boundaries of the reference frame (has potential effects on the gradient computation).
group (str, optional) – Group that will be assigned to the provided set of landmarks on the reference frame.
patch_shape ((int, int), optional) – The shape of the patches.
patch_based_reference_frame (menpo.image.MaskedImage) – The patch-based reference frame.