820 likes | 998 Views
สจพ. Image Processing. A/Prof.Dr.Supot Nitsuwat sns@kmitnb.ac.th http://it.kmitnb.ac.th. DIP. สจพ. Ch 2 Image Processing. 2.1 Pixel-based relation 2.2 Pixel-based operations 2.3 Histogram-based operations 2.4 Frequency-based operations 2.5 Group-based operations. DI&SP. MTCT. สจพ.
E N D
สจพ Image Processing A/Prof.Dr.Supot Nitsuwat sns@kmitnb.ac.th http://it.kmitnb.ac.th DIP
สจพ Ch 2 Image Processing 2.1 Pixel-based relation 2.2 Pixel-based operations 2.3 Histogram-based operations 2.4 Frequency-based operations 2.5 Group-based operations DI&SP MTCT
สจพ DI&SP MTCT
สจพ DI&SP MTCT
สจพ DI&SP MTCT
สจพ 2.1 Pixel-based basic relation 2.1.1 Neighboring System of a Pixel DI&SP MTCT
สจพ • 4-neighbors system (N4(p)) f(x,y) จุดภาพ p f(x,y-1) f(x-1,y) f(x,y+1) f(x+1,y) DI&SP MTCT
สจพ • Diagonal-neighbors system (ND(p)) f(x,y) f(x-1,y-1) f(x+1,y-1) f(x+1,y+1) f(x-1,y+1) DI&SP MTCT
สจพ • 8-neighbors system (N8(p)) f(x,y-1) f(x,y) f(x-1,y-1) f(x+1,y-1) f(x+1,y) f(x-1,y) f(x+1,y+1) f(x-1,y+1) f(x,y+1) DI&SP MTCT
สจพ 2.1.2 Connectivity DI&SP MTCT
สจพ 4-connectivity (D4) 8-connectivity (D8) DI&SP MTCT
สจพ Ex. Partial of image with intensity shown in piture. Find D4 , D8 , and Dm which isdistancesbetween A and B, ifV = {0,1}. 3 1 2 1B 2 2 0 3 1 2 1 2 A1 0 1 2 DI&SP MTCT
สจพ noD4from A toB 3 1 2 1 B 2 2 0 3 1 2 1 2 A 1 0 1 2 DI&SP MTCT
สจพ D8 from A toB 3 1 2 1 B 2 2 0 3 1 2 1 2 A 1 0 1 2 D8 from A to B 3 1 2 1 B 2 2 0 3 1 2 1 2 A 1 0 1 2 DI&SP MTCT
สจพ Dm จาก A ไปถีง B 3 1 2 1 B 2 2 0 3 1 2 1 2 A 1 0 1 2 DI&SP MTCT
สจพ 2.2 Pixel-based operations 2.2.1 Arithmetic Operations DI&SP MTCT
Image Addition • Used to create double-exposures + =
Image Averaging • Average multiple images (frames) of the same scene together • Useful for removing noise . . . + + =
Image Subtraction • Useful for finding changes between two images of (basically) the same scene • More useful to use absolute difference
Background Subtraction • “What’s changed?” (absolute difference) = -
สจพ a) b) c) DI&SP MTCT
สจพ = % a) b) c) • bad-illumination image • Image of white paper that has similar illumination with image a) prepared in LAB • Result of image division DI&SP MTCT
สจพ 2.2.2 Logical Operations • AND/NAND • OR/NOR • XOR/NXOR • NOT (Negative) DI&SP MTCT
สจพ DI&SP MTCT
สจพ d) a) b) c) = and g) e) f) DI&SP MTCT
สจพ DI&SP MTCT
สจพ b) a) c) d) DI&SP MTCT
สจพ DI&SP MTCT
สจพ a) b) = xor d) e) c) DI&SP MTCT