In my code I'm using CDH code to run,but there was a error. I don't know how to fix it.
JonasZero opened this issue · 0 comments
JonasZero commented
File "D:\Python\PyCharm\rsir\pyimagesearch\color_CDH.py", line 190, in getHist
ori = maxgrad_and_mingrad_Lab(lab, onum, width, height)
File "D:\Python\PyCharm\rsir\pyimagesearch\color_CDH.py", line 52, in maxgrad_and_mingrad_Lab
G1 = math.sqrt(0.5 * ((gxx + gyy) + (gxx - gyy) * math.cos(2.0 * theta) + 2.0 * gxy * math.sin(2.0 * theta)))
ValueError: math domain error