Revision 9523 branches/piloto3d/libraries/libCq CMS for java.old/src/org/cresques/filter/enhancement/LinearEnhancementFilter.java

View differences:

LinearEnhancementFilter.java
27 27

  
28 28
import org.cresques.filter.RasterFilter;
29 29
import org.cresques.io.datastruct.Statistic;
30
import org.cresques.io.datastruct.Statistic.History;
31
import org.gvsig.i18n.Messages;
30 32

  
31 33

  
32 34
/**
33 35
 * Clase base para los filtros de realzado lineal. Lee el m?nimo y m?xmo de la clase
34
 * RasterStats que ser?n calculados por PercentTailTrimFilter o ComputeMinMaxFilter dependiendo
35
 * de si est? activado el recorte de colas o no. En RasterStats tambi?n est?n los segundos
36
 * Statistic que ser?n calculados por PercentTailTrimFilter o ComputeMinMaxFilter dependiendo
37
 * de si est? activado el recorte de colas o no. En Statistic tambi?n est?n los segundos
36 38
 * valores despu?s del m?nimo y m?ximo que son los que se utilizan con la opci?n eliminar
37 39
 * extremos activada. Estos se usaran en vez del m?nimo y m?ximo cuando la variable
38 40
 * removeExtrema est? a true.
......
41 43
public abstract class LinearEnhancementFilter extends RasterFilter {
42 44
    protected double[] scale = new double[3];
43 45
    protected double[] offset = new double[3];
44
    protected int[] minBandValue = null;
45
    protected int[] maxBandValue = null;
46
    protected double[] minBandValue = null;
47
    protected double[] maxBandValue = null;
46 48
    protected boolean removeExtrema = false;
47 49
    protected String filename = null;
48 50

  
......
52 54
     */
53 55
    public LinearEnhancementFilter() {
54 56
        super();
57
        super.filterName = Messages.getText("enhancement");
55 58
    }
56 59

  
57 60
    /* (non-Javadoc)
......
62 65

  
63 66
            if ((filename != null) && !filename.equals("")) {
64 67
                for (int i = 0; i < stats.history.size(); i++) {
65
                	Statistic.History history = (Statistic.History) stats.history.get(i);
68
                    Statistic.History history = (Statistic.History) stats.history.get(i);
66 69
                    if (history.file.equals(filename.substring((filename.lastIndexOf(File.separator) +
67 70
                                                                   1),
68 71
                                                                   filename.length()))) {
......
80 83

  
81 84
            if ((filename != null) && !filename.equals("")) {
82 85
                for (int i = 0; i < stats.history.size(); i++) {
83
                	Statistic.History history = (Statistic.History) stats.history.get(i);
86
                    Statistic.History history = (Statistic.History) stats.history.get(i);
84 87

  
85 88
                    if (history.file.equals(filename.substring((filename.lastIndexOf(File.separator) +
86 89
                                                                   1),

Also available in: Unified diff