samna.graph.nodes.detail

samna.graph.nodes.detail#

Submodules#

Module content#

samna.graph.nodes.detail.rescaling_coefficient(arg0: float, arg1: float, arg2: float, arg3: float) Tuple[float, float]#

Calculate the rescaling coefficient.

inline auto rescalingCoefficient(double originalWidth, double originalHeight, double rescaledWidth, double rescaledHeight) :param originalWidth: The original width of the image. :type originalWidth: float :param originalHeight: The original height of the image. :type originalHeight: float :param rescaledWidth: The rescaled width of the image. :type rescaledWidth: float :param rescaledHeight: The rescaled height of the image. :type rescaledHeight: float

Returns:

The rescaling coefficient.