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...
The activities that ensure the overall security of the system during routine operation are known as ____.
A. monitoring duties B. evaluation duties C. functional duties D. operational duties
Software as a Service (SaaS) hosts web-based applications
Indicate whether the statement is true or false
Press CONTROL-SHIFT-HYPHEN to enter a(n) ____________________, which is a special type of hyphen that prevents two words separated by a hyphen from splitting at the end of a line.
Fill in the blank(s) with the appropriate word(s).
____ adjustments affect the tonal range of color, lighting, opacity, level, or fill.
A. Tonal B. Filter C. Style D. Measured