380 likes | 638 Views
Introduction to electrical and computer engineering. Jan P. Allebach School of Electrical and Computer Engineering allebach@ecn.purdue.edu. Special thanks to. Dan Dickinson Mu Qiao Jennifer Talavage. Synopsis. What is electrical and computer engineering? Digital photography
E N D
Introduction to electrical and computer engineering Jan P. Allebach School of Electrical and Computer Engineering allebach@ecn.purdue.edu
Special thanks to • Dan Dickinson • Mu Qiao • Jennifer Talavage
Synopsis • What is electrical and computer engineering? • Digital photography • Image enhancement • Digital halftoning
What do electrical/computer engineers do? • Analyze and design systems • Develop algorithms • Write programs • Work with people • Team members • Customers • Management
What skills does an electrical/computer engineer need? • Desire to solve problems, and make things work • Willingness to work hard • Good math ability • Good communications skills • Ability to work with others
Technology areas • Materials and devices • Circuits and systems • Power systems • Computers • Communications and networking • Signal and image processing
Signal and image processing • CD and DVD technologies • High definition TV • Medical imaging systems • CAT scan • MRI • MP3 • Cell phones • Voice recognition and synthesis • Digital cameras • Inkjet and laser printers
Synopsis • What is electrical and computer engineering? • Digital photography • Image enhancement • Digital halftoning
What’s different about a digital camera? Replace the film by • detector array • image processing module • digital storage
Detector array Note that we must demosiac the image to obtain 2048x1536 pixels for each of the R, G, and B frames.
Digitization of the pixel values Each pixel value is represented by three 8-bit binary numbers
A picture is worth a lot more than a thousand words! • Total no. pixels = 2048x1536 = 3,145,728 or 3.1 Megapixels. • With 3 bytes/pixel, we have 9.3 Megabytes/image. • With image compression, this image can be stored in about 1 Megabyte • A 512 Mbyte flashRAM card will then hold about 500 images.
Synopsis • What is electrical and computer engineering? • Digital photography • Image enhancement • Digital halftoning
Contrast modification • The image is mapped pixel-by-pixel through the transformation curve.
Contrast enhancement example Enhanced Image Original Image
Spatial filtering • Each output pixel is a weighted sum of input pixels in neighborhood of output pixel location.
Spatial filtering • Filter responds only to edges – no response in constant areas.
Sharpening • To sharpen the image, we simply add to it a scaled component of the edge detection result.
Sharpening example Original Image Sharpened Image
Synopsis • What is electrical and computer engineering? • Digital photography • Image enhancement • Digital halftoning
Digital printing • Each pixel in a monochrome image is represented by a string of eight 0s and 1s. • A monochrome digital printer represents each pixel by a single 0 or 1: • “0” means no colorant at that pixel location • “1” means put a colorant dot at that pixel location • To create the impression of a continuous-tone image, we use a process known as halftoning.
Digital halftoning • The perception of levels of gray intermediate to black or white depends on a local average of the binary texture.
Digital halftoning • Detail is rendered by local modulation of this texture.
Threshold Screening is a thresholding process • Simple point-to-point transformation of each pixel in the continuous-tone image to a binary value. • Process requires no memory or neighborhood information.
Why not use a single threshold? • A single threshold yields only a silhouette representation of the image. • No gray levels intermediate to white or black are rendered. • To generate additional gray levels, the threshold must be dithered, i.e. perturbed about the constant value. Continuous-tone original image Result of applying a fixed threshold at midtone
Basic structure of screening algorithm The threshold matrix is periodically tiled over the entire continuous-tone image.
How tone is rendered • If we threshold the screen against a constant gray value, we obtain the binary texture used to represent that constant level of absorptance.
Dot profile function • The family of binary textures used to render each level of constant tone is called the dot profile function. • There is a one-to-one relationship between the dot profile and the screen.
That’s all! • Thanks for your attention • Now let’s try some of these ideas out!