svn-gvsig-desktop / branches / CqCMSDvp / libraries / libCq CMS for java.old / src / org / cresques / io / raster / RasterStats.java @ 2167
History | View | Annotate | Download (1.36 KB)
1 |
/*
|
---|---|
2 |
* Created on 25-feb-2005
|
3 |
*/
|
4 |
package org.cresques.io.raster; |
5 |
|
6 |
import java.util.ArrayList; |
7 |
|
8 |
/**
|
9 |
* @author Luis W. Sevilla (sevilla_lui@gva.es)
|
10 |
*/
|
11 |
public class RasterStats { |
12 |
public class History{ |
13 |
public String file = null; |
14 |
public int[] min = null; |
15 |
public int[] max = null; |
16 |
public int[] secMin = null; |
17 |
public int[] secMax = null; |
18 |
|
19 |
public History(String file, int[] min, int[] max, int[] secMin, int[] secMax){ |
20 |
this.file = file;
|
21 |
this.min = (int[])min.clone(); |
22 |
this.max = (int[])max.clone(); |
23 |
this.secMin = (int[])secMin.clone(); |
24 |
this.secMax = (int[])secMax.clone(); |
25 |
} |
26 |
} |
27 |
|
28 |
public int [] minBandValue = {Integer.MAX_VALUE,Integer.MAX_VALUE,Integer.MAX_VALUE}; |
29 |
public int [] maxBandValue = {Integer.MIN_VALUE,Integer.MIN_VALUE,Integer.MIN_VALUE}; |
30 |
public int [] secondMinBandValue = {Integer.MAX_VALUE,Integer.MAX_VALUE,Integer.MAX_VALUE}; |
31 |
public int [] secondMaxBandValue = {Integer.MIN_VALUE,Integer.MIN_VALUE,Integer.MIN_VALUE}; |
32 |
|
33 |
public ArrayList history = new ArrayList(); |
34 |
|
35 |
public double tailPercent = 0D; //porcentaje de recorte de colas |
36 |
|
37 |
/**
|
38 |
*
|
39 |
*/
|
40 |
public RasterStats() {
|
41 |
super();
|
42 |
// TODO Auto-generated constructor stub
|
43 |
} |
44 |
|
45 |
public void pinta() { |
46 |
for (int i=0; i<3; i++) |
47 |
System.out.println(" Band ["+i+"]: "+minBandValue[i]+"..."+maxBandValue[i]); |
48 |
|
49 |
System.out.println("Porcentaje de recorte: "+ tailPercent); |
50 |
|
51 |
} |
52 |
|
53 |
} |