02-Gray Scale Control TTF. A TTF tells us how an imaging device relates the gray level of the input to the gray level of the output. P L Luminance, L.

Slides:



Advertisements
Similar presentations
Photoshop Lab colorspace A quick and easy 26 step process for enhancing your photos.
Advertisements

Digital Image Processing
Grey Level Enhancement Contrast stretching Linear mapping Non-linear mapping Efficient implementation of mapping algorithms Design of classes to support.
Visualization and graphics research group CIPIC May 25, 2004Realistic Image Synthesis1 Tone Mapping Presented by Lok Hwa.
By Aaron Proia and Matthew Copenhaver.  For this presentation, we will be walking you through two processes that are commonly used in Photoshop.  These.
Quality Assurance and Digital Radiography
Chapter - 2 IMAGE ENHANCEMENT
Digital Imaging and Image Analysis
Image (and Video) Coding and Processing Lecture 5: Point Operations Wade Trappe.
Computer graphics & visualization HDRI. computer graphics & visualization Image Synthesis – WS 07/08 Dr. Jens Krüger – Computer Graphics and Visualization.
Imaging Science Fundamentals Chester F. Carlson Center for Imaging Science The Properties of Images and Imaging Devices Group II of the Imaging Chain.
Image Enhancement To process an image so that the result is more suitable than the original image for a specific application. Spatial domain methods and.
CS443: Digital Imaging and Multimedia Point Operations on Digital Images Spring 2008 Ahmed Elgammal Dept. of Computer Science Rutgers University Spring.
Resolving the Problem Resolution: Concepts & Definitions.
Image Forgery Detection by Gamma Correction Differences.
ETT 429 Spring 2007 Digital Photography/Scanners.
Optical Density and Brightness
Lecture 2. Intensity Transformation and Spatial Filtering
1/22/04© University of Wisconsin, CS559 Spring 2004 Last Time Course introduction Image basics.
UVP BioImaging Systems Solutions for the Science of Life Digital CCD Cameras 101.
Camera Functions Using Your Digital Camera. 1. What happens when you press the shutter button down halfway? What does macro mode allow you to do? Pressing.
Digital Image Characteristic
1 DICOM Imaging Pipeline Model Cor loef Philips Medical Systems.
Spectral contrast enhancement
Analog and Digital Cameras  History of Digital cameras  Advantages and Disadvantages / Similarities and Differences of both types of cameras  Types.
Scanning 101 and Beyond Media & Instructional Technology Services Darryl Simcoe, Instructor Scanning: process of converting images to digital data files.
The fifty Cent Version of Digital Imaging Bits Bytes Pixels Matrix Dynamic range Machine language Processors (8,10,12 bits etc.) Base 10 numbering Binary.
High Dynamic Range (HDR) Photography. Camera vs Eye Eye sees a wider range of color luminance than digital cameras HDR’s images compensate for this by.
Tone Mapping Software Photomatix Pro Application to Photography Konferenz und Workshop '05 Reality-Based Visualization.
Dynamic Range And Granularity. Dynamic range is important. It is defined as the difference between light and dark areas of an image. All digital images.
A Case Study using the Hugh Morton Photograph Collection A Photographic Journey brought to you by the Digital Production Center.
CS654: Digital Image Analysis Lecture 17: Image Enhancement.
Lecture Exposure/histograms. Exposure - Four Factors A camera is just a box with a hole in it. The correct exposure is determined by four factors: 1.
Chapter 1 INTRODUCTION TO IMAGE PROCESSING Section – 1.2.
© 1999 Rochester Institute of Technology Introduction to Digital Imaging.
Seeram Chapter #3: Digital Imaging
Digital Image Processing Contrast Enhancement: Part I
Point Operations – Chapter 5. Definition Some of the things we do to an image involve performing the same operation on each and every pixel (point) –We.
September 5, 2013Computer Vision Lecture 2: Digital Images 1 Computer Vision A simple two-stage model of computer vision: Image processing Scene analysis.
EE663 Image Processing Dr. Samir H. Abdul-Jauwad Electrical Engineering Department King Fahd University of Petroleum & Minerals.
1 COMS 161 Introduction to Computing Title: Digital Images Date: November 12, 2004 Lecture Number: 32.
Chapter 21 Film Sensitometry. Copyright © 2006 by Thomson Delmar Learning. ALL RIGHTS RESERVED.2 Objectives Calculate speed points, speed exposure points.
A Simple Image Model Image: a 2-D light-intensity function f(x,y)
Lecture 3 The Digital Image – Part I - Single Channel Data 12 September
Digital Image Processing (DIP) Lecture # 5 Dr. Abdul Basit Siddiqui Assistant Professor-FURC 1FURC-BCSE7.
Resolution: The Peanut Butter Analogy. When you scan an image or take a digital picture you are “collecting” a batch of pixels. The mega pixel rating.
How digital cameras work The Exposure The big difference between traditional film cameras and digital cameras is how they capture the image. Instead of.
The Reason Tone Curves Are The Way They Are. Tone Curves in a common imaging chain.
Student Name: Honghao Chen Supervisor: Dr Jimmy Li Co-Supervisor: Dr Sherry Randhawa.
Digital Image Processing EEE415 Lecture 3
More digital reading explaining LUT RT 244 Perry Sprawls, Ph.D. Professor Emeritus Department of Radiology Emory University School of.
Visual Computing Computer Vision 2 INFO410 & INFO350 S2 2015
Digital Image Processing CSC331 Image Enhancement 1.
03/03/03© 2003 University of Wisconsin Last Time Subsurface scattering models Sky models.
CS Spring 2010 CS 414 – Multimedia Systems Design Lecture 4 – Audio and Digital Image Representation Klara Nahrstedt Spring 2010.
More digital 244 wk 12 Perry Sprawls, Ph.D. Professor Emeritus Department of Radiology Emory University School of Medicine Atlanta, GA,
Digital Image Processing Image Enhancement in Spatial Domain
The Four Quadrant Tone Reproduction Curve (The "Jones Plot")
Scanner Scanner Introduction: Scanner is an input device. It reads the graphical images or line art or text from the source and converts.
Computer Graphics CC416 Lecture 04: Bresenham Line Algorithm & Mid-point circle algorithm Dr. Manal Helal – Fall 2014.
Digital Cameras in the Classroom Day One Basics Ann Howden UEN Professional Development
Landscape Photography
EXPOSURE Reed's Cameras- Digital Photo 101.
Chapter I, Digital Imaging Fundamentals: Lesson V Output
Chapter III, Desktop Imaging Systems and Issues: Lesson IV Working With Images
Video System TTFs Part (I): Basic Design Strategy.
Histogram Histogram is a graph that shows frequency of anything. Histograms usually have bars that represent frequency of occuring of data. Histogram has.
Its use in setting exposure
Grey Level Enhancement
Photoshop Levels.
Presentation transcript:

02-Gray Scale Control TTF

A TTF tells us how an imaging device relates the gray level of the input to the gray level of the output. P L Luminance, L pixel value, P

Luminance, L pixel value, P The TTF may be in the form of a graph, equation, or Look-Up-Table (LUT). P L L P becomes

pixel value, P (in the camera & sent to monitor) Original Luminance, L o An Imaging System involves Multiple imaging devices (TTFs) and Multiple kinds of images (types of gray) Luminance & Reflectance Irradiance, I (at the sensor) Luminance Note: We can't see a digital image. we see a copy of the digital image displayed on a monitor or printed on a printer. TTF(P vs L o ) (camera) TTF(L vs P) (monitor)

Luminance, L pixel value, P P L TTFs have many alternative names DLogH curve Characteristic curve Profile Tone curve I/O function ……etc. A successful imaging device must be designed with an appropriate TTF.

To understand the TTF of an imaging device, we first need to understand the gray scale properties of images. A printed, black & white image has gray values described as reflectance, R, decimal fractions from 0…1. A digital image has gray values described as pixel values, P, typically integers from 0…255.

Consider a hard copy image with gray values R (reflectance factor) from 0 to 1. Each location in the image (x,y) has a gray value R. x y

Gray levels, R, can be represented in a 3D graph. x y y x R However, this 3D graph isn't of much use.

So, we re-organize the gray values as follows. We call this graph a gray level Histogram.

The histogram tells us the properties of the gray level image. 01 Number of pixels R

For example, the point where the histogram balances is the "average" gray level of the image. has an average gray value of R=0.47.

The average value tells us the lightness/darkness of the image. Bright Image Dark Image

The width of the histogram tells us the contrast of the image. Lightness and Contrast are the two most common descriptions of the gray characteristics of an image. High Contrast Low Contrast R N 0 1 R N 0 1 R N 0 1

Digital images are described the same way. Lightness and Contrast are the two most common descriptions of the gray characteristics of any image. High Contrast Low Contrast P N P N 0 P N 0

There are many metrics for image contrast. Most are based on the maximum and minimum values in the histogram. There are two ways to show the range between P max and P min. NN N P P 0 P 0 P min P max (1) The contrast ratio: C = P max /P min (2) The contrast difference:  P = P max - P min (also called the "window") window

Printed images can be described in terms of Reflectance or Density. I o I printed image R ≡ I o / I and D ≡ -Log(R) A Rule of Thumb for Contrast Metrics: A ratio is used for describing things proportional to power. A difference is used for describing things proportional to Log(power) I is proportional to power.

Printed images can be described in terms of Reflectance or Density. I o I printed image I is proportional to power. Note that  D ≡ D max - D min = [-Log(R min ) ] - [-Log(R max ) ] = Log(R max ) - Log(R min ) = Log(R max /R min ) = Log(C) Two ways to describe image contrast: (1) C = R max /R min (2)  D = D max - D min R ≡ I o / I (R is proportional to power) and D ≡ -Log(R) (D is proportional to Log(power) )

"Dynamic Range": Printed Image I o I printed image Two ways to describe image contrast: (1) C = R max /R min (2)  D = D max - D min R ≡ I o / I (R is proportional to power) and D ≡ -Log(R) (D is proportional to Log(power) (1) C is often called the "Contrast Ratio" (2)  D is often called the "Dynamic Range" (Dr =  D)

L ≡ luminance in cd/m 2 L max and L min Image contrast is in terms of the maximum and the minimum luminance in the image. Contrast Ratio: C=L max /L min Dynamic Range: Dr = Log(C) "Dynamic Range": Monitor (soft) Image

Hard Copy Soft Copy Original Scene Contrast metrics of the Scene/Image L max L min L max L min D max R min D min R max "Image Contrast Ratio" C = L max /L min or C = R max /R min "Image Dynamic Range" Dr = Log(C) Note: These are contrast metrics of the Images, not the imaging devices that produced them. (See later)

Caution: There are many other metrics in common use to describe the gray scale properties of images. Many are industry or profession specific. Many are only loosely defined.

For example, professional photographers often use the term "Key" of an image. High "Key" Low "Key"

"Key is a characteristic of a "PROPERTLY" exposed image (subjective). Lightness is adjusted until a "PROPER" image is obtained. Then Key can be expressed in terms of the average gray level. Low "Key"

High "Key"

NOT low "Key", but an under exposed image. Learn the language of your customers!! Don't tell them they are "wrong" if their favorite metric is subjective.

Tone Characteristics of an Imaging Device

An imaging device changes one image into another. original L copy, P The tone characteristic of the imaging device is described by the TTF P L TTF of a camera transforms the the original histogram into the copy histogram. L N 0 0 P N 0 0

Tone Characteristics of an Imaging Device Just as the tone characteristics of an image are fully described by the histogram…………… original L copy, P …the tone characteristics of the imaging device are fully described by the TTF. P L L N 0 0 P N 0 0

Tone Characteristics of an Imaging Device Just as the tone characteristics of an image are partially described by metrics extracted from the histogram (contrast ratio, dynamic range, etc.)… original L copy, P …the tone characteristic of the imaging device partially described by metrics extracted from the TTF. P L L N 0 0 P N 0 0

Tone Characteristics of an Imaging Device original L copy, P L N 0 0 P N 0 0 Metrics of the TTF are defined differently for the three major types of imaging devices: (1) Image Capture Devices (camera, scanner, etc.) (2) Digital Image Processor (computers and chips) (3) Display Devices (printers, monitors, etc.)

Original Image Copy Image A computer is a commonly used DIP. It transforms one digital image into another digital image. PcPc PoPo PcPc PoPo PoPo PcPc (2) Digital Image Processor (DIP)

Original Image Copy Image PoPo PcPc DIPs Commonly provide simple controls for (1) Brightness and (2) contrast = Brightness = Lightness/Darkness = Level = Contrast = Window

The most common TTF that is provided in DIPs such as ImageJ and PhotoShop is a simple straight line. P c =  ∙ P o + i or P c =  ∙(P o - j) Original Image Copy Image PoPo PcPc PoPo 0 PcPc PoPo PcPc 0 0 Slope  and intercept, i PoPo PcPc Slope  and center location, j

PoPo PcPc Shifting the curve to the left is a brightness increase. The left/right location is called either "brightness", "lightness", or "level". Original Image Copy Image PoPo PcPc PoPo 0 PcPc Shifting the curve to the left is equivalent to increasing the intercept.

PoPo PcPc Original Image Copy Image PoPo PcPc 0 1 PoPo 0 1 PcPc Shifting the curve to the right is a brightness decrease. The left/right location is called either "brightness", "lightness", or "level".

PoPo PcPc  > 1 is a contrast increase. Original Image Copy Image PoPo PcPc 0 1 PoPo 0 1 PcPc window P c =  ∙ P o + i or P c =  ∙(P o - j) The slope is called either "contrast", "window", or "gamma".

The common digital TTF is a simple straight line. P 0 =  ∙ P c + i PoPo PcPc  < 1 is a contrast decrease Original Image Copy Image PoPo PcPc 0 1 PoPo 0 1 PcPc window

The Digital TTF Also called tone curve, profile, and LUT (look-up-table), point process Often, a much more complex TTF is needed. In that case, the TTF is not well described by two simple metrics.

The Digital TTF In "Threshold" Mode

Tone Characteristics of an Imaging Device original L copy, P L N 0 0 P N 0 0 Metrics of the TTF are defined differently for the three major types of imaging devices: (1) Image Capture Devices (camera, scanner, etc.) (2) Digital Image Processor (computers and chips) (3) Display Devices (printers, monitors, etc.)

Original Image Copy Image A printer converts pixel values, P, into reflection image density, D. D PoPo P D = -Log(R) (3) Display Devices (printers, monitors, etc.)

Generate P=0,1,2,3……255 (all possible P values) D Use a densitometer to measure all possible output density values the printer can make. The printer TTF D P D min D max printer convention monitor convention P=0,1,2,3……………… 255

The printer TTF D P D min D max Printer Dynamic Range =  D = D max - D min (Looks like an image dynamic range!! But it is NOT the same.) Note that the printer dynamic range is expressed in terms of the density it CAN produce (D min and D max ). An image dynamic range is expressed in terms of its individual D min and D max.

Original Image Copy Image A monitor converts pixel values, P, into screen Luminance, L. L PoPo P L (3) Display Devices (printers, monitors, etc.)

Generate P=0,1,2,3……255 (all possible P values) Measure all possible output Luminance values the monitor can make. The Monitor TTF L P L min L max L printer convention monitor convention P=0,1,2,3……………… 255

Monitor Contrast Ratio C = L max - L min Monitor Dynamic Range = Log(C) (Looks like an image dynamic range!! But it is NOT the same.) Note that the monitor dynamic range is expressed in terms of the luminance it CAN produce (L min and L max ). An image dynamic range is expressed in terms of its individual L min and L max. The Monitor TTF L P L min L max

Tone Characteristics of an Imaging Device original L copy, P L N 0 0 P N 0 0 Metrics of the TTF are defined differently for the three major types of imaging devices: (1) Image Capture Devices (camera, scanner, etc.) (2) Digital Image Processor (computers and chips) (3) Display Devices (printers, monitors, etc.)

(1) Image Capture Device (camera, scanner, etc.) Illuminance at sensor, I pixel value, P The TTF of the camera/scanner can be expressed in many ways: P vs R P vs L P vs I P vs H, where H= I∙ t P vs Log(H) object R reflected L R, L, I, H P It depends on the type of device and the specifications one wants to express.

(1) Image Capture Device (camera, scanner, etc.) Illuminance at sensor, I pixel value, P Or in terms of exposure, H = I∙t P vs R P vs L P vs I P vs H object R reflected L R, L, or I P

Film Camera: D Log(H) D max D min Log(H min )Log(H max ) Output Density Dynamic Range:  D = D max - D min Input Detection Contrast Ratio: C = H max /H min Input Detection Dynamic Range: Log(C) = Log(H max ) - Log(H min ) exposure, H = I∙t

The definition of Dynamic Range depends on defining D max, D min, H max, and H min. This means defining appropriate metrics of system noise.  H and  D. D Log(H) D max D min Log(H min )Log(H max ) Output Density Dynamic Range:  D = D max - D min Input Detection Contrast Ratio: C = H max /H min Input Detection Dynamic Range: Log(C) = Log(H max ) - Log(H min ) H max, and H min are the limiting values that are "meaningful" beyond the level of the noise. D max and D min are limiting D the film can make.

Digital Video Camera: P L P max = 255 P min = 0 L min L max Output Pixel Range:  = P max + 1 (number of discrete levels) Bit Depth = Log 2 (N) Input Detection Contrast Ratio: C = L max /L min Input Detection Dynamic Range: Log(C) = Log(L max ) - Log(L min ) Note: Bit Depth ≠ Camera Dynamic Range For a digital video camera the TTF is typically described as P vs L. Noise is a part of defining L min and L max.

Digital Still Camera: P H P max = 255 P min = 0 H min H max Output Pixel Range:  = P max + 1 (number of discrete levels) Bit Depth = Log 2 (N) Input Detection Contrast Ratio: C = H max /H min Input Detection Dynamic Range: Log(C) = Log(H max ) - Log(H min ) For a digital still camera exposure is H= I ∙t, and the TTF is often described as P vs H. Noise is a part of defining H min and H max. Exposure: H= I∙ t

Contrast Ratio, C = W max /W min Input Detection Dynamic Range: Log(C) But what kind of Logarithm do you use? Log is the "Common Logarithm"

Dynamic Range is defined using Logarithms of different bases, K. recall that Log K (C) = Log(C)/log(K) Log(C) = the regular base 10 logarithm of x. ln(C) = Log(C)/Log(e), called the natural log. Lg2(C) = Log(C)/Log(2) Db(C) = Log(C)/Log( ) called the decibel Db(C) = 10 ∙ Log(C) (another way to calculate Db) D(R) = log(R)/Log(0.1) D(R) = -1 ∙ log(R) (another way to calculate D) Common Log Natural Log Bits & Stops Decibel Density 10 e=2.718… =1.259… 1/10 = 0.1 Name How to Calculate The base, K

End