98
520251: Multimedia Systems [!"#$%&] !"#$%&'()*'()*+',-.,/ 29 '+012%/2 2553 1

03 image andgraphics

Embed Size (px)

Citation preview

Page 1: 03 image andgraphics

520251: Multimedia Systems

[!"#$%&]!"#$%&'()*'()*+',-.,/

29 '+012%/2 2553

1

Page 2: 03 image andgraphics

Raster vs vector

2

Page 3: 03 image andgraphics

Raster Graphics vs Vector Graphics

Raster graphics(bitmap image)

3

Page 4: 03 image andgraphics

Raster Graphics vs Vector Graphics

Raster graphics(bitmap image)

Vector graphics(drawing)

3

Page 5: 03 image andgraphics

Raster Graphics vs Vector Graphics

Raster graphics(bitmap image)

Vector graphics(drawing)

4

Page 6: 03 image andgraphics

Raster Graphics vs Vector Graphics

Raster graphics(bitmap image)

Vector graphics(drawing)

4

Page 7: 03 image andgraphics

Raster Graphics vs Vector Graphics

Raster graphics(bitmap image)

Vector graphics(drawing)

5

Page 8: 03 image andgraphics

Raster Graphics vs Vector Graphics

Raster graphics(bitmap image)

Vector graphics(drawing)

5

Page 9: 03 image andgraphics

$%&344 raster

%&'()*+,#-./+ (x,y) 0&1-(#"2 pixel

6

Page 10: 03 image andgraphics

$%&344 raster

34"5' pixel 67)8,)9:5

7

Page 11: 03 image andgraphics

$%&344 raster

8,)9:54,);<=,>7?$@1A<$(2&.B+0(C*

8

Page 12: 03 image andgraphics

$%&344 raster

6D+;"2-E .F$#$ pixel 92(G2><=,>7?$@1AH92(

9

Page 13: 03 image andgraphics

#566(/7,849:;2%.

6<2=2 pixel (resolution)

lena_color_256.tif, 256x256, 201 KB

lena_color_512.tif, 512x512, 791 KB!"#$%: http://www.imageprocessingplace.com/root_files_V3/image_databases.htm

10

Page 14: 03 image andgraphics

#566(/7,849:;2%.

>=%')?@;A:B, (color depth)

lena_color_256.tif, 256x256, 201 KB

lena_gray_256.tif, 256x256, 70 KB

!"#$%: http://www.imageprocessingplace.com/root_files_V3/image_databases.htm

11

Page 21: 03 image andgraphics

Color Depth

!"#$%: http://www.gimvic.org/predmeti/informatika/gradiva/navodila-strani/Uporaba_grafike.html14

Page 22: 03 image andgraphics

Color Depth

!"#$%: http://www.gimvic.org/predmeti/informatika/gradiva/navodila-strani/Uporaba_grafike.html15

Page 23: 03 image andgraphics

Color Depth

!"#$%: http://www.gimvic.org/predmeti/informatika/gradiva/navodila-strani/Uporaba_grafike.html16

Page 24: 03 image andgraphics

%&'0+C$4"2;E8); raster graphics

resolution x color depth

0@6I$I5-1)/%(&JK0(1A-#(B*G2>

(2&>BL$20@6I$I5-1 image processing

)B5()&DMN90>7A)(2&3!+;O5G2>

(2&*1*)B+8,)9:5

17

Page 25: 03 image andgraphics

-7>C2C)/,A1#@!DE-@,8/=@(4$%&

18

Page 26: 03 image andgraphics

Input

19

Page 27: 03 image andgraphics

Output

20

Page 28: 03 image andgraphics

)B5()&DMN9<$(2&3!+;O5G2>

21

Page 29: 03 image andgraphics

Anti-aliasing

aliasing = !A/F/(@4!+-=D;A4

22

Page 30: 03 image andgraphics

Anti-aliasing

jaggies

aliasing = !A/F/(@4!+-=D;A4

22

Page 31: 03 image andgraphics

Anti-aliasing

jaggies

aliasing = !A/F/(@4!+-=D;A4 anti-aliasing = 7<GFH;A4." smooth

22

Page 32: 03 image andgraphics

Anti-aliasing

jaggies

aliasing = !A/F/(@4!+-=D;A4 anti-aliasing = 7<GFH;A4." smooth

22

Page 33: 03 image andgraphics

Anti-aliasing

jaggies

aliasing = !A/F/(@4!+-=D;A4 anti-aliasing = 7<GFH;A4." smooth

22

Page 35: 03 image andgraphics

Dithering

aliasing = -7>2+>@%!)=:*%'21I/EG2@%!

(-F'JA2@(4)-&+8'#!+'%D color depth

$%/G*H#!+'%DB, (color palette) 7,8',

6<@(.

!"#$%: http://en.wikipedia.org/wiki/Dithering

24

Page 36: 03 image andgraphics

Dithering

aliasing = -7>2+>@%!)=:*%'21I/EG2@%!

(-F'JA2@(4)-&+8'#!+'%D color depth

$%/G*H#!+'%DB, (color palette) 7,8',

6<@(.

!"#$%: http://en.wikipedia.org/wiki/Dithering

24

Page 42: 03 image andgraphics

Dithering

!"#$%: http://www.gimvic.org/predmeti/informatika/gradiva/navodila-strani/Uporaba_grafike.html27

Page 43: 03 image andgraphics

“Image compression is the

application of data

compression on digital images.

In effect, the objective is to

reduce redundancy of the

image data in order to be able

to store or transmit data in an

efficient form....”

Image Compression

28

Page 44: 03 image andgraphics

Image Compression

lossless lossy

29

Page 45: 03 image andgraphics

lossless

30

Page 46: 03 image andgraphics

Image Compression

lossless lossy

31

Page 47: 03 image andgraphics

lossy

!"#$%: http://en.wikipedia.org/wiki/Jpeg

hi-quality comp: 83,261 Bytes

lo-quality comp: 4,787 Bytes

32

Page 48: 03 image andgraphics

Image File Format

33

Page 49: 03 image andgraphics

JPEG

<=,0@6$D6(2&-")PQ5K3** lossy compression

34

Page 50: 03 image andgraphics

JPEG

<=,0@6$D6(2&-")PQ5K3** lossy compression

I-$8,)9:5!"#$@1A429$/R-K9);0SC$6#2934(4"2;P+,-2())(P%

34

Page 51: 03 image andgraphics

JPEG

<=,0@6$D6(2&-")PQ5K3** lossy compression

I-$8,)9:5!"#$@1A429$/R-K9);0SC$6#2934(4"2;P+,-2())(P%

0%T$&:%3**PQ5K@1A$D-9<=,<$ www 92(@1A!/+ (I+-0U>2'G2>V"2-)

34

Page 52: 03 image andgraphics

JPEG

<=,0@6$D6(2&-")PQ5K3** lossy compression

I-$8,)9:5!"#$@1A429$/R-K9);0SC$6#2934(4"2;P+,-2())(P%

0%T$&:%3**PQ5K@1A$D-9<=,<$ www 92(@1A!/+ (I+-0U>2'G2>V"2-)PQ5K05C(34"0(C*&2-5'0)1-+!:;

34

Page 53: 03 image andgraphics

JPEG

<=,0@6$D6(2&-")PQ5K3** lossy compression

I-$8,)9:5!"#$@1A429$/R-K9);0SC$6#2934(4"2;P+,-2())(P%

0%T$&:%3**PQ5K@1A$D-9<=,<$ www 92(@1A!/+ (I+-0U>2'G2>V"2-)PQ5K05C(34"0(C*&2-5'0)1-+!:;

0(C*G2>!1P+,S52(S52-6#295N(8);!1

34

Page 57: 03 image andgraphics

38

Page 58: 03 image andgraphics

39

Page 60: 03 image andgraphics

41

Page 61: 03 image andgraphics

☹not suitable for line drawing or

images with text

jpg

gif

JPEG

42

Page 62: 03 image andgraphics

43

Page 63: 03 image andgraphics

GIF

<=,0@6$D6(2&-")PQ5K3** lossless

compression (LZW)

44

Page 64: 03 image andgraphics

GIF

<=,0@6$D6(2&-")PQ5K3** lossless

compression (LZW)

6#295N(8);!1P+,0>1-; 8-bit

44

Page 65: 03 image andgraphics

GIF

<=,0@6$D6(2&-")PQ5K3** lossless

compression (LZW)

6#295N(8);!1P+,0>1-; 8-bit

0S92'(B*G2>@1A915B(RJ'52-0!,$ P9"0S92'(B*G2>V"2-

44

Page 66: 03 image andgraphics

GIF

<=,0@6$D6(2&-")PQ5K3** lossless

compression (LZW)

6#295N(8);!1P+,0>1-; 8-bit

0S92'(B*G2>@1A915B(RJ'52-0!,$ P9"0S92'(B*G2>V"2-

44

Page 67: 03 image andgraphics

GIF (Transparent)

45

Page 68: 03 image andgraphics

GIF89a (Animation)

46

Page 69: 03 image andgraphics

PNG

<=,0@6$D6(2&-")PQ5K3** lossless

compression

47

Page 70: 03 image andgraphics

PNG

<=,0@6$D6(2&-")PQ5K3** lossless

compression

true color

47

Page 71: 03 image andgraphics

PNG

<=,0@6$D6(2&-")PQ5K3** lossless

compression

true color

web browser &/"$<S9"E !$B*!$/$ png

47

Page 72: 03 image andgraphics

PNG

<=,0@6$D6(2&-")PQ5K3** lossless

compression

true color

web browser &/"$<S9"E !$B*!$/$ png

!292&V&);&B* transparency @1AWB*W,)$P+,

47

Page 73: 03 image andgraphics

PNG

<=,0@6$D6(2&-")PQ5K3** lossless

compression

true color

web browser &/"$<S9"E !$B*!$/$ png

!292&V&);&B* transparency @1AWB*W,)$P+,

47

Page 74: 03 image andgraphics

I%&3(&94*34";G2>

48

Page 75: 03 image andgraphics

49

Page 76: 03 image andgraphics

50

Page 77: 03 image andgraphics

51

Page 78: 03 image andgraphics

52

Page 79: 03 image andgraphics

Acquiring an Image

• Screen capture

• Scanner

• Digital camera & digital VDO camera

• Other sources

53

Page 80: 03 image andgraphics

Scanner

54

Page 81: 03 image andgraphics

Scanner

54

Page 82: 03 image andgraphics

Scanners

Flatbed Sheet-fed

55

Page 83: 03 image andgraphics

Scanners

Handheld Drum

Use photomultiplier tube (PMT) instead of CCD (read more on wiki)

56

Page 84: 03 image andgraphics

Scanned Image Size (in 24-bit color)

Resolution (dpi)

image dimensionimage dimensionimage dimension

1”x1” 4”x6” 8.5”x11”

72 15 KB 356 KB 1,420 KB

100 29 KB 703 KB 2,739 KB

300 264 KB 6,328 KB 24,653 KB

600 1,055 KB 25,313 KB 98,613 KB

57

Page 85: 03 image andgraphics

Digital Camera & VDO Camera

58

Page 86: 03 image andgraphics

Digital Camera & VDO Camera

58

Page 87: 03 image andgraphics

Digital Camera & VDO Camera

58

Page 88: 03 image andgraphics

Digital Camera & VDO Camera

59

Page 89: 03 image andgraphics

JPEG vs RAW

• Normally, digital cameras save their images in the JPEG format.

• Automatically adjusts: white-balance and all.

• RAW format is exactly what the camera sees when it takes the picture; NO adjustments have been made to the images. BUT, the file is a lot bigger in size...

60

Page 90: 03 image andgraphics

Type of image Min resolution Camera Spec.

Web images 640x480 1 megapixel +

5”x7” 2048x1536 3 megapixels +

8”x10” 2272x1704 4 megapixels +

16”x20” 3072x2048 6 megapixels +

61

Page 91: 03 image andgraphics

Editing Raster Images

• Selecting an Area

• Cropping

• Image resizing & canvas size

• Rotating

• Adjusting the balance

62

Page 92: 03 image andgraphics

Editing Raster Images

• Sharping the contrast

• Adjusting the resolution

• Saving and exporting

63

Page 93: 03 image andgraphics

Vector Graphics

64

Page 94: 03 image andgraphics

Vector Graphics

65

Page 95: 03 image andgraphics

Vector Graphics

66

Page 96: 03 image andgraphics

Vector Graphics

66

Page 97: 03 image andgraphics

Vector Graphics

66

Page 98: 03 image andgraphics

3D Modeling

67