remove (square) radius parameter

this parameter didn't make sense because
the resulting neighborhood wasn't necessarily square.

to actually implement this feature would require
an extension to make_offset_list.
This commit is contained in:
Connor Olding 2016-10-31 15:28:16 -07:00
parent e5ee52ccff
commit 926bd2dae8
2 changed files with 0 additions and 12 deletions

View File

@ -33,9 +33,6 @@ usage:
-N --neighbors
points to use when sampling
range: [0,1024]; default: 29
-r --radius
square neighborhood, always odd
range: [0,32]; default: [n/a]
-R --circle-radius
circle neighborhood radius
range: [1,128]; default: [n/a]
@ -56,8 +53,6 @@ usage:
required default: [none]
```
the `radius` parameter should probably be removed.
### neighborhood
offsets are sorted in ascending distance from the center (the 0,0 point).

View File

@ -461,13 +461,6 @@ int main(int argc, char *argv[]) {
" range: [0,1024]; default: 29")
parameters.neighbors = kyaa_flag_arg;
KYAA_FLAG_LONG('r', "radius",
" square neighborhood, always odd\n"
" range: [0,32]; default: [n/a]")
int radius = kyaa_flag_arg;
radius = 2 * MAX(radius, 0) + 1;
parameters.neighbors = radius * radius;
KYAA_FLAG_LONG('R', "circle-radius",
" circle neighborhood radius\n"
" range: [1,128]; default: [n/a]")