Makes a moore neighborhood.
Area is f(x)=-1+(2r+1)^2 if includeSelf is false or undefined, f(x)=(2r+1)^2 if it is true
includeSelf
false
true
Optional
Count of how many rings around the center to include defaults to 1.
Should this include the center pixel? Defaults to false.
A hitbox shaped like this under defaults:
XXXXOXXXX Copy
XXXXOXXXX
Makes a moore neighborhood.
Area is f(x)=-1+(2r+1)^2 if
includeSelf
isfalse
or undefined, f(x)=(2r+1)^2 if it istrue