This repository has been archived by the owner on Jul 12, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
RemoveGrain
Victor Efimov edited this page Dec 2, 2013
·
2 revisions
RemoveGrain (
clip,
int mode (1),
int modeU (mode),
int modeV (modeU),
bool planar (false)
)
-
clip
- Input clip. -
mode
- The smoothing mode. It can apply to all the planes or to the Y plane only, depending on the values ofmodeU
andmodeV
. Some of the RemoveGrain modes have not been ported yet (25 and above). The available ones are listed below. -
modeU, modeV
- Same as mode but for U and V planes. If not defined, they use the same value as mode. IfmodeV
is the only one not defined, it will default to the value ofmodeU
. -
planar
- Parameter to keep compatibility with the original RemoveGrain. Its internal name is "skip colorspace check", which is exactly what it does - makes the plugin always assume the input to be planar.
−1 | The plane is not touched at all and may contain garbage on output. |
0 | The plane is copied without being processed. |
1 | Clips the pixel with the minimum and maximum of the 8 neighbour pixels. |
2 | Clips the pixel with the second minimum and maximum of the 8 neighbour pixels. |
3 | Clips the pixel with the third minimum and maximum of the 8 neighbour pixels. |
4 | Clips the pixel with the fourth minimum and maximum of the 8 neighbour pixels, which is equivalent to a median filter. |
5 | Line-sensitive clipping giving the minimal change. |
6 | Line-sensitive clipping, intermediate. |
7 | Line-sensitive clipping, intermediate. |
8 | Line-sensitive clipping, intermediate. |
9 | Line-sensitive clipping on a line where the neighbours pixels are the closest. |
10 | Replaces the target pixel with the closest neighbour. |
11 | [1 2 1] horizontal and vertical kernel blur. Similar to Blur(1) . |
12 | Same as mode 11. |
13 | Bob mode, interpolates top field from the line where the neighbours pixels are the closest. |
14 | Bob mode, interpolates bottom field from the line where the neighbours pixels are the closest. |
15 | Bob mode, interpolates top field. Same as 13 but with a more complicated interpolation formula. |
16 | Bob mode, interpolates bottom field. Same as 14 but with a more complicated interpolation formula. |
17 | Clips the pixel with the minimum and maximum of respectively the maximum and minimum of each pair of opposite neighbour pixels. |
18 | Line-sensitive clipping using opposite neighbours whose greatest distance from the current pixel is minimal. |
19 | Replaces the pixel with the average of its 8 neighbours. |
20 | Averages the 9 pixels ([1 1 1] horizontal and vertical blur). Similar to Blur(1.58) . |
21 | Clips pixels using the averages of opposite neighbour |
22 | Same as mode 21 but simpler and faster. |
23 | Small edge and halo removal, but reputed useless. |
24 | Small edge and halo removal, but reputed useless. |