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

Things aren't working and I'm stuck! #10

Closed
2 tasks done
csytox opened this issue Nov 19, 2024 · 1 comment
Closed
2 tasks done

Things aren't working and I'm stuck! #10

csytox opened this issue Nov 19, 2024 · 1 comment
Labels
help wanted Things aren't working and I'm stuck! WS 24/25

Comments

@csytox
Copy link

csytox commented Nov 19, 2024

Repository

extracting-nuclear-codes-or-smth

Access rights

  • I hereby confirm that the supervisors can access my GitHub repository.

Git commit and push

  • I hereby confirm that I have committed and pushed to my GitHub repository.

Task

otsu.ipynb Task 1.4

Describe the problem (if possible)

Ich hab negative Otsu werte...

@csytox csytox added the help wanted Things aren't working and I'm stuck! label Nov 19, 2024
@kostrykin
Copy link
Member

There was an overflow occurring due to the following mistake:

        for x in range(i):
            pixels_left += pixels_left + img[x]

This computes an exponential function (double in each iteration, plus something) instead of the intended sum, should be:

        for x in range(i):
            pixels_left += img[x]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Things aren't working and I'm stuck! WS 24/25
Projects
None yet
Development

No branches or pull requests

2 participants