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.2 JAIBorder<br />

Operations occasionally will shr<strong>in</strong>k an image (for example, median filter<strong>in</strong>g).<br />

This is sometimes undesirable. To prevent shr<strong>in</strong>kage, an image can be bordered<br />

before undergo<strong>in</strong>g such an operation.<br />

The JAIBorder Actor offers several different border types:<br />

Constant<br />

c c c c c c c<br />

c c c c c c c<br />

c c 1 2 3 c c<br />

c c 4 5 6 c c<br />

c c 7 8 9 c c<br />

c c c c c c c<br />

c c c c c c c<br />

The border is filled with a supplied constant. If there are not enough constants<br />

for each b<strong>and</strong>, then the first constant will be used to fill the border of each b<strong>and</strong>.<br />

Copy<br />

1 1 1 2 3 3 3<br />

1 1 1 2 3 3 3<br />

1 1 1 2 3 3 3<br />

4 4 4 5 6 6 6<br />

7 7 7 8 9 9 9<br />

7 7 7 8 9 9 9<br />

7 7 7 8 9 9 9<br />

The border pixels are copies of the edge pixels.<br />

28

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

Saved successfully!

Ooh no, something went wrong!