Skip to content

Added strand sort #1981

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

Closed
wants to merge 23 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update digital_image_processing/dithering/burkes.py
Co-Authored-By: Christian Clauss <cclauss@me.com>
  • Loading branch information
l3str4nge and cclauss authored Apr 30, 2020
commit c872fc69c0ebfa1156576f25169231feac85a7e0
3 changes: 2 additions & 1 deletion digital_image_processing/dithering/burkes.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ def __init__(self, input_img, threshold: int):
self.threshold = threshold
self.width, self.height = self.input_img.shape[1], self.input_img.shape[0]

# error table size (+4 columns and +1 row) greater than input image because of lack of if statements
# error table size (+4 columns and +1 row) greater than input image because of
# lack of if statements
self.error_table = [
[0 for _ in range(self.height + 4)] for __ in range(self.width + 1)
]
Expand Down