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
0 answers

How to add noise (dithering) at background only?

I am trying to train a model with some noisy images having dithering. What I have : clean pdfs with white background coloured pdfs(RGB) and grayscale pdfs (with 3 channels, RGB) What I want: convert only white background (not text) into gray…
0
votes
0 answers

How to use Dithering using pillow library?

I want to use Dithering from pillow, (https://pillow.readthedocs.io/en/stable/reference/Image.html#PIL.Image.Dither.FLOYDSTEINBERG) My question is how to import dither from pillow, Following is my code, import os from PIL import…
0
votes
0 answers

How to make ImageMagick do this kind of halftone (see image and description)?

Been looking at the halftone capabilites of ImageMagick. I've tried many combinations of -ordered-dither but without being near the result I want. I've tried Photoshop but that is not an option due to Linux platform and Licences and so on. In…
maggan
  • 3
  • 3
0
votes
0 answers

Inverse dithering in .NET

Given an image that was created with dithering, how can this image be converted back to using a full palette? It seems .net does not offer any tools for this purpose. (I'm aware that this mapping is neither unique nor lossless - I'm fine with that)
mafu
  • 31,798
  • 42
  • 154
  • 247
0
votes
1 answer

Rerunning the Floyd Steinberg algorithm on a image

I implemented a version of the Dithering algorithm in Python (from Image Processing). The algorithm that I used is the Floyd Steinberg algorithm. I was wondering how the images would change if I will rerun my algorithm on the same image over and…
vesii
  • 2,760
  • 4
  • 25
  • 71
0
votes
1 answer

How to disable gradient dithering in browsers?

Situation/Problem When making a SVG filter, I stumbled upon something strange. When converting the original CSS gradient to R, G or B color only (whichever channel has the highest value), I get dithering in the gradient. Question While this usually…
Philip
  • 2,888
  • 2
  • 24
  • 36
0
votes
0 answers

Pseudocode for the ordered dithering of an X *Y monochrome image

I have been given the assignment to write a pseudo code for the ordered dithering of an x*y monochrome image I using D as a threshold map. Can anybody please help me
0
votes
1 answer

Is there a way to paint every second pixel in photoshop? (For dithering)

I'm asking this question with regards to drawing pixel art. If I want to draw a line for example, I can just click on one pixel with my pencil tool, hold shift and click where I want the line to end. I was wondering if there was some way to do the…
Tony
  • 37
  • 4
0
votes
1 answer

Dithering child elements' dimensions to fill a parent element

Say I have a parent div with width 500px. It has 13 child elements that should fill its width. If I give each child element a width of 500 / 13 = 38.46... pixels, the browser will floor the pixel values, so I end up with 13 elements that take up a…
kpozin
  • 25,691
  • 19
  • 57
  • 76
0
votes
2 answers

dithering vs ordered dithering

I understand how dithering works etc, but what is the differance between dithering vs ordered dithering? Also can anyone point me to some good resources?
Lunar
  • 4,663
  • 7
  • 43
  • 51
0
votes
1 answer

Is it possible to use dithering on a WPF gradient?

I wondered if it is possible to use dithering (e.g. Floyd-Steinberg) on the WPF gradient? XAML:
Wahored
  • 55
  • 4
0
votes
0 answers

How to Dither an image using Floyd-Steinberg algorithm in C#

I'm new to C# and for my second project I'm trying to write an algorithm that dithers a Bitmap using Floyd-Steinberg method, I followed Coding Trains Video but I get a bunch of errors where RGB values are out of bounds, for example, some times…
Googli
  • 15
  • 5
0
votes
0 answers

dithering for darker tones

(english is not my native tongue and it's pretty late). I am facing a problems for some days and, after many not successfull attemps, I decided to come here to have some help or at least a direction. We will talk about dithering and color…
Bubuche
  • 33
  • 3
0
votes
1 answer

Approximating image using similar non-overlapping circles

I am trying to find an algorithm that would approximate a greyscale image using an appropriate number of mathematical shapes from a predefined set of shapes which can be used (3 differently sized circles in my case). I have considered error…
BaconBad
  • 83
  • 1
  • 9
0
votes
1 answer

error diffusion dither image using CIfilter

I am trying to dither an image. I have made some swift code which applies the floyd steinberg dither but it takes a long time to process an image as it isn't wrapped in a cifilter, its just swift code. I am thinking that if I can make a custom…
carl
  • 121
  • 1
  • 8