From 926bd2dae8149794e29f8606af820dad0ce15273 Mon Sep 17 00:00:00 2001 From: Connor Olding Date: Mon, 31 Oct 2016 15:28:16 -0700 Subject: [PATCH] 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. --- README.md | 5 ----- resynth.c | 7 ------- 2 files changed, 12 deletions(-) diff --git a/README.md b/README.md index c11a81b..4475e01 100644 --- a/README.md +++ b/README.md @@ -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). diff --git a/resynth.c b/resynth.c index a3a854f..1e66fa1 100644 --- a/resynth.c +++ b/resynth.c @@ -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]")