biigle / laserpoints

:m: BIIGLE module to perform a heuristic laser point detection on images
GNU General Public License v3.0
0 stars 0 forks source link

IndexError with delphiGather script #16

Closed mzur closed 7 years ago

mzur commented 7 years ago

The bugs of #14 and #15 seem to be resolved, most of the jobs run successfully now. One job gets a new error, though:

Traceback (most recent call last):
  File "delphiGather.py", line 58, in <module>
    lpnegativ[idx * 4 + idx2 * 4 + 1] = lpimg[j[0] + delta1 / 2, j[1] + delta1 / 2]
    IndexError: index 4296 is out of bounds for axis 1 with size 4295

Here is the input file to reproduce the error. Command:

python /vol/uwi/www/bias/vendor/biigle/laserpoints/src/config/../resources/scripts/delphiGather.py input.txt

The error occurs for this image where the laserpoints are near the right edge, so I assume the delta1 just overflows the image boundary.