02.08.2013 Views

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

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 4<br />

<strong>Image</strong> <strong>Process<strong>in</strong>g</strong> Examples<br />

Hello Ptolemaeus Figure 4.1 shows a “Hello World” example. Note that<br />

the JAI<strong>Image</strong>Reader (section 3.1.1 on page 18) loads a picture of Claudius<br />

Ptolemaeus <strong>by</strong> default.<br />

DFT-IDFT Cha<strong>in</strong> Figure 4.2 illustrates the need for the JAIDataConvert<br />

actor (section 3.6 on page 42). The JAIDFT actor changes the data type of the<br />

encapsulated image to double. The JA<strong>II</strong>DFT actor preserves the data type of<br />

the <strong>in</strong>put. The data type must be changed to <strong>by</strong>te so that the image can be<br />

displayed. While there was an effort made to abstract away the need to control<br />

the <strong>in</strong>ternal data type of the image, <strong>in</strong> some cases, such as this DFT-IDFT<br />

cha<strong>in</strong>, it is necessary for the user to change it.<br />

Figure 4.1: A simple model to load <strong>and</strong> display an image.<br />

44

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

Saved successfully!

Ooh no, something went wrong!