svn-gvsig-desktop / tags / v1_1_Build_1012 / extensions / extRasterTools / src / org / gvsig / rasterTools / pansharpening / filter / PanSharpeningFilter.java @ 12987
History | View | Annotate | Download (3.06 KB)
1 | 4577 | nacho | /*
|
---|---|---|---|
2 | * Cresques Mapping Suite. Graphic Library for constructing mapping applications.
|
||
3 | *
|
||
4 | * Copyright (C) 2004-5.
|
||
5 | *
|
||
6 | * This program is free software; you can redistribute it and/or
|
||
7 | * modify it under the terms of the GNU General Public License
|
||
8 | * as published by the Free Software Foundation; either version 2
|
||
9 | * of the License, or (at your option) any later version.
|
||
10 | *
|
||
11 | * This program is distributed in the hope that it will be useful,
|
||
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||
14 | * GNU General Public License for more details.
|
||
15 | *
|
||
16 | * You should have received a copy of the GNU General Public License
|
||
17 | * along with this program; if not, write to the Free Software
|
||
18 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,USA.
|
||
19 | *
|
||
20 | * For more information, contact:
|
||
21 | *
|
||
22 | * cresques@gmail.com
|
||
23 | */
|
||
24 | package org.gvsig.rasterTools.pansharpening.filter; |
||
25 | |||
26 | import java.awt.Image; |
||
27 | |||
28 | 5982 | nacho | import org.cresques.filter.RasterFilter; |
29 | 4577 | nacho | import org.cresques.io.GeoRasterFile; |
30 | |||
31 | |||
32 | /**
|
||
33 | * Clase base para los filtros de sharpening en sus diferentes tipos
|
||
34 | * de datos.
|
||
35 | * @author Nacho Brodin (brodin_ign@gva.es)
|
||
36 | *
|
||
37 | */
|
||
38 | public abstract class PanSharpeningFilter extends RasterFilter { |
||
39 | |||
40 | /**
|
||
41 | * Posici?n en la lista de GeoRasterFiles de la imagen de refinado.
|
||
42 | */
|
||
43 | public int posPancromatica = 0; |
||
44 | |||
45 | /**
|
||
46 | * Lista de GeoRasterFiles que componen los datos de entrada
|
||
47 | */
|
||
48 | public GeoRasterFile[] files = null; |
||
49 | |||
50 | /**
|
||
51 | * Alto de la imagen pancrom?tica
|
||
52 | */
|
||
53 | protected int heightPancr = 0; |
||
54 | |||
55 | /**
|
||
56 | * Ancho de la imagen pancrom?tica
|
||
57 | */
|
||
58 | protected int widthPancr = 0; |
||
59 | |||
60 | /**
|
||
61 | * Alto de las bandas multiespectrales
|
||
62 | */
|
||
63 | protected int heightMultiespec = 0; |
||
64 | |||
65 | /**
|
||
66 | * Ancho de las bandas multiespectrales
|
||
67 | */
|
||
68 | protected int widthMultiespec = 0; |
||
69 | |||
70 | /**
|
||
71 | * Image que corresponde a la imagen de refinado
|
||
72 | */
|
||
73 | protected Image imagePancr = null; |
||
74 | |||
75 | /**
|
||
76 | * Image que corresponde a la imagen de entrada
|
||
77 | */
|
||
78 | protected Image imageMultiespec = null; |
||
79 | |||
80 | /**
|
||
81 | * N?mero de bandas de la operaci?n incluido la de refinado
|
||
82 | */
|
||
83 | protected int nBands = 0; |
||
84 | |||
85 | /**
|
||
86 | * Relaci?n entre la pancromatica y la multiespectral en X
|
||
87 | */
|
||
88 | protected int relX = 0; |
||
89 | |||
90 | /**
|
||
91 | * Relaci?n entre la pancromatica y la multiespectral en Y
|
||
92 | */
|
||
93 | protected int relY = 0; |
||
94 | |||
95 | /**
|
||
96 | * Vector de 3 elementos que corresponden a R, G y B respectivamente. El valor contenido
|
||
97 | * en cada uno de ellos corresponde al n?mero de banda de fichero que se visualiza en R, G y B.
|
||
98 | */
|
||
99 | public int[] bandOrder = null; |
||
100 | |||
101 | /**
|
||
102 | * Valor de alpha aplicado a toda la imagen
|
||
103 | */
|
||
104 | public int alpha = 0; |
||
105 | |||
106 | /**
|
||
107 | * M?todo de calculo del refinado
|
||
108 | */
|
||
109 | public String method = "ihs"; |
||
110 | |||
111 | /**
|
||
112 | * Coeficiente
|
||
113 | */
|
||
114 | public double coef = 0.20; |
||
115 | |||
116 | /**
|
||
117 | * Coeficiente Brovey
|
||
118 | */
|
||
119 | public int coefBrovey = 0; |
||
120 | |||
121 | /**
|
||
122 | * Nombre de la banda pancrom?tica
|
||
123 | */
|
||
124 | protected String pancrName = null; |
||
125 | |||
126 | /**
|
||
127 | * Constructor
|
||
128 | *
|
||
129 | */
|
||
130 | public PanSharpeningFilter() {
|
||
131 | super();
|
||
132 | } |
||
133 | |||
134 | /**
|
||
135 | *
|
||
136 | */
|
||
137 | public void pre() { |
||
138 | |||
139 | } |
||
140 | |||
141 | } |