Revision 2167 branches/CqCMSDvp/libraries/libCq CMS for java.old/src/org/cresques/px/PxRaster.java

View differences:

PxRaster.java
1 1
/*
2
 * PxRaster.java
2
 * Created on 17-feb-2004
3
 *
4
 * To change the template for this generated file go to
5
 * Window>Preferences>Java>Code Generation>Code and Comments
3 6
 */
7
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
8
 *
9
 * Copyright (C) 2004 IVER T.I. and Generalitat Valenciana.
10
 *
11
 * This program is free software; you can redistribute it and/or
12
 * modify it under the terms of the GNU General Public License
13
 * as published by the Free Software Foundation; either version 2
14
 * of the License, or (at your option) any later version.
15
 *
16
 * This program is distributed in the hope that it will be useful,
17
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19
 * GNU General Public License for more details.
20
 *
21
 * You should have received a copy of the GNU General Public License
22
 * along with this program; if not, write to the Free Software
23
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307,USA.
24
 *
25
 * For more information, contact:
26
 *
27
 *  Generalitat Valenciana
28
 *   Conselleria d'Infraestructures i Transport
29
 *   Av. Blasco Ib??ez, 50
30
 *   46010 VALENCIA
31
 *   SPAIN
32
 *
33
 *      +34 963862235
34
 *   gvsig@gva.es
35
 *      www.gvsig.gva.es
36
 *
37
 *    or
38
 *
39
 *   IVER T.I. S.A
40
 *   Salamanca 50
41
 *   46005 Valencia
42
 *   Spain
43
 *
44
 *   +34 963163400
45
 *   dac@iver.es
46
 */
4 47
package org.cresques.px;
5 48

  
6 49
import java.awt.Color;
......
22 65
import org.cresques.io.GdalFile;
23 66
import org.cresques.io.GeoRasterFile;
24 67
import org.cresques.io.raster.RasterBuf;
68
import org.cresques.io.raster.RasterFilter;
25 69
import org.cresques.io.raster.RasterFilterStack;
26 70
import org.cresques.io.raster.RasterFilterStackManager;
27 71
import org.cresques.io.raster.RasterStats;
......
785 829
				//Si la imagen es de 16 bits lleva un filtro de realce por defecto
786 830
				if(stackManager == null){
787 831
					stackManager = new RasterFilterStackManager(filterStack);
788
					stackManager.addEnhancedFilter(false);
832
					stackManager.addEnhancedFilter(false, geoFile[0].getName());
789 833
					stackManager.removeFilter(stackManager.getTypeFilter("computeminmax"));
790 834
					stackManager.addTailFilter( this.percentFilterInit, 0D, false);								
791 835
				}

Also available in: Unified diff