java.lang.Object
net.algart.json.PropertyChecker
net.algart.executors.api.ExecutionBlock
All Implemented Interfaces:
AutoCloseable

public final class Threshold extends UMatFilter
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static enum 
     

    Nested classes/interfaces inherited from class net.algart.executors.api.Executor

    net.algart.executors.api.Executor.SystemParameter, net.algart.executors.api.Executor.Timing
  • Field Summary

    Fields inherited from class net.algart.executors.api.Executor

    ENUM_VALUE_OF_NAME_CUSTOM_METHOD, LOG, LOGGABLE_DEBUG, LOGGABLE_INFO, LOGGABLE_TRACE, OUTPUT_EXECUTOR_ID_NAME, OUTPUT_PLATFORM_ID_NAME, OUTPUT_RESOURCE_FOLDER_NAME, STANDARD_VISIBLE_RESULT_PARAMETER_NAME

    Fields inherited from class net.algart.executors.api.ExecutionBlock

    DEFAULT_INPUT_PORT, DEFAULT_OUTPUT_PORT, GLOBAL_SHARED_SESSION_ID, SHOW_INFO_ON_STARTUP
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected boolean
     
     
    int
     
    double
     
    int
     
    double
     
    double
     
    double
     
     
    boolean
     
    boolean
     
    protected boolean
     
    org.bytedeco.opencv.opencv_core.Mat
    process(org.bytedeco.opencv.opencv_core.Mat source)
     
    org.bytedeco.opencv.opencv_core.UMat
    process(org.bytedeco.opencv.opencv_core.UMat source)
     
     
    setConvertToByte(boolean convertToByte)
     
    setGaussianBlurKernelSize(int gaussianBlurKernelSize)
     
    setK(double k)
     
    setKernelSize(int kernelSize)
     
    setMaxValue(double maxValue)
     
    setR(double r)
     
    setRawValues(boolean rawValues)
     
    setThreshold(double threshold)
     
     

    Methods inherited from class net.algart.executors.modules.opencv.common.UMatFilter

    compressOriginal, process, processWithCompression, setOutputTo, stretchToOriginal

    Methods inherited from class net.algart.executors.modules.opencv.common.OpenCVExecutor

    close, isUseGPU, postprocess, putMat, setMat, setUseGPU, useGPU

    Methods inherited from class net.algart.executors.api.Executor

    addServiceTime, allocatedMemory, allOutputContainers, allParameters, checkOutputNecessary, configAllocatedMemory, debugTime, defaultInputPortName, defaultInputPortName, defaultOutputPortName, defaultOutputPortName, defaultVisibleResultsInformation, disableOnChangeParameterAutomatic, disableOnChangeParametersAutomatic, execute, execute, executorModel, executorModel, executorPlatform, executorResourceFolder, fillSystemOutputs, fineAllocatedMemory, finishTimingOfExecutingAll, freeAllInputPortData, freeAllOutputPortData, freeAllPortData, getCurrentDirectory, getEndProcessingTimeStamp, getServiceTime, getStartProcessingTimeStamp, infoTime, initialize, isCancellingExecutionRequested, isCancellingFurtherExecutionRequested, isMultithreadingEnvironment, isTimingEnabled, isUsingVisibleResultParameter, isVisiblePort, isVisibleResultDisabled, logDebug, logDebug, loggingEnabled, logInfo, logInfo, logTrace, logTrace, onChangeParameter, onChangeParameterAutomatic, parameterControlValueType, parameterJavaType, requestCancellingFurtherExecution, requestContinuingFurtherExecution, requestOutput, reset, resetTiming, setCurrentDirectory, setDefaultInputMat, setDefaultInputNumbers, setDefaultInputPort, setDefaultInputScalar, setDefaultOutputMat, setDefaultOutputNumbers, setDefaultOutputPort, setDefaultOutputScalar, setEndProcessingTimeStamp, setMultithreadingEnvironment, setStartProcessingTimeStamp, setTimingEnabled, showStatus, showStatus, skipStandardAutomaticParameters, startTimingOfExecutingAll, status, statusData, toString, translateCurrentDirectory, useVisibleResultParameter, valueOfLogLevel, visibleOutputPortName, visibleResultsInformation

    Methods inherited from class net.algart.executors.api.ExecutionBlock

    addInputData, addInputMat, addInputNumbers, addInputScalar, addOneTimeTaskAfterExecutingAll, addOutputData, addOutputMat, addOutputNumbers, addOutputScalar, addPort, addTaskAfterExecutingAll, addTaskBeforeExecutingAll, afterExecutingAll, allInputPorts, allOneTimeTasksAfterExecutingAll, allOutputPorts, allTasksAfterExecutingAll, allTasksBeforeExecutingAll, availableExecutorModelArray, availableExecutorModelDescriptions, beforeExecutingAll, checkInputNecessary, clearSession, contextPath, getCaller, getContextId, getContextName, getContextPath, getData, getData, getDoubleScalar, getDoubleScalar, getExecutorId, getExecutorModelDescription, getExecutorSpecification, getInputData, getInputData, getInputData, getInputData, getInputDataContainer, getInputDataContainer, getInputMat, getInputMat, getInputMat, getInputMat, getInputMatContainer, getInputMatContainer, getInputNumbers, getInputNumbers, getInputNumbers, getInputNumbers, getInputNumbersContainer, getInputNumbersContainer, getInputPort, getInputScalar, getInputScalar, getInputScalar, getInputScalar, getInputScalarContainer, getInputScalarContainer, getIntScalar, getIntScalar, getLongScalar, getLongScalar, getMat, getMat, getNumbers, getNumbers, getOutputPort, getOwnerId, getPlatformId, getPort, getRequiredInputPort, getRequiredOutputPort, getRootCaller, getScalar, getScalar, getSessionId, getStringScalar, getStringScalar, hasDefaultInputPort, hasDefaultOutputPort, hasInputPort, hasOutputPort, initializeExecutionSystem, interrupt, isAllOutputsNecessary, isClosed, isInputNecessary, isInterrupted, isInterruptionRequested, isOutputNecessary, isReadOnlyInput, isVisibleResultNecessary, needToRepeat, newExecutionBlock, parameters, putDoubleScalar, putDoubleScalar, putIntScalar, putIntScalar, putJsonScalar, putJsonScalar, putLongScalar, putLongScalar, putMat, putMat, putNumbers, putNumbers, putNumbers, putNumbers, putScalar, putScalar, putStringScalar, putStringScalar, recommendedCategory, recommendedName, registerExecutionBlockLoader, removeInputPort, removeOneTimeTaskAfterExecutingAll, removeOutputData, removeOutputPort, removeTaskAfterExecutingAll, removeTaskBeforeExecutingAll, replacePort, setAllOutputsNecessary, setBooleanParameter, setCaller, setContextId, setContextId, setContextName, setContextPath, setDoubleParameter, setInterruptionRequested, setIntParameter, setLongParameter, setOutputScalar, setOutputScalar, setOutputScalar, setOutputScalar, setOutputScalar, setOutputScalar, setOutputScalarIfNecessary, setOwnerId, setSessionId, setStringParameter, setVisibleResultNecessary

    Methods inherited from class net.algart.json.PropertyChecker

    doubleOrDefault, doubleOrNegativeInfinity, doubleOrNull, doubleOrPositiveInfinity, greaterThan, greaterThan, greaterThan, greaterThan, greaterThan, greaterThan, inRange, inRange, inRange, inRange, inRange, inRange, intOrDefault, intOrNull, longOrDefault, longOrNull, nonEmpty, nonEmpty, nonEmptyTrimmed, nonEmptyTrimmed, nonLessThan, nonLessThan, nonLessThan, nonLessThan, nonLessThan, nonLessThan, nonNegative, nonNegative, nonNegative, nonNegative, nonNegative, nonNegative, nonNull, nonNull, positive, positive, positive, positive, positive, positive, propertyName

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • Threshold

      public Threshold()
  • Method Details

    • getAlgorithm

      public Threshold.Algorithm getAlgorithm()
    • setAlgorithm

      public Threshold setAlgorithm(Threshold.Algorithm algorithm)
    • getThresholdType

      public OThreshType getThresholdType()
    • setThresholdType

      public Threshold setThresholdType(OThreshType thresholdType)
    • getThreshold

      public double getThreshold()
    • setThreshold

      public Threshold setThreshold(double threshold)
    • getMaxValue

      public double getMaxValue()
    • setMaxValue

      public Threshold setMaxValue(double maxValue)
    • isRawValues

      public boolean isRawValues()
    • setRawValues

      public Threshold setRawValues(boolean rawValues)
    • getGaussianBlurKernelSize

      public int getGaussianBlurKernelSize()
    • setGaussianBlurKernelSize

      public Threshold setGaussianBlurKernelSize(int gaussianBlurKernelSize)
    • getKernelSize

      public int getKernelSize()
    • setKernelSize

      public Threshold setKernelSize(int kernelSize)
    • getK

      public double getK()
    • setK

      public Threshold setK(double k)
    • getR

      public double getR()
    • setR

      public Threshold setR(double r)
    • isConvertToByte

      public boolean isConvertToByte()
    • setConvertToByte

      public Threshold setConvertToByte(boolean convertToByte)
    • process

      public org.bytedeco.opencv.opencv_core.Mat process(org.bytedeco.opencv.opencv_core.Mat source)
      Specified by:
      process in class MatFilter
    • process

      public org.bytedeco.opencv.opencv_core.UMat process(org.bytedeco.opencv.opencv_core.UMat source)
      Specified by:
      process in class UMatFilter
    • allowInputPackedBits

      protected boolean allowInputPackedBits()
      Overrides:
      allowInputPackedBits in class MatFilter
    • packOutputBits

      protected boolean packOutputBits()
      Overrides:
      packOutputBits in class MatFilter