如何将这个等式写入 Python 代码?

问题描述 投票:0回答:0

我正在运行一个关于基于图像纹理分析的实时道路拥堵检测的程序,该程序计算由灰度 GLCM 的平均能量和平均熵相加的交通密度。

我正在使用 scikit-image 计算 GLCM 和灰度能量,但它无法计算熵。

skimage.feature.graycomatrix

skimage.feature.graycoprops

如何将这个equation of calculating entropy feature写成Python代码?我不擅长数学,我是 Python 的初学者。

python python-3.x numpy entropy glcm
© www.soinside.com 2019 - 2024. All rights reserved.