Thresholds an image using a moving rectangular window.
Half width and height of the moving rectangular window.
Thresholding offset from the averaged value.
This function returns the binary image resulting from the comparison
between an image and its filtered version with a rectangular window.
It is equivalent of doing
f = matrix(1, nc=2*w+1, nr=2*h+1);
f = f/sum(f);
x > (filter2(x, f, boundary="replicate") + offset)
but faster. The function
filter2 provides hence more
Image object or an array, containing the transformed version
Oleg Sklyar, firstname.lastname@example.org, 2005-2007
1 2 3 4
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.