1 Digital Cameras Engineering Math Physics (EMP) Jennifer Rexford

Slides:



Advertisements
Similar presentations
Digital Color 24-bit Color Indexed Color Image file compression
Advertisements

Digital Image Fundamentals Selim Aksoy Department of Computer Engineering Bilkent University
Module 1 Digital Cameras. Image Capture Instead of film, a digital camera uses a device called a CCD (charge coupled device).
Digital Image Fundamentals Selim Aksoy Department of Computer Engineering Bilkent University
Digital Imaging and Image Analysis
HOW A SILICON CHIP CAPTURES AN IMAGE
DIGITAL IMAGE PROCESSING CMSC 150: Lecture 14. Conventional Cameras  Entirely chemical and mechanical processes  Film: records a chemical record of.
Camera Basics How cameras work Film vs Digital Taking control.
Bit Depth and Spatial Resolution SIMG-201 Survey of Imaging Science © 2002 CIS/RIT.
Capturing Light… in man and machine : Computational Photography Alexei Efros, CMU, Fall 2006 Some figures from Steve Seitz, Steve Palmer, Paul Debevec,
1 Data Compression Engineering Math Physics (EMP) Steve Lyon Electrical Engineering.
Computer Science 335 Data Compression.
Capturing Light… in man and machine : Computational Photography Alexei Efros, CMU, Fall 2008.
T.Sharon-A.Frank 1 Multimedia Image Compression 2 T.Sharon-A.Frank Coding Techniques – Hybrid.
Digital Images The nature and acquisition of a digital image.
14.2 Data Capture Digital Imaging using CCDs. Capacitors  A capacitor is a device that stores charge.  Def’n of Capacitance - The ratio of the charge.
Digital Technology 14.2 Data capture; Digital imaging using charge-coupled devices (CCDs)
Digital Photography DeCal EECS98/198 Nathan Yan About this course -Technology of Camera Systems -Photographic Technique -Digital Lightroom About Me ^-doesn’t.
Photographics 10 Introduction to Digital Photography
CS 1308 Computer Literacy and the Internet. Creating Digital Pictures  A traditional photograph is an analog representation of an image.  Digitizing.
ECE242 L30: Compression ECE 242 Data Structures Lecture 30 Data Compression.
COMP Bitmapped and Vector Graphics Pages Using Qwizdom.
1 Digital Cameras Consumer digital cameras have been around since 1995 What features make a good camera? How do we optimize good features with a limited.
CSCI-235 Micro-Computers in Science Hardware Part II.
Lab #5-6 Follow-Up: More Python; Images Images ● A signal (e.g. sound, temperature infrared sensor reading) is a single (one- dimensional) quantity that.
TOPIC 4 INTRODUCTION TO MEDIA COMPUTATION: DIGITAL PICTURES Notes adapted from Introduction to Computing and Programming with Java: A Multimedia Approach.
How A Camera Works Image Sensor Shutter Mirror Lens.
Comparing Regular Film to Digital Photography
Photoshop Software Rasterized, file formats, and printing choices.
Data Representation CS280 – 09/13/05. Binary (from a Hacker’s dictionary) A base-2 numbering system with only two digits, 0 and 1, which is perfectly.
FYS 100 Creative Discovery in Digital Art Forms Fall 2008 Burg Digital Photography Assignment.
Bit-Mapped Graphic Data: Input (Capture) Hardware Multimedia – Section 2.
© 1999 Rochester Institute of Technology Introduction to Digital Imaging.
Digital Cameras Colter Freund All a digital picture really is, is a collection of millions of tiny little squares called picture elements (pixels) that.
Images The Science of Images What is an Image on the computer? The Psychology of Images What do we use images for? What effect color has on our mood and.
Digital Cameras And Digital Information. How a Camera works Light passes through the lens Shutter opens for an instant Film is exposed to light Film is.
Chapter 2 : Business Information Business Data Communications, 6e.
Chapter 2 : Imaging and Image Representation Computer Vision Lab. Chonbuk National University.
Intelligent Vision Systems Image Geometry and Acquisition ENT 496 Ms. HEMA C.R. Lecture 2.
Resolution = the number of photosites (pixels) in the array of your sensor or the total number of buckets Bit Depth / Pixel Depth.
The Physics of Photography
DIGITAL CAMERAS Prof Oakes. Overview Camera history Digital Cameras/Digital Images Image Capture Image Display Frame Rate Progressive and Interlaced scans.
How digital cameras work The Exposure The big difference between traditional film cameras and digital cameras is how they capture the image. Instead of.
FYS 100 Creative Discovery in Digital Art Forms Spring 2007 Burg Digital Photography Assignment.
Sounds of Old Technology IB Assessment Statements Topic 14.2., Data Capture and Digital Imaging Using Charge-Coupled Devices (CCDs) Define capacitance.
Digital Camera TAVITA SU’A. Overview ◦Digital Camera ◦Image Sensor ◦CMOS ◦CCD ◦Color ◦Aperture ◦Shutter Speed ◦ISO.
CSCI-100 Introduction to Computing Hardware Part II.
Image File Formats. What is an Image File Format? Image file formats are standard way of organizing and storing of image files. Image files are composed.
Chapter 1 Background 1. In this lecture, you will find answers to these questions Computers store and transmit information using digital data. What exactly.
Digital Imaging. Introduction Digital Imaging is used every day in life. Has become less expensive and easier to use than film.
Digital Images and Digital Cameras take notes in your journal.
Intelligent Vision Systems Image Geometry and Acquisition ENT 496 Ms. HEMA C.R. Lecture 2.
DIGITAL CAMERAS THE IMAGE SENSORS. CCD: Charged Coupled Device CMOS: Complementary Metal Oxide Semiconductor The differences between these two sensors.
TOPIC 4 INTRODUCTION TO MEDIA COMPUTATION: DIGITAL PICTURES Notes adapted from Introduction to Computing and Programming with Java: A Multimedia Approach.
CSC/FAR 020, Computer Graphics, September 2-3, 2014 Dr. Dale E. Parson Outline for class # 3.
Software Design and Development Storing Data Part 2 Text, sound and video Computing Science.
Digital Cameras in the Classroom Day One Basics Ann Howden UEN Professional Development
CSE 185 Introduction to Computer Vision
Digital Image -M.V.Ramachandranwww.youtube.com/postmanchandru
DIGITAL MEDIA FOUNDATIONS
Unit 1 The History of Photography & The Camera
Capturing Light… in man and machine
Chapter III, Desktop Imaging Systems and Issues: Lesson IV Working With Images
Introduction to Digital Photography
Engineering Math Physics (EMP)
Engineering Math Physics (EMP)
Why Compress? To reduce the volume of data to be transmitted (text, fax, images) To reduce the bandwidth required for transmission and to reduce storage.
Capturing Light… in man and machine
Basic Concepts of Digital Imaging
Photographic Image Formation I
Presentation transcript:

1 Digital Cameras Engineering Math Physics (EMP) Jennifer Rexford

2 Image Transmission Over Wireless Networks Image capture and compression –Inner-workings of a digital camera –Manipulating & transforming a matrix of pixels –Implementing a variant of JPEG compression Wireless networks –Wireless technology –Acoustic waves and electrical signals –Radios Video over wireless networks –Video compression and quality –Transmitting video over wireless –Controlling a car over a radio link

3 Traditional Photography A chemical process, little changed from 1826 Taken in France on a pewter plate … with 8-hour exposure The world's first photograph

4 Image Formation Digital Camera Eye Film

5 Image Formation in a Pinhole Camera Light enters a darkened chamber through pinhole opening and forms an image on the further surface

6 Aperture Hole or opening where light enters –Or, the diameter of that hole or opening Pupil of the human eye –Bright light: 1.5 mm diameter –Average light: 3-4 mm diameter –Dim light: 8 mm diameter Camera –Wider aperture admits more light –Though leads to blurriness in the objects away from point of focus

7 Shutter Speed Time for light to enter camera –Longer times lead to more light –… though blurs moving subjects Exposure –Total light entering the camera –Depends on aperture and shutter speed

8 Digital Photography Digital photography is an electronic process Only widely available in the last ten years Digital cameras now surpass film cameras in sales Polaroid closing its film plants this year…

9 Image Formation in a Digital Camera Array of sensors –Light-sensitive diodes convert photons to electrons –Buckets that collect charge in proportion to light –Each bucket corresponds to a picture element (pixel) +10V Photon   + +             A sensor converts one kind of energy to another

10 CCD: Charge Coupled Device Common sensor array used in digital cameras –Each capacitor accumulates charge in response to light Responds to about 70% of the incident light –In contrast, photographic film captures only about 2% Also widely used in astronomy telescopes CCD sensor

11 Sensor Array: Image Sampling Pixel (Picture Element): single point in a graphic image

12 Sensor Array: Reading Out the Pixels Transfer the charge from one row to the next Transfer charge in the serial register one cell at a time Perform digital to analog conversion one cell at a time Store digital representation Digital-to-analog conversion

13 Sensor Array: Reading Out the Pixels

14 More Pixels Mean More Detail 1280 x x x 1400

15 The 320 x 240 hand The 2272 x 1704 hand

16 Representing Color Light receptors in the human eye –Rods: sensitive in low light, mostly at periphery of eye –Cones: only at higher light levels, provide color vision –Different types of cones for red, green, and blue RGB color model –A color is some combination of red, green, and blue –Intensity value for each color  0 for no intensity  1 for high intensity –Examples  Red: 1, 0, 0  Green: 0, 1, 0  Yellow: 1, 1, 0

17 Representing Image as a 3D Matrix In the lab this week… –Matlab experiments with digital images Matrix storing color intensities per pixel –Row: from top to bottom –Column: from left to right –Color: red, green, blue Examples –M(3,2,1): third row, second column, red intensity –M(4,3,2): fourth row, third column, green intensity

18 Limited Granularity of Color Three intensities, one per color –Any value between 0 and 1 Storing all possible values take a lot of bits –E.g., storing –Can a person really differentiate from ? Limiting the number of intensity settings –Eight bits for each color –From to –With 2 8 = 256 values Leading to 24 bits per pixel  Red: 255, 0, 0  Green: 0, 255, 0  Yellow: 255, 255, 0

19 Number of Bits Per Pixel Number of bits per pixel –More bits can represent a wider range of colors –24 bits can capture 2 24 = 16,777,216 colors –Most humans can distinguish around 10 million colors 8 bits / pixel / color 4 bits / pixel / color

20 Separate Sensors Per Color Expensive cameras –A prism to split the light into three colors –Three CCD arrays, one per RGB color

21 Practical Color Sensing: Bayer Grid Place a small color filter over each sensor Each cell captures intensity of a single color More green pixels, since human eye is better at resolving green

22 Practical Color Sensing: Interpolating Challenge: inferring what we can’t see –Estimating pixels we do not know Solution: estimate based on neighboring pixels –E.g., red for non-red cell averaged from red neighbors –E.g., blue for non-blue cell averaged from blue neighbors Estimate “R” and “B” at the “G” cells from neighboring values

23 Interpolation Examples of interpolation Accuracy of interpolation –Good in low-contrast areas (neighbors mostly the same) –Poor with sharp edges (e.g., text) andmakes andmakes andmakes

24 Are More Pixels Always Better? Generally more is better –Better resolution of the picture –Though at some point humans can’t tell the difference But, other factors matter as well –Sensor size –Lens quality –Whether Bayer grid is used Problem with too many pixels –Very small sensors catch fewer photons –Much higher signal-to-noise ratio Plus, more pixels means more storage…

25 Digital Images Require a Lot of Storage Three dimensional object –Width (e.g., 640 pixels) –Height (e.g., 480 pixels) –Bits per pixel (e.g., 24-bit color) Storage is the product –Pixel width * pixel height * bits/pixel –Divided by 8 to convert from bits to bytes Example sizes –640 x 480: 1 Megabyte –800 x 600: 1.5 Megabytes –1600 x 1200: 6 Megabytes

26 Compression Benefits of reducing the size –Consume less storage space and network bandwidth –Reduce the time to load, store, and transmit the image Redundancy in the image –Neighboring pixels often the same, or at least similar –E.g., the blue sky Human perception factors –Human eye is not sensitive to high frequencies

27 Compression Pipeline Sender and receiver must agree –Sender/writer compresses the raw data –Receiver/reader un-compresses the compressed data Example: digital photography compress uncompress compress uncompress

28 Two Kinds of Compression Lossless –Only exploits redundancy in the data –So, the data can be reconstructed exactly –Necessary for most text documents (e.g., legal documents, computer programs, and books) Lossy –Exploits both data redundancy and human perception –So, some of the information is lost forever –Acceptable for digital audio, images, and video

29 Lossless: Huffman Encoding Normal encoding of text –Fixed number of bits for each character ASCII with seven bits for each character –Allows representation of 2 7 =128 characters –Use 97 for ‘a’, 98 for ‘b’, …, 122 for ‘z’ But, some characters occur more often than others –Letter ‘a’ occurs much more often than ‘x’ Idea: assign fewer bits to more-popular symbols –Encode ‘a’ as “000” –Encode ‘x’ as “ ”

30 Lossless: Huffman Encoding Challenge: generating an efficient encoding –Smaller codes for popular characters –Longer codes for unpopular characters English Text: frequency distribution Morse code

31 Lossless: Run-Length Encoding Sometimes the same symbol repeats –Such as “eeeeeee” or “eeeeetnnnnnn” –That is, a run of “e” symbols or a run of “n” symbols Idea: capture the symbol only once –Count the number of times the symbol occurs –Record the symbol and the number of occurrences Examples –So, “eeeeeee” becomes –So, “eeeeetnnnnnn” becomes Useful for fax machines –Lots of white, separate by occasional black

32 Joint Photographic Experts Group Starts with an array of pixels in RGB format –With one number per pixel for each of the three colors –And outputs a smaller file with some loss in quality Exploits both redundancy and human perception –Transforms data to identify parts that humans notice less –More about transforming the data in Wednesday’s class Uncompressed: 167 KBGood quality: 46 KBPoor quality: 9 KB

KB34 KB 8 KB Joint Photographic Experts Group (JPEG) Lossy compression

34 New Era of Computational Photography Beyond manual editing of photographs –E.g., to crop, lighten/darken, sharpen edges, etc. Post-processing of a single photography –De-blur photos marred by camera shake –Changing the depth of field or vantage point Combining multiple pictures –Creating three-dimensional representations –Stitching together photos for a larger view –Creating a higher-resolution picture of a single scene

35 Conclusion Conversion of information –Light (photons) and a optical lens –Charge (electrons) and electronic devices –Bits (0s and 1s) and a digital computer Combines many disciplines –Physics: lenses and light –Electrical engineering: charge coupled device –Computer science: manipulating digital representations –Mathematics: compression algorithms –Psychology/biology: human perception Next class: compression algorithms