Revision 43862 branches/org.gvsig.desktop-2018a/org.gvsig.desktop.compat.cdc/org.gvsig.fmap.mapcontext/org.gvsig.fmap.mapcontext.impl/src/main/java/org/gvsig/raster/lib/legend/impl/operations/colorbalancecmy/ColorBalanceCMYOperation.java
ColorBalanceCMYOperation.java | ||
---|---|---|
27 | 27 |
import org.gvsig.raster.lib.buffer.api.exceptions.BufferOperationException; |
28 | 28 |
import org.gvsig.raster.lib.buffer.api.operations.OperationFactory; |
29 | 29 |
import org.gvsig.raster.lib.legend.api.RasterLegendLocator; |
30 |
import org.gvsig.raster.lib.legend.api.colorinterpretation.ColorInterpretation; |
|
31 | 30 |
import org.gvsig.raster.lib.legend.impl.ColorManager; |
32 | 31 |
import org.gvsig.raster.lib.legend.impl.RasterLegendManagerServices; |
33 | 32 |
import org.gvsig.raster.lib.legend.impl.operations.colorbalancergb.AbstractColorBalanceOperation; |
... | ... | |
43 | 42 |
static public String MAGENTA_PARAM = "magenta"; |
44 | 43 |
static public String YELLOW_PARAM = "yellow"; |
45 | 44 |
static public String LUMINOSITY_PARAM = "luminosity"; |
46 |
static public String COPY_UNPROCESSED_BANDS_PARAM = "copy_unprocessed_bands"; |
|
47 | 45 |
|
48 | 46 |
private int cyan; |
49 | 47 |
private int magenta; |
50 | 48 |
private int yellow; |
51 | 49 |
private boolean luminosity; |
52 |
private boolean copyUnprocessedBands; |
|
53 | 50 |
|
54 | 51 |
/** |
55 | 52 |
* @param factory |
56 | 53 |
* |
57 | 54 |
*/ |
58 | 55 |
public ColorBalanceCMYOperation(OperationFactory factory) { |
59 |
this.factory = factory;
|
|
56 |
super(factory);
|
|
60 | 57 |
} |
61 | 58 |
|
62 | 59 |
@Override |
63 | 60 |
protected void initialiceParams() { |
64 |
cyan = (Integer) this.parameters.getDynValue(CYAN_PARAM);
|
|
65 |
magenta = (Integer) this.parameters.getDynValue(MAGENTA_PARAM);
|
|
66 |
yellow = (Integer) this.parameters.getDynValue(YELLOW_PARAM);
|
|
67 |
luminosity = (Boolean) this.parameters.getDynValue(LUMINOSITY_PARAM);
|
|
61 |
cyan = (Integer) this.getParameter(CYAN_PARAM,0);
|
|
62 |
magenta = (Integer) this.getParameter(MAGENTA_PARAM,0);
|
|
63 |
yellow = (Integer) this.getParameter(YELLOW_PARAM,0);
|
|
64 |
luminosity = (Boolean) this.getParameter(LUMINOSITY_PARAM,0);
|
|
68 | 65 |
} |
69 | 66 |
|
70 | 67 |
@Override |
... | ... | |
72 | 69 |
super.postProcess(); |
73 | 70 |
} |
74 | 71 |
|
72 |
@Override |
|
75 | 73 |
protected void processRow(Object[] inputRows, List outputRows) { |
76 | 74 |
ColorManager colorManager = ((RasterLegendManagerServices)RasterLegendLocator.getRasterLegendManager()).getColorManager(); |
77 | 75 |
byte[][] inputByteRows = new byte[inputRows.length][((byte[]) inputRows[0]).length]; |
Also available in: Unified diff