-
Notifications
You must be signed in to change notification settings - Fork 4
Description
When running the script, I get the following error. This is the full error:
swt_pos = swt.strokeWidthTransform(img, 1)
File "C:\Users\vanasschej\AppData\Local\Continuum\Anaconda2\Lib\site-packages\StrokeWidthTransform\lib\swt.py", line 30, in strokeWidthTransform
firstPass, rays = fastRay.castRays(edges, thetas, direction)
File "lib\fastRay.pyx", line 33, in lib.fastRay.castRays (lib\fastRay.c:1614)
ray = castRay(row, column, angles, edgeLookup, maxRayLength, direction)
File "lib\fastRay.pyx", line 65, in lib.fastRay.castRay (lib\fastRay.c:2068)
cdef float rayDirection = angles[row][column]
IndexError: index 93019072 is out of bounds for axis 0 with size 300
It seems that the error is in the C code, any idea why this is? Assuming the code worked before.
Regards,
Jonah