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 3<br />

JAI Actor Library<br />

The follow<strong>in</strong>g actors are all dependent on the JAI API, which is why the actor<br />

names are all prefixed.<br />

3.1 File I/O<br />

One of the ma<strong>in</strong> reasons JAI was chosen to implement the image process<strong>in</strong>g<br />

platform was the ease that images could be loaded <strong>and</strong> saved <strong>in</strong> a variety of<br />

different file types.<br />

3.1.1 JAI<strong>Image</strong>Reader<br />

All file load<strong>in</strong>g, regardless of file type, <strong>in</strong> the platform is done <strong>in</strong> the JAI<strong>Image</strong>Reader<br />

actor. It has one parameter, FileOrURL, that po<strong>in</strong>ts to an appropriate<br />

image file. The follow<strong>in</strong>g file types are supported.<br />

Bitmap (BMP)<br />

The Bitmap file format was developed <strong>by</strong> Microsoft. It is commonly used on<br />

their operat<strong>in</strong>g systems (for example, the desktop background). Version 2 <strong>and</strong><br />

Version 3 bitmaps can be read with no problems. Version 4 bitmaps can be<br />

specified with an alpha value (which controls transparency) <strong>and</strong> a gamma value<br />

18

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

Saved successfully!

Ooh no, something went wrong!