/Users/lyon/j4p/src/ip/martelli/MartelliParams.java
|
1 /*
2 * Created by IntelliJ IDEA.
3 * User: lyon
4 * Date: Aug 2, 2002
5 * Time: 8:34:50 AM
6 */
7 package ip.martelli;
8
9 import java.util.Observable;
10
11 /**
12 * Heuristic cost matrix is computed using weights that
13 * are set from an instance of the MartelliParams
14 */
15
16 public class MartelliParams extends Observable {
17
18 private double ply = 0.5;
19 private double greediness = 1.0;
20 private double pixel = 1.0;
21 // The following number is image specific.
22 // Martelli only finds one countour at a time.
23 // on multiple runs, you will
24 // alter the following.
25 public static final int maximumNumberOfEdges = 15000;
26 public static final int edgeLength = 20;
27 // *I have set the search time here, ------\/ - DL
28 public static final int runTimeInSeconds = 10;
29
30
31 public double getPly() {
32 return ply;
33 }
34
35 private void changed() {
36 super.setChanged();
37 super.notifyObservers();
38 }
39
40 public void setPly(double ply) {
41 this.ply = ply;
42 changed();
43 }
44
45 public double getGreediness() {
46 return greediness;
47 }
48
49 public void setGreediness(double greediness) {
50 this.greediness = greediness;
51 changed();
52 }
53
54 public double getPixel() {
55 return pixel;
56 }
57
58 public void setPixel(double pixel) {
59 this.pixel = pixel;
60 changed();
61 }
62
63
64 }
65