Revision 10997 trunk/extensions/extRasterTools-SE/src/org/gvsig/rastertools/histogram/HistogramProcess.java
HistogramProcess.java | ||
---|---|---|
25 | 25 |
|
26 | 26 |
public class HistogramProcess extends Thread implements IIncrementable { |
27 | 27 |
IHistogramable iHistogramable = null; |
28 |
long[][] histogram = null; |
|
29 |
int type = 0; |
|
28 |
Histogram histogram = null; |
|
30 | 29 |
|
31 |
public HistogramProcess(IHistogramable iHistogramable, int type) {
|
|
30 |
public HistogramProcess(IHistogramable iHistogramable) { |
|
32 | 31 |
this.iHistogramable = iHistogramable; |
33 |
this.type = type; |
|
34 | 32 |
this.start(); |
35 | 33 |
} |
36 | 34 |
|
37 | 35 |
public void run() { |
38 | 36 |
try { |
39 |
histogram = iHistogramable.getHistogram().getHistogramByType(Histogram.getType(type));
|
|
37 |
histogram = iHistogramable.getHistogram(); |
|
40 | 38 |
} catch (HistogramException e) { |
41 | 39 |
e.printStackTrace(); |
42 | 40 |
} |
43 | 41 |
} |
44 | 42 |
|
45 |
public long[][] getLastHistogram() {
|
|
43 |
public Histogram getLastHistogram() {
|
|
46 | 44 |
return histogram; |
47 | 45 |
} |
48 | 46 |
/* |
Also available in: Unified diff