Dither: Dither: Visual Noise in Computer Vision
By Fouad Sabry
()
About this ebook
What is Dither
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 video data, and is often one of the last stages of mastering audio to a CD.
How you will benefit
(I) Insights, and validations about the following topics:
Chapter 1: Dither
Chapter 2: Analog-to-digital converter
Chapter 3: Dynamic range
Chapter 4: Signal-to-noise ratio
Chapter 5: Halftone
Chapter 6: Comparison of analog and digital recording
Chapter 7: Compression artifact
Chapter 8: Sampling (signal processing)
Chapter 9: Quantization (signal processing)
Chapter 10: Grayscale
(II) Answering the public top questions about dither.
(III) Real world examples for the usage of dither in many fields.
Who this book is for
Professionals, undergraduate and graduate students, enthusiasts, hobbyists, and those who want to go beyond basic knowledge or information for any kind of Dither.
Read more from Fouad Sabry
Emerging Technologies in Entertainment
Related to Dither
Titles in the series (100)
Retinex: Unveiling the Secrets of Computational Vision with Retinex Rating: 0 out of 5 stars0 ratingsAffine Transformation: Unlocking Visual Perspectives: Exploring Affine Transformation in Computer Vision Rating: 0 out of 5 stars0 ratingsComputer Vision: Exploring the Depths of Computer Vision Rating: 0 out of 5 stars0 ratingsHomography: Homography: Transformations in Computer Vision Rating: 0 out of 5 stars0 ratingsHadamard Transform: Unveiling the Power of Hadamard Transform in Computer Vision Rating: 0 out of 5 stars0 ratingsUnderwater Computer Vision: Exploring the Depths of Computer Vision Beneath the Waves Rating: 0 out of 5 stars0 ratingsAnisotropic Diffusion: Enhancing Image Analysis Through Anisotropic Diffusion Rating: 0 out of 5 stars0 ratingsComputer Stereo Vision: Exploring Depth Perception in Computer Vision Rating: 0 out of 5 stars0 ratingsColor Space: Exploring the Spectrum of Computer Vision Rating: 0 out of 5 stars0 ratingsGamma Correction: Enhancing Visual Clarity in Computer Vision: The Gamma Correction Technique Rating: 0 out of 5 stars0 ratingsRadon Transform: Unveiling Hidden Patterns in Visual Data Rating: 0 out of 5 stars0 ratingsImage Histogram: Unveiling Visual Insights, Exploring the Depths of Image Histograms in Computer Vision Rating: 0 out of 5 stars0 ratingsAdaptive Filter: Enhancing Computer Vision Through Adaptive Filtering Rating: 0 out of 5 stars0 ratingsImage Compression: Efficient Techniques for Visual Data Optimization Rating: 0 out of 5 stars0 ratingsHistogram Equalization: Enhancing Image Contrast for Enhanced Visual Perception Rating: 0 out of 5 stars0 ratingsNoise Reduction: Enhancing Clarity, Advanced Techniques for Noise Reduction in Computer Vision Rating: 0 out of 5 stars0 ratingsTone Mapping: Tone Mapping: Illuminating Perspectives in Computer Vision Rating: 0 out of 5 stars0 ratingsActive Contour: Advancing Computer Vision with Active Contour Techniques Rating: 0 out of 5 stars0 ratingsHough Transform: Unveiling the Magic of Hough Transform in Computer Vision Rating: 0 out of 5 stars0 ratingsInpainting: Bridging Gaps in Computer Vision Rating: 0 out of 5 stars0 ratingsContour Detection: Unveiling the Art of Visual Perception in Computer Vision Rating: 0 out of 5 stars0 ratingsHuman Visual System Model: Understanding Perception and Processing Rating: 0 out of 5 stars0 ratingsOriented Gradients Histogram: Unveiling the Visual Realm: Exploring Oriented Gradients Histogram in Computer Vision Rating: 0 out of 5 stars0 ratingsAphelion Software: Unlocking Vision: Exploring the Depths of Aphelion Software Rating: 0 out of 5 stars0 ratingsColor Appearance Model: Understanding Perception and Representation in Computer Vision Rating: 0 out of 5 stars0 ratingsActive Appearance Model: Unlocking the Power of Active Appearance Models in Computer Vision Rating: 0 out of 5 stars0 ratingsFilter Bank: Insights into Computer Vision's Filter Bank Techniques Rating: 0 out of 5 stars0 ratingsColor Mapping: Exploring Visual Perception and Analysis in Computer Vision Rating: 0 out of 5 stars0 ratingsMultispectral Imaging: Unlocking the Spectrum: Advancements in Computer Vision Rating: 0 out of 5 stars0 ratingsScale Invariant Feature Transform: Unveiling the Power of Scale Invariant Feature Transform in Computer Vision Rating: 0 out of 5 stars0 ratings
Related ebooks
Digital Signal Processing for Audio Applications: Volume 1 - Formulae Rating: 0 out of 5 stars0 ratingsHuman Visual System Model: Understanding Perception and Processing Rating: 0 out of 5 stars0 ratingsNoise Reduction: Enhancing Clarity, Advanced Techniques for Noise Reduction in Computer Vision Rating: 0 out of 5 stars0 ratingsAnti Aliasing: Enhancing Visual Clarity in Computer Vision Rating: 0 out of 5 stars0 ratingsData Compression: Unlocking Efficiency in Computer Vision with Data Compression Rating: 0 out of 5 stars0 ratingsAudio Visual Speech Recognition: Advancements, Applications, and Insights Rating: 0 out of 5 stars0 ratingsRF Analog Impairments Modeling for Communication Systems Simulation: Application to OFDM-based Transceivers Rating: 0 out of 5 stars0 ratingsDigital Photography Essentials Rating: 4 out of 5 stars4/5Digital Signal Processing for Audio Applications: Volume 2 - Code Rating: 5 out of 5 stars5/5Digital Image Processing: Fundamentals and Applications Rating: 0 out of 5 stars0 ratingsColor Management System: Optimizing Visual Perception in Digital Environments Rating: 0 out of 5 stars0 ratingsSignal Processing and Integrated Circuits Rating: 0 out of 5 stars0 ratingsHigh Dynamic Range Rendering: Unlocking the Visual Spectrum: Advanced Techniques in Computer Vision Rating: 0 out of 5 stars0 ratingsVolume Rendering: Exploring Visual Realism in Computer Vision Rating: 0 out of 5 stars0 ratingsFundamentals of Communication Systems Rating: 0 out of 5 stars0 ratingsDMR For Beginners: Using the Tytera MD-380: Amateur Radio for Beginners, #3 Rating: 5 out of 5 stars5/5Color Mapping: Exploring Visual Perception and Analysis in Computer Vision Rating: 0 out of 5 stars0 ratingsAdaptive Filter: Enhancing Computer Vision Through Adaptive Filtering Rating: 0 out of 5 stars0 ratingsCamera Sensors: Four Components to Image Quality Rating: 0 out of 5 stars0 ratingsPodcast Audio: Make Your Show Sound As Good As Your Content Rating: 0 out of 5 stars0 ratingsAN IMPROVED TECHNIQUE FOR MIX NOISE AND BLURRING REMOVAL IN DIGITAL IMAGES Rating: 0 out of 5 stars0 ratingsSimulation of Digital Communication Systems Using Matlab Rating: 4 out of 5 stars4/5Pro Tools For Breakfast: Get Started Guide For The Most Used Software In Recording Studios: Stefano Tumiati, #2 Rating: 0 out of 5 stars0 ratingsImage Compression: Efficient Techniques for Visual Data Optimization Rating: 0 out of 5 stars0 ratingsAnisotropic Filtering: Unraveling Visual Complexity in Computer Vision Rating: 0 out of 5 stars0 ratingsColour Banding: Exploring the Depths of Computer Vision: Unraveling the Mystery of Colour Banding Rating: 0 out of 5 stars0 ratingsVibration-based Condition Monitoring: Industrial, Aerospace and Automotive Applications Rating: 0 out of 5 stars0 ratingsTone Mapping: Tone Mapping: Illuminating Perspectives in Computer Vision Rating: 0 out of 5 stars0 ratingsNoise and Vibration Analysis: Signal Analysis and Experimental Procedures Rating: 5 out of 5 stars5/5Trunking Scanners for Beginners Using FreeSCAN and the Uniden TrunkTracker: Amateur Radio for Beginners, #8 Rating: 0 out of 5 stars0 ratings
Intelligence (AI) & Semantics For You
Deep Utopia: Life and Meaning in a Solved World Rating: 0 out of 5 stars0 ratingsMastering ChatGPT: 21 Prompts Templates for Effortless Writing Rating: 4 out of 5 stars4/5Creating Online Courses with ChatGPT | A Step-by-Step Guide with Prompt Templates Rating: 4 out of 5 stars4/5The Alignment Problem: How Can Machines Learn Human Values? Rating: 4 out of 5 stars4/5Algorithms to Live By: The Computer Science of Human Decisions Rating: 4 out of 5 stars4/5Advances in Financial Machine Learning Rating: 5 out of 5 stars5/5The Secrets of ChatGPT Prompt Engineering for Non-Developers Rating: 5 out of 5 stars5/5Midjourney Mastery - The Ultimate Handbook of Prompts Rating: 5 out of 5 stars5/5Hands-On System Design: Learn System Design, Scaling Applications, Software Development Design Patterns with Real Use-Cases Rating: 0 out of 5 stars0 ratingsPython for Beginners: A Crash Course to Learn Python Programming in 1 Week Rating: 0 out of 5 stars0 ratingsScary Smart: The Future of Artificial Intelligence and How You Can Save Our World Rating: 4 out of 5 stars4/5Machine Learning: Adaptive Behaviour Through Experience: Thinking Machines Rating: 4 out of 5 stars4/5Artificial Intelligence: A Guide for Thinking Humans Rating: 4 out of 5 stars4/5Deep Learning with PyTorch Rating: 5 out of 5 stars5/5Superagency: What Could Possibly Go Right with Our AI Future Rating: 0 out of 5 stars0 ratingsThe Age of AI: How Artificial Intelligence Will Transform Our World Rating: 0 out of 5 stars0 ratingsTensorFlow in 1 Day: Make your own Neural Network Rating: 4 out of 5 stars4/5Machine Learning Interview Questions Rating: 5 out of 5 stars5/5Generative AI Tools for Developers: A Practical Guide Rating: 0 out of 5 stars0 ratingsChatGPT: The Future of Intelligent Conversation Rating: 4 out of 5 stars4/5Still Room for Humans: Career Planning in an AI World Rating: 0 out of 5 stars0 ratingsThe Creativity Code: How AI is learning to write, paint and think Rating: 4 out of 5 stars4/5JAVA for Beginner's Crash Course: Java for Beginners Guide to Program Java, jQuery, & Java Programming Rating: 4 out of 5 stars4/5Dancing with Qubits: How quantum computing works and how it can change the world Rating: 5 out of 5 stars5/5The Algorithm: How AI Can Hijack Your Career and Steal Your Future Rating: 0 out of 5 stars0 ratingsGeospatial Data Engineering Rating: 0 out of 5 stars0 ratings
Reviews for Dither
0 ratings0 reviews
Book preview
Dither - Fouad Sabry
Chapter 1: Dither
Dither is a deliberate sort of noise used to randomize quantization mistake, hence preventing large-scale patterns such as color banding in photographs. Dither is commonly employed in the processing of digital audio and video data, and is frequently one of the final steps in mastering audio for a CD.
Commonly, dither is used to transform a grayscale image to black-and-white such that the density of black dots in the resultant image approximates the average gray level of the original image.
…[O]ne of the earliest [applications] of dither came in World War II.
Bombers utilized mechanical computers for navigation and calculating bomb trajectory.
Curiously, These computers (boxes containing hundreds of gears and cogs) performed more precisely on board the airplane, and less solidly established.
Engineers noticed that the aircraft's vibration minimized the mistake caused by sticky moving parts.
Instead of moving in quick jerks, you should move smoothly, They moved with greater consistency.
Miniature vibrating motors were included into the computers, The term dither
was derived from the Middle English verb didderen,
which means to shake.
Today, When a mechanical meter is tapped to improve its accuracy, You're using dither, Modern dictionaries define dither as a profoundly anxious state of mind, confused, or agitated condition.
In minuscule amounts, Dither effectively makes a digital system more analog in the positive meaning of the word.
— Ken Pohlmann, Principles of Digital Audio
Shortly after World War II, the term dither was published in literature on analog computation and hydraulically driven weaponry.
Dither is applied in numerous fields that include digital processing and analysis. These applications include digital audio, digital video, digital photography, seismology, radar, and weather forecasting systems that require digital signal processing.
Quantification produces mistake. If this inaccuracy is associated with the signal, then the outcome may be cyclical or predictable. In some domains, particularly those in which the receptor is sensitive to such distortions, cyclical mistakes result in unwanted artifacts. Introducing dither in these areas transforms the error into random noise. The audio industry is a prime illustration of this. The human ear acts similarly to a Fourier transform in that it detects distinct frequencies.
In an analog system, the signal is continuous, whereas in a PCM digital system, the signal's amplitude is confined to one of a fixed set of values or numbers. This method is known as quantization. Each coded value is a discrete step; if a signal is quantized without dither, there will be quantization distortion associated with the original input signal... In order to prevent this, the signal is dithered,
a procedure that mathematically eliminates harmonics and other highly undesirable distortions and replaces them with a constant, fixed level of noise.
During the production process, a larger number of bits are often used to represent each sample; this must be reduced to 16 bits in order to create a compact disc.
There are numerous ways to accomplish this. One can, for instance, discard the extra bits; this is known as truncation. Additionally, one can round surplus bits to the nearest value. Each of these strategies, however, produces faults that are predictable and calculable. Dithering substitutes these inaccuracies with a continuous, fixed level of noise.
6-bit truncation audio sample examples
16-bit sinusoid
reduced to six bits
reduced to 6 bits
Having trouble playing these files? See media support.
Take, for instance, a waveform with the following values::
1 2 3 4 5 6 7 8
If the waveform is diminished by 20%, then the following values result::
0.8 1.6 2.4 3.2 4.0 4.8 5.6 6.4
If these values are shortened, the resulting data are as follows::
0 1 2 3 4 4 5 6
If these values are rounded instead, the following data result::
1 2 2 3 4 5 6 6
The technique of decreasing the amplitude of any original waveform by 20 percent results in consistent mistakes. Consider a sine wave that, for a portion, meets the aforementioned parameters. As shown in the above example, every time the sine wave's value reached 3.2, the shortened result would be wrong by 0.2. Whenever the value of the sine wave reached 4.0, there would be no error because the shortened result would be off by 0.0, as illustrated previously. Throughout the cycle of the sine wave, the magnitude of the error varies regularly and repeatedly. This mistake specifically reveals itself as distortion. What the ear perceives as distortion is the additional information at discrete frequencies resulting from a recurring quantization error.
A potential approach would be to round the two-digit number (for example, 4.8) in either direction. It could be rounded to five one time and then to four the next. This would make the long-term average 4.5 rather than 4, bringing the value closer to its true value over time. However, this still results in determinable (though more intricate) error. Every other time the value 4.8 is encountered, the result is a 0.2-percent error, and the other times, the error is 0.8. This still results in a quantified, repeated error.
An alternative option would be to round 4.8 so that four out of five times it is rounded up to 5, and the fifth time it is rounded down to 4. Long term, this would average out to exactly 4.8. Unfortunately, it still results in recurring and predictable faults, and these flaws continue to show as audible distortion.
This results in the solution of dithering. Instead of rounding up or down in a predictable, repetitive fashion, it is possible to round up or down randomly. If a series of random numbers between 0.0 and 0.9 (e.g., 0.6, 0.1, 0.3, 0.6, 0.9, etc.) are created and added to 4.8, two out of ten times the result will truncate back to 4 (if 0.0 or 0.1 are added to 4.8), and eight out of ten times the result will truncate to 5. Each condition has a 20% probability of being rounded to 4 and an 80% chance of being rounded to 5. The long-term average of these results is 4.8, and their quantization error is random noise. This noise is less obnoxious to the ear than the measurable distortion produced by other solutions.
Prior to quantization or re-quantization, dither is introduced to decouple quantization noise from the input signal and prevent nonlinear behavior (distortion). Quantization with a lower bit depth necessitates more dither. The technique still results in distortion, but the distortion is random, therefore the resulting noise is essentially decorrelated from the desired signal.
Lipshitz and Vanderkooi demonstrated in a seminal study published in the AES Journal that different noise types with distinct probability density functions (PDFs) react differently when employed as dither signals, Dither can be utilized to break up periodic limit cycles, a typical issue with digital filters. Typically, random noise is less annoying than the harmonic tones produced by limit cycles.
Function of rectangular probability density (RPDF) Any value within the defined range has the same likelihood of occuring within dither noise.
Function of triangular probability density (TPDF) Dither noise has a triangle distribution; the chance of occurrence is greatest for values in the middle of the range. It is possible to obtain triangular distribution by combining two separate RPDF sources.
The Gaussian PDF distribution has a normal distribution. This bell-shaped or Gaussian curve is characteristic of dither generated by analog sources such as microphone preamplifiers. If a recording's bit depth is sufficient, the preamplifier noise will be adequate to dither the recording.
Noise shaping is a filtering procedure that modifies the spectral energy of quantization error, often to deemphasize frequencies to which the ear is most sensitive or to entirely separate signal and noise bands. Whether dither is inserted inside or outside of the feedback loop of the noise shaper affects its final spectrum if it is utilized. If within, the dither is considered as part of the error signal and formed in conjunction with the real