Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IndexError: index 0 is out of bounds for axis 0 with size 0 #3

Open
dlinUBC opened this issue Dec 6, 2021 · 1 comment
Open

IndexError: index 0 is out of bounds for axis 0 with size 0 #3

dlinUBC opened this issue Dec 6, 2021 · 1 comment

Comments

@dlinUBC
Copy link

dlinUBC commented Dec 6, 2021

Error occurs in Line 80 of imageanalysis.py within auto_crop: if np.abs(angles[0]) < 80/180*np.pi:

This occurs with when running droppy.main(['filename', '--fitType', 'bashforth-adams']) as in the documentation.

Seems like hough_line_peaks(*hough_line(edges), num_peaks=1) of line 79 is producing an empty angles array.

Attached is the image being used:
LOW_RES_2021_12_01_14_25_49_ptfe_tape

In the case this is a usage error, are there any image requirements like resolution, contrast, relative droplet size, droplet position, etc.? This image is already cropped from an image at too high a resolution for the hough_transform functions to work with.

@aatird
Copy link

aatird commented Feb 8, 2024

The problem lies with a newer version of scikit-image. Installing scikit-image 0.18.3 worked perfectly fine for me.

All the best,

Ingo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants