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

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

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

Chapter 2<br />

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

2.1 <strong>Image</strong>s <strong>in</strong> JAI<br />

The RenderedOp is the data structure from JAI that is used <strong>in</strong> this platform.<br />

<strong>Image</strong>s <strong>in</strong>side this data structure are not rendered until they need to be (for<br />

<strong>in</strong>stance if the width or height of the image is required, or if the images themselves<br />

need to be rendered to display).<br />

<strong>Image</strong>s are a collection of po<strong>in</strong>ts called pixels, <strong>and</strong> typically are thought of<br />

as hav<strong>in</strong>g a b<strong>and</strong> for each salient feature. For <strong>in</strong>stance <strong>in</strong> an RGB (Red, Green,<br />

Blue) image, all of the red pixels form a b<strong>and</strong>, all of the green pixels form a<br />

b<strong>and</strong>, <strong>and</strong> all of the blue ones form a b<strong>and</strong>.<br />

However, b<strong>and</strong>s do not necessarily conta<strong>in</strong> <strong>in</strong>tensity data. When a Discrete<br />

Fourier Transform (see section 3.5.1 on page 39) is performed on an image,<br />

the image will be represented as frequency data. This data, mathematically, is<br />

typically complex, so a color <strong>in</strong> the spatial doma<strong>in</strong> will be represented as two<br />

b<strong>and</strong>s <strong>in</strong> the frequency doma<strong>in</strong> (one for each part of a complex number).<br />

2.1.1 Orig<strong>in</strong><br />

The orig<strong>in</strong> of an image is typically the top left corner. Almost all the actors<br />

preserve the location of the orig<strong>in</strong>. The orig<strong>in</strong> can be moved however, <strong>by</strong> us<strong>in</strong>g<br />

the JAITranslate (see section 3.2.8 on page 33) actor. This does not change how<br />

the image is displayed or saved, but it will effect the output of some actors that<br />

<strong>in</strong>volve two or more images (for <strong>in</strong>stance, when two images are added together,<br />

only the <strong>in</strong>tersection of the two images are used).<br />

2.1.2 Data Types<br />

When stored or loaded, image data is <strong>in</strong> one of the many non-float<strong>in</strong>g po<strong>in</strong>t data<br />

types. However what goes on with<strong>in</strong> a model may change the <strong>in</strong>ternal data type<br />

14

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

Saved successfully!

Ooh no, something went wrong!