Digital Media Dr. Jim Rowan ITEC 2110. Over the next several classes… In the next several lectures...

59
Digital Media Dr. Jim Rowan ITEC 2110

Transcript of Digital Media Dr. Jim Rowan ITEC 2110. Over the next several classes… In the next several lectures...

Page 1: Digital Media Dr. Jim Rowan ITEC 2110. Over the next several classes… In the next several lectures we will be covering these topics: –Vector graphics.

Digital Media

Dr. Jim Rowan

ITEC 2110

Page 2: Digital Media Dr. Jim Rowan ITEC 2110. Over the next several classes… In the next several lectures we will be covering these topics: –Vector graphics.

Over the next several classes…• In the next several lectures we will be covering these

topics:– Vector graphics– Bitmapped graphics– Color

• It will be presented in this order– Bitmapped graphics– Vector graphics part 1– Color parts 1 & 2– Vector graphics part 2: 3D

Page 3: Digital Media Dr. Jim Rowan ITEC 2110. Over the next several classes… In the next several lectures we will be covering these topics: –Vector graphics.

But First,More on “Telling the story”

• The media you choose shapes the way the story is told

• The WAY you represent data affects how it is interpreted…

• In images

• In words

• In graphs

Page 4: Digital Media Dr. Jim Rowan ITEC 2110. Over the next several classes… In the next several lectures we will be covering these topics: –Vector graphics.

For instance:Heard as an ad for a legal firm:

Has your disability claim been denied?

We win 75% of all denied disability claims!

How is that possible?(the implication is that all you need to do is hire them and you have

a 75% chance of winning)

Page 5: Digital Media Dr. Jim Rowan ITEC 2110. Over the next several classes… In the next several lectures we will be covering these topics: –Vector graphics.

For instance:Car Insurance Ads

• Several different insurance ads make the same basic claim:

• People who switch to us save $400 a year

• How is that possible?(the implication is that all you need to do is switch to them and you

will save $400)

Page 6: Digital Media Dr. Jim Rowan ITEC 2110. Over the next several classes… In the next several lectures we will be covering these topics: –Vector graphics.

• You need heart bypass surgery• You have a number of hospitals to

choose from• You make your decision based on

statistics• Do you choose the hospital with the

highest or lowest death rate for that procedure?

For instance:Which hospital would you choose?

Page 7: Digital Media Dr. Jim Rowan ITEC 2110. Over the next several classes… In the next several lectures we will be covering these topics: –Vector graphics.

The way you display the data affects how it is understood• Understanding this occurs at the crossroads of

computer graphics, cognitive science and psychology• The way data is displayed affects how people interpret

it– Colors can enhance or detract from a point– Numeric scales used

• Different types of graphs emphasize different aspects of the numbers– pie charts: pieces of the whole– bar charts: relative size or magnitude– line graphs: direction of increase or decrease

Page 8: Digital Media Dr. Jim Rowan ITEC 2110. Over the next several classes… In the next several lectures we will be covering these topics: –Vector graphics.

For instance:Using graphs to tell a story…

Page 9: Digital Media Dr. Jim Rowan ITEC 2110. Over the next several classes… In the next several lectures we will be covering these topics: –Vector graphics.

Is this the graph of a stable company?

income

Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec

Page 10: Digital Media Dr. Jim Rowan ITEC 2110. Over the next several classes… In the next several lectures we will be covering these topics: –Vector graphics.

Is this the graph of a stable company?

Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec

income

Page 11: Digital Media Dr. Jim Rowan ITEC 2110. Over the next several classes… In the next several lectures we will be covering these topics: –Vector graphics.

For instance:Using images to tell a story…

Page 12: Digital Media Dr. Jim Rowan ITEC 2110. Over the next several classes… In the next several lectures we will be covering these topics: –Vector graphics.

http://soundwaves.usgs.gov/2001/07/glacierbaymap.gif

Page 13: Digital Media Dr. Jim Rowan ITEC 2110. Over the next several classes… In the next several lectures we will be covering these topics: –Vector graphics.

http://soundwaves.usgs.gov/2001/07/glacierbaymap.gif

Page 14: Digital Media Dr. Jim Rowan ITEC 2110. Over the next several classes… In the next several lectures we will be covering these topics: –Vector graphics.

For instance:Looking at the images another way…

Page 15: Digital Media Dr. Jim Rowan ITEC 2110. Over the next several classes… In the next several lectures we will be covering these topics: –Vector graphics.

http://soundwaves.usgs.gov/2001/07/glacierbaymap.gif

Page 16: Digital Media Dr. Jim Rowan ITEC 2110. Over the next several classes… In the next several lectures we will be covering these topics: –Vector graphics.

http://soundwaves.usgs.gov/2001/07/glacierbaymap.gif

Page 17: Digital Media Dr. Jim Rowan ITEC 2110. Over the next several classes… In the next several lectures we will be covering these topics: –Vector graphics.

For instance:Using different images to tell the story…

Page 18: Digital Media Dr. Jim Rowan ITEC 2110. Over the next several classes… In the next several lectures we will be covering these topics: –Vector graphics.

1940http://www.real-science.com/playing-glacial-fraud-game

Page 19: Digital Media Dr. Jim Rowan ITEC 2110. Over the next several classes… In the next several lectures we will be covering these topics: –Vector graphics.

2004http://www.real-science.com/playing-glacial-fraud-game

Page 20: Digital Media Dr. Jim Rowan ITEC 2110. Over the next several classes… In the next several lectures we will be covering these topics: –Vector graphics.

1950http://www.real-science.com/playing-glacial-fraud-game

http://www2.gi.alaska.edu/ScienceForum/ASF17/1793.html

Page 21: Digital Media Dr. Jim Rowan ITEC 2110. Over the next several classes… In the next several lectures we will be covering these topics: –Vector graphics.

Want more?

Page 22: Digital Media Dr. Jim Rowan ITEC 2110. Over the next several classes… In the next several lectures we will be covering these topics: –Vector graphics.

Designing information display

• How to lie with statistics

• Edward Tufte, Yale University– Visual Display of Quantitative Information– Envisioning Information– Visual Explanations

Page 23: Digital Media Dr. Jim Rowan ITEC 2110. Over the next several classes… In the next several lectures we will be covering these topics: –Vector graphics.

Now about images…

Page 24: Digital Media Dr. Jim Rowan ITEC 2110. Over the next several classes… In the next several lectures we will be covering these topics: –Vector graphics.

Internal and External graphics models

• Internally an application keeps a numeric model– Inside a computer it’s all numbers

• To display the internal model so we can see it, an application must project this internal model onto a display– The internal model, the numbers, are in the computer– This process of projecting this model onto a display is

called “rendering”

Page 25: Digital Media Dr. Jim Rowan ITEC 2110. Over the next several classes… In the next several lectures we will be covering these topics: –Vector graphics.

As we’ve seen…

Two approaches to internal graphic modeling

• Why two approaches?– drastic file size differences– each is good for its type of image– each has its own unique advantages

• Bitmapped graphics– grandfathered name... more like pixel-mapped

graphics

• Vector graphics– think of is as object graphics because you

describe objects using vectors (formulas)

Page 26: Digital Media Dr. Jim Rowan ITEC 2110. Over the next several classes… In the next several lectures we will be covering these topics: –Vector graphics.

First, bitmapped images...Then vector graphics

Page 27: Digital Media Dr. Jim Rowan ITEC 2110. Over the next several classes… In the next several lectures we will be covering these topics: –Vector graphics.

00011000000011110000010110100000111100000001100000

A true bitmapped image is black and whiteEach logical pixel is represented by a single bit

Page 28: Digital Media Dr. Jim Rowan ITEC 2110. Over the next several classes… In the next several lectures we will be covering these topics: –Vector graphics.

When color came along it borrowed the idea...except that each logical pixel became a 3 byte RGB color specification instead of a single bit

Page 29: Digital Media Dr. Jim Rowan ITEC 2110. Over the next several classes… In the next several lectures we will be covering these topics: –Vector graphics.

24 Bit RGB• RGB

– red– green– blue

• 24 bits– 8 bits for red, 8 bits for green & 8 bits for blue

• 3 bytes– 1 byte for red, 1 for green & 1 for blue

• you get 2**8 = 256 different shades of red, 256 different shades of green and 256 different shades of blue

Page 30: Digital Media Dr. Jim Rowan ITEC 2110. Over the next several classes… In the next several lectures we will be covering these topics: –Vector graphics.

255

255

255

255

255

255

255

255

255

0

0

255

0

0

255

255

255

255

255

255

255

255

255

255

255

255

255

255

255

255

255

255

255

255

255

255

0

0

255

0

0

255

0

0

255

0

0

255

255

255

255

255

255

255

255

255

255

255

255

255

255

255

255

0

0

255

255

0

0

0

0

255

0

0

255

2550

0

0

0

255

255

255

255

255

255

255

255

255

255

255

255

255

255

255

255

0

0

255

0

0

255

0

0

255

0

0

255

255

255

255

255

255

255

255

255

255

255

255

255

255

255

255

255

255

255

255

255

255

0

0

255

0

0

255

255

255

255

255

255

255

255

255

255

255

255

255

255

255

255

1111 1111 . 1111 1111 . 1111 1111 1111 1111 . 1111 1111 . 1111 11111111 1111 . 1111 1111 . 1111 11110000 0000 . 0000 0000 . 1111 1111 0000 0000 . 0000 0000 . 1111 11111111 1111 . 1111 1111 . 1111 11111111 1111 . 1111 1111 . 1111 11111111 1111 . 1111 1111 . 1111 1111 1111 1111 . 1111 1111 . 1111 11111111 1111 . 1111 1111 . 1111 1111

1111 1111 . 1111 1111 . 1111 11111111 1111 . 1111 1111 . 1111 11110000 0000 . 0000 0000 . 1111 11110000 0000 . 0000 0000 . 1111 11110000 0000 . 0000 0000 . 1111 11110000 0000 . 0000 0000 . 1111 11111111 1111 . 1111 1111 . 1111 11111111 1111 . 1111 1111 . 1111 1111 1111 1111 . 1111 1111 . 1111 11111111 1111 . 1111 1111 . 1111 1111

1111 1111 . 1111 1111 . 1111 11110000 0000 . 0000 0000 . 1111 11111111 1111 . 0000 0000 . 0000 00000000 0000 . 0000 0000 . 1111 11110000 0000 . 0000 0000 . 1111 11111111 1111 . 0000 0000 . 0000 0000 0000 0000 . 0000 0000 . 1111 1111...for 1080 more bits...

1111 1111 . 1111 1111 . 1111

Page 31: Digital Media Dr. Jim Rowan ITEC 2110. Over the next several classes… In the next several lectures we will be covering these topics: –Vector graphics.

00 00 00 01 01 00 00 00 00 00

00 00 01 01 01 01 00 00 00 00

00 01 10 01 01 10 01 00 00 00

00 00 01 01 01 01 00 00 00 00

00 00 00 01 01 00 00 00 00 00

255

255

255

0

0

255

255

0

0

72 bits in the color table100 bits in the pixel map

172 bits total

Question:With 2 bits encoding the color, if we expanded the color table, how many colors could be represented?

Page 32: Digital Media Dr. Jim Rowan ITEC 2110. Over the next several classes… In the next several lectures we will be covering these topics: –Vector graphics.

First, bitmapped images...Then vector graphics

Page 33: Digital Media Dr. Jim Rowan ITEC 2110. Over the next several classes… In the next several lectures we will be covering these topics: –Vector graphics.

Vector graphics

• Internal model is very different than bitmapped graphics

• Images are described as mathematical equations

• Rendering is very different– must translate EQUATIONS to physical pixels– Simple to clip or scale– must compute the array of physical pixels from

the equations

Page 34: Digital Media Dr. Jim Rowan ITEC 2110. Over the next several classes… In the next several lectures we will be covering these topics: –Vector graphics.

Here are two images, blue squares with smaller colored squares inside themBoth are displayed as 1024 X 1024 pixels in sizeEach with 3 byte (24 bit, millions of colors) color encodingWhich would have the larger (in terms of file size) internal model?Why?

bitmapped graphic vector graphic

Page 35: Digital Media Dr. Jim Rowan ITEC 2110. Over the next several classes… In the next several lectures we will be covering these topics: –Vector graphics.

Here are two more complex imagesBoth are displayed as 1024 x 1024 pixels in sizeEach with 3 byte (24 bit, millions of colors) color encodingWhich would have the larger (in terms of file size) internal model?Why?

bitmapped graphic vector graphic

Page 36: Digital Media Dr. Jim Rowan ITEC 2110. Over the next several classes… In the next several lectures we will be covering these topics: –Vector graphics.

Bitmapped/Vector Graphics

• Bitmapped image file size is…– affected by dimensions & resolution and

resolution– not affected by contents

• Vector graphics file size is…– affected by the contents of the image

• the more complex, the larger the file gets

Page 37: Digital Media Dr. Jim Rowan ITEC 2110. Over the next several classes… In the next several lectures we will be covering these topics: –Vector graphics.

Bitmapped/Vector Graphics

• Access to objects found in the image?– vector is easy, objects are described mathematically

• this makes vector graphics the choice for animations– bitmapped, just pixels… no objects

• Special effect differences?– (like blur, which requires access to surrounding pixels)

– bitmapped • Easy; the pixels are stored in the model

– vector • There are no pixels in a vector graphic• First convert to bitmapped, then blur

Page 38: Digital Media Dr. Jim Rowan ITEC 2110. Over the next several classes… In the next several lectures we will be covering these topics: –Vector graphics.

Bitmapped/Vector Graphics

• Scaling and Resize– Vector? Simple... – Bitmapped? Complicated...

• frequently results in artifacts

• Why is bitmapped scaling and resizing complicated? ==>

Page 39: Digital Media Dr. Jim Rowan ITEC 2110. Over the next several classes… In the next several lectures we will be covering these topics: –Vector graphics.

Original image: 10 x 5 Now make it twice as big

Page 40: Digital Media Dr. Jim Rowan ITEC 2110. Over the next several classes… In the next several lectures we will be covering these topics: –Vector graphics.

Original image: 10 x 5 Now make it twice as big

Page 41: Digital Media Dr. Jim Rowan ITEC 2110. Over the next several classes… In the next several lectures we will be covering these topics: –Vector graphics.

Original image: 10 x 5 Now make it twice as bigWhat happens if there aretwo colors next to one another?Strictly duplicate?jagged edgesInterpolate them?

Page 42: Digital Media Dr. Jim Rowan ITEC 2110. Over the next several classes… In the next several lectures we will be covering these topics: –Vector graphics.

Original image: 10 x 5 Now make it twice as bigWhat happens if there aretwo colors next to one another?Strictly duplicate?jagged edgesInterpolate them?

Page 43: Digital Media Dr. Jim Rowan ITEC 2110. Over the next several classes… In the next several lectures we will be covering these topics: –Vector graphics.

Original image: 10 x 5 To make it 50% larger...

Page 44: Digital Media Dr. Jim Rowan ITEC 2110. Over the next several classes… In the next several lectures we will be covering these topics: –Vector graphics.

Original image: 10 x 5 To make it 50% larger...

What do you do?Do you make it 15 x 7? or 15 x 8?

1 pixel => 1? 2?There is no such thing as1.5 pixels...

Page 45: Digital Media Dr. Jim Rowan ITEC 2110. Over the next several classes… In the next several lectures we will be covering these topics: –Vector graphics.

The point here is:

Scaling is a problem for bitmapped graphics

Page 46: Digital Media Dr. Jim Rowan ITEC 2110. Over the next several classes… In the next several lectures we will be covering these topics: –Vector graphics.

Bitmapped scaling

Vector graphic scaling

Page 47: Digital Media Dr. Jim Rowan ITEC 2110. Over the next several classes… In the next several lectures we will be covering these topics: –Vector graphics.

Image manipulation tools:GIMP

Page 48: Digital Media Dr. Jim Rowan ITEC 2110. Over the next several classes… In the next several lectures we will be covering these topics: –Vector graphics.

Image layers

• Both bitmapped and vector graphics use layers as an organizational device

• Layers are used in two ways with bitmapped graphics– layers are used like digital tracing paper to isolate

objects in the image– colors can be separated and manipulated

individually

Page 49: Digital Media Dr. Jim Rowan ITEC 2110. Over the next several classes… In the next several lectures we will be covering these topics: –Vector graphics.

Image Manipulation Tools

• Selection tools– for regular shapes

• rectangular and elliptical marquee tools• why is it called marquee?

– for irregular shapes• lasso (polygon, magnetic, magic wand...)

– “magnetic" snaps to an enclosed object using edge-detection routines

Page 50: Digital Media Dr. Jim Rowan ITEC 2110. Over the next several classes… In the next several lectures we will be covering these topics: –Vector graphics.

Selection tools...

• Allow the application of filters to only the selected parts of the image– unaffected area is called a mask... can be

thought of as a stencil– opening in the mask allows background to

show through

Page 51: Digital Media Dr. Jim Rowan ITEC 2110. Over the next several classes… In the next several lectures we will be covering these topics: –Vector graphics.

Masks (like stencils)

• A 1-bit mask– 0 or 1– can be either transparent or opaque

• An 8-bit mask – allows 256 levels of transparency... AKA

alpha channel

Page 52: Digital Media Dr. Jim Rowan ITEC 2110. Over the next several classes… In the next several lectures we will be covering these topics: –Vector graphics.

More about Masks...

• Can have a gradient to produce a softer transition... a feathered edge

• Can use anti-aliasing along the edge which more effectively hides the hard edge visually

• Layers can have masks associated with them

• Allows interesting compositing of image parts

Page 53: Digital Media Dr. Jim Rowan ITEC 2110. Over the next several classes… In the next several lectures we will be covering these topics: –Vector graphics.
Page 54: Digital Media Dr. Jim Rowan ITEC 2110. Over the next several classes… In the next several lectures we will be covering these topics: –Vector graphics.
Page 55: Digital Media Dr. Jim Rowan ITEC 2110. Over the next several classes… In the next several lectures we will be covering these topics: –Vector graphics.
Page 56: Digital Media Dr. Jim Rowan ITEC 2110. Over the next several classes… In the next several lectures we will be covering these topics: –Vector graphics.

• We’ll talk more about size issues later when we discuss bitmapped graphics in more detail

• We will also consider compression techniques other than the table method

Page 57: Digital Media Dr. Jim Rowan ITEC 2110. Over the next several classes… In the next several lectures we will be covering these topics: –Vector graphics.

Questions?

Page 58: Digital Media Dr. Jim Rowan ITEC 2110. Over the next several classes… In the next several lectures we will be covering these topics: –Vector graphics.

about Computer Graphics...

• A very different viewing media than print– Usually consumed on a fairly low resolution monitor– Forcing us to look carefully at the processes that

move stuff from the real world to the computer... AND BACK!

• Graphic images work very differently on a screen than when in print– can be seen with lights out– will be viewed from different resolution monitors– viewing angles are different– reflections off screen

Page 59: Digital Media Dr. Jim Rowan ITEC 2110. Over the next several classes… In the next several lectures we will be covering these topics: –Vector graphics.

Computer Display types

• Now... all are rectangular arrays of pixels

• It’s not always been that way– Early graphics (1976) used a “steerable”

electron gun, not raster graphics– Since then...

• we have moved away from electron gun…