02-Gray Scale Control 17 July 2008 Thursday A fternoon 1:00-1:30 01-Exposure, Stops, and Photo-Effects 1:30-2:00 Lab 1 -Practice Shootw ith D 50 2:00-3:30 02-TTF & G ray ScaleControl 3:30-4:15 Lab 2 -Im ageJBrightness/Contrast 4:15-5:00 03-Photo Com position O vernight Lab 3 Take Photos 18 July 2008 Friday M orning 8:30-10:00 04-Video System TTFs 10:00-10:30 Lab 3-C ontinued -Photo Presentation & Critique 10:30-12:00 05-JonesPlot 17 July 2008 Thursday A fternoon 1:00-1:30 01-Exposure, Stops, and Photo-Effects 1:30-2:00 Lab 1 -Practice Shootw ith D 50 2:00-3:30 02-TTF & G ray ScaleControl 3:30-4:15 Lab 2 -Im ageJBrightness/Contrast 4:15-5:00 03-Photo Com position O vernight Lab 3 Take Photos 18 July 2008 Friday M orning 8:30-10:00 04-Video System TTFs 10:00-10:30 Lab 3-C ontinued -Photo Presentation & Critique 10:30-12:00 05-JonesPlot TTF
56
Embed
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.
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
02-Gray Scale Control
17 July 2008 Thursday Afternoon
1:00- 1:30 01-Exposure, Stops, and Photo-Effects
1:30-2:00 Lab 1 - Practice Shoot with D50
2:00-3:30 02-TTF & Gray Scale Control
3:30-4:15 Lab 2 - ImageJ Brightness/Contrast
4:15-5:00 03-Photo Composition
Overnight Lab 3 Take Photos
18 July 2008 Friday Morning
8:30-10:00 04-Video System TTFs
10:00-10:30 Lab 3- Continued - Photo Presentation & Critique
10:30-12:00 05-Jones Plot
17 July 2008 Thursday Afternoon
1:00- 1:30 01-Exposure, Stops, and Photo-Effects
1:30-2:00 Lab 1 - Practice Shoot with D50
2:00-3:30 02-TTF & Gray Scale Control
3:30-4:15 Lab 2 - ImageJ Brightness/Contrast
4:15-5:00 03-Photo Composition
Overnight Lab 3 Take Photos
18 July 2008 Friday Morning
8:30-10:00 04-Video System TTFs
10:00-10:30 Lab 3- Continued - Photo Presentation & Critique
10:30-12:00 05-Jones Plot
TTF
A TTF tells us how an imaging devicerelates the gray level of the inputto the gray level of the output.
P
L
Luminance, L
pixel value, P
Luminance, L
pixel value, P
3c3
2c2c10 LaLaLaaP
The TTF may be in the formof a graph, equation, or Look-Up-Table (LUT).
P
L
L
01020..
100110120
.
.300
P
001..
100110120
.
.255
becomes
pixel value, P(in the camera& sent to monitor)
Original Luminance, Lo
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 Lo)(camera)
TTF(L vs P)(monitor)
Luminance, L
pixel value, P
P
L
TTFs have many alternative namesDLogH curveCharacteristic curveProfile Tone curveI/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.
x
y
y
x
gray level
A printed, black & white image has gray valuesdescribed as reflectance, R, decimal fractionsfrom 0…1.
A digital image has gray values describedas pixel values, P, typically integers from 0…255.
Luminance, L
pixel value, P
Luminance, L
pixel value, P
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 Value: R = 0.653
Gray ScaleR = 1 is white
R = 0 is black
Gray levels, R, can be represented in a 3D graph.
x
y
y
x
R
However, this 3D graph isn't of much use.
0 1
Number of pixels
R
sort
remove
a
b c d
0.2 0.4 0.6 0.8
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.
0 1
Number of pixels
R
0 1R
0
1
0
1R R
R too low R too highBalance atR=0.47
For example, the point where the histogram balances isthe "average" gray level of the image.
has an average gray value of R=0.47.
N
Average R = 0.2 Average R = 0.47 Average R = 0.78
0 1
N
0 1 0 1RR R
The average value tells us the lightness/darkness of the image.
Bright ImageDark Image
The width of the histogram tells us the contrast of the image.
Lightness and Contrast are the two most common descriptionsof the gray characteristics of an image.
HighContrast
LowContrast
R
N
0 1 R
N
0 1R
N
0 1
Digital images are described the same way.
Lightness and Contrast are the two most common descriptionsof the gray characteristics of any image.
HighContrast
LowContrast
P
N
0 255 P
N
0 255P
N
0 255
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 Pmax and Pmin.
N NN
P0 255 P0 255P0 255
Pmin Pmax
(1) The contrast ratio: C = Pmax/Pmin
(2) The contrast difference: P = Pmax - Pmin (also called the "window")
window
Printed images can be described in terms of Reflectance or Density.
Io I
printed image
R ≡ Io/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.
Io I
printed image
I is proportional to power.
Note that D ≡ Dmax - Dmin = [-Log(Rmin) ] - [-Log(Rmax) ] = Log(Rmax) - Log(Rmin)= Log(Rmax/Rmin)= Log(C)
Two ways to describe image contrast:(1) C = Rmax/Rmin
(2) D = Dmax - Dmin
R ≡ Io/I (R is proportional to power)
and
D ≡ -Log(R) (D is proportional to Log(power) )
"Dynamic Range": Printed Image
Io I
printed imageTwo ways to describe image contrast:
(1) C = Rmax/Rmin
(2) D = Dmax - Dmin
R ≡ Io/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/m2
Lmax and Lmin
Image contrast is in terms of the maximumand the minimum luminance in the image.
Contrast Ratio: C=Lmax/Lmin
Dynamic Range: Dr = Log(C)
"Dynamic Range": Monitor (soft) Image
Hard Copy Soft CopyOriginal Scene
Contrast metrics of the Scene/Image
Lmax Lmin
Lmax LminDmax
Rmin
Dmin
Rmax
"Image Contrast Ratio" C = Lmax/Lmin or C = Rmax/Rmin
"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 todescribe 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"
High "Key"NOT low "Key", but anunder 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
Tone Characteristics of an Imaging Device
An imaging device changes one imageinto another.
original L
copy, P
The tone characteristic of theimaging device is described by the TTF
P
L
TTF of a cameratransforms thethe original histogram intothe copy histogram.
L
N
00
P
N
00
Tone Characteristics of an Imaging DeviceJust as the tone characteristics of an image are fully described bythe histogram……………
original L
copy, P
…the tone characteristicsof the imaging device are fully described by the TTF.
P
L
L
N
00
P
N
00
Tone Characteristics of an Imaging DeviceJust as the tone characteristics of an image arepartially described by metrics extracted from the histogram(contrast ratio, dynamic range, etc.)…
original L
copy, P
…the tone characteristicof the imaging device partially described by metrics extractedfrom the TTF.
P
L
L
N
00
P
N
00
Tone Characteristics of an Imaging Device
original L
copy, P
L
N
00
P
N
00
Metrics of the TTFare defined differently forthe 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 transformsone digital image intoanother digital image.