guptapraful / niqe

NIQE for IQA in python..
224 stars 43 forks source link

A bug reported #5

Open YYue000 opened 3 months ago

YYue000 commented 3 months ago

https://github.com/guptapraful/niqe/blob/e5e4069597ad14d761a42d67c64302940d469067/niqe.py#L25

Here after square operation, the value can never falls below 0. As a result, all the lstd values will be 0.

When referring to the implementation in python BRISQUE (https://github.com/bukalapak/pybrisque), it should be compare->square instead of square->compare.