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.

3.2.3 JAICrop<br />

Operations will occasionally enlarge the dimensions of an image. When this is<br />

undesirable, the JAICrop actor can be used to select a rectangular region of<br />

<strong>in</strong>terest that is useful. Other times, only a portion of the image is <strong>in</strong>terest<strong>in</strong>g<br />

<strong>in</strong> which case, this actor may be used to restrict it to a smaller region.<br />

3.2.4 JA<strong>II</strong>nvert<br />

The JA<strong>II</strong>nvert actor <strong>in</strong>verts every b<strong>and</strong> (subtracts each b<strong>and</strong> from the maximum<br />

value allowed <strong>by</strong> the <strong>in</strong>ternal data type) on the <strong>in</strong>put image. This is often useful<br />

for <strong>in</strong>vert<strong>in</strong>g images that are very dark <strong>and</strong> would waste toner if pr<strong>in</strong>ted as is.<br />

3.2.5 JAIPeriodicShift<br />

The JAIPeriodicShift actor takes an image <strong>and</strong> extends it periodically <strong>in</strong> all<br />

four directions (with the horizontal <strong>and</strong> vertical periods be<strong>in</strong>g the width <strong>and</strong><br />

height respectively). It then shifts the image. The xShift parameter <strong>in</strong>dicates<br />

the amount to shift <strong>in</strong> the horizontal direction. A positive <strong>in</strong>teger corresponds<br />

to a shift to the right. A negative <strong>in</strong>teger corresponds to a shift to the left. A<br />

value of zero corresponds to no shift at all <strong>in</strong> the horizontal direction.<br />

The yShift parameter <strong>in</strong>dicates the amount to shift <strong>in</strong> the vertical direction.<br />

A positive <strong>in</strong>teger corresponds to a shift downwards. A negative <strong>in</strong>teger corre-<br />

30

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

Saved successfully!

Ooh no, something went wrong!