generate(self,
patch,
perturb_func=None,
*args,
**kwds)
| source code
|
Fill in a patch with a (perturbed) frontal face patch.
- Parameters:
patch (POINTER(IplImage)) - a POINTER(IplImage) that points to a uint8 IplImage. The
patch is filled after calling generate()
perturb_func (a function [optional]) - This function takes an ImageView corresponding to the current view
that encapsulates the frontal face. You can perturb the view before
it is warped to the patch. It also returns a tuple expressing the
purturbed parameters. If None is given, no pertubation is made.
- Format:
- def perturb_func(iview, *args, **kwds)
- Input:
- iview: ImageView
- a view encapsulating the frontal face, to be supplied
by generate()
- Output:
- perturbed_theta: tuple
- a tuple of parameters expressing how the transformation
matrix is perturbed
other, arguments, or, keywords, - all passed to perturb_func, if it exists
- Returns:
- theta : a tuple/array
- a vector of perturbed parameters.
|