public class Morphology2DAlgorithm extends JIPipeSimpleIteratingAlgorithm
ImageProcessor
JIPipeGraphNode.BaseDirectoryChangedEvent, JIPipeGraphNode.Serializer
JIPipeParameterCollection.ParameterChangedEvent, JIPipeParameterCollection.ParameterStructureChangedEvent, JIPipeParameterCollection.ParameterUIChangedEvent
SLOT_PARAMETERS
Constructor and Description |
---|
Morphology2DAlgorithm(JIPipeNodeInfo info)
Instantiates a new node type.
|
Morphology2DAlgorithm(Morphology2DAlgorithm other)
Instantiates a new node type.
|
Modifier and Type | Method and Description |
---|---|
AddBorder2DAlgorithm |
getAddBorder2DAlgorithm() |
inra.ijpb.morphology.Strel.Shape |
getElement() |
inra.ijpb.morphology.Morphology.Operation |
getOperation() |
int |
getRadius() |
boolean |
isAddBorder() |
boolean |
isParameterUIVisible(JIPipeParameterTree tree,
JIPipeParameterCollection subParameter)
Allows to override the visibility of sub-parameters inside the UI
|
void |
reportValidity(JIPipeIssueReport report)
Generates a validity report
|
protected void |
runIteration(JIPipeDataBatch dataBatch,
JIPipeProgressInfo progressInfo)
Runs code on one data row
|
void |
setAddBorder(boolean addBorder) |
void |
setElement(inra.ijpb.morphology.Strel.Shape element) |
void |
setOperation(inra.ijpb.morphology.Morphology.Operation operation) |
void |
setRadius(int radius) |
boolean |
supportsParallelization()
Indicates to the algorithm base implementation if parallelization is supported.
|
generateDataBatchesDryRun, getAdaptiveParameterSettings, getDataBatchGenerationSettings, getGenerationSettingsInterface, getParallelizationBatchSize, isParallelizationEnabled, isParameterUIVisible, runParameterSet, runPassThrough, setParallelizationEnabled
getDataInputSlotCount, getDataInputSlots, getFirstInputSlot, getNonParameterInputSlots, getParameterSlot, getParameterSlotAlgorithmSettings, run
canAutoPassThrough, canPassThrough, functionallyEquals, getThreadPool, isEnabled, isPassThrough, isPostprocessor, isPreprocessor, loadExample, runPassThrough, setEnabled, setPassThrough, setThreadPool
archiveTo, canUserDelete, clearLocations, clearSlotData, copySlotConfiguration, duplicate, fromJson, fromJsonNode, getAliasIdInParentGraph, getBaseDirectory, getCategory, getCompartmentDisplayName, getCompartmentUUIDInGraphAsString, getCompartmentUUIDInParentGraph, getCustomDescription, getDependencies, getDisplayName, getEventBus, getFirstOutputSlot, getInfo, getInputSlot, getInputSlotMap, getInputSlotOrder, getInputSlots, getInputSlotsWithRole, getInternalStoragePath, getLastInputSlot, getLastOutputSlot, getLocations, getLocationWithin, getName, getNewScratch, getOpenInputSlots, getOutputSlot, getOutputSlotMap, getOutputSlots, getOutputSlotsWithRole, getParentGraph, getProjectCompartment, getProjectDirectory, getScratchBaseDirectory, getSlotConfiguration, getStoragePath, getUUIDInParentGraph, hasInputSlot, hasOutputSlot, isBookmarked, isVisibleIn, onDeserialized, onParameterChanged, onParameterStructureChanged, onParameterUIChanged, onSlotConfigurationChanged, registerSubParameter, renderInputSlots, renderOutputSlots, setBaseDirectory, setBookmarked, setCustomDescription, setCustomName, setInfo, setInternalStoragePath, setLocations, setLocationWithin, setLocationWithin, setParentGraph, setProjectDirectory, setScratchBaseDirectory, setSlotConfiguration, setStoragePath, toggleSlot, toJson, triggerSlotsChangedEvent, updateGraphNodeSlots
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
generateValidityReport
addParameterChangeListener, addParameterChangeListener, getContextActions, getParameter, getParameterAccess, installUIOverrideParameterEditor, installUIParameterOptions, setParameter, triggerParameterChange, triggerParameterStructureChange, triggerParameterUIChange
public Morphology2DAlgorithm(JIPipeNodeInfo info)
info
- the infopublic Morphology2DAlgorithm(Morphology2DAlgorithm other)
other
- the otherpublic boolean supportsParallelization()
JIPipeParallelizedAlgorithm
supportsParallelization
in interface JIPipeParallelizedAlgorithm
supportsParallelization
in class JIPipeSimpleIteratingAlgorithm
protected void runIteration(JIPipeDataBatch dataBatch, JIPipeProgressInfo progressInfo)
JIPipeSimpleIteratingAlgorithm
runIteration
in class JIPipeSimpleIteratingAlgorithm
dataBatch
- The data interfaceprogressInfo
- the progress info from the runpublic void reportValidity(JIPipeIssueReport report)
JIPipeValidatable
reportValidity
in interface JIPipeValidatable
reportValidity
in class JIPipeSimpleIteratingAlgorithm
report
- the report to be added topublic inra.ijpb.morphology.Morphology.Operation getOperation()
public void setOperation(inra.ijpb.morphology.Morphology.Operation operation)
public int getRadius()
public void setRadius(int radius)
public inra.ijpb.morphology.Strel.Shape getElement()
public void setElement(inra.ijpb.morphology.Strel.Shape element)
public boolean isAddBorder()
public void setAddBorder(boolean addBorder)
public boolean isParameterUIVisible(JIPipeParameterTree tree, JIPipeParameterCollection subParameter)
JIPipeParameterCollection
isParameterUIVisible
in interface JIPipeParameterCollection
isParameterUIVisible
in class JIPipeSimpleIteratingAlgorithm
tree
- the parameter tree that is used to access this parametersubParameter
- a sub parameterpublic AddBorder2DAlgorithm getAddBorder2DAlgorithm()
Copyright © 2020–2023 Leibniz Institute for Natural Product Research and Infection Biology - Hans Knöll Institute (HKI). All rights reserved.