root / trunk / libraries / libCq_CMS_praster / src / org / cresques / filter / statistics / PercentTailTrimDoubleFilter.java @ 8026
History | View | Annotate | Download (995 Bytes)
1 |
package org.cresques.filter.statistics; |
---|---|
2 |
|
3 |
import org.cresques.io.data.RasterBuf; |
4 |
|
5 |
public class PercentTailTrimDoubleFilter extends PercentTailTrimFilter { |
6 |
|
7 |
private double[] px = new double[4]; |
8 |
|
9 |
public void process(int col, int line) { |
10 |
raster.getElemDouble(line, col, px); |
11 |
sample[0][count] = px[0]; |
12 |
sample[1][count] = px[1]; |
13 |
sample[2][count] = px[2]; |
14 |
count++; |
15 |
|
16 |
} |
17 |
|
18 |
public void processSuperSampling(int col, int line) { |
19 |
process(col, line); |
20 |
|
21 |
} |
22 |
|
23 |
public void processLine(int y) { |
24 |
// TODO Auto-generated method stub
|
25 |
|
26 |
} |
27 |
|
28 |
public int getInRasterDataType() { |
29 |
return RasterBuf.TYPE_DOUBLE;
|
30 |
} |
31 |
|
32 |
public int getOutRasterDataType() { |
33 |
return RasterBuf.TYPE_DOUBLE;
|
34 |
} |
35 |
|
36 |
public void post() { |
37 |
// TODO Auto-generated method stub
|
38 |
super.post();
|
39 |
} |
40 |
|
41 |
public void pre() { |
42 |
//Obtenci�n de par�metros
|
43 |
this.raster = (RasterBuf) params.get("raster"); |
44 |
height = raster.getHeight(); |
45 |
width = raster.getWidth(); |
46 |
super.pre();
|
47 |
} |
48 |
|
49 |
} |