You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've noticed that images produced with hitherdither are slightly different than those produced with other programs using the same algorithms.
I tested this using Floyd-Steinberg on a solid 50% gray image, which should produce a uniform checkerboard pattern.
Input
Output
Expected (from PIL)
I've found that by rounding when distributing the quantization error, the above image renders correctly, while others are closer but still different. ni[yn, xn] += np.round(quantization_error * diffusion_coefficient)
Maybe that's as good as it's gonna get.
The text was updated successfully, but these errors were encountered:
I've noticed that images produced with hitherdither are slightly different than those produced with other programs using the same algorithms.
I tested this using Floyd-Steinberg on a solid 50% gray image, which should produce a uniform checkerboard pattern.
I've found that by rounding when distributing the quantization error, the above image renders correctly, while others are closer but still different.
ni[yn, xn] += np.round(quantization_error * diffusion_coefficient)
Maybe that's as good as it's gonna get.
The text was updated successfully, but these errors were encountered: