Revision 2311 org.gvsig.raster/branches/org.gvsig.raster_dataaccess_refactoring/org.gvsig.raster.lib/org.gvsig.raster.lib.impl/src/main/java/org/gvsig/raster/impl/grid/filter/band/ColorBalanceRGBFilter.java

View differences:

ColorBalanceRGBFilter.java
35 35
 * @author Nacho Brodin (nachobrodin@gmail.com)
36 36
 */
37 37
public class ColorBalanceRGBFilter extends BaseRasterFilter {
38
	public static String[]            names            = new String[] { "colorbalancergb" };
39
	protected DefaultColorConversion  colorConversion  = null;
40
	protected int                     out              = Buffer.TYPE_BYTE;
41
	protected int                     red              = 0;
42
	protected int                     green            = 0;
43
	protected int                     blue             = 0;
44
	protected boolean                 luminosity       = false;
45
	protected int[]                   rBands           = null;
38
	public static String[]            names               = new String[] { "colorbalancergb" };
39
	protected DefaultColorConversion  colorConversion     = null;
40
	protected int                     out                 = Buffer.TYPE_BYTE;
41
	protected int                     red                 = 0;
42
	protected int                     green               = 0;
43
	protected int                     blue                = 0;
44
	protected boolean                 luminosity          = false;
45
	protected int                     redBandNumber       = -1;
46
	protected int                     greenBandNumber     = -1;
47
	protected int                     blueBandNumber      = -1;
46 48

  
47 49
	/**
48 50
	 * Constructor
......
55 57
	public void pre() throws FilterAddException {
56 58
		super.pre();
57 59
		
58
		checkRGBRenderBands();
59
										
60
		//A este filtro ya llega una imagen RGB con el orden de las bandas correcto 
61
		//ColorInterpretation colorInterpretation = getColorInterpretation();
62
		redBandNumber = 0;//colorInterpretation.getBand(ColorInterpretation.RED_BAND);
63
		greenBandNumber = 1;//colorInterpretation.getBand(ColorInterpretation.GREEN_BAND);
64
		blueBandNumber = 2;//colorInterpretation.getBand(ColorInterpretation.BLUE_BAND);
65
		
60 66
		if(raster.getDataType() != Buffer.TYPE_BYTE) {
61 67
			exec = false;
62 68
			raster = rasterResult;

Also available in: Unified diff