svn-gvsig-desktop / tags / Root_v061 / libraries / libCq CMS for java.old / src / org / cresques / io / raster / SharpeningFilter.java @ 4812
History | View | Annotate | Download (2.99 KB)
1 | 3578 | 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.cresques.io.raster; |
||
25 | |||
26 | import java.awt.Image; |
||
27 | |||
28 | import org.cresques.io.GeoRasterFile; |
||
29 | |||
30 | |||
31 | /**
|
||
32 | * Clase base para los filtros de sharpening en sus diferentes tipos
|
||
33 | * de datos.
|
||
34 | * @author Nacho Brodin (brodin_ign@gva.es)
|
||
35 | *
|
||
36 | */
|
||
37 | public abstract class SharpeningFilter extends RasterFilter { |
||
38 | |||
39 | /**
|
||
40 | * Posici?n en la lista de GeoRasterFiles de la imagen de refinado.
|
||
41 | */
|
||
42 | 4160 | nacho | public int posPancromatica = 0; |
43 | 3578 | nacho | |
44 | /**
|
||
45 | * Lista de GeoRasterFiles que componen los datos de entrada
|
||
46 | */
|
||
47 | 4160 | nacho | public GeoRasterFile[] files = null; |
48 | 3578 | nacho | |
49 | /**
|
||
50 | * Alto de la imagen pancrom?tica
|
||
51 | */
|
||
52 | protected int heightPancr = 0; |
||
53 | |||
54 | /**
|
||
55 | * Ancho de la imagen pancrom?tica
|
||
56 | */
|
||
57 | protected int widthPancr = 0; |
||
58 | |||
59 | /**
|
||
60 | * Alto de las bandas multiespectrales
|
||
61 | */
|
||
62 | protected int heightMultiespec = 0; |
||
63 | |||
64 | /**
|
||
65 | * Ancho de las bandas multiespectrales
|
||
66 | */
|
||
67 | protected int widthMultiespec = 0; |
||
68 | |||
69 | /**
|
||
70 | * Image que corresponde a la imagen de refinado
|
||
71 | */
|
||
72 | protected Image imagePancr = null; |
||
73 | |||
74 | /**
|
||
75 | * Image que corresponde a la imagen de entrada
|
||
76 | */
|
||
77 | protected Image imageMultiespec = null; |
||
78 | |||
79 | /**
|
||
80 | * N?mero de bandas de la operaci?n incluido la de refinado
|
||
81 | */
|
||
82 | protected int nBands = 0; |
||
83 | |||
84 | /**
|
||
85 | * Relaci?n entre la pancromatica y la multiespectral en X
|
||
86 | */
|
||
87 | protected int relX = 0; |
||
88 | |||
89 | /**
|
||
90 | * Relaci?n entre la pancromatica y la multiespectral en Y
|
||
91 | */
|
||
92 | protected int relY = 0; |
||
93 | |||
94 | /**
|
||
95 | * Vector de 3 elementos que corresponden a R, G y B respectivamente. El valor contenido
|
||
96 | * en cada uno de ellos corresponde al n?mero de banda de fichero que se visualiza en R, G y B.
|
||
97 | */
|
||
98 | 4160 | nacho | public int[] bandOrder = null; |
99 | 3578 | nacho | |
100 | /**
|
||
101 | * Valor de alpha aplicado a toda la imagen
|
||
102 | */
|
||
103 | 4160 | nacho | public int alpha = 0; |
104 | 3578 | nacho | |
105 | /**
|
||
106 | * M?todo de calculo del refinado
|
||
107 | */
|
||
108 | 4160 | nacho | public String method = "ihs"; |
109 | 3578 | nacho | |
110 | /**
|
||
111 | * Coeficiente
|
||
112 | */
|
||
113 | 4160 | nacho | public double coef = 0.20; |
114 | 3578 | nacho | |
115 | 4160 | nacho | /**
|
116 | * Coeficiente Brovey
|
||
117 | */
|
||
118 | public int coefBrovey = 0; |
||
119 | |||
120 | /**
|
||
121 | * Nombre de la banda pancrom?tica
|
||
122 | */
|
||
123 | protected String pancrName = null; |
||
124 | |||
125 | 3578 | nacho | /**
|
126 | * Constructor
|
||
127 | *
|
||
128 | */
|
||
129 | public SharpeningFilter() {
|
||
130 | super();
|
||
131 | } |
||
132 | |||
133 | /**
|
||
134 | *
|
||
135 | */
|
||
136 | public void pre() { |
||
137 | |||
138 | } |
||
139 | |||
140 | } |