Fast Inverse Halftoning

Similar documents
Low Noise Color Error Diffusion using the 8-Color Planes

Prof. Feng Liu. Fall /04/2018

An Improved Fast Color Halftone Image Data Compression Algorithm

Cluster-Dot Halftoning based on the Error Diffusion with no Directional Characteristic

Fast Inverse Halftoning Algorithm for Ordered Dithered Images

Evaluation of Visual Cryptography Halftoning Algorithms

IEEE Signal Processing Letters: SPL Distance-Reciprocal Distortion Measure for Binary Document Images

Fig 1: Error Diffusion halftoning method

Error Diffusion without Contouring Effect

On Filter Techniques for Generating Blue Noise Mask

Hybrid Halftoning A Novel Algorithm for Using Multiple Halftoning Techniques

VLSI Implementation of Impulse Noise Suppression in Images

Direct Binary Search Based Algorithms for Image Hiding

Color Image Segmentation Using K-Means Clustering and Otsu s Adaptive Thresholding

Ranked Dither for Robust Color Printing

1.Discuss the frequency domain techniques of image enhancement in detail.

Stochastic Screens Robust to Mis- Registration in Multi-Pass Printing

Practical Content-Adaptive Subsampling for Image and Video Compression

Image Enhancement for Astronomical Scenes. Jacob Lucas The Boeing Company Brandoch Calef The Boeing Company Keith Knox Air Force Research Laboratory

The Perceived Image Quality of Reduced Color Depth Images

Error Diffusion and Delta-Sigma Modulation for Digital Image Halftoning

On Filter Techniques for Generating Blue Noise Mask

Analysis and Design of Vector Error Diffusion Systems for Image Halftoning

Frequency Domain Median-like Filter for Periodic and Quasi-Periodic Noise Removal

Image Processing. Adam Finkelstein Princeton University COS 426, Spring 2019

Image Rendering for Digital Fax

An Adaptive Kernel-Growing Median Filter for High Noise Images. Jacob Laurel. Birmingham, AL, USA. Birmingham, AL, USA

A Novel Approach of Compressing Images and Assessment on Quality with Scaling Factor

An Efficient Approach for Iris Recognition by Improving Iris Segmentation and Iris Image Compression

Digital Image Processing Introduction

Digital Images. Back to top-level. Digital Images. Back to top-level Representing Images. Dr. Hayden Kwok-Hay So ENGG st semester, 2010

This content has been downloaded from IOPscience. Please scroll down to see the full text.

Virtual Restoration of old photographic prints. Prof. Filippo Stanco

Implementation of Colored Visual Cryptography for Generating Digital and Physical Shares

Visual Cryptography Scheme for Color Images Using Half Toning Via Direct Binary Search with Adaptive Search and Swap

A New Hybrid Multitoning Based on the Direct Binary Search

An Analysis of Image Denoising and Restoration of Handwritten Degraded Document Images

Image Enhancement using Histogram Equalization and Spatial Filtering

IMPROVEMENT USING WEIGHTED METHOD FOR HISTOGRAM EQUALIZATION IN PRESERVING THE COLOR QUALITIES OF RGB IMAGE

Lossless Huffman coding image compression implementation in spatial domain by using advanced enhancement techniques

A Study on Image Enhancement and Resolution through fused approach of Guided Filter and high-resolution Filter

IMAGE PROCESSING: POINT PROCESSES

C. A. Bouman: Digital Image Processing - January 9, Digital Halftoning

A Robust Nonlinear Filtering Approach to Inverse Halftoning

Digital Halftoning. Sasan Gooran. PhD Course May 2013

A Spatial Mean and Median Filter For Noise Removal in Digital Images

Printer Model + Genetic Algorithm = Halftone Masks

Image Denoising using Dark Frames

A COMPARATIVE STUDY ON IMAGE COMPRESSION USING HALFTONING BASED BLOCK TRUNCATION CODING FOR COLOR IMAGE

Image Processing. Adrien Treuille

Image Enhancement in Spatial Domain

Digital Image Processing 3/e

Half-Tone Watermarking. Multimedia Security

Blind Single-Image Super Resolution Reconstruction with Defocus Blur

Computer Vision. Intensity transformations

Guided Image Filtering for Image Enhancement

Fig Color spectrum seen by passing white light through a prism.

Problem Set I. Problem 1 Quantization. First, let us concentrate on the illustrious Lena: Page 1 of 14. Problem 1A - Quantized Lena Image

Chapter 4 MASK Encryption: Results with Image Analysis

Local prediction based reversible watermarking framework for digital videos

I. INTRODUCTION II. EXISTING AND PROPOSED WORK

Target detection in side-scan sonar images: expert fusion reduces false alarms

DIGITAL IMAGE PROCESSING Quiz exercises preparation for the midterm exam

Image Steganography using Sudoku Puzzle for Secured Data Transmission

Image Processing. Michael Kazhdan ( /657) HB Ch FvDFH Ch. 13.1

Compression and Image Formats

A Probability Description of the Yule-Nielsen Effect II: The Impact of Halftone Geometry

18 1 Printing Techniques. 1.1 Basic Printing Techniques

Digital Imaging Systems for Historical Documents

Applications of Flash and No-Flash Image Pairs in Mobile Phone Photography

Digital Image Processing

Spatially Adaptive Algorithm for Impulse Noise Removal from Color Images

New Spatial Filters for Image Enhancement and Noise Removal

Plane-dependent Error Diffusion on a GPU

Noise Adaptive and Similarity Based Switching Median Filter for Salt & Pepper Noise

Image Filtering in Spatial domain. Computer Vision Jia-Bin Huang, Virginia Tech

PERFORMANCE ANALYSIS OF LINEAR AND NON LINEAR FILTERS FOR IMAGE DE NOISING

Nonuniform multi level crossing for signal reconstruction

Image Restoration and De-Blurring Using Various Algorithms Navdeep Kaur

COLOR IMAGE QUALITY EVALUATION USING GRAYSCALE METRICS IN CIELAB COLOR SPACE

Performance Evaluation of Edge Detection Techniques for Square Pixel and Hexagon Pixel images

A Secure Image Encryption Algorithm Based on Hill Cipher System

Image Processing COS 426

Fast identification of individuals based on iris characteristics for biometric systems

TDI2131 Digital Image Processing

What is image enhancement? Point operation

Keywords Fuzzy Logic, ANN, Histogram Equalization, Spatial Averaging, High Boost filtering, MSE, RMSE, SNR, PSNR.

Digital Image Processing

Chapter 9 Image Compression Standards

CoE4TN4 Image Processing. Chapter 3: Intensity Transformation and Spatial Filtering

Image Denoising using Filters with Varying Window Sizes: A Study

Screening Basics Technology Report

Keywords: BPS, HOLs, MSE.

PERFORMANCE EVALUATION OFADVANCED LOSSLESS IMAGE COMPRESSION TECHNIQUES

Chapter 17. Shape-Based Operations

Improvement of Classical Wavelet Network over ANN in Image Compression

Performance Evaluation of Floyd Steinberg Halftoning and Jarvis Haltonong Algorithms in Visual Cryptography

Image Enhancement: Histogram Based Methods

International Journal of Scientific & Engineering Research, Volume 4, Issue 7, July-2013 ISSN

CSE 564: Scientific Visualization

Transcription:

Fast Inverse Halftoning Zachi Karni, Daniel Freedman, Doron Shaked HP Laboratories HPL-2-52 Keyword(s): inverse halftoning Abstract: Printers use halftoning to render printed pages. This process is useful for many printing technologies which are binary in nature, as it allows the printer to deposit the ink as series of dots of constant darkness. Indeed, many of printing pipelines are based on this -bit framework; this unfortunately raises a critical problem when image processing operations that require the original -bit image must be performed. In this situation, what is required is the reconstruction of the -bit image from its halftoned version, a process referred to as "inverse halftoning". In this paper, we present a technique for fast inverse halftoning which given a dithered image together with the dithering mask that created it, approximates the original -bit image. The technique is elegant, and allows for generalizations to other inverse problems in which the exact details of the forward process are known. The algorithm is light computationally, and has been tested in practice. Results are shown, demonstrating the algorithm's promise. External Posting Date: April 2, 2 [Fulltext] Approved for External Publication Internal Posting Date: April 2, 2 [Fulltext] To be published and presented at the 3st International Congress on Imaging Science (ICIS 2), Beijing, China Copyright The 3st International Congress on Imaging Science (ICIS 2), 2.

Fast Inverse Halftoning Zachi Karni, Daniel Freedman and Doron Shaked HP Labs Haifa, Israel Abstract Printers use halftoning to render printed pages. This process is useful for many printing technologies which are binary in nature, as it allows the printer to deposit the ink as series of dots of constant darkness. Indeed, many of printing pipelines are based on this -bit framework; this unfortunately raises a critical problem when image processing operations that require the original -bit image must be performed. In this situation, what is required is the reconstruction of the -bit image from its halftoned version, a process referred to as "inverse halftoning". In this paper, we present a technique for fast inverse halftoning which given a dithered image together with the dithering mask that created it, approximates the original -bit image. The technique is elegant, and allows for generalizations to other inverse problems in which the exact details of the forward process are known. The algorithm is light computationally, and has been tested in practice. Results are shown, demonstrating the algorithm s promise. Introduction Printers use halftoning to render printed pages. In this process, a regular -bit image is converted into a -bit image in such a way that the human eye perceives the two images as close to the same. This process is useful for many printing technologies which are binary in nature, as it allows the printer to deposit the ink as a series of dots of constant darkness. Therefore, it is a common practice that the entire printing pipeline is based on this -bit framework. Unfortunately, a critical problem arises when image manipulations, which are usually -bit in nature, are required to be performed at the printer level. To perform this compensation properly, it is necessary to reconstruct an -bit image from the given -bit image, a process referred to as "inverse halftoning". This is a highly challenging inverse problem; in this work, we provide an elegant but fast solution to this problem, and present some initial results showing the promise of this approach. We also note that our approach to this problem can be generalized to a larger class of inverse problems, in which one knows the exact details of the forward process. For halftoning, the advantages of this approach over existing techniques are twofold: speed and the ability to deal with dithered images (rather than error diffused images), which are most relevant for many printing applications. We are hopeful that these advantages may be extended to other such inverse problems, including compression and tomography. Problem Statement We are given a -bit image, I which is the result of a dithering process, as follows. For each pixel, the value of the original -bit imagei is thresholded; the threshold value varies by pixel, and depends on the dither mask. Wherever the pixel value is bigger than the corresponding value in the dither mask, the resulting -bit value is set to. The resulting -bit value is set to wherever the pixel value is lower or equal to the corresponding value in the dither mask. The dithering process is illustrated in Figure 2. The problem of inverse halftoning is then to go in the reverse direction: given the -bit image as well as the threshold values (as the dithering mask), reconstruct an approximation Î to the -bit image. Clearly, inverse halftoning is highly underdetermined, due to the extreme many-to-one nature of thresholding. The idea is to carefully use the redundancy of the image, i.e., that neighboring pixels tend to have similar gray values, to help solve the inverse problem. Previous Work In general, there are many proposed solutions to general inverse problems, which are quite powerful, such as graph cuts [ ], belief propagation [ 2], and so on; however, these techniques are typically too slow for the intended application. On a more specific level, there have been a variety of efforts in the domain of inverse halftoning. Some of these [ 3] are aimed at halftones generated by error-diffusion rather than dithering, while others are computationally heavier [ 4] than is practical in most applications of interest.

Our Solution Collecting Statistics: To compute the -bit reconstruction Î ( p ), we begin by collecting statistics within a fixed window W ( p ) around the pixel p of interest. We focus on statistics which are most related to the process of dithering or thresholding. Without a priori knowledge about the -bit image, the reconstructed -bit pixel value can be taken as a random variable with a uniform probability according to the threshold value. This means, for each pixel in the -bit image, the reconstructed -bit value is uniformly distributed between and the threshold value. On the other side, for each pixel, the uniform distribution is between the threshold value and 255, as it is presented in Figure. We begin by computing a histogram of dither values q ( q ) (from the dithering mask) within the window, as given by Equation (). Now, due to the use of thresholding in forming the -bit image, the key statistic to examine is the Conditional Expectation Function, described in Equation (2). This function is simply the average or expectation of the dither values, conditioned on the fact that the dither values are less than a fixed value I ; the function Q records this expectation for each I. Note that it can be simply computed using the histogram, as in Equation (2). { : q } h x = q Î W p q = x () Q I º E éq Q I ù ë û = å å I x = I x = xh x h x Pixel Mask Threshold Pixel Mask Threshold 255 255 Figure : The reconstructed -bit value is taken to be a random variable with a uniform probability function according to the mask threshold level and the -bit value. (2) 23 64 2 32 7 93 45 2 7 7 2 77 67 97 22 65 2 255 57 3 9 9 6 7 6 6 69 69 6 7 7 6 67 6 67 66 66 6 6 67 67 6 72 7 69 69 7 Figure 2. The dithering process. Top: Original -bit image. Middle: A dithering mask. Bottom: The -bit dithered image. Regularization: In order to solve the inverse problem, we need more information; this information comes in the form of the "regularization assumption" so common to inverse problems. Indeed, we use a rather extreme regularization, and assume that the image is constant within the window under consideration; let us refer to this constant value as I ( p ). Now, suppose that we compute the empirical average of all dither values within the window, but only for those pixels whose -bit * image value is ; this quantity q is explicitly computed in Equation (3). å I ( q) q ( q) * qîw p q = (3) å I ( q) q Î W p If the number of pixels is large enough, this quantity should be equal to the Conditional Expectation Func-

tion of Equation (2), evaluated at I p ; as a result, we can invert to get an approximation of the -bit image, i.e. - Î ( * p º Q q ), as in Equation (4). Figure 3 presents a histogram of a typical dithering cell and its corresponding Conditional Expectation Function. ( ) ˆ - * * q» Q I p I p º Q q (4) Finally, note that we have only used the pixels whose -bit image values are. We may do the entire process again for those pixels with a -bit image value of. In this case, we let the Conditional Expectation Function be Q ( I ) º E éq Q > I ù ë û, and so on. The equation analogous to (4) gives Î ( p ). We combine Î p and the two estimates for the eight-bit image Î p as in Equation (5) through a simple weighted average, where f is the fraction of pixels within the window whose -bit image values are. ( ) Iˆ p º f Iˆ p + - f Iˆ p (5) Window Selection: The key issue that arises from the previous analysis surrounds the regularization assumption. In particular, there is a tradeoff between the accuracy of the procedure and the accuracy of the assumption: for small window sizes, the assumption of constant -bit value is largely correct, but we do not collect enough statistics for the procedure to be accurate; and the reverse is true for large windows. The effects of varying window sizes may be seen in Figure 4. We therefore use the following adaptive window size algorithm, based on the fact that we know the details of the halftoning procedure. Suppose we have several possible window sizes s i s i, i = n; for example, 3 3, 5 5, etc. For each size, we compute the -bit reconstruction at each point, now denoted as Iˆi ( p ) ; and for each such reconstruction, we recompute the halftoned image, Iˆi ( p ). We then gauge the correctness of a particular window size by comparing the closeness of I ˆi to the true halftoned image I on a pixel-by-pixel basis. There are many ways to do this; we choose to compute, for each p, the number of points gi ( p ) in a fixed size window around p at which Iˆi ( p) = I( p). We then Î p to be a weighted sum of the various reconstructions Iˆi the g ( p ). i p, where the weights are proportional to Generalization to Other Inverse Problems: The window selection procedure works because, as noted, we know the details of the halftoning procedure. This fact differentiates this inverse problem from many others, such as noise removal, where we only know a statistical characterization of the forward problem. Thus, halftoning is closer, in this sense, to certain problems such as decompression from a known compression scheme, deterministic deblurring, or tomography; in all of these cases, the forward process is understood exactly. 9 2 7 6 5 4 E[Im] 6 3 4 2 5 5 2 25 3 Figure 3. Left: A histogram of a typical dithering cell. Right: A conditional expectation function. take 2 5 5 2 25 3 u Figure 4. Effect of the varying window size. From left to right, top to bottom: windows size of 3 3, 9 9, 5 5 and 25 25. Smaller windows preserve artifacts of the dithering process, while larger windows lead to oversmoothing. Experimental Results The algorithm was implemented in MATLAB, which is acceptably fast given the number of matrix operations. To test the algorithm, we take an -bit image, halftone it, and then run our reconstruction algorithm. The results are shown in Figure 5 and Figure 6. In the latter, we focus on the woman s eye, to highlight the fact that our algorithm retains nearly all of the important details, such as the fineness of the eyelashes, and the skin texture. This is due to the use of the adaptive window sizes. For a quantitative comparison, we compute two quantities: the PSNR of the -bit reconstruction is 3.4 db, while the fraction of mistakes in the rehalftoned image (i.e. when we halftone Î and compare it with the halftoned version of I ) is.3%. In contradiction to our basic assumption that an image is constant within a small neighborhood, our method fails for pure constant images. The main reason for this is the existence of higher level moiré artifacts introduced during the forward dithering process. These artifacts are emphasized in the inverse approach. A possible solution for such a case is to use a large neighborhood which will smooth these artifacts out.

Figure 6: Close-up on the eye shows that the important features such as eyelashes, eyebrow and skin texture are retained. Top to bottom: original image, reconstructed image. Left to right: -bit and -bit images, Conclusions We presented a fast and elegant approach for the inverse problem of image halftoning. The approach can be easily integrated into a -bit pipeline to allow image manipulation at the printer level. We showed that the quality of the reconstructed image is visually close to the original both on the -bit and -bit images. References Figure 5: Inverse halftoning results. Top to bottom: The original -bit image, the inverse halftone result is very close to the original.. V. Kolmogorov, R. Zabih. What energy function can be minimized via Graph Cuts? IEEE Transactions on Pattern Analysis and Machine Intelligence, pg. 47-59. (24). 2. J. Yedidia, W. Freeman, Y. Weiss. Generalized Belief Propagation. Advances in Neural Information Processing Systems, pg. 69-695. (2). 3. T. Kite, N. Damera-Venkata, B. Evans, A. Bovik. A fast, high-quality inverse halftoning algorithm for errordiffused halftones. IEEE Transactions on Image Processing, Vol 9(9), pg. 53-592. (2). 4. Y. Kim, G. Arce, N. Grabowski. Inverse halftoning using binary permutation filters. IEEE Transactions on Image Processing, Vol 4(9), pg. 296-3. (995).