public class HistogramContrastEnhancerAlgorithm extends JIPipeSimpleIteratingAlgorithm
ContrastEnhancer
This class is not very portable, so I adapted the code hereModifier and Type | Class and Description |
---|---|
static class |
HistogramContrastEnhancerAlgorithm.Method |
JIPipeGraphNode.BaseDirectoryChangedEvent, JIPipeGraphNode.BaseDirectoryChangedEventEmitter, JIPipeGraphNode.BaseDirectoryChangedEventListener, JIPipeGraphNode.NodeSlotsChangedEvent, JIPipeGraphNode.NodeSlotsChangedEventEmitter, JIPipeGraphNode.NodeSlotsChangedEventListener, JIPipeGraphNode.Serializer
JIPipeParameterCollection.ParameterChangedEvent, JIPipeParameterCollection.ParameterChangedEventEmitter, JIPipeParameterCollection.ParameterChangedEventListener, JIPipeParameterCollection.ParameterStructureChangedEvent, JIPipeParameterCollection.ParameterStructureChangedEventEmitter, JIPipeParameterCollection.ParameterStructureChangedEventListener, JIPipeParameterCollection.ParameterUIChangedEvent, JIPipeParameterCollection.ParameterUIChangedEventEmitter, JIPipeParameterCollection.ParameterUIChangedEventListener
SLOT_PARAMETERS
Constructor and Description |
---|
HistogramContrastEnhancerAlgorithm(HistogramContrastEnhancerAlgorithm other) |
HistogramContrastEnhancerAlgorithm(JIPipeNodeInfo info) |
Modifier and Type | Method and Description |
---|---|
void |
equalize(ij.ImagePlus imp,
boolean classicEqualization) |
void |
equalize(ij.process.ImageProcessor ip,
boolean classicEqualization)
Changes the tone curves of images.
|
HistogramContrastEnhancerAlgorithm.Method |
getMethod() |
double |
getSaturatedPixels() |
boolean |
isUseStackHistogram() |
protected void |
runIteration(JIPipeSingleIterationStep iterationStep,
JIPipeIterationContext iterationContext,
JIPipeGraphNodeRunContext runContext,
JIPipeProgressInfo progressInfo)
Runs code on one data row
|
void |
setMethod(HistogramContrastEnhancerAlgorithm.Method method) |
boolean |
setSaturatedPixels(double saturatedPixels) |
void |
setUseStackHistogram(boolean useStackHistogram) |
void |
stretchHistogram(ij.ImagePlus imp,
double saturated,
boolean normalize) |
void |
stretchHistogram(ij.process.ImageProcessor ip,
double saturated,
boolean normalize) |
void |
stretchHistogram(ij.process.ImageProcessor ip,
double saturated,
ij.process.ImageStatistics stats,
boolean normalize) |
createUIInputSlotIconDescriptionMenuItems, generateDataBatchesGenerationResult, getAdaptiveParameterSettings, getDataBatchGenerationSettings, getGenerationSettingsInterface, getParallelizationBatchSize, isAllowEmptyIterationStep, isParameterUIVisible, isParameterUIVisible, reportValidity, runParameterSet, runPassThrough, supportsParallelization
getDataInputSlotCount, getDataInputSlots, getFirstInputSlot, getNonParameterInputSlots, getParameterSlot, getParameterSlotAlgorithmSettings, getUIInputSlotIcon, getUIInputSlotIconBaseDimensions, onParameterChanged, run
canAutoPassThrough, canPassThrough, functionallyEquals, getDefaultCustomExpressionVariables, getRuntimePartition, isEnabled, isEnableDefaultCustomExpressionVariables, isPassThrough, isPostprocessor, isPreprocessor, isSkipped, loadExample, onDeserialized, runPassThrough, setEnabled, setPassThrough, setRuntimePartition, setSkipped
archiveTo, canUserDelete, clearLocations, clearSlotData, copySlotConfiguration, duplicate, emitNodeSlotsChangedEvent, fromJson, getAliasIdInParentGraph, getBaseDirectory, getBaseDirectoryChangedEventEmitter, getCategory, getCompartmentDisplayName, getCompartmentUUIDInGraphAsString, getCompartmentUUIDInParentGraph, getCustomDescription, getCustomName, getDependencies, getDisplayName, getEnvironmentDependencies, getFirstOutputSlot, getInfo, getInputSlot, getInputSlotMap, getInputSlotOrder, getInputSlots, getInputSlotsWithRole, getInternalStoragePath, getLastInputSlot, getLastOutputSlot, getName, getNewScratch, getNodeSlotsChangedEventEmitter, getNodeUILocationPerViewModePerCompartment, getNodeUILocationWithin, getOpenInputSlots, getOutputSlot, getOutputSlotMap, getOutputSlots, getOutputSlotsWithRole, getParentGraph, getProject, getProjectCompartment, getProjectDataDirs, getProjectDirectory, getRuntimeProject, getScratchBaseDirectory, getSlotConfiguration, getStoragePath, getTextDescription, getUUIDInParentGraph, hasInputSlot, hasOutputSlot, isBookmarked, isUiLocked, isVisibleIn, onSlotConfigurationChanged, renderInputSlots, renderOutputSlots, setBaseDirectory, setBookmarked, setCustomDescription, setCustomName, setInfo, setInternalStoragePath, setNodeUILocationPerViewModePerCompartment, setNodeUILocationWithin, setNodeUILocationWithin, setParentGraph, setProjectDirectory, setRuntimeProject, setScratchBaseDirectory, setSlotConfiguration, setStoragePath, setUiLocked, toggleSlot, toJson, updateGraphNodeSlots
getParameterChangedEventEmitter, getParameterStructureChangedEventEmitter, getParameterUIChangedEventEmitter, onParameterStructureChanged, onParameterUIChanged, registerSubParameter, registerSubParameters
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
generateDataBatchesDryRun
installUIOverrideParameterEditor, installUIParameterOptions
deserializeFromJsonNode, emitParameterChangedEvent, emitParameterStructureChangedEvent, emitParameterUIChangedEvent, getContextActions, getParameter, getParameterAccess, getParameterChangedEventEmitter, getParameterStructureChangedEventEmitter, getParameterUIChangedEventEmitter, serializeToJsonFile, serializeToJsonGenerator, serializeToJsonString, setParameter
generateValidityReport
onParameterUIChanged
onParameterStructureChanged
public HistogramContrastEnhancerAlgorithm(JIPipeNodeInfo info)
public HistogramContrastEnhancerAlgorithm(HistogramContrastEnhancerAlgorithm other)
protected void runIteration(JIPipeSingleIterationStep iterationStep, JIPipeIterationContext iterationContext, JIPipeGraphNodeRunContext runContext, JIPipeProgressInfo progressInfo)
JIPipeSimpleIteratingAlgorithm
runIteration
in class JIPipeSimpleIteratingAlgorithm
iterationStep
- The data interfaceiterationContext
- the iteration contextrunContext
- the run contextprogressInfo
- the progress info from the runpublic double getSaturatedPixels()
public boolean setSaturatedPixels(double saturatedPixels)
public HistogramContrastEnhancerAlgorithm.Method getMethod()
public void setMethod(HistogramContrastEnhancerAlgorithm.Method method)
public boolean isUseStackHistogram()
public void setUseStackHistogram(boolean useStackHistogram)
public void stretchHistogram(ij.ImagePlus imp, double saturated, boolean normalize)
public void stretchHistogram(ij.process.ImageProcessor ip, double saturated, boolean normalize)
public void stretchHistogram(ij.process.ImageProcessor ip, double saturated, ij.process.ImageStatistics stats, boolean normalize)
public void equalize(ij.ImagePlus imp, boolean classicEqualization)
public void equalize(ij.process.ImageProcessor ip, boolean classicEqualization)
Copyright © 2020–2025 Leibniz Institute for Natural Product Research and Infection Biology - Hans Knöll Institute (HKI). All rights reserved.