Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #@gui Hessian Blend: fx_hessian_blend, fx_hessian_blend_preview(1)
- #@gui : Norm 1 = float (0,-5,5)
- #@gui : Norm 2 = float (1,-5,5)
- #@gui : Merging option = choice(27,"add","alpha","and","average","blue","burn","darken",
- #@gui : "difference","divide","dodge","exclusion","freeze",
- #@gui : "grainextract","grainmerge","green","hardlight","hardmix",
- #@gui : "hue","interpolation","lighten","lightness","linearburn",
- #@gui : "linearlight","luminance","multiply","negation","or",
- #@gui : "overlay","pinlight","red","reflect","saturation","screen",
- #@gui : "shapeaverage","softburn","softdodge","softlight","stamp",
- #@gui : "subtract","value","vividlight","xor")
- #@gui : Opacity = float (1,0,1)
- #@gui : Reverse Order = bool(0)
- fx_hessian_blend :
- -m "MergeChoise : $""=_mode" -MergeChoise "add","alpha","and","average","blue","burn","darken","difference","divide","dodge","exclusion","freeze","grainextract","grainmerge","green","hardlight","hardmix","hue","interpolation","lighten","lightness","linearburn","linearlight","luminance","multiply","negation","or","overlay","pinlight","red","reflect","saturation","screen","shapeaverage","softburn","softdodge","softlight","stamp","subtract","value","vividlight","xor","edges","error"
- MergingOption=$3
- Opacity=$4
- ReverseOrder={!$5}
- +l otsu , af_hnorm n $1,$2 endl +* blend ${_mode{$MergingOption+1}},$Opacity,$ReverseOrder
- fx_hessian_blend_preview :
- repeat {max(0,l)}
- fx_hessian_blend[$>] $*
- done
Advertisement
Add Comment
Please, Sign In to add comment