Image and Video Processing Libraries in Ptolemy II by ... - CiteSeerX
Image and Video Processing Libraries in Ptolemy II by ... - CiteSeerX
Image and Video Processing Libraries in Ptolemy II by ... - CiteSeerX
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
1 0 -1<br />
√ 2 0 - √ 2<br />
1 0 -1<br />
-1 - √ 2 -1<br />
0 0 0<br />
1 √ 2 1<br />
Figure 3.9: Frei <strong>and</strong> Chen Horizontal <strong>and</strong> Vertical Masks<br />
1 0 -1<br />
1 0 -1<br />
1 0 -1<br />
-1 -1 -1<br />
0 0 0<br />
1 1 1<br />
Figure 3.10: Prewitt Horizontal <strong>and</strong> Vertical Masks<br />
3.4.4 JAIEdgeDetection<br />
It is often useful to be able to detect edges <strong>in</strong> images. A common use of edge<br />
detection is to be able to segment an image <strong>in</strong>to different objects.<br />
The JAIEdgeDetection uses a gradient based method. The <strong>in</strong>put image is<br />
filtered with two different masks. The two <strong>in</strong>termediate images are squared,<br />
added to each other, <strong>and</strong> then square rooted.<br />
There are several built <strong>in</strong> masks, shown <strong>in</strong> figures 3.9 to 3.13. The user can<br />
choose to <strong>in</strong>put a custom mask <strong>by</strong> choos<strong>in</strong>g “User Specified” from either or both<br />
of the pull down menus, <strong>and</strong> <strong>in</strong>putt<strong>in</strong>g the appropriate values <strong>in</strong> the field(s).<br />
3.5 Frequency Doma<strong>in</strong> <strong>Process<strong>in</strong>g</strong><br />
Traditionally we look at images as a plot of <strong>in</strong>tensity over space. However we<br />
can transform these images to plots of magnitude <strong>and</strong> phase over frequency.<br />
38