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
1
vote
1 answer

How to use dithering to display an gray image with only black and white pixels?

I have a 256 gray levels image, which I want to draw thanks to only #000 (black) and #FFF (white) pixels (nothing else). One way to do that is to use dithering : https://upload.wikimedia.org/wikipedia/commons/6/6d/Dithering_example_red_blue.png In…
JarsOfJam-Scheduler
  • 2,809
  • 3
  • 31
  • 70
1
vote
1 answer

How to implement 24bit to 3bit ordered dither algorithm?

I am attempting to implement a Bayer ordered dithering matrix algorithm to convert a 24bit color image to a 3bit image. I have read the Wikipedia page, and several textbook sections on the topic and am a bit confused. This is what I have so far: for…
Nick
  • 315
  • 2
  • 9
1
vote
1 answer

Matlab - After dithering, RGB image can't divide into R-G-B

I'm new in Matlab.. I have image with dimension 512x512x3 uint8. And I use 'dither' function like this : [Myimagedither, Myimagedithermap] = rgb2ind(img, 16, 'dither'); imwrite(Myimagedither,Myimagedithermap,'step_4_RGB_D_U_16.tiff'); after that,…
stranger
  • 189
  • 1
  • 3
  • 15
1
vote
2 answers

How can Floyd-Steinberg-Dithering work?

I'm currently trying to implement the Floyd-Steinberg-Dithering algorithm in Java. After a few failed attempts I came across a question after reading the pseudocode listed on Wikipedia. for each y from top to bottom for each x from left to right …
Kilian
  • 2,122
  • 2
  • 24
  • 42
1
vote
1 answer

How to best display 30+ bpp graphics on a 24 bpp display?

What would be the best way to display the most faithfully graphics that have more than 8 bits per channel on a regular 24 bpp display?
Michel Rouzic
  • 1,013
  • 1
  • 9
  • 22
1
vote
1 answer

How to avoid dithering with Graphics.DrawImage?

I want to draw one picture over another and dump it to HttpResponse. My code looks like this: //file name points to a gif image System.Drawing.Image originalImage = System.Drawing.Image.FromFile(filename); System.Drawing.Image smallImage =…
Georgy Bolyuba
  • 8,355
  • 7
  • 29
  • 38
1
vote
1 answer

Color Banding Android Solution

What is possible solution to banded images in Android Activity or in OpenGl. Look at the answer below. Hope it Helps
Diljeet
  • 1,896
  • 20
  • 24
1
vote
3 answers

Custom gradient actionbar background, not display well, need dither

I use a linear background (xml shape) as the actionbar background in android 4.0. It does not display well, looks banded. How to make it render smooth?
virsir
  • 15,159
  • 25
  • 75
  • 109
1
vote
1 answer

Is it possible to have live wallpaper with 32 bit (ARGB_8888) surface format?

When rendering my live wallpaper I have some banding gradient artifacts. This article perfectly explains the reason behind this: to eliminate most of them and improve efficiency I can draw 32 bit bitmaps on top of 32 bit bitmaps :) So I asked myself…
dimsuz
  • 8,969
  • 8
  • 54
  • 88
0
votes
0 answers

Weird line effect in a Floyd-Steinberg Dithering print image (DNP DS620)

Hello I have an image which I apply a Floyd-Steinberg Dithering effect to (C# app). When I save this image there is no problem with the image and the result is pretty good, but when I print it there is weird line one the image (darker line of ~10…
thomas
  • 41
  • 6
0
votes
0 answers

Adafruit MagTag: Dither a jpg from placekitten.com and display on MagTag

Pimoroni has an example that grabs a jpg online and displays it on one of their Inky e-ink displays. I am wondering if it is possible to do the same thing with an Adafruit MagTag using CircuitPython. In the latest version of CircuitPython, there are…
0
votes
0 answers

broken/corrupted output .mp4 completely unplayable... what am i doing wrong

Broken/ corrupted output (.mp4) completely unplayable. What am I doing wrong? Forgive me if this is an obvious issue I am self taught. My code: import cv2 import numpy as np # Load the input mp4 file cap =…
0
votes
0 answers

Ordered Dithering

I am currently doing a project where I have to halftoning printing by ordered dithering . However, after doing my dithering processing, my image showing in this way . Does anyone know what I'm doing wrong? Image dithering(Image input, int…
0
votes
0 answers

How do I calculate quantization error of 2 tuples in python

I'm currently trying to code Floyd-Steinberg dithering in python When trying to add colour in Floyd-Steinberg dithering, you have to calculate the "quantization error" of 2 tuples. How would I go about doing this? Converting them to grayscale…
xyper
  • 1
  • 2
0
votes
0 answers

Replicating Photoshop's dithering in Python

I want to do the same dithering that Photoshop does in its Save for Web export section. This is my original image: Original image Diffusion dithering in Photoshop using the following settings: Photoshop Save for Web This yields the following image:…