def _warp_template(self, template, group, reference_shape, scale_index, prefix, verbose): shape = template.landmarks[group].lms return extract_patches([template], [shape], self.patch_shape[scale_index], normalise_function=self.patch_normalisation, prefix=prefix, verbose=verbose)
def _warp_template(self, template, group, reference_shape, scale_index, prefix, verbose): shape = template.landmarks[group] return extract_patches([template], [shape], self.patch_shape[scale_index], normalise_function=self.patch_normalisation, prefix=prefix, verbose=verbose)
def _warp_images(self, images, shapes, scale_index, prefix, verbose): return extract_patches( images, shapes, self.patch_shape[scale_index], normalise_function=self.patch_normalisation[scale_index], prefix=prefix, verbose=verbose)
def _warp_images(self, images, shapes, reference_shape, scale_index, prefix, verbose): return extract_patches(images, shapes, self.patch_shape[scale_index], normalise_function=self.patch_normalisation, prefix=prefix, verbose=verbose)