-
Notifications
You must be signed in to change notification settings - Fork 0
/
ImageObjectBuilder.java
60 lines (51 loc) · 1.4 KB
/
ImageObjectBuilder.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package pkg2014vision;
/**
*
* @author Jared "Jär Bär" Gentner
*/
public class ImageObjectBuilder {
private Calculation areaCalculation;
private double ratio;
private int areaThreshold;
private int ratioThreshold;
private String name;
private int id;
public ImageObject getImageObject() {
return new ImageObject(areaCalculation, ratio, areaThreshold, ratioThreshold, name, id);
}
public void setID(int id){
this.id = id;
}
public void setName(String name){
this.name = name;
}
/**
* @param areaCalculation the areaCalculation to set
*/
public void setAreaCalculation(Calculation areaCalculation) {
this.areaCalculation = areaCalculation;
}
/**
* @param ratio the ratio to set
*/
public void setRatio(double ratio) {
this.ratio = ratio;
}
/**
* @param areaThreshold the areaThreshold to set
*/
public void setAreaThreshold(int areaThreshold) {
this.areaThreshold = areaThreshold;
}
/**
* @param ratioThreshold the ratioThreshold to set
*/
public void setRatioThreshold(int ratioThreshold) {
this.ratioThreshold = ratioThreshold;
}
}