Skip to content

Commit

Permalink
Fix for issue #46
Browse files Browse the repository at this point in the history
Compatibility with latest OpenCV version (thanks @chertoGUN)
  • Loading branch information
GuidoBartoli authored Mar 19, 2022
1 parent abaebe8 commit c1ef766
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gui/histogram.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def __init__(self, image, parent=None):
self.start_slider = ParamSlider([0, 255], 8, 0, bold=True)
self.end_slider = ParamSlider([0, 255], 8, 255, bold=True)

channels = cv.split(cv.cvtColor(image, cv.COLOR_BGR2RGB))
channels = list(cv.split(cv.cvtColor(image, cv.COLOR_BGR2RGB)))
channels.append(cv.cvtColor(image, cv.COLOR_BGR2GRAY))
self.hist = [compute_hist(c) for c in channels]
rows, cols, chans = image.shape
Expand Down

0 comments on commit c1ef766

Please sign in to comment.