Top Banner
IDL GUI for Digital Halftoning Final Project for SIMG-726 Computing For Imaging Science Changmeng Liu 2.14.2004
29

IDL GUI for Digital Halftoning Final Project for SIMG-726 Computing For Imaging Science Changmeng Liu 2.14.2004.

Jan 11, 2016

Download

Documents

Bertha George
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: IDL GUI for Digital Halftoning Final Project for SIMG-726 Computing For Imaging Science Changmeng Liu 2.14.2004.

IDL GUI for Digital Halftoning

Final Project for SIMG-726 Computing For Imaging Science

Changmeng Liu2.14.2004

Page 2: IDL GUI for Digital Halftoning Final Project for SIMG-726 Computing For Imaging Science Changmeng Liu 2.14.2004.

Outline Objective Digital Halftoning Background Halftoning algorithm Resolution of the display device

and Human Vision MTF and CSF GUI design and demo Conclusion and Future Work

Page 3: IDL GUI for Digital Halftoning Final Project for SIMG-726 Computing For Imaging Science Changmeng Liu 2.14.2004.

Objective A IDL GUI is implemented to display

the halftone image created by different Digital Halftoning algorithms.

The GUI can simulate the Halftone image in different resolution

Dispersed-dot, Clustered-dot with different orientation, and Random dithering algorithms are implemented

Page 4: IDL GUI for Digital Halftoning Final Project for SIMG-726 Computing For Imaging Science Changmeng Liu 2.14.2004.

What is Halftone and Why Halftone

A process converts a gray scale image into a bi-level image or more generally to fewer gray levels.

Applications: a. Printing images b. Display images with low-end

display unit c. compressing images & video clips

Page 5: IDL GUI for Digital Halftoning Final Project for SIMG-726 Computing For Imaging Science Changmeng Liu 2.14.2004.

Continuous Tone image vs. Halftone image

Continuous tone image: every pixel has its continuous valued gray level, for example from 0 to 255

Halftone image: every pixel only has two gray levels: 0 and 1

Example of continuous tone and halftone image

Page 6: IDL GUI for Digital Halftoning Final Project for SIMG-726 Computing For Imaging Science Changmeng Liu 2.14.2004.

Halftone cell --- Resolution vs. Represent gray level There is a trade off in halftone

technique, the resolution vs. represent gray level

Larger halftone cell can represent more gray level, but larger halftone cell will reduce the resolution of the halftone image.

Note: Error diffusion has no such limitation

Page 7: IDL GUI for Digital Halftoning Final Project for SIMG-726 Computing For Imaging Science Changmeng Liu 2.14.2004.

Halftone Algorithm The Ordered Dithering Algorithm flow

chart

image

screen

halftone

compare pixel-by-pixel

1 if image > screen0 otherwise

8 bpp

ready for printing on a binary printer8 bpp

1 bpp

Page 8: IDL GUI for Digital Halftoning Final Project for SIMG-726 Computing For Imaging Science Changmeng Liu 2.14.2004.

Cluster-dot Dithering In its simplest form, a digital version of

analog methods Used in higher resolution printing

devices where system response is nonlinear

Clustering the black pixels yields repeatable, low noise images with acceptable tone reproduction characteristics

Page 9: IDL GUI for Digital Halftoning Final Project for SIMG-726 Computing For Imaging Science Changmeng Liu 2.14.2004.

Screen Cell The screen is usually constructed

from small rectangular bricks, called cells

98

28

84

14

70 126

56

140

210

196

252

182

238

16822415411242

This screen is constructed from 3x6 cells; the cells are offset by 3 pixels.

Single Cell Construction. The screen on the left with this cell form a 45 degree screen

Page 10: IDL GUI for Digital Halftoning Final Project for SIMG-726 Computing For Imaging Science Changmeng Liu 2.14.2004.

Halftone Cell Orientation Human Vision have lowest contrast

sensitivity at 45° For monochrome screens (e.g., B&W),

cells are typically nx2n in dimension and offset so the lowest frequency component is at 45°, where the visual MTF is lowest.

m

m

2n

n

45°

Page 11: IDL GUI for Digital Halftoning Final Project for SIMG-726 Computing For Imaging Science Changmeng Liu 2.14.2004.

Dispersed-Dot Dithering Dispersed-dot produces finer

image details, and its halftone texture pattern contains much higher frequency and therefore is less visible

Bayer’s mask is used as the dispersed-dot dithering mask in this project

Page 12: IDL GUI for Digital Halftoning Final Project for SIMG-726 Computing For Imaging Science Changmeng Liu 2.14.2004.

Dispersed-Dot Mask Design Recursively Define mask M(k), for

K>0

M(k) has dimensions 2k * 2k

Page 13: IDL GUI for Digital Halftoning Final Project for SIMG-726 Computing For Imaging Science Changmeng Liu 2.14.2004.

Random Dithering White noise dithering use an

uniformly distributed uncorrelated noise as threshold function.

Random dithering has visible low frequency noise

Page 14: IDL GUI for Digital Halftoning Final Project for SIMG-726 Computing For Imaging Science Changmeng Liu 2.14.2004.

Resolution of the display device DPI refers to the number of dots (pixels)

per inch on a screen. Macintosh computer (or MacOS

compatible), have a 72 dpi screen. Windows PC have a 96 dpi screen.

Because of this, objects that are displayed under Windows will appear to be 133% of their printed size (at default 72 dpi).

Printer have 72 dpi (default), 300dpi, 600dpi or even higher resolution.

Page 15: IDL GUI for Digital Halftoning Final Project for SIMG-726 Computing For Imaging Science Changmeng Liu 2.14.2004.

Question Can I Simulate the High Resolution

Halftone Image (300 dpi) with a Low Resolution CRT(96 dpi)?

- No, you can’t display it by just down sampling the high resolution halftone image directly because of the Aliasing.

- But, you can simulate the appearance of the high resolution ht image in CRT.

Page 16: IDL GUI for Digital Halftoning Final Project for SIMG-726 Computing For Imaging Science Changmeng Liu 2.14.2004.

Human Visual MTF Human

Visual MTF is a kind of low pass filter

Page 17: IDL GUI for Digital Halftoning Final Project for SIMG-726 Computing For Imaging Science Changmeng Liu 2.14.2004.

Human Visual CSF Contrast Sensitivity

Function of Human Visual system is a band pass filter

From the MTF and CSF, the high spatial frequency in high resolution printer can’t be “seen” by human eye

Page 18: IDL GUI for Digital Halftoning Final Project for SIMG-726 Computing For Imaging Science Changmeng Liu 2.14.2004.

Simulate different resolution halftone image on CRT Up-sample (or scale) the image to

high resolution size. Applying halftone algorithm Convolve the halftone image with

the low pass filter to simulate what our eye sees

Down-sample the low-passed image to real size

Page 19: IDL GUI for Digital Halftoning Final Project for SIMG-726 Computing For Imaging Science Changmeng Liu 2.14.2004.

GUI design, flow chart

Dithering

Image Input

Halftone Algorithm Select

Display Resolution Select

Halftone Image Display

Save the Halftone Image

Input Image Display

Page 20: IDL GUI for Digital Halftoning Final Project for SIMG-726 Computing For Imaging Science Changmeng Liu 2.14.2004.

Output 1, 0° Cluster-dot at 96 dpi

Page 21: IDL GUI for Digital Halftoning Final Project for SIMG-726 Computing For Imaging Science Changmeng Liu 2.14.2004.

Output 2, 0° Cluster-dot at 300 dpi

Page 22: IDL GUI for Digital Halftoning Final Project for SIMG-726 Computing For Imaging Science Changmeng Liu 2.14.2004.

Output 3, 45° Cluster-dot at 96 dpi

Page 23: IDL GUI for Digital Halftoning Final Project for SIMG-726 Computing For Imaging Science Changmeng Liu 2.14.2004.

Output 4, 45° Cluster-dot at 300 dpi

Page 24: IDL GUI for Digital Halftoning Final Project for SIMG-726 Computing For Imaging Science Changmeng Liu 2.14.2004.

Output 5, Dispersed-dot at 96 dpi

Page 25: IDL GUI for Digital Halftoning Final Project for SIMG-726 Computing For Imaging Science Changmeng Liu 2.14.2004.

Output 6, Dispersed-dot at 300 dpi

Page 26: IDL GUI for Digital Halftoning Final Project for SIMG-726 Computing For Imaging Science Changmeng Liu 2.14.2004.

Output 7, Random dithering at 96 dpi

Page 27: IDL GUI for Digital Halftoning Final Project for SIMG-726 Computing For Imaging Science Changmeng Liu 2.14.2004.

Output 8, Random dithering at 300 dpi

Page 28: IDL GUI for Digital Halftoning Final Project for SIMG-726 Computing For Imaging Science Changmeng Liu 2.14.2004.

Conclusion and Future Work This GUI can simulate the different

resolution halftone image display Cluster-dot (45° and 0°), disperse-dot, and

random dot is implemented. The convolution kernel can be changed

to fit the human visual MTF and CSF better.

More halftone algorithms can be implemented.

Page 29: IDL GUI for Digital Halftoning Final Project for SIMG-726 Computing For Imaging Science Changmeng Liu 2.14.2004.

Question?