HOME

TheInfoList



OR:

Dither is an intentionally applied form of
noise Noise is sound, chiefly unwanted, unintentional, or harmful sound considered unpleasant, loud, or disruptive to mental or hearing faculties. From a physics standpoint, there is no distinction between noise and desired sound, as both are vibrat ...
used to randomize
quantization error Quantization, in mathematics and digital signal processing, is the process of mapping input values from a large set (often a continuous set) to output values in a (countable) smaller set, often with a finite number of elements. Rounding and ...
, preventing large-scale patterns such as color banding in images. Dither is routinely used in processing of both
digital audio Digital audio is a representation of sound recorded in, or converted into, digital signal (signal processing), digital form. In digital audio, the sound wave of the audio signal is typically encoded as numerical sampling (signal processing), ...
and
video Video is an Electronics, electronic medium for the recording, copying, playback, broadcasting, and display of moving picture, moving image, visual Media (communication), media. Video was first developed for mechanical television systems, whi ...
data, and is often one of the last stages of mastering audio to a CD. A common use of dither is converting a
grayscale In digital photography, computer-generated imagery, and colorimetry, a greyscale (more common in Commonwealth English) or grayscale (more common in American English) image is one in which the value of each pixel is a single sample (signal), s ...
image to
black and white Black-and-white (B&W or B/W) images combine black and white to produce a range of achromatic brightnesses of grey. It is also known as greyscale in technical settings. Media The history of various visual media began with black and white, ...
, so that the density of black dots in the new image approximates the average gray level in the original.


Etymology

The term ''dither'' was published in books on analog computation and hydraulically controlled guns shortly after
World War II World War II or the Second World War (1 September 1939 – 2 September 1945) was a World war, global conflict between two coalitions: the Allies of World War II, Allies and the Axis powers. World War II by country, Nearly all of the wo ...
. Though he did not use the term ''dither'', the concept of dithering to reduce quantization patterns was first applied by Lawrence G. Roberts in his 1961
MIT The Massachusetts Institute of Technology (MIT) is a private research university in Cambridge, Massachusetts, United States. Established in 1861, MIT has played a significant role in the development of many areas of modern technology and sc ...
master's thesis and 1962 article. By 1964 dither was being used in the modern sense described in this article. The technique was in use at least as early as 1915, though not under the name ''dither''.


In digital processing and waveform analysis

Dither is utilized in many different fields where digital processing and analysis are used. These uses include systems using
digital signal processing Digital signal processing (DSP) is the use of digital processing, such as by computers or more specialized digital signal processors, to perform a wide variety of signal processing operations. The digital signals processed in this manner are a ...
, such as
digital audio Digital audio is a representation of sound recorded in, or converted into, digital signal (signal processing), digital form. In digital audio, the sound wave of the audio signal is typically encoded as numerical sampling (signal processing), ...
,
digital video Digital video is an electronic representation of moving visual images (video) in the form of encoded digital data. This is in contrast to analog video, which represents moving visual images in the form of analog signals. Digital video comprises ...
,
digital photography Digital photography uses cameras containing arrays of electronic photodetectors interfaced to an analog-to-digital converter (ADC) to produce images focused by a lens, as opposed to an exposure on photographic film. The digitized image is ...
,
seismology Seismology (; from Ancient Greek σεισμός (''seismós'') meaning "earthquake" and -λογία (''-logía'') meaning "study of") is the scientific study of earthquakes (or generally, quakes) and the generation and propagation of elastic ...
,
radar Radar is a system that uses radio waves to determine the distance ('' ranging''), direction ( azimuth and elevation angles), and radial velocity of objects relative to the site. It is a radiodetermination method used to detect and track ...
and
weather forecasting Weather forecasting or weather prediction is the application of science and technology forecasting, to predict the conditions of the Earth's atmosphere, atmosphere for a given location and time. People have attempted to predict the weather info ...
systems. Quantization yields error. If that error is ''
correlated In statistics, correlation or dependence is any statistical relationship, whether causal or not, between two random variables or bivariate data. Although in the broadest sense, "correlation" may indicate any type of association, in statistic ...
'' to the signal, the result is potentially cyclical or predictable. In some fields, especially where the receptor is sensitive to such artifacts, cyclical errors yield undesirable artifacts. In these fields introducing dither converts the error to random noise. The field of audio is a primary example of this. The human ear functions much like a
Fourier transform In mathematics, the Fourier transform (FT) is an integral transform that takes a function as input then outputs another function that describes the extent to which various frequencies are present in the original function. The output of the tr ...
, wherein it hears individual frequencies. The ear is therefore very sensitive to
distortion In signal processing, distortion is the alteration of the original shape (or other characteristic) of a signal. In communications and electronics it means the alteration of the waveform of an information-bearing signal, such as an audio signal ...
, or additional frequency content, but far less sensitive to additional random noise at all frequencies such as found in a dithered signal.


Digital audio

In an analog system, the signal is ''continuous'', but in a
PCM Pulse-code modulation (PCM) is a method used to Digital signal (signal processing), digitally represent analog signals. It is the standard form of digital audio in computers, compact discs, digital telephony and other digital audio application ...
digital system, the amplitude of the signal out of the digital system is limited to one of a set of fixed values or numbers. This process is called quantization. Each coded value is a discrete step... if a signal is quantized without using dither, there will be quantization distortion related to the original input signal... In order to prevent this, the signal is "dithered", a process that mathematically removes the harmonics or other highly undesirable distortions entirely, and that replaces it with a constant, fixed noise level.
The final version of audio that goes onto a
compact disc The compact disc (CD) is a Digital media, digital optical disc data storage format co-developed by Philips and Sony to store and play digital audio recordings. It employs the Compact Disc Digital Audio (CD-DA) standard and was capable of hol ...
contains only 16 bits per sample, but throughout the production process, a greater number of bits are typically used to represent the sample. This must be reduced to 16 bits to make the CD. There are multiple ways to do this. One can, for example, simply discard the excess bits – called ''truncation.'' One can also ''round'' the excess bits to the nearest value. Each of these methods, however, results in predictable and determinable errors in the result. Using dither replaces these errors with a constant, fixed noise level.


Examples

Take, for example, a
waveform In electronics, acoustics, and related fields, the waveform of a signal is the shape of its Graph of a function, graph as a function of time, independent of its time and Magnitude (mathematics), magnitude Scale (ratio), scales and of any dis ...
that consists of the following values: 1 2 3 4 5 6 7 8 If the waveform is reduced by 20%, then the following are the new values: 0.8 1.6 2.4 3.2 4.0 4.8 5.6 6.4 If these values are truncated it results in the following data: 0 1 2 3 4 4 5 6 If these values are rounded instead it results in the following data: 1 2 2 3 4 5 6 6 For any original waveform, the process of reducing the waveform amplitude by 20% results in regular errors. Take for example a sine wave that, for some portion, matches the values above. Every time the sine wave's value hit 3.2, the truncated result would be off by 0.2, as in the sample data above. Every time the sine wave's value hit 4.0, there would be no error since the truncated result would be off by 0.0, also shown above. The magnitude of this error changes regularly and repeatedly throughout the sine wave's cycle. It is precisely this error that manifests itself as
distortion In signal processing, distortion is the alteration of the original shape (or other characteristic) of a signal. In communications and electronics it means the alteration of the waveform of an information-bearing signal, such as an audio signal ...
. What the ear hears as distortion is the additional content at discrete frequencies created by the regular and repeated quantization error. A plausible solution would be to take the 2 digit number (say, 4.8) and round it one direction or the other. For example, it could be rounded to 5 one time and then 4 the next time. This would make the long-term average 4.5 instead of 4, so that over the long-term the value is closer to its actual value. However, this still results in determinable (though more complicated) error. Every other time the value 4.8 comes up the result is an error of 0.2, and the other times it is −0.8. This still results in a repeating, quantifiable error. Another plausible solution would be to take 4.8 and round it so that the first four times out of five it is rounded up to 5, and the fifth time it is rounded to 4. This would average out to exactly 4.8 over the long term. Unfortunately, however, it still results in repeatable and determinable errors, and those errors still manifest themselves as distortion to the ear. This leads to the ''dither'' solution. Rather than predictably rounding up or down in a repeating pattern, it is possible to round up or down in a random pattern. If a series of random numbers between 0.0 and 0.9 (ex: 0.6, 0.1, 0.3, 0.6, 0.9, etc.) is generated and added to the 4.8, two times out of ten the result will truncate back to 4 (if 0.0 or 0.1 are added to 4.8) and eight times out of ten it will truncate to 5. Each given situation has a random 20% chance of rounding to 4 or 80% chance of rounding to 5. Over the long haul, these results will average to 4.8 and their quantization error will be random noise. This noise is less offensive to the ear than the determinable distortion that other solutions would produce.


Usage

Dither is added before any quantization or re-quantization process, in order to de-correlate the quantization noise from the input signal and to prevent non-linear behavior (distortion). Quantization with lesser bit depth requires higher amounts of dither. The result of the process still yields distortion, but the distortion is of a random nature so the resulting noise is, effectively, de-correlated from the intended signal. In a seminal paper published in the AES Journal, Lipshitz and Vanderkooy pointed out that different noise types, with different
probability density function In probability theory, a probability density function (PDF), density function, or density of an absolutely continuous random variable, is a Function (mathematics), function whose value at any given sample (or point) in the sample space (the s ...
s (PDFs) behave differently when used as dither signals, and suggested optimal levels of dither signal for audio.
Gaussian noise Carl Friedrich Gauss (1777–1855) is the eponym of all of the topics listed below. There are over 100 topics all named after this German mathematician and scientist, all in the fields of mathematics, physics, and astronomy. The English eponymo ...
requires a higher level of added noise for full elimination of audible distortion than noise with rectangular or triangular distribution. Triangular distributed noise also minimizes ''noise modulation''audible changes in the volume level of residual noise behind quiet music that draw attention to the noise. Dither can be useful to break up periodic
limit cycle In mathematics, in the study of dynamical systems with two-dimensional phase space, a limit cycle is a closed trajectory in phase space having the property that at least one other trajectory spirals into it either as time approaches infinity o ...
s, which are a common problem in digital filters. Random noise is typically less objectionable than the harmonic tones produced by limit cycles.


Noise distributions

Rectangular probability density function (RPDF) dither noise has a uniform distribution; any value in the specified range has the same
probability Probability is a branch of mathematics and statistics concerning events and numerical descriptions of how likely they are to occur. The probability of an event is a number between 0 and 1; the larger the probability, the more likely an e ...
of occurring. Triangular probability density function (TPDF) dither noise has a triangular distribution; values in the center of the range have a higher probability of occurring. Triangular distribution can be achieved by adding two independent RPDF sources. Gaussian PDF has a
normal distribution In probability theory and statistics, a normal distribution or Gaussian distribution is a type of continuous probability distribution for a real-valued random variable. The general form of its probability density function is f(x) = \frac ...
. The relationship of probabilities of results follows a bell-shaped, or
Gaussian curve In mathematics, a Gaussian function, often simply referred to as a Gaussian, is a function (mathematics), function of the base form f(x) = \exp (-x^2) and with parametric extension f(x) = a \exp\left( -\frac \right) for arbitrary real number, rea ...
, typical of dither generated by analog sources such as microphone preamplifiers. If the bit depth of a recording is sufficiently great, that
preamplifier A preamplifier, also known as a preamp, is an electronic amplifier that converts a weak electrical signal into an output signal strong enough to be noise-tolerant and strong enough for further processing, or for sending to a power amplifier a ...
noise will be sufficient to dither the recording.
Noise shaping Noise shaping is a technique typically used in digital audio, Image processing, image, and video processing, usually in combination with dithering, as part of the process of Quantization (signal processing), quantization or Audio bit depth, bit-dep ...
is a filtering process that shapes the spectral energy of quantization error, typically to either de-emphasize frequencies to which the ear is most sensitive or separate the signal and noise bands completely. If dither is used, its final spectrum depends on whether it is added inside or outside the feedback loop of the noise shaper. If inside, the dither is treated as part of the error signal and shaped along with actual quantization error. If outside, the dither is treated as part of the original signal and linearises quantization without being shaped itself. In this case, the final noise floor is the sum of the flat dither spectrum and the shaped quantization noise. While real-world noise shaping usually includes in-loop dithering, it is also possible to use it without adding dither at all, in which case quantization error is evident at low signal levels. Colored dither is sometimes mentioned as dither that has been filtered to be different from
white noise In signal processing, white noise is a random signal having equal intensity at different frequencies, giving it a constant power spectral density. The term is used with this or similar meanings in many scientific and technical disciplines, i ...
. Noise shaping is one such application.


Which noise distribution to use

If the signal being dithered is to undergo further processing, then it should be processed with a triangular-type dither that has an amplitude of two quantization steps so that the dither values computed range from, for example, −1 to +1, or 0 to 2. This is the lowest power ideal dither, in that it does not introduce noise modulation (which would manifest as a constant noise floor), and eliminates the harmonic distortion from quantization. If a ''colored'' dither is used instead at these intermediate processing stages, then frequency content may bleed into other frequency ranges that are more noticeable and become distractingly audible. If the signal being dithered is to undergo no further processing – if it is being dithered to its final result for distribution – then a ''colored'' dither or noise shaping is appropriate. This can effectively lower the audible noise level, by putting most of that noise in a frequency range where it is less critical.


Digital photography and image processing

Dithering is used in
computer graphics Computer graphics deals with generating images and art with the aid of computers. Computer graphics is a core technology in digital photography, film, video games, digital art, cell phone and computer displays, and many specialized applications. ...
to create the illusion of
color depth Color depth, also known as bit depth, is either the number of bits used to indicate the color of a single pixel, or the number of bits used for each color component of a single pixel. When referring to a pixel, the concept can be defined as bit ...
in images on systems with a limited
color palette In color theory, a color scheme is a combination of 2 or more colors used in aesthetic or practical design. Aesthetic color schemes are used to create style and appeal. Colors that create a color harmony, harmonious feeling when viewed togethe ...
. In a dithered image, colors that are not available in the palette are approximated by a diffusion of colored
pixel In digital imaging, a pixel (abbreviated px), pel, or picture element is the smallest addressable element in a Raster graphics, raster image, or the smallest addressable element in a dot matrix display device. In most digital display devices, p ...
s from within the available palette. The human eye perceives the diffusion as a mixture of the colors within it (see
color vision Color vision, a feature of visual perception, is an ability to perceive differences between light composed of different frequencies independently of light intensity. Color perception is a part of the larger visual system and is mediated by a co ...
). Dithered images, particularly those using palettes with relatively few colors, can often be distinguished by a characteristic graininess or speckled appearance. Dithering introduces noise or a pattern into an image, and often the patterning is visible. In these circumstances, it has been shown that dither generated from blue noise is the least unsightly and distracting. The error diffusion techniques were some of the first methods to generate blue-noise dithering patterns. However, other techniques such as ordered dithering can also generate blue-noise dithering without the tendency to degenerate into areas with artifacts.


Examples

Reducing the color depth of an image can have significant visual side effects. If the original image is a photograph, it is likely to have thousands or even millions of distinct colors. The process of constraining the available colors to a specific
color palette In color theory, a color scheme is a combination of 2 or more colors used in aesthetic or practical design. Aesthetic color schemes are used to create style and appeal. Colors that create a color harmony, harmonious feeling when viewed togethe ...
effectively throws away a certain amount of color information. A number of factors can affect the resulting quality of a color-reduced image. Perhaps most significant is the color palette that will be used in the reduced image. For example, an original image (''Figure 1'') may be reduced to the 216-color web-safe palette. If the original pixel colors are simply translated into the closest available color from the palette, no dithering will occur (''Figure 2''). However, typically this approach will result in flat areas (contours) and a loss of detail and may produce patches of color that are significantly different from the original. Shaded or gradient areas may produce color banding which may be distracting. The application of dithering can help to minimize such visual artifacts and usually results in a better representation of the original (''Figure 3''). Dithering helps to reduce color banding and flatness. One of the problems associated with using a fixed color palette is that many of the needed colors may not be available in the palette, and many of the available colors may not be needed; a fixed palette containing mostly shades of green would not be well-suited for an image of a
desert A desert is a landscape where little precipitation occurs and, consequently, living conditions create unique biomes and ecosystems. The lack of vegetation exposes the unprotected surface of the ground to denudation. About one-third of the la ...
, for instance. The use of an optimized color palette can be of benefit in such cases. An optimized color palette is one in which the available colors are chosen based on how frequently they are used in the original source image. If the image is reduced based on an optimized palette, the result is often much closer to the original (''Figure 4''). The number of colors available in the palette is also a contributing factor. If, for example, the palette is limited to only 16 colors then the resulting image could suffer from additional loss of detail, resulting in even more pronounced problems with flatness and color banding (''Figure 5''). Once again, dithering can help to minimize such artifacts (''Figure 6'').


Applications

One common application of dithering is to more accurately display graphics containing a greater range of colors than the display hardware is capable of showing. For example, dithering might be used in order to display a photographic image containing millions of colors on video hardware that is only capable of showing 256 colors at a time. The 256 available colors would be used to generate a dithered approximation of the original image. Without dithering, the colors in the original image would be quantized to the closest available color, resulting in a displayed image that is a poor representation of the original. The very earliest uses were to reduce images to 1-bit black and white. This may have been done for printing even earlier than for bit-mapped video graphics. It was common for making images to display on 1-bit video displays for X and Apollo and similar Unix workstations. The dithering was usually pre-computed and only the dithered image was stored; computation and memory were far too limited to compute it ''live''. An example home computer users may have seen was emulation of lower resolution CGA 4 color graphics on higher resolution monochrome Hercules graphics cards, with the colors being translated to ordered dither patterns. Some
liquid-crystal display A liquid-crystal display (LCD) is a flat-panel display or other Electro-optic modulator, electronically modulated optical device that uses the light-modulating properties of liquid crystals combined with polarizers to display information. Liq ...
s use temporal dithering to achieve a similar effect. By alternating each pixel's color value rapidly between two approximate colors in the panel's color space, a display panel that natively supports only 18-bit color (6 bits per channel) can represent a 24-bit color image (8 bits per channel). Dithering such as this, in which the computer's display hardware is the primary limitation on
color depth Color depth, also known as bit depth, is either the number of bits used to indicate the color of a single pixel, or the number of bits used for each color component of a single pixel. When referring to a pixel, the concept can be defined as bit ...
, is commonly employed in software such as
web browser A web browser, often shortened to browser, is an application for accessing websites. When a user requests a web page from a particular website, the browser retrieves its files from a web server and then displays the page on the user's scr ...
s. Since a web browser may be retrieving graphical elements from an external source, it may be necessary for the browser to perform dithering on images with too many colors for the available display. It was due to problems with dithering that a color palette known as the web-safe color palette was identified for use in choosing colors that would not be dithered on systems capable of displaying only 256 colors simultaneously. But even when the total number of available colors in the display hardware is high enough to properly render full-color digital photographs, banding may still be evident to the eye, especially in large areas of smooth shade transitions. Modest dithering can resolve this without making the image appear grainy. High-end still-image processing software commonly uses these techniques for improved display. Another useful application of dithering is for situations in which the
graphics file format An image file format is a file format for a digital image. There are many formats that can be used, such as JPEG, PNG, and GIF. Most formats up until 2022 were for storing 2D images, not 3D ones. The data stored in an image file format may be c ...
is the limiting factor. In particular, the commonly used
GIF The Graphics Interchange Format (GIF; or , ) is a Raster graphics, bitmap Image file formats, image format that was developed by a team at the online services provider CompuServe led by American computer scientist Steve Wilhite and released ...
format is restricted to the use of 256 or fewer colors. Images such as these have a defined color palette containing a limited number of colors that the image may use. For such situations, graphical editing software may be responsible for dithering images prior to saving them in such restrictive formats. Dithering is analogous to the
halftone Halftone is the reprographic technique that simulates continuous tone, continuous-tone imagery through the use of dots, varying either in size or in spacing, thus generating a gradient-like effect.Campbell, Alastair. ''The Designer's Lexicon''. ...
technique used in
printing Printing is a process for mass reproducing text and images using a master form or template. The earliest non-paper products involving printing include cylinder seals and objects such as the Cyrus Cylinder and the Cylinders of Nabonidus. The ...
. For this reason, the term ''dithering'' is sometimes used interchangeably with the term ''halftoning'' particularly in association with
digital printing Digital printing is a method of printing from a Digital data, digital-based image directly to a variety of media. It usually refers to professional printing where small-run jobs from desktop publishing and other digital sources are printed usi ...
. The ability of
inkjet printer Inkjet printing is a type of printer (computing), computer printing that recreates a digital image by propelling droplets of ink onto paper or plastic substrates. Inkjet printers were the most commonly used type of printer in 2008, and range f ...
s to print isolated dots has increased the use of dithering in printing. A typical desktop inkjet printer can print, at most, just 16 colors as this is the combination of dot or no dot from cyan, magenta, yellow and black print heads. To reproduce a large range of colors, dithering is used. In densely printed areas, where the color is dark the dithering is not always visible because the dots of ink merge producing a more uniform print. However, a close inspection of the light areas of a print where dots are further apart reveals dithering patterns. Dithered visuals have also been used for stylistic reasons in some media, such as in the video game '' Return of the Obra Dinn.''


Algorithms

There are several
algorithm In mathematics and computer science, an algorithm () is a finite sequence of Rigour#Mathematics, mathematically rigorous instructions, typically used to solve a class of specific Computational problem, problems or to perform a computation. Algo ...
s designed to perform dithering. One of the earliest, and still one of the most popular, is the Floyd–Steinberg dithering algorithm, which was developed in 1975. One of the strengths of this algorithm is that it minimizes visual artifacts through an error-diffusion process; error-diffusion algorithms typically produce images that more closely represent the original than simpler dithering algorithms. ''Note: this article contains a minor mistake: "(To fully reproduce our 256-level image, we would need to use an'' 8x8 ''pattern.)" The bold part should read "16x16".'' Dithering methods include: * ''Thresholding'' (also average dithering): each pixel value is compared against a fixed threshold, reducing image depth to 2-levels, black or white. This is not a dithering algorithm in itself, but is the simplest way to reduce an image-depth to two levels and is useful as a baseline. Thresholding results in immense loss of detail and contouring. * ''Random dithering'' was the first attempt (at least as early as 1951) to remedy the drawbacks of thresholding. Each pixel value is compared against a random threshold, resulting in a staticky image. Although this method does not generate patterned artifacts, the noise tends to swamp the detail of the image. It is analogous to the practice of
mezzotint Mezzotint is a monochrome printmaking process of the intaglio (printmaking), intaglio family. It was the first printing process that yielded half-tones without using line- or dot-based techniques like hatching, cross-hatching or stipple. Mezzo ...
ing. * ''Patterning'' dithers using a fixed pattern. For each of the input values, a fixed pattern is placed in the output image. The biggest disadvantage of this technique is that the output image is larger (by a factor of the fixed pattern size) than the input pattern. * '' Ordered dithering'' dithers using a ''dither matrix''. For every pixel in the image, the value of the pattern at the corresponding location is used as a threshold. Neighboring pixels do not affect each other, making this form of dithering suitable for use in animations. Different patterns can generate completely different dithering effects. Though simple to implement, this dithering algorithm is not easily changed to work with free-form, arbitrary palettes. ** A ''
halftone Halftone is the reprographic technique that simulates continuous tone, continuous-tone imagery through the use of dots, varying either in size or in spacing, thus generating a gradient-like effect.Campbell, Alastair. ''The Designer's Lexicon''. ...
dithering'' matrix produces a look similar to that of halftone screening in newspapers. This is a form of clustered dithering, in that dots tend to cluster together. This can help hide the adverse effects of blurry pixels found on some older output devices. The primary use for this method is in
offset printing Offset printing is a common printing technique in which the inked image is transferred (or "offset") from a plate to a rubber blanket and then to the printing surface. When used in combination with the lithography, lithographic process, which ...
and
laser printer Laser printing is an electrostatic digital printing process. It produces high-quality text and graphics (and moderate-quality photographs) by repeatedly passing a laser beam back and forth over a Electric charge, negatively charged cylinder call ...
s. In both these devices, the ink or toner prefers to clump together and will not form the isolated dots generated by the other dithering methods. ** A ''Bayer matrix'' produces a very distinctive cross-hatch pattern. ** A matrix tuned for '' blue noise'', such as those generated by the ''void-and-cluster'' method, produces a look closer to that of an error diffusion dither method. * '' Error-diffusion dithering'' is a feedback process that diffuses the quantization error to neighboring pixels. ** Floyd–Steinberg (FS) dithering only diffuses the error to neighboring pixels. This results in very fine-grained dithering. ** Minimized average error dithering by Jarvis, Judice, and Ninke diffuses the error also to pixels one step further away. The dithering is coarser but has fewer visual artifacts. However, it is slower than Floyd–Steinberg dithering, because it distributes errors among 12 nearby pixels instead of 4 nearby pixels for Floyd–Steinberg. ** Stucki dithering is based on the above, but is slightly faster. Its output tends to be clean and sharp. ** Burkes dithering is a simplified form of Stucki dithering that is faster, but is less clean than Stucki dithering. * Error-diffusion dithering (continued): ** Sierra dithering is based on Jarvis dithering, but it is faster while giving similar results. **''Two-row Sierra'' is the above method but was modified by Sierra to improve its speed. **''Sierra Filter Lite'' is an algorithm by Sierra that is much simpler and faster than Floyd–Steinberg, while still yielding similar results. ** Atkinson dithering was developed by Apple programmer Bill Atkinson, and resembles Jarvis dithering and Sierra dithering, but it is faster. Another difference is that it does not diffuse the entire quantization error, but only three quarters. It tends to preserve detail well, but very light and dark areas may appear blown out. ** Gradient-based error-diffusion dithering was developed in 2016 to remove the structural artifact produced in the original FS algorithm by a modulated randomization and to enhance the structures by a gradient-based diffusion modulation. * ''Dithering methods based on physical models'': ** Lattice-Boltzmann Dithering is based on
Lattice Boltzmann methods The lattice Boltzmann methods (LBM), originated from the lattice gas automata (LGA) method (Hardy- Pomeau-Pazzis and Frisch- Hasslacher- Pomeau models), is a class of computational fluid dynamics (CFD) methods for fluid simulation. Instead of s ...
and was developed to provide a rotationally invariant alternative to Error-diffusion dithering ** Electrostatic Halftoning is modeled after the principles of
Electrostatics Electrostatics is a branch of physics that studies slow-moving or stationary electric charges. Since classical antiquity, classical times, it has been known that some materials, such as amber, attract lightweight particles after triboelectric e ...
, which has a low approximation error and creates few visual artifacts


Other applications

Stimulated Brillouin scattering (SBS) is a nonlinear optical effect that limits the launched optical power in
fiber optic An optical fiber, or optical fibre, is a flexible glass or plastic fiber that can transmit light from one end to the other. Such fibers find wide usage in fiber-optic communications, where they permit transmission over longer distances and at ...
systems. This power limit can be increased by dithering the transmit optical center frequency, typically implemented by modulating the laser's bias input. See also polarization scrambling. Phase dithering can be used to improve the quality of the output in direct digital synthesis. Another common application is to get through EMC tests by using
spread spectrum clock In telecommunications, especially radio communication, spread spectrum are techniques by which a signal (e.g., an electrical, electromagnetic, or acoustic) generated with a particular bandwidth is deliberately spread in the frequency domain o ...
dithering of frequency to smear out single frequency peaks. Another type of temporal dithering has recently been introduced in
financial market A financial market is a market in which people trade financial securities and derivatives at low transaction costs. Some of the securities include stocks and bonds, raw materials and precious metals, which are known in the financial marke ...
s, in order to reduce the incentive to engage in
high-frequency trading High-frequency trading (HFT) is a type of algorithmic trading in finance characterized by high speeds, high turnover rates, and high order-to-trade ratios that leverages high-frequency financial data and electronic trading tools.Lin, Tom C. W. " ...
. ParFX, a London
foreign exchange market The foreign exchange market (forex, FX, or currency market) is a global decentralized or over-the-counter (OTC) market for the trading of currencies. This market determines foreign exchange rates for every currency. By trading volume, ...
that began trading in 2013, imposes brief random delays on all incoming orders; other currency exchanges are reportedly experimenting with the technique. The use of such temporal buffering or dithering has been advocated more broadly in financial trading of equities, commodities, and derivatives.


See also

* Anti-aliasing (disambiguation) *
Color quantization In computer graphics, color quantization or color image quantization is quantization applied to color spaces; it is a process that reduces the number of distinct colors used in an image, usually with the intention that the new image should be as ...
*
Halftoning Halftone is the reprographic technique that simulates continuous-tone imagery through the use of dots, varying either in size or in spacing, thus generating a gradient-like effect.Campbell, Alastair. ''The Designer's Lexicon''. ©2000 Chronicl ...
*
Jitter In electronics and telecommunications, jitter is the deviation from true periodicity of a presumably periodic signal, often in relation to a reference clock signal. In clock recovery applications it is called timing jitter. Jitter is a signifi ...
* Spot wobble * Stick-slip phenomenon *
Stippling Stippling is the creation of a pattern simulating varying Grayscale, degrees of solidity or shading by using small dots. Such a pattern may occur in nature and these effects are frequently emulated by artists. Art In printmaking, stipple ...
* Stochastic resonance


Notes


References

{{reflist, refs= {{Cite journal , last1 = Lipshitz , first1 = Stanley P , last2 = Vanderkooy , first2 = John , last3 = Wannamaker , first3 = Robert A. , title = Minimally Audible Noise Shaping , journal = J. Audio Eng. Soc. , volume = 39 , issue = 11 , pages = 836–852 , date = November 1991 , url = http://www.aes.org/e-lib/browse.cfm?elib=5956 , access-date = 28 October 2009 {{Cite journal , last1 = Vanderkooy , first1 = John , last2 = Lipshitz , first2 = Stanley P , title = Dither in Digital Audio , journal = J. Audio Eng. Soc. , volume = 35 , issue = 12 , pages = 966–975 , date = December 1987 , url = http://www.aes.org/e-lib/browse.cfm?elib=5173 , access-date = 28 October 2009


External links


"Dither – Not All Noise Is Bad"
Article previously published in ''Australian HI-FI'' with visual examples of how audio dither sharply reduces high order harmonic distortion. *Aldrich, Nika.
Dither Explained

DHALF
Explains a lot about dithering and also includes sufficient detail to implement several dithering algorithms.
Dither Vibration Example
Research in the field of dither for audio was done by Lipshitz, Vanderkooy, and Wannamaker at the
University of Waterloo The University of Waterloo (UWaterloo, UW, or Waterloo) is a Public university, public research university located in Waterloo, Ontario, Canada. The main campus is on of land adjacent to uptown Waterloo and Waterloo Park. The university also op ...

Dithering Image
Audio engineering Digital signal processing Computer graphic artifacts