AkarinVS / vapoursynth-plugin

My experimental VapourSynth plugin: (1) an enhanced LLVM-based std.Expr (aka lexpr), Select, PropExpr, Text and Tmpl. (2) DLISR. (3) DLVFX (4) CAMBI.
GNU Lesser General Public License v3.0
37 stars 8 forks source link

RemoveGrain example is wrong #5

Closed dnjulek closed 3 years ago

dnjulek commented 3 years ago

You need !min before swap, or you will use the second lowest value, because swap7 actually becomes: '0 6 5 4 3 2 1 7'

'sort8 min! swap6 max! drop6 x min@ max@ clamp' This way the result was right.

AkarinVS commented 3 years ago

Yeah, I made a mistake. Thanks for the report.

Actually, using dupN should make this example clearer.

AkarinVS commented 3 years ago

Fixed. Thanks again.

dnjulek commented 3 years ago

Thank you for adding this, I was already wanting to use rmg via Expr, but didn't want to bother you, and you just added what I needed 👍