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

public class GaussianBlur extends UMatFilter
  • Nested Class Summary

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

    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, EXTENDED_MODE, GLOBAL_SHARED_SESSION_ID, SHOW_INFO_ON_STARTUP
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static net.algart.multimatrix.MultiMatrix2D
    blur(net.algart.multimatrix.MultiMatrix2D source, int kernelSize, boolean floatResult)
     
    static net.algart.multimatrix.MultiMatrix2D
    blur(net.algart.multimatrix.MultiMatrix2D source, int kernelSizeX, int kernelSizeY, boolean floatResult)
     
    static net.algart.multimatrix.MultiMatrix2D
    blur(net.algart.multimatrix.MultiMatrix2D source, int kernelSizeX, int kernelSizeY, double sigmaX, double sigmaY, boolean floatResult, boolean convertToGrayscale)
     
    static net.algart.multimatrix.MultiMatrix2D
    blurGrayscale(net.algart.multimatrix.MultiMatrix2D source, int kernelSize, boolean floatResult)
     
    static net.algart.multimatrix.MultiMatrix2D
    blurGrayscale(net.algart.multimatrix.MultiMatrix2D source, int kernelSizeX, int kernelSizeY, boolean floatResult)
     
    static void
    blurGrayscaleInPlace(net.algart.executors.api.data.SMat sourceAndResult, int kernelSize, boolean floatResult)
     
    static void
    blurGrayscaleInPlace(net.algart.executors.api.data.SMat sourceAndResult, int kernelSizeX, int kernelSizeY, boolean floatResult)
     
    static void
    blurIמPlace(net.algart.executors.api.data.SMat sourceAndResult, int kernelSize, boolean floatResult)
     
    static void
    blurIמPlace(net.algart.executors.api.data.SMat sourceAndResult, int kernelSizeX, int kernelSizeY, boolean floatResult)
     
    static void
    blurIמPlace(net.algart.executors.api.data.SMat sourceAndResult, int kernelSizeX, int kernelSizeY, double sigmaX, double sigmaY, boolean floatResult, boolean convertToGrayscale)
    IMPORTANT! If you call this method for some ExecutionBlock.getInputMat(String) matrix, and if your executor implements ReadOnlyExecutionInput (like any subclass of MultiMatrix2DFilter), you usually must override ReadOnlyExecutionInput.isReadOnly() method or perform manual cloning the blurred matrix.
     
    int
     
    int
     
    double
     
    double
     
    boolean
     
    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)
     
     
    setConvertToGrayscale(boolean convertToGrayscale)
     
    setFloatResult(boolean floatResult)
     
    setKernelSizeX(int kernelSizeX)
     
    setKernelSizeX(String kernelSizeX)
     
    setKernelSizeY(int kernelSizeY)
     
    setKernelSizeY(String kernelSizeY)
     
    setSigmaX(double sigmaX)
     
    setSigmaX(String sigmaX)
     
    setSigmaY(double sigmaY)
     
    setSigmaY(String sigmaY)
     

    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, executorPlatform, executorResourceFolder, fillSystemOutputs, fineAllocatedMemory, finishTimingOfExecutingAll, 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, reset, resetTiming, setDefaultInputMat, setDefaultInputNumbers, setDefaultInputPort, setDefaultInputScalar, setDefaultOutputMat, setDefaultOutputNumbers, setDefaultOutputPort, setDefaultOutputScalar, setEndProcessingTimeStamp, setMultithreadingEnvironment, setStartProcessingTimeStamp, setTimingEnabled, showStatus, showStatus, skipStandardAutomaticParameters, startTimingOfExecutingAll, status, statusData, toString, 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, beforeExecutingAll, checkInputNecessary, clearSession, contextPath, freeAllInputPortData, freeAllOutputPortData, freeAllPortData, getCaller, getContextId, getContextName, getContextPath, getCurrentDirectory, getData, getData, getDoubleScalar, getDoubleScalar, getExecutorId, 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, globalExecutorLoaders, hasDefaultInputPort, hasDefaultOutputPort, hasInputPort, hasOutputPort, initializeExecutionSystem, interrupt, isAllOutputsNecessary, isClosed, isInputNecessary, isInterrupted, isInterruptionRequested, isOutputNecessary, isReadOnlyInput, isVisibleResultNecessary, needToRepeat, newExecutor, newExecutor, parameters, putDoubleScalar, putDoubleScalar, putIntScalar, putIntScalar, putJsonScalar, putJsonScalar, putLongScalar, putLongScalar, putMat, putMat, putNumbers, putNumbers, putNumbers, putNumbers, putScalar, putScalar, putStringScalar, putStringScalar, recommendedCategory, recommendedName, removeInputPort, removeOneTimeTaskAfterExecutingAll, removeOutputData, removeOutputPort, removeTaskAfterExecutingAll, removeTaskBeforeExecutingAll, replacePort, requestDefaultOutput, requestOutput, serializedSpecifications, setAllOutputsNecessary, setBooleanParameter, setCaller, setContextId, setContextId, setContextName, setContextPath, setCurrentDirectory, setDoubleParameter, setExecutorSpecification, setInterruptionRequested, setIntParameter, setLongParameter, setOutputScalar, setOutputScalar, setOutputScalar, setOutputScalar, setOutputScalar, setOutputScalar, setOutputScalarIfNecessary, setOwnerId, setSessionId, setStringParameter, setVisibleResultNecessary, translateCurrentDirectory

    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

    • GaussianBlur

      public GaussianBlur()
  • Method Details

    • getKernelSizeX

      public int getKernelSizeX()
    • setKernelSizeX

      public GaussianBlur setKernelSizeX(int kernelSizeX)
    • setKernelSizeX

      public GaussianBlur setKernelSizeX(String kernelSizeX)
    • getKernelSizeY

      public int getKernelSizeY()
    • setKernelSizeY

      public GaussianBlur setKernelSizeY(int kernelSizeY)
    • setKernelSizeY

      public GaussianBlur setKernelSizeY(String kernelSizeY)
    • getSigmaX

      public double getSigmaX()
    • setSigmaX

      public GaussianBlur setSigmaX(double sigmaX)
    • setSigmaX

      public GaussianBlur setSigmaX(String sigmaX)
    • getSigmaY

      public double getSigmaY()
    • setSigmaY

      public GaussianBlur setSigmaY(double sigmaY)
    • setSigmaY

      public GaussianBlur setSigmaY(String sigmaY)
    • getBorderType

      public OBorderType getBorderType()
    • setBorderType

      public GaussianBlur setBorderType(OBorderType borderType)
    • isFloatResult

      public boolean isFloatResult()
    • setFloatResult

      public GaussianBlur setFloatResult(boolean floatResult)
    • isConvertToGrayscale

      public boolean isConvertToGrayscale()
    • setConvertToGrayscale

      public GaussianBlur setConvertToGrayscale(boolean convertToGrayscale)
    • 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
    • blur

      public static net.algart.multimatrix.MultiMatrix2D blur(net.algart.multimatrix.MultiMatrix2D source, int kernelSizeX, int kernelSizeY, boolean floatResult)
    • blur

      public static net.algart.multimatrix.MultiMatrix2D blur(net.algart.multimatrix.MultiMatrix2D source, int kernelSize, boolean floatResult)
    • blurGrayscale

      public static net.algart.multimatrix.MultiMatrix2D blurGrayscale(net.algart.multimatrix.MultiMatrix2D source, int kernelSizeX, int kernelSizeY, boolean floatResult)
    • blurGrayscale

      public static net.algart.multimatrix.MultiMatrix2D blurGrayscale(net.algart.multimatrix.MultiMatrix2D source, int kernelSize, boolean floatResult)
    • blur

      public static net.algart.multimatrix.MultiMatrix2D blur(net.algart.multimatrix.MultiMatrix2D source, int kernelSizeX, int kernelSizeY, double sigmaX, double sigmaY, boolean floatResult, boolean convertToGrayscale)
    • blurIמPlace

      public static void blurIמPlace(net.algart.executors.api.data.SMat sourceAndResult, int kernelSizeX, int kernelSizeY, boolean floatResult)
    • blurIמPlace

      public static void blurIמPlace(net.algart.executors.api.data.SMat sourceAndResult, int kernelSize, boolean floatResult)
    • blurGrayscaleInPlace

      public static void blurGrayscaleInPlace(net.algart.executors.api.data.SMat sourceAndResult, int kernelSizeX, int kernelSizeY, boolean floatResult)
    • blurGrayscaleInPlace

      public static void blurGrayscaleInPlace(net.algart.executors.api.data.SMat sourceAndResult, int kernelSize, boolean floatResult)
    • blurIמPlace

      public static void blurIמPlace(net.algart.executors.api.data.SMat sourceAndResult, int kernelSizeX, int kernelSizeY, double sigmaX, double sigmaY, boolean floatResult, boolean convertToGrayscale)
      IMPORTANT! If you call this method for some ExecutionBlock.getInputMat(String) matrix, and if your executor implements ReadOnlyExecutionInput (like any subclass of MultiMatrix2DFilter), you usually must override ReadOnlyExecutionInput.isReadOnly() method or perform manual cloning the blurred matrix.