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:
parent
e5ee52ccff
commit
926bd2dae8
2 changed files with 0 additions and 12 deletions
|
@ -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).
|
||||
|
|
|
@ -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]")
|
||||
|
|
Loading…
Reference in a new issue