Dithering and Raster Graphics Dithering Dithering Methods (Digital

Total Page:16

File Type:pdf, Size:1020Kb

Dithering and Raster Graphics Dithering Dithering Methods (Digital Dithering missing colors are simulated by 1st color mixing existing colors Dithering and Raster Graphics Special Aspects of Raster Images nd 2 color missing color Eduard Gröller, Thomas Theußl 2 /54 Dithering Methods Dithering in Printing Industry (Digital Halftoning) ● newspapers ■ threshold dithering black ink on light paper, rasterization of the ◆ ordered dither images enables also grey levels, equal point ◆ stochastic dither density everywhere, variable size ◆ dot diffusion ● color printing ◆ .... every primary color is rasterized separately, ■ error diffusion dithering different printing angles ensure unbiased results (Floyd-Steinberg) Eduard Gröller, Thomas Theußl 3 /54 Eduard Gröller, Thomas Theußl 4 /54 Threshold Dithering Constant Threshold Dithering every pixel is compared to a threshold t: sample image threshold values result p < t a 1 7 6 5 4.5 4.5 4.5 4.5 0 9 9 9 p > t b 1 6 5 4 4.5 4.5 4.5 4.5 0 9 9 0 t can be: 1 5 4 3 4.5 4.5 4.5 4.5 0 9 0 0 ● equal everywhere (e.g. (b–a)/2, 1 4 2 1 4.5 4.5 4.5 4.5 0 0 0 0 arbitrary value, mean value, median, ...) ● location dependent (values between 0 and 9) (defined locally or globally) corresponds to rounding Eduard Gröller, Thomas Theußl 5 /54 Eduard Gröller, Thomas Theußl 6 /54 Principle of Dithering Principle of Dithering (2) available values a, b a x b missing value x between a and b shall be simulated by mixing a-pixels and b-pixels x - a b - x b - a a x b to produce color value x there have to be: 100 * x – a % b-pixels b – a 100 * b – x % a-pixels b – a Eduard Gröller, Thomas Theußl 7 /54 Eduard Gröller, Thomas Theußl 8 /54 Dithering a Uniform Area Dithering a Uniform Area (2) for a uniform area regular application of This can be done by using a different threshold for every pixel (using the interval borders) this pattern will produce 1/8 5/8 1/8 5/8 1/8 5/8 this grey tone 0 1/4 1/2 3/4 1 7/8 3/8 7/8 3/8 7/8 ... interval borders 1/8 3/8 5/8 7/8 1/8 5/8 1/8 = "Threshold Matrix" all grey levels in this interval ... will be mapped to 1/4 Eduard Gröller, Thomas Theußl 9 /54 Eduard Gröller, Thomas Theußl 10 /54 Threshold Matrix Dither Matrix Example distances between interval borders are equal, dither matrix ➞ threshold matrix therefore it suffices to define the sequence of the pixel values in the matrix: 15 5 7 7 2 3 18 18 18 1/8 5/8 0 2 0 4 8 1 9 17 instead of only 18 18 18 5 6 1 11 13 3 7/8 3/8 3 1 18 18 18 i.e. for an nxn matrix: values ∈ [0,n2–1] 2k+1 2k+1 value k corresponds to threshold value: value k corresponds to threshold value: 2n2 2n2 Eduard Gröller, Thomas Theußl 11 /54 Eduard Gröller, Thomas Theußl 12 /54 Threshold Matrix Dithering Example Generation of Threshold Matrices (1) recursive method: 4 copies of smaller matrices sample image threshold values result 0 2 1 7 6 5 1.1 5.6 1.1 5.6 0 9 9 0 ... k= 3 1 4k+0 4k+2 1 6 5 4 7.9 3.4 7.9 3.4 0 9 0 9 0(1)n2-1 1 5 4 3 1.1 5.6 1.1 5.6 0 0 9 0 1 4 7.9 3.4 7.9 3.4 9 0 0 2 1 0 example: 0 8 2 10 4k+3 4k+1 12 4 14 6 (values between 0 and 9) 3 11 1 9 15 7 13 5 Eduard Gröller, Thomas Theußl 13 /54 Eduard Gröller, Thomas Theußl 14 /54 Generation of Threshold Matrices (2) Dithering between Grey Levels direct method: use of magic squares a x b threshold values have to lie between a and b: example 0 14 3 13 11 5 8 6 k a + 2k+1 ⋅ (b-a) 12 2 15 1 2n2 7 9 4 10 calculation is done separately for every pixel magic squares produce (not once for a dithering matrix) fewer diagonal stripes Eduard Gröller, Thomas Theußl 15 /54 Eduard Gröller, Thomas Theußl 16 /54 Grey Level Dithering Example Dot Diffusion Dithering 4 grey values are available: 0, 3, 6, 9 0 2 ordering of the threshold values generates larger dot areas dither matrix: 3 1 example: sample image threshold values result 1 7 6 5 0.4 7.9 3.4 4.9 3 6 6 6 11 16 12 8 4 5 15 17 13 3 0 1 1 6 5 4 2.6 3.4 5.6 4.1 0 6 3 3 10 14 9 7 2 6 1 5 4 3 0.4 4.9 3.4 1.9 3 6 6 3 1 4 2 1 2.6 4.1 2.6 1.1 0 3 0 0 simulates traditional printing techniques for high resolution devices Eduard Gröller, Thomas Theuß(l values between 0 and 9) 17 /54 Eduard Gröller, Thomas Theußl 18 /54 Stochastic Dithering? Forced Random Matrix Dithering improved "random" matrices very good results use of random numbers as threshold values method: insert threshold values one by one into matrix, always use the position farthest away from all ■ expectation value of total error = 0 ¡ previous points ¤ ¦ ■ no regular artificial patterns possible £ r p ¥ − ¢ repulsive force field: f(r) = e s unfortunately: very bad results! (due to bad distribution of random numbers) precalculate large threshold matrices: 300x300 very good results! Eduard Gröller, Thomas Theußl 19 /54 Eduard Gröller, Thomas Theußl 20 /54 Error Diffusion Dithering Simplest Error Diffusion Dithering (Floyd-Steinberg) pixel line ... correct value k1 k2 k3 k4 k5 ... the rounding error of every pixel rounded value r1 r2 r3 r4 r5 ... is propagated to neighbor pixels and compensated there r1 := round (k1) error1 := r1 – k1 r2 := round (k2 – error1) error := r – (k – error ) variations: which neighbor pixels 2 2 2 1 ... are affected? ri := round (ki – errori–1) errori := ri – (ki – errori–1) Eduard Gröller, Thomas Theußl 21 /54 Eduard Gröller, Thomas Theußl 22 /54 Error Diffusion Dithering Example Diffusion Direction Variations to gain better results, the error is distributed to example: the values 0, 3, 6, 9 are available several neighbors (with weights) sum of all weights = 1 k: 1 1 1 2 3 4 7 1 5 ... 1 x x 7 r: 0 3 0 3 3 3 6 3 3 ... often used 16 3 5 1 f: -1 1 0 1 1 0 -1 1 -1 ... 1 x 7 5 weighting x 48 3 5 7 5 3 distributions: 1 ri := round (ki - fi-1) fi := ri - ki + fi-1 x x 1 1 3 5 3 1 2 1 1 x 8 4 x 42 2 4 8 4 2 1 2 4 2 1 Eduard Gröller, Thomas Theußl 23 /54 Eduard Gröller, Thomas Theußl 24 /54 Error Diffusion Dithering Example Serpentine Method example: the values 0, 3, 6, 9 artificial stripes can be reduced drastically by are available 1 x x 1 processing the scanlines in serpentine order error distribution: 2 1 sample image error result instead of "normal" now in "serpentines" 1 7 6 5 -1 1.5 .75 1.37 0 9 6 6 1 6 5 4 1.5 1.5 -.87 -.75 3 6 3 3 1 5 4 3 -.25 -1.37 .87 .06 0 3 6 3 ... ... 1 4 2 1 -1.12 .75 -1.12 1.47 0 6 0 3 no additional memory necessary (values between 0 and 9) Eduard Gröller, Thomas Theußl 25 /54 Eduard Gröller, Thomas Theußl 26 /54 Raster Conversion Raster Conversion of Lines lines should appear straight converting primitives (lines etc.) into pixels lines should appear uniformly bright very frequent operations, therefore necessary: ■ efficiency lightness should be ■ possibility to implement in hardware independent of direction endpoints should be "exact" Eduard Gröller, Thomas Theußl 27 /54 Eduard Gröller, Thomas Theußl 28 /54 ➞ Symm. DDA for Line (x1,y1) (x2,y2) Simple DDA ∆ ∆ i i i-1 symmetric DDA produces lines of variable ( x, y) := ( (x2,y2) – (x1,y1) ) / 2 2 < length<2 breadth, but if ∆x and ∆y are chosen such that draw max(|∆x|, |∆y|) = 1 (rd(x1) / rd(y1)) only 1 pixel per unit in the longer direction ∆ ∆ (x1,y1) := (x1+ x,y1+ y) ∆ YES problem: requires a real division x2 < x1+ x draw NO (rd(x2) / rd(y2)) NO rd(x –∆x)° rd(x ) solution: Bresenham Algorithm 1 ∆ 1 ORrd(y1– y)° rd(y1) image equal to simple DDA, but no division YES STOP Eduard Gröller, Thomas Theußl 29 /54 Eduard Gröller, Thomas Theußl 30 /54 Comparision Symmetric - Simple DDA Raster Conversion of Lines (Bresenham's Line Algorithm) T D } dy H y -y < y -y S P S D S T D yD-yS > yT-yD T symmetric DDA simple DDA only for lines with angle 45º other lines by mirroring/rotating with 90º/180º... Eduard Gröller, Thomas Theußl 31 /54 Eduard Gröller, Thomas Theußl 32 /54 Some Bresenham Mathematics Bresenham's Line Algorithm (1) ⇔ ys:=y1; yD – yS < yT – yD yD – yH < 0 y – y > y – y ⇔ y – y > 0 d:=-0.5; {d=yD–yH} D S T D D H dy:=(y2-y1)/(x2-x1); FOR xs:=x1 TO x2 DO if y – y < 0 ¡ y , y do not change, BEGIN SetPixel(xs,ys); D H S T d:=d+dy; if y – y > 0 ¡ y := y +1, y := y +1 D H S S T T IF d>0 in every case y := y + dy THEN BEGIN ys:=ys+1; D D d:=d-1 {because yH:=yH+1} and (xS/yS) are drawn END END let d = yD – yH decision variable Eduard Gröller, Thomas Theußl 33 /54 Eduard Gröller, Thomas Theußl 34 /54 Bresenham's Line Algorithm (2) Raster Conversion of Circles (Bresenham's Circle Algorithm) ys:=y1; e:=-(x2-x1)div 2; {d*(x2-x1)} utilize threefold symmetry! de:=(y2-y1); {dy*(x2-x1)} FOR xs:=x1 TO x2 DO BEGIN SetPixel(xs,ys); e:=e+de; only one eighth has IF e>0 to be calculated THEN BEGIN ys:=ys+1; e:=e-(x2-x1) END END only integers! only addition, subtraction, shift! Eduard Gröller, Thomas Theußl 35 /54 Eduard Gröller, Thomas Theußl 36 /54 Bresenham's Circle Algorithm Bresenham's Circle Algorithm ⇔ P T yD–yS > yT–yD H inside the circle D 2 2 2 H that is if xH +yH < r 2 2 2 or if f(xH,yH) = xH +yH – r < 0 S ¢ ¢ ¢ f(xH,yH) < 0 ¢ T ¢ ¢ ¢ f(x ,y ) > 0 ¢ S criterion: H H ¡ yD-yS > yT-yD T yD-yS < yT-yD S d = "decision variable" 1 i.e.
Recommended publications
  • '" )Timizing Images ) ~I
    k ' Anyone wlio linn IIVIII IIMd tliu Wub hns li kely 11H I11tl liy ulow lontlin g Wob sites. It's ', been fn1 11 the ft 1111 cl nlli{lll n1 mlllllll wh111 o th o fil o si of t/11 1 f /11tpli1 LII lt ill llliltl lltt 111t n huw fnst Sllll/ 111 111 11 I 1111 VIIIW 11 111 111 , Mllki l1(1 111't1 11 11 7 W11 1! 1/lllpliiL" 111 llll lllillnti lltlllllltll>ll. 1 l iitllllllllnl 111111 '" )timizing Images y, / l1111 11 11 11111' Lil'J C:ii') I1111 Vi llll ihllillnn l 111 1111 / 11 / ~il/ 11/ y 11111111 In l1 nlp Yll ll IIIIIMIIII IIII I/ 1 11111 I Optimizing JPEGs I 1 I Selective JPEG Optimization with Alpha Channels I l 11 tp111 11 1111 II 1111 111 I 1111 !11 11 1 IIIII nlllll I Optimizing GIFs I Choosing the Right Color Reduction Palette I lljllillll/11 111111 Ill II lillllljliiiX 111 111/r ll I lilnl illllli l 'lilltlllllllip (;~,:; 111 111 I Reducing Colors I Locking Colors I Selective G/F Optimization I illtnrlln lll ll" lllt l" "'ll" i ~IIIH i y C}l •; I Previewing Images in a Web Browser I llnt11tl. II 111 111/ M ullt.li 11 n tlttlmt, 1111111' I Optimizing G/Fs and JPEGs in lmageReady CS2 I IlVII filllll/11111, /111 t/11/l lh, }/ '/ CJ, lind ) If unlnmdtltl In yn tl, /hoy won't chap_ OJ 11111 bo lo1 ""'II· II yo 11'1 11 n pw nt oplimi1 PCS2Web HOT CD-ROM I ing Wol1 IJIIipluc;u, you'll bo impronml d by th o llllpOI'b optimiw ti on cupnbilitlos in ,,, Photoshop CS7 und lmng oRondy CS?.
    [Show full text]
  • Dithering and Quantization of Audio and Image
    Dithering and Quantization of audio and image Maciej Lipiński - Ext 06135 1. Introduction This project is going to focus on issue of dithering. The main aim of assignment was to develop a program to quantize images and audio signals, which should add noise and to measure mean square errors, comparing the quality of the quantized images with and without noise. The program realizes fallowing: - quantize an image or audio signal using n levels (defined by the user); - measure the MSE (Mean Square Error) between the original and the quantized signals; - add uniform noise in [-d/2,d/2], where d is the quantization step size, using n levels; - quantify the signal (image or audio) after adding the noise, using n levels (user defined); - measure the MSE by comparing the noise-quantized signal with the original; - compare results. The program shows graphic result, presenting original image/audio, quantized image/audio and quantized with dither image/audio. It calculates and displays the values of MSE – mean square error. 2. DITHERING Dither is a form of noise, “erroneous” signal or data which is intentionally added to sample data for the purpose of minimizing quantization error. It is utilized in many different fields where digital processing is used, such as digital audio and images. The quantization and re-quantization of digital data yields error. If that error is repeating and correlated to the signal, the error that results is repeating. In some fields, especially where the receptor is sensitive to such artifacts, cyclical errors yield undesirable artifacts. In these fields dither is helpful to result in less determinable distortions.
    [Show full text]
  • Determining the Need for Dither When Re-Quantizing a 1-D Signal Carlos Fabián Benítez-Quiroz and Shawn D
    µ ˆ q Determining the Need for Dither when Re-Quantizing a 1-D Signal Carlos Fabián Benítez-Quiroz and Shawn D. Hunt Electrical and Computer Engineering Department University of Puerto Rico, Mayagüez Campus ABSTRACT Test In The Frequency Domain Another test signal was used real audio with 24 bit precision and a 44.1 kHz sampling rate. The tests were This poster presents novel methods for determining if dither applied and the percentage of accepted frames is shown in The test in frequency is based on the Fourier transform of the sample figure 3 is needed when reducing the bit depth of a one dimensional autocorrelation. The statistic used is the square of the norm of the DFT digital signal. These are statistical based methods in both the multiplied by scale factor. This is also summarized in Table 1. time and frequency domains, and are based on determining Experiments were also run after adding dither. Because of whether the quantization noise with no dither added is white. Table 1. Summary of the statistics used in the tests. the added dither, all tests should reveal that no additional If this is the case, then no undesired harmonics are added in dither is needed. For the tests, segments from the previous the quantization or re-quantization process. Experiments Test Domain Estimator used Distribution Summary of experiment that are known to need dither are dithered and showing the effectiveness of the methods with both synthetic of Estimator Method these used as the test signal. and real one dimensional signals are presented. Box-Pierce Time Say the quantization Test m error is white when Introduction = 2 χ2 Q N r Q ~ m Qbp is greater than a bp k =1 k bp Digital signals have become widespread, and are favored in set threshold.
    [Show full text]
  • The Theory of Dithered Quantization
    The Theory of Dithered Quantization by Robert Alexander Wannamaker A thesis presented to the University of Waterloo in fulfilment of the thesis requirement for the degree of Doctor of Philosophy in Applied Mathematics Waterloo, Ontario, Canada, 2003 c Robert Alexander Wannamaker 2003 I hereby declare that I am the sole author of this thesis. I authorize the University of Waterloo to lend this thesis to other institutions or individuals for the purpose of scholarly research. I further authorize the University of Waterloo to reproduce this thesis by pho- tocopying or by other means, in total or in part, at the request of other institutions or individuals for the purpose of scholarly research. ii The University of Waterloo requires the signatures of all persons using or pho- tocopying this thesis. Please sign below, and give address and date. iii Abstract A detailed mathematical model is presented for the analysis of multibit quantizing systems. Dithering is examined as a means for eliminating signal-dependent quanti- zation errors, and subtractive and non-subtractive dithered systems are thoroughly explored within the established theoretical framework. Of primary interest are the statistical interdependences of signals in dithered systems and the spectral proper- ties of the total error produced by such systems. Regarding dithered systems, many topics of practical interest are explored. These include the use of spectrally shaped dithers, dither in noise-shaping systems, the efficient generation of multi-channel dithers, and the uses of discrete-valued dither signals. iv Acknowledgements I would like to thank my supervisor, Dr. Stanley P. Lipshitz, for giving me the opportunity to pursue this research and for the valuable guidance which he has provided throughout my time with the Audio Research Group.
    [Show full text]
  • Digital Dither: Decreasing Round-Off Errors in Digital Signal Processing
    Digital Dither: Decreasing Round-off Errors in Digital Signal Processing Peter Csordas ,Andras Mersich, Istvan Kollar Budapest University of Technology and Economics Department of Measurement and Information Systems [email protected] , ma35 1 @hszk.bme.hu , [email protected] mt- Difhering is a known method for increasing the after each arithmetic operation (round- off error). The precision of analog-to-digital conversion. In this paper the basic situation is quite different from the above one, since the result problems of quantization and the principles of analog dithering of any arithmetic operation is already discrete in amplitude, are described. The benefits of dithering are demonstrated through even its distribution is usually non-standard. Therefore, practical applications. The possibility and the conditions of using quantization of quantized signals needs to be analyzed. This digital dither in practical applications are eramined. The aim is to cannot be bound to a certain processing unit in the DSP, but find an optimal digifal dither to minimize the round-offerror of digilal signal processing. The effecfs on bias and variance using happens simply during operation and/or during storage of the uniform and triangularly distributed digital dithers are result into memory cells. Moreover, since the signal to be investigated and compared Some DSP iniplenientations are quantized is in digital form, only digital dither can be applied. discussed. and only if additional bits are available to make it possible to use. The method has already been discussed for example in Kevwords - digital dither, round-off error, bias. variance [4], but exact analysis has not been published yet.
    [Show full text]
  • Sonically Optimized Noise Shaping Techniques
    Sonically Optimized Noise Shaping Techniques Second edition Alexey Lukin [email protected] 2002 In this article we compare different commercially available noise shaping algo- rithms and introduce a new highly optimized frequency response curve for noise shap- ing filter implemented in our ExtraBit Mastering Processor. Contents INTRODUCTION ......................................................................................................................... 2 TESTED NOISE SHAPERS ......................................................................................................... 2 CRITERIONS OF COMPARISON............................................................................................... 3 RESULTS...................................................................................................................................... 4 NOISE STATISTICS & PERCEIVED LOUDNESS .............................................................................. 4 NOISE SPECTRUMS ..................................................................................................................... 5 No noise shaping (TPDF dithering)..................................................................................... 5 Cool Edit (C1 curve) ............................................................................................................5 Cool Edit (C3 curve) ............................................................................................................6 POW-R (pow-r1 mode)........................................................................................................
    [Show full text]
  • Bitmap (Raster) Images
    Bitmap (Raster) Images CO2016 Multimedia and Computer Graphics Roy Crole: Bitmap Images (CO2016, 2014/2015) – p. 1 Overview of Lectures on Images Part I: Image Transformations Examples of images; key attributes/properties. The standard computer representations of color. Coordinate Geometry: transforming positions. Position Transformation in Java. And/Or Bit Logic: transforming Color. Color Transformation in Java. Part II: Image Dithering Basic Dithering. Expansive Dithering. Ordered Dithering. Example Programs. Roy Crole: Bitmap Images (CO2016, 2014/2015) – p. 2 Examples of Images Roy Crole: Bitmap Images (CO2016, 2014/2015) – p. 3 Examples of Images Roy Crole: Bitmap Images (CO2016, 2014/2015) – p. 3 Examples of Images Roy Crole: Bitmap Images (CO2016, 2014/2015) – p. 3 Attributes of Images An image is a (finite, 2-dimensional) array of colors c. The (x,y) position, an image coordinate, along with its color, is a pixel (eg p = ((x,y),c)). xmax + 1 is the width and ymax + 1 is the height. We study these types of images: 1-bit 21 colors: black and white; c 0, 1 ∈ { } 8-bit grayscale 28 colors: grays; c 0, 1, 2,..., 255 ∈ { } 24-bit color (RGB) 224 colors: see later on ... others . Roy Crole: Bitmap Images (CO2016, 2014/2015) – p. 4 1-Bit Images A pixel in a 1-bit image has a color selected from one of 21, that is, two “colors”, c 0, 1 . Typically 0 indicates black and 1 white. ∈ { } The (idealised!) memory size of a 1-bit image is (height width)/8 bytes ∗ Roy Crole: Bitmap Images (CO2016, 2014/2015) – p. 5 8-Bit Grayscale Images A pixel in an 8-bit (grayscale) image has a color selected from one of 28 = 256 colors (which denote shades of gray).
    [Show full text]
  • Reducing ADC Quantization Noise
    print | close Reducing ADC Quantization Noise Microwaves and RF Richard Lyons Randy Yates Fri, 2005­06­17 (All day) Two techniques, oversampling and dithering, have gained wide acceptance in improving the noise performance of commercial analog­to­digital converters. Analog­to­digital converters (ADCs) provide the vital transformation of analog signals into digital code in many systems. They perform amplitude quantization of an analog input signal into binary output words of finite length, normally in the range of 6 to 18 b, an inherently nonlinear process. This nonlinearity manifests itself as wideband noise in the ADC's binary output, called quantization noise, limiting an ADC's dynamic range. This article describes the two most popular methods for improving the quantization noise performance in practical ADC applications: oversampling and dithering. Related Finding Ways To Reduce Filter Size Matching An ADC To A Transformer Tunable Oscillators Aim At Reduced Phase Noise Large­Signal Approach Yields Low­Noise VHF/UHF Oscillators To understand quantization noise reduction methods, first recall that the signal­to­quantization­noise ratio, in dB, of an ideal N­bit ADC is SNRQ = 6.02N + 4.77 + 20log10 (LF) dB, where: LF = the loading factor measure of the ADC's input analog voltage level. (A derivation of SNRQ is provided in ref. 1.) Parameter LF is defined as the analog input root­mean­square (RMS) voltage divided by the ADC's peak input voltage. When an ADC's analog input is a sinusoid driven to the converter's full­scale voltage, LF = 0.707. In that case, the last term in the SNRQ equation becomes −3 dB and the ADC's maximum output­ signal­to­noise ratio is SNRQ­max = 6.02N + 4.77 −3 = 6.02N + 1.77 dB.
    [Show full text]
  • Rotated Dispersed Dither: a New Technique for Digital Halftoning
    SIGGRAPH'94 COMPUTER GRAPHICS PROCEEDINGS, Annual Conference Series, 1994 Rotated Dispersed Dither: a New Technique for Digital Halftoning Victor Ostromoukhov, Roger D. Hersch, Isaac Amidror Swiss Federal Institute of Technology (EPFL) CH-1015 Lausanne, Switzerland http://lspwww.epfl.ch/~victor ABSTRACT In section 2, we give a brief survey of the main halftoning techniques and show their respective advantages and drawbacks Rotated dispersed-dot dither is proposed as a new dither technique in terms of computation complexity, tone reproduction behavior for digital halftoning. It is based on the discrete one-to-one rota- and detail resolution. In section 3, the proposed rotated dither tion of a Bayer dispersed-dot dither array. Discrete rotation has the method is presented. It is based on a one-to-one discrete rotation effect of rotating and splitting a significant part of the frequency im- of a dither tile made of replicated Bayer dither arrays. In section 4, pulses present in Bayer'shalftone arrays into many low-amplitude we compare the proposed rotated dither method with error diffusion distributed impulses. The halftone patterns produced by the ro- and with Bayer'sdispersed-dot dither method by showing halftoned tated dither method therefore incorporate fewer disturbing artifacts images. In section 5, we try to explain why the proposed rotated than the horizontal and vertical components present in most of dither algorithm generates globally less perceptible artifacts than Bayer's halftone patterns. In grayscale wedges produced by ro- Bayer's by analyzing the frequencies produced by the halftoning tated dither, texture changes at consecutive gray levels are much patterns at different gray levels.
    [Show full text]
  • Digital Color Halftoning with Generalized Error Diffusion and Multichannel Green-Noise Masks Daniel L
    IEEE TRANSACTIONS ON IMAGE PROCESSING, VOL. 9, NO. 5, MAY 2000 923 Digital Color Halftoning with Generalized Error Diffusion and Multichannel Green-Noise Masks Daniel L. Lau, Gonzalo R. Arce, Senior Member, IEEE, and Neal C. Gallagher, Fellow, IEEE Abstract—In this paper, we introduce two novel techniques for The problems of moiré and screen angles are avoided in digital color halftoning with green-noise—stochastic dither pat- frequency modulated halftoning where continuous tone is terns generated by homogeneously distributing minority pixel clus- produced by varying the distance between printed dots and ters. The first technique employs error diffusion with output-de- pendent feedback where, unlike monochrome image halftoning, an not varying the size. Typically, FM halftones are produced interference term is added such that the overlapping of pixels of by the process of error diffusion which creates a stochastic different colors can be regulated for increased color control. The arrangement of dots. Besides avoiding moiré, FM halftoning, second technique uses a green-noise mask, a dither array designed by isolating minority pixels, maximizes the spatial resolution to create green-noise halftone patterns, which has been constructed of the printed image relative to the printer [2], but this distri- to also regulate the overlapping of different colored pixels. As is the case with monochrome image halftoning, both techniques are tun- bution also maximizes the perimeter-to-area ratio of printed able, allowing for large clusters in printers with high dot-gain char- dots [3]—making FM halftones more susceptible to printer acteristics, and small clusters in printers with low dot-gain charac- distortions such as dot-gain, the increase in size of a printed teristics.
    [Show full text]
  • Methods for Generating Blue-Noise Dither Matrices for Digital Halftoning
    Methods for Generating Blue-Noise Dither Matrices for Digital Halftoning Kevin E. Spaulding, Rodney L. Miller and Jay Schildkraut Eastman Kodak Company Imaging Research and Advanced Development, Rochester, New York 14650 E-mail: [email protected] Abstract the input value and compared to a fixed threshold, in- stead of using the dither value itself as the threshold. It Blue-noise dither halftoning methods have been found can easily be shown that these two implementations are to produce images with pleasing visual characteristics. mathematically equivalent, however, in some cases, the Results similar to those generated with error-diffusion second approach may be more computationally efficient. algorithms can be obtained using an image processing algorithm that is computationally much simpler to imple- ment. This paper reviews and compares the various tech- I(x,y) niques that have been used to design blue-noise dither matrices. In particular, a series of visual cost function O(x,y) Compare based methods, a several techniques that involve design- x (column #) xd ing the dither matrices by analyzing the spatial dot dis- mod Mx tribution are discussed. Ways to extend the basic dither matrix d(xd, yd) y (row #) yd blue-noise dither techniques to multilevel and color out- mod My put devices are also described, including recent advances in the design of jointly optimized color blue-noise dither Figure 1. Flow diagram for basic ordered-dither algorithm. matrices. 1 Introduction I(x,y) O(x,y) Threshold Many printing devices are binary in nature, and are there- fore incapable of producing continuous tone images. x (column #) xd Digital halftoning techniques are used to create the ap- mod Mx dither matrix pearance of intermediate tone levels by controlling the d(xd, yd) y (row #) yd spatial distribution of the binary pixel values.
    [Show full text]
  • Improving Digital-To-Analog Converter Linearity by Large High-Frequency Dithering Arnfinn A
    Improving Digital-to-analog Converter Linearity by Large High-frequency Dithering Arnfinn A. Eielsen, Member, IEEE, and Andrew J. Fleming, Member, IEEE Abstract A new method for reducing harmonic distortion due to element mismatch in digital-to-analog converters is described. This is achieved by using a large high-frequency periodic dither. The reduction in non-linearity is due to the smoothing effect this dither has on the non-linearity, which is only dependent on the amplitude distribution function of the dither. Since the high-frequency dither is unwanted on the output on the digital-to-analog converter, the dither is removed by an output filter. The fundamental frequency component of the dither is attenuated by a passive notch filter and the remaining fundamental component and harmonic components are attenuated by the low-pass reconstruction filter. Two methods that further improve performance are also presented. By reproducing the dither on a second channel and subtracting it using a differential amplifier, additional dither attenuation is achieved; and by averaging several channels, the noise-floor of the output is improved. Experimental results demonstrate more than 10 dB improvement in the signal-to-noise-and-distortion ratio. Index Terms digital analog conversion, linearization techniques, convolution, nonlinear distortion, dither, element mismatch EDICS Category: ACS320, ACS210A5, NOLIN100 A. A. Eielsen and A. J. Fleming are with the School of Electrical Engineering and Computer Science, University of Newcastle, Callaghan, NSW 2308, Australia (e-mail: {ae840, andrew.fleming}@newcastle.edu.au). IEEE TRANSACTIONS ON CIRCUITS AND SYSTEMS—I: REGULAR PAPERS 1 Improving Digital-to-analog Converter Linearity by Large High-frequency Dithering I.
    [Show full text]