30.01.2013 Views

Shih_Image_Processing_and_Mathematical_Morpholo.pdf

Shih_Image_Processing_and_Mathematical_Morpholo.pdf

Shih_Image_Processing_and_Mathematical_Morpholo.pdf

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

14 <strong>Image</strong> <strong>Processing</strong> <strong>and</strong> <strong>Mathematical</strong> <strong>Morpholo</strong>gy<br />

AND<br />

OR<br />

Input A Input B Output Input A Input B Output<br />

0 0 0<br />

0 0 0<br />

0 1 0<br />

0 1 1<br />

1 0 0<br />

1 0 1<br />

1 1 1<br />

1 1 1<br />

NAND<br />

NOR<br />

Input A Input B Output Input A Input B Output<br />

0 0 1<br />

0 0 1<br />

0 1 1<br />

0 1 0<br />

1 0 1<br />

1 0 0<br />

1 1 0<br />

1 1 0<br />

Input A<br />

XOR<br />

Input B Output<br />

0 0 0<br />

0 1 1<br />

1 0 1<br />

1 1 0<br />

NOT<br />

A A<br />

0 1<br />

1 0<br />

FIGURE 2.2 The truth tables of AND, OR, NOT, NAND, NOR, <strong>and</strong> XOR operations.<br />

tables of each logical operation illustrating all of the input combinations are<br />

shown in Figure 2.2. Their schematic symbols used in circuit diagrams are<br />

shown in Figure 2.3.<br />

A binary image consists of object pixels 1 <strong>and</strong> background pixels 0, which<br />

can be interpreted as true <strong>and</strong> false, respectively, in the truth tables. By applying<br />

this concept, one can conduct logic operations on binary images by simply<br />

Input A<br />

Input B<br />

Input A<br />

Input B<br />

InputA Output<br />

InputB (a) (b)<br />

A A –<br />

(c) (d)<br />

Output<br />

Input A<br />

Input B<br />

Input A<br />

Input B<br />

(e) (f)<br />

Output<br />

Output<br />

Output<br />

FIGURE 2.3 The schematic symbols used in circuit diagrams of (a) AND, (b) OR, (c) NOT,<br />

(d) NAND, (e) NOR, <strong>and</strong> (f) XOR operations.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!