Log in

View Full Version : Question about negative blur function


zkri
30th January 2021, 19:50
Hello everyone,
How does negative blur/sharpen work? Does .blur(-1,1) sharpen horizontally only? (Does that even nake sense?) Or it functions as .sharpen(1)

StainlessS
30th January 2021, 20:44
See for Yourself [ Blur(-1) is same as Sharpen(1) ::: Blur max is 1.58, Sharpen max is 1.0 ]


ITS = 20 # for 20 iterations of blur(-1,1)

C = ColorBars

Eval(StringRepeater("C",".Blur(-1,1)",ITS))

Return Last

Function StringRepeater(String BaseS, String RepS, int n) { # https://forum.doom9.org/showthread.php?p=1878193#post1878193
# Add n instances of repeat string RepS, to base string BaseS.
return (n>=1) ? StringRepeater(BaseS+RepS,RepS,n-1):BaseS
}

https://i.postimg.cc/bvhQcjQS/repeat-S-00.jpg (https://postimages.org/)


EDIT: or Blur(1,-1)
https://i.postimg.cc/nLXXCFqP/repeat-S-01.jpg (https://postimages.org/)

EDIT: For horizontal Sharpen only, use 0 for vertical. blur(-1,0)
https://i.postimg.cc/630xKRyJ/repeat-S-02.jpg (https://postimages.org/)