diff options
author | Paul B Mahol <onemda@gmail.com> | 2017-08-25 14:27:21 +0200 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2017-08-25 14:35:34 +0200 |
commit | 71907f25093966301770df11e61c7a0c76d6ac5e (patch) | |
tree | 414062d1c1f996e7684a495c2263df0c13111a49 /doc/filters.texi | |
parent | 3ddd10290afb88ffbb25d15863076002cfca4827 (diff) |
doc/filters: add pseudocolor example
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'doc/filters.texi')
-rw-r--r-- | doc/filters.texi | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/doc/filters.texi b/doc/filters.texi index bc618a8eb9..fb56c1654a 100644 --- a/doc/filters.texi +++ b/doc/filters.texi @@ -11833,6 +11833,16 @@ The maximum allowed component value. All expressions default to "val". +@subsection Examples + +@itemize +@item +Change too high luma values to gradient: +@example +pseudocolor='if(between(val,ymax,amax),lerp(ymin,ymax,(val-ymax)/(amax-ymax)),-1):if(between(val,ymax,amax),lerp(umax,umin,(val-ymax)/(amax-ymax)),-1):if(between(val,ymax,amax),lerp(vmin,vmax,(val-ymax)/(amax-ymax)),-1):-1' +@end example +@end itemize + @section psnr Obtain the average, maximum and minimum PSNR (Peak Signal to Noise |