transform_about_centre¶
-
menpo.transform.
transform_about_centre
(obj, transform)[source]¶ Return a Transform that implements transforming an object about its centre. The given object must be transformable and must implement a method to provide the object centre. More precisely, the object will be translated to the origin (according to it’s centre), transformed, and then translated back to it’s previous position.
Parameters: - obj (
Transformable
) – A transformable object that has thecentre
method. - transform (
ComposableTransform
) – A composable transform.
Returns: transform (
Homogeneous
) – A homogeneous transform that implements the scaling.- obj (