arcaduf / image_quality_assessment

47 stars 16 forks source link

Complexity calculation: Edge magnitude computation is incorrect #3

Open kodukulav opened 5 years ago

kodukulav commented 5 years ago

Hi,

Image complexity assessment using spatial information technique relies on edge magnitude. Currently, edge magnitude is computed as follows in calc_complexity.py file and this is incorrect because square root is missing.

map_si = dxdx + dydy

Instead, it should be the following

map_si = np.sqrt(dxdx + dydy)

Thanks, Venky

vmaksimovic commented 4 years ago

Yes, but then there is error. Also, low resolution leading to low complexity, which is incorect.