Questions tagged [dithering]

Dither is an intentionally applied form of noise used to randomize quantization error, preventing large-scale patterns such as color banding in images.

Dither is an intentionally applied form of noise used to randomize quantization error, preventing large-scale patterns such as color banding in images. Dither is routinely used in processing of both digital audio and digital video data, and is often one of the last analog stages of audio production to compact disc.

A typical use of dither is: given an image in grey-scale, convert it to black and white, such that the density of black dots in the new image approximates the average level of grey in the original image.

Dithering is also used in image processing, typically consisting of alternating pixel colours to create the illusion of a new colour.

98 questions
0
votes
1 answer

How can I create a thick diagonal stripe with glPolygonStipple?

I must not understand the glPolygonStipple bit arrangement. I thought it was a simple 32x32 bitmask. Therefor if I could use an unsigned int per row. For example this code produces (as expected) a thick vertical stripe: static unsigned int…
Alec Jacobson
  • 6,032
  • 5
  • 51
  • 88
0
votes
2 answers

Java Dithering not working

I'm trying to implement the Floyd-Steinberg algorithm in java ,but i still have some errors?! in my code that i cant solve.Maybe some of you have an advise how i can solve this. Here is the method public DitheringGUI dith(String fileName)…
greedsin
  • 1,252
  • 1
  • 24
  • 49
0
votes
1 answer

Disable dithering on a TYPE_BYTE_INDEXED BufferedImage

I have a 256-color BufferedImage on which I want to draw another BufferedImage (> 256 colors). Java's default behaviour is to dither colors which cannot be representeed in the low-color model. I want to disable this (thus choosing the next best…
0
votes
1 answer

Dithering in text using PIL and truetype fonts

Consider the following code: from PIL import Image, ImageDraw, ImageFont def addText(img, lTxt): FONT_SIZE = 10 INTERLINE_DISTANCE = FONT_SIZE + 1 font = ImageFont.truetype('arial.ttf', FONT_SIZE) lTxtImageHeight =…
Boris Gorelik
  • 29,945
  • 39
  • 128
  • 170
0
votes
0 answers

big data-set: write data to file little by little? or continuously?

I have a working prototype-code that creates a .ppm image file from a set of simple parameters. The purpose is to create a very large picture (something like 100000 * 100000 pixels) and to print a high-resolution wallpaper from it with a large…
adrienlucca.net
  • 677
  • 2
  • 10
  • 26
0
votes
1 answer

Android background appears banded

I'm trying to set a background using a GradientDrawable. Everything works fine except that the background appears with significant banding. I've tried to enable dithering, but it's not getting any better. Here is a screen shot: From a coding…
AndroidDev
  • 20,466
  • 42
  • 148
  • 239
-1
votes
1 answer

Floyd-SteinBerg dithering program bug. java

Hey im trying to create a program which uses Floyd-Steinberg's dithering algorithm to produce a dithered version of a image. the code for my program is below. but I believe I am getting an error with with the rounding in the "calculateErr"…
-1
votes
1 answer

How to create GIF (which looks more natural) with dithering from video frames or Array of UIImages?

Here is the link (https://imgplay.zendesk.com/hc/en-us/articles/360029411991-What-is-GIF-Dithering-Option-) where it says When you save the file as GIF with dithering, it can make your GIF more natural. How to implement Dithering for creating more…
sagarthecoder
  • 137
  • 1
  • 9
1 2 3 4 5 6
7