DeInterlace
Function
This function has three different modes to replace one field of an interlaced
image, replacing the field with one of 3 options:
- Replicate - replace one field with the other.
- Interpolate - replaces a field with the average of the field above
and below it.
- Blur - replaces a field with the average of the average of the field
above and below it and the field itself. In other words, the field is
replaced with 50% of itself, 25% of the field above, and 25% of the
field below.
Parameters
|
Type
|
Defaults
|
Function
|
field |
int
|
0 |
The field to be kept
0 = even field
1 = odd field
|
mode |
int
|
0 |
The mode at with which the other field is replaced (see above)
0=Replicate
1=Interpolate
2=Blur
|
Synopsis
image DeInterlace( image, int field, int mode);
Script
image = DeInterlace( image, field, mode);
Command Line
shake -deinterlace field mode
See Also
Interlace, SwapFields,
Field
|