Skip to content

IndexError: index 93019072 is out of bounds for axis 0 with size 300 #2

@jonahdelaware

Description

@jonahdelaware

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions