scale_about_centre¶
-
menpo.transform.scale_about_centre(obj, scale)[source]¶ Return a Homogeneous Transform that implements scaling an object about its centre. The given object must be transformable and must implement a method to provide the object centre.
- Parameters
obj (
Transformable) – A transformable object that has thecentremethod.scale (float or
(n_dims,)ndarray) – The scale factor as defined in theScaledocumentation.
- Returns
transform (
Homogeneous) – A homogeneous transform that implements the scaling.