|
Usage:
noise_blur
noise_blur radius speed probability duration
Parameters:
radius
Maximum radius (in pixels) of square blurring kernel
speed
Speed (in pixels/sec) at which blurring kernel increases/decreases
probability
Probability (per frame) of refocus event occuring
duration
Duration (frames) of maximum blur
Description:
This function emulates a random refocussing event that can occur in autofocus cameras.
Refocussing is simulated through a uniform, square blurring kernel, which changes
in size from zero to maximum and back to zero during the event. The size of the blurring kernel,
refocus speed, duration at maximum blur, and probability of the refocus event per frame
are controlled by the input parameters. The effect is disabled by setting the
probability to zero, and the function can be called without parameters to print the current
parameter values. The effect is shown below for the command:
noise_blur 4.0 1.0 0.2 5.
 |
| Simulated refocussing effect |
|