Create a movie that changes the edge detection amount over time.
What will be an ideal response?
```
/? ?
? Method t o c r e a t e a p o s t e r i z e d movie
? @param p t h e p i c t u r e t o u s e i n t h e movie
? @param d i r e c t o r y t h e d i r e c t o r y t o s t o r e t h e frame s i n
?/
public void makeEdgeDetectMovie ( P i c t u r e p , S t r i n g d i r e c t o r y )
{
// make a copy o f t h e p i c t u r e
P i c t u r e c o p y P i c t = null ;
// d e c l a r e o t h e r v a r i a b l e s
FrameSequencer f r a m e S e q u e n c e r =
new FrameSequencer ( d i r e c t o r y ) ;
int framesPerSec = 3 0 ;
// l o o p c r e a t i n g t h e frames
f o r ( i n t i = 0 ; i < f r a m e s P e r S e c ; i ++)
{
c o p y P i c t = new P i c t u r e ( p ) ;
c o p y P i c t . e d g e D e t e c t i o n (31? i ) ;
f r a m e S e q u e n c e r . addFrame ( c o p y P i c t ) ;
}
// p l a y t h e movie
frameSequencer . play ( framesPerSec ) ;
}
```
You might also like to view...
Match the following optical disks with their storage capacity
I. CD II. DVD single layer III. DVD double layer IV. Blu-ray single layer V. Blu-ray double layer A. 4.7 GB B. 25 GB C. 8.5 GB D. 50 GB E. 700 MB
Which of the following is NOT true about the Publisher box?
A) The Publisher box is sometimes called the "What's going on?" box. B) The Publisher box is the box at the top of your Timeline and Home pages that is used to post status updates. C) There is a Publisher box at the top of the right column on the Timeline page, as well as at the top of your Facebook News Feed on your Home page. D) To post a new status update, simply type a message into the Publisher box and click the Post button.