Nguyen-Hoang-Nam / image-enhancement

🌈 Library to enhance image
MIT License
45 stars 8 forks source link

Typo Line 39 image_enhancement/histogram.py #3

Open vsinha027 opened 2 years ago

vsinha027 commented 2 years ago

Seems like there is a small typo on line 39 in image_enhancement/histogram.py return self.sub_histogram_equalization(hitogram, range_min, range_max)

Should be return self.sub_histogram_equalization(histogram, range_min, range_max)

I installed via pip on mac m1.

Traceback (most recent call last): File "--/enhance_images.py", line 22, in <module> output = ie.GHE() File "/opt/homebrew/lib/python3.9/site-packages/image_enhancement/image_enhancement.py", line 26, in GHE LUT = histogram.histogram_equalization(image_1d) File "/opt/homebrew/lib/python3.9/site-packages/image_enhancement/histogram.py", line 39, in histogram_equalization return self.sub_histogram_equalization(hítogram, range_min, range_max) NameError: name 'hítogram' is not defined

the full file path for File is omitted for privacy.

Nguyen-Hoang-Nam commented 2 years ago

Thank you, I will check it soon as I come home.

Nguyen-Hoang-Nam commented 2 years ago

I just publish version 0.2.1 in Pypi which fixes this issue.