Skip to content

Commit 4853480

Browse files
committed
adjusted default values
1 parent 78d5f2d commit 4853480

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/org/openstreetmap/josm/plugins/areaselector/ImageAnalyzer.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,8 @@ public class ImageAnalyzer {
8585

8686

8787
// Algorithm params
88-
// default for border = 40
89-
public static final int DEFAULT_COLORTHRESHOLD= 17;
88+
// default for border = 17
89+
public static final int DEFAULT_COLORTHRESHOLD= 14;
9090
protected int colorThreshold = DEFAULT_COLORTHRESHOLD;
9191

9292

@@ -95,11 +95,11 @@ public class ImageAnalyzer {
9595
public static final double DEFAULT_TOLERANCEDIST=4;
9696
double toleranceDist = DEFAULT_TOLERANCEDIST; // original: 2
9797

98-
// default for border = 0.25
98+
// default for border = Math.PI / 8
9999
public static final double DEFAULT_TOLERANCEANGLE = Math.PI / 8;
100100
double toleranceAngle= DEFAULT_TOLERANCEANGLE; // original Math.PI/10
101101

102-
// gaussian blur radius
102+
// gaussian blur radius = 10
103103
public static final int DEFAULT_BLURRADIUS = 10;
104104
protected int blurRadius = DEFAULT_BLURRADIUS;
105105

0 commit comments

Comments
 (0)