org.gvsig.raster.tools.algorithm.maskthreshold
Class MaskthresholdProcess
java.lang.Object
org.gvsig.raster.algorithm.process.ProcessUtils
org.gvsig.raster.algorithm.process.ProcessParamsManagement
org.gvsig.raster.algorithm.process.DataProcess
org.gvsig.raster.tools.algorithm.maskthreshold.MaskthresholdProcess
- All Implemented Interfaces:
- java.lang.Runnable, java.util.EventListener, org.gvsig.raster.algorithm.gui.IIncrementable, org.gvsig.raster.algorithm.gui.IncrementableListener, org.gvsig.tools.dispose.Disposable
public class MaskthresholdProcess
- extends org.gvsig.raster.algorithm.process.DataProcess
Process to create a mask using a threshold. This threshold could be a value
of a pixel or a fixed value.
Possible use cases:
- Fixed-oplayer: A input layer, an operator layer and a fixed value if the condition is satisfied.
If the condition is not satisfied the value is set to NoData
- Fixed-threshold: A input layer, a threshold and a fixed value if the condition is satisfied.
If the condition is not satisfied the value is set to NoData
- Replicate-oplayer: A input layer, an operator layer and a output layer. If the condition is satisfied.
the result layer replicates the output bands. If the condition is not satisfied the values is set to NoData
- Replicate-threshold: A input layer, a threshold layer and a output layer. If the condition is satisfied.
the result layer replicates the output bands. If the condition is not satisfied the values is set to NoData
- Transparent-oplayer: A input layer, an operator layer and a RGB output layer. If the condition is satisfied
the layer result replicates the output RGB with transparency values. If the condition is not satisfied
the layer result only replicates the output RGB.
- Transparent-threshold: A input layer, a threshold and a RGB output layer. If the condition is satisfied
the layer result replicates the output RGB with transparency values. If the condition is not satisfied
the layer result only replicates the output RGB.
- Opacity-oplayer: A input layer, an operator layer, a RGB output layer. If the condition is satisfied
the layer result replicates the output layer values and if not this pixels are set to transparent
- Opacity-threshold: A input layer, an operator layer, a threshold. If the condition is satisfied
the layer result replicates the output layer values and if not this pixels are set to transparent
| band1 | band2 | threshold | output |
| -1 | -1 | - | el número de bandas de la capa de operación debe
ser mayor o igual a la de entrada. Compara la banda
i de la capa de entrada con la banda i de la de operación |
| -1 | 0 | - | Compara todas las bandas de la capa de entrada con la
banda cero de la capa de operación |
| -1 | - | value | Compara todas las bandas de la capa de entrada con el valor
de threshold |
| 0 | -1 | - | Caso no permitido |
| 0 | - | value | Compara la banda cero de la capa de entrada con el valor
de threshold |
Input parameters
- RASTER_STORE1:(Store method) Input store.
- RASTER_STORE2:(Store method) Operation store. If this parameter is null then THRESHOLD is mandatory
- RASTER_STORE3:(Store method) Output store. If this parameter is null then FIXED_VALUE is mandatory
- RASTER_BUFFER1:(Buffer method) Input buffer
- RASTER_BUFFER2:(Buffer method) Operation buffer. If this parameter is null then THRESHOLD is mandatory
- RASTER_BUFFER3:(Buffer method) Output buffer. If this parameter is null then FIXED_VALUE is mandatory
- BAND1: RASTER_STORE1 band. Band to compare with the threshold or operation band. If BAND1 is lesser than 0 then all
bands will be compared. If BAND1 is lesser than zero and BAND2 is lesser than zero then the store
- BAND2: RASTER_STORE2 band. Band to compare with the input store band
- BAND3: RASTER:STORE3 band. Band to put in the output when the method is "layer bands selecteds"
- THRESHOLD: Threshold to compare with the input data
- FIXED_VALUE: Value to put in the output when the method is "Fixed Value" or "NoData"
- OPERATION: Operation. Index in list MASK_OPERATIONS
- SATISFY_METHOD: Output method. Index in list OUTPUT_METHODS
- PATH:
Possible output parameters
10/12/2007
- Author:
- Nacho Brodin nachobrodin@gmail.com
| Fields inherited from class org.gvsig.raster.algorithm.process.DataProcess |
blinker, externalActions, incrementableTask, logger, taskEventManager, taskParams |
| Fields inherited from class org.gvsig.raster.algorithm.process.ProcessParamsManagement |
inputParameters, OUTPUT_HEIGHT, OUTPUT_WIDTH, outputParameters, PREVIEW, PROCESS, PROCESS_NAME, REGISTER_INPUT_PARAMETERS_LABEL, REGISTER_OUTPUT_PARAMETERS_LABEL, ROI_EPSG, TIME, WINDOW |
| Fields inherited from class org.gvsig.raster.algorithm.process.ProcessUtils |
doubleNODATA |
| Methods inherited from class org.gvsig.raster.algorithm.process.DataProcess |
actionCanceled, actionResumed, actionSuspended, addOutputValue, dispose, execute, finalize, getActions, getIncrementableTask, getLabel, getLog, getName, getPercent, getResult, getTime, getUniqueProcessActions, insertLineLog, isCancelable, isPausable, run, setActions, setCancelable, setName, setProgressActive, setUniqueProcessActions, showIncrementableWindow, start, updatePercent |
| Methods inherited from class org.gvsig.raster.algorithm.process.ProcessParamsManagement |
addParam, getBooleanParam, getByteParam, getDoubleArrayParam, getDoubleParam, getExtentParam, getFloatParam, getIntArrayParam, getIntParam, getOutputHeight, getOutputWidth, getOutputWindow, getParam, getParameterClassList, getParameterTypeByProcess, getRasterTaskInputParameters, getRasterTaskOutputParameters, getROIEPSG, getStringParam, isForPreviews, isOutputRescaled, loadGlobalParameters, registerGlobalInputParameters, registerGlobalOutputParameters, registerInputParameter, registerOutputParameter, removeParam |
| Methods inherited from class org.gvsig.raster.algorithm.process.ProcessUtils |
createOutputBuffer, createOutputBuffer, createSourceBuffer, debug, exportRaster, exportRaster, exportRaster, exportRaster, getData, getExtentResult, getIntersectionInPxCoords, getSourcePxBox, isAnalizedEntireLayer, isInsideOfROI, messageBoxError, messageBoxError, messageBoxError |
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BAND1
public static java.lang.String BAND1
BAND2
public static java.lang.String BAND2
BAND3
public static java.lang.String BAND3
BUFFER
public static java.lang.String BUFFER
FILENAME
public static java.lang.String FILENAME
FIXED_VALUE
public static java.lang.String FIXED_VALUE
MASK_OPERATIONS
public static java.lang.String[] MASK_OPERATIONS
OPERATION
public static java.lang.String OPERATION
OUTPUT_METHODS
public static java.lang.String[] OUTPUT_METHODS
PATH
public static java.lang.String PATH
RASTER_BUFFER1
public static java.lang.String RASTER_BUFFER1
RASTER_BUFFER2
public static java.lang.String RASTER_BUFFER2
RASTER_BUFFER3
public static java.lang.String RASTER_BUFFER3
RASTER_STORE1
public static java.lang.String RASTER_STORE1
RASTER_STORE2
public static java.lang.String RASTER_STORE2
RASTER_STORE3
public static java.lang.String RASTER_STORE3
SATISFY_METHOD
public static java.lang.String SATISFY_METHOD
THRESHOLD
public static java.lang.String THRESHOLD
MaskthresholdProcess
public MaskthresholdProcess()
getTitle
public java.lang.String getTitle()
init
public void init()
- Specified by:
init in class org.gvsig.raster.algorithm.process.DataProcess
process
public void process()
throws org.gvsig.fmap.dal.coverage.exception.ProcessInterruptedException,
org.gvsig.raster.algorithm.process.ProcessException
- Método donde se ejecutará el Thread, aquí se reproyecta el raster.
- Specified by:
process in class org.gvsig.raster.algorithm.process.DataProcess
- Throws:
org.gvsig.fmap.dal.coverage.exception.ProcessInterruptedException
org.gvsig.raster.algorithm.process.ProcessException
registerParameters
public static void registerParameters()
Copyright © 2011-2014 gvSIG Association. All Rights Reserved.