Statistics
| Revision:

root / trunk / libraries / libCq_CMS_praster / src / org / cresques / filter / statistics / PercentTailTrimFloatFilter.java @ 8026

History | View | Annotate | Download (945 Bytes)

1
package org.cresques.filter.statistics;
2

    
3
import org.cresques.io.data.RasterBuf;
4

    
5
public class PercentTailTrimFloatFilter extends PercentTailTrimFilter {
6

    
7
        private float[]                 px = new float[4];
8
        
9
        public void process(int col, int line) {
10
                raster.getElemFloat(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
        public void processSuperSampling(int col, int line) {
18
                process(col, line);        
19
        }
20

    
21
        public void processLine(int y) {
22
                // TODO Auto-generated method stub
23

    
24
        }
25

    
26
        public int getInRasterDataType() {
27
                return RasterBuf.TYPE_FLOAT;
28
        }
29

    
30
        public int getOutRasterDataType() {
31
                return RasterBuf.TYPE_FLOAT;
32
        }
33

    
34
        public void pre() {
35
                 //Obtenci?n de par?metros
36
        this.raster = (RasterBuf) params.get("raster");
37
        height = raster.getHeight();
38
        width = raster.getWidth();
39
        super.pre();
40
        }
41

    
42
        public void post() {
43
                super.post();
44
        }
45

    
46
}