Python如何实现MATLAB的getrangefromclass函数?Python中有相同功能的函数吗?

MATLAB:range = getrangefromclass(I)
%range = getrangefromclass(I)根据图像I中数据类型返回图像I默认取值范围,返回结果是double类型的。matlab中图像数据类型可以是:uint8, uint16, int16, logical, single, 或者 double。

请问Python中有相同功能的函数吗?或者Python如何实现根据数据类型返回默认取值范围?

https://zhidao.baidu.com/question/752370782413010884.html