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 thecentre
method. - scale (float or
(n_dims,)
ndarray) – The scale factor as defined in theScale
documentation.
Returns: transform (
Homogeneous
) – A homogeneous transform that implements the scaling.- obj (