shithub: ifilter

Download patch

ref: 13898397ae1c6cf50f0e600a265f61ac5c423d11
parent: 844c071da04aee8af6b52c23184ce8c533a36c19
author: phil9 <[email protected]>
date: Sun Nov 28 17:00:55 EST 2021

update usage and README

--- a/README
+++ b/README
@@ -28,6 +28,7 @@
 
 Available filters are:
 - box: 3x3 box blur
+- gaussian: Gaussian blur using `-s` as the convolution kernel radius (ie kernel will be a matrix r*r with r=2*size+1)
 - pixelate: a simple pixelation filter using `-s` argument as pixel size
 
 
--- a/blur.c
+++ b/blur.c
@@ -141,7 +141,7 @@
 void
 usage(void)
 {
-	fprint(2, "usage: %s [-s size] [box|pixelate]\n", argv0);
+	fprint(2, "usage: %s [-s size] [box|gaussian|pixelate]\n", argv0);
 	exits("usage");
 }