Class GrabCut
java.lang.Object
net.algart.json.PropertyChecker
net.algart.executors.api.ExecutionBlock
net.algart.executors.api.Executor
net.algart.executors.modules.opencv.common.OpenCVExecutor
net.algart.executors.modules.opencv.common.MatFilter
net.algart.executors.modules.opencv.common.VoidResultMatFilter
net.algart.executors.modules.opencv.matrices.misc.GrabCut
- All Implemented Interfaces:
AutoCloseable
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic enumNested classes/interfaces inherited from class net.algart.executors.api.Executor
net.algart.executors.api.Executor.SystemParameter, net.algart.executors.api.Executor.Timing -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final StringFields 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_NAMEFields 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 -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()intgetMode()doublegetSizeX()doublegetSizeY()doubledoublebooleanbooleanbooleanbooleanisReset()voidprocess(org.bytedeco.opencv.opencv_core.Mat result, org.bytedeco.opencv.opencv_core.Mat source) voidprocess(org.bytedeco.opencv.opencv_core.Mat resultMask, org.bytedeco.opencv.opencv_core.Mat source, org.bytedeco.opencv.opencv_core.Mat initialMask, org.bytedeco.opencv.opencv_core.Mat correctingFigureMask) setFigureKind(GrabCut.FigureKind figureKind) setInitialMaskFiller(GrabCut.MaskPixelClass initialMaskFiller) setIterCount(int iterCount) setMode(OGrabCutMode mode) setPackBits(boolean packBits) setPercents(boolean percents) setRequireNonTrivialSamples(boolean requireNonTrivialSamples) setReset(boolean reset) setSizeX(double sizeX) setSizeY(double sizeY) setStartX(double startX) setStartY(double startY) Methods inherited from class net.algart.executors.modules.opencv.common.VoidResultMatFilter
processMethods inherited from class net.algart.executors.modules.opencv.common.MatFilter
allowInputPackedBits, allowUninitializedInput, compressOriginal, getCompressionInterpolation, getOptimizingScale, getStretchingInterpolation, packOutputBits, process, processWithCompression, setCompressionInterpolation, setOptimizingScale, setOutputTo, setStretchingInterpolation, stretchToOriginalMethods inherited from class net.algart.executors.modules.opencv.common.OpenCVExecutor
isUseGPU, postprocess, putMat, setMat, setUseGPU, useGPUMethods 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, visibleResultsInformationMethods 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, setVisibleResultNecessaryMethods 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
-
Field Details
-
INPUT_MASK
- See Also:
-
INPUT_FIGURE
- See Also:
-
OUTPUT_MASK
- See Also:
-
OUTPUT_SUCCESS
- See Also:
-
-
Constructor Details
-
GrabCut
public GrabCut()
-
-
Method Details
-
isReset
public boolean isReset() -
setReset
-
getMode
-
setMode
-
getFigureKind
-
setFigureKind
-
getInitialMaskFiller
-
setInitialMaskFiller
-
isRequireNonTrivialSamples
public boolean isRequireNonTrivialSamples() -
setRequireNonTrivialSamples
-
isPercents
public boolean isPercents() -
setPercents
-
getStartX
public double getStartX() -
setStartX
-
getStartY
public double getStartY() -
setStartY
-
getSizeX
public double getSizeX() -
setSizeX
-
getSizeY
public double getSizeY() -
setSizeY
-
getIterCount
public int getIterCount() -
setIterCount
-
isPackBits
public boolean isPackBits() -
setPackBits
-
process
public void process(org.bytedeco.opencv.opencv_core.Mat result, org.bytedeco.opencv.opencv_core.Mat source) - Specified by:
processin classVoidResultMatFilter
-
process
public void process(org.bytedeco.opencv.opencv_core.Mat resultMask, org.bytedeco.opencv.opencv_core.Mat source, org.bytedeco.opencv.opencv_core.Mat initialMask, org.bytedeco.opencv.opencv_core.Mat correctingFigureMask) -
close
public void close()- Specified by:
closein interfaceAutoCloseable- Overrides:
closein classOpenCVExecutor
-