Package sc.fiji.snt.analysis
Record Class MultiSpectralRefiner.Parameters
java.lang.Object
java.lang.Record
sc.fiji.snt.analysis.MultiSpectralRefiner.Parameters
- Enclosing class:
MultiSpectralRefiner
public static record MultiSpectralRefiner.Parameters(double intensityWeight, double colorWeight, double radiusWeight, double cosSimilarityThreshold, double backgroundThreshold, double minIntensityThreshold, double maxIntensityThreshold, double minPercentC, double maxPercentC, int maxRadius, int maxIterations, double convergenceThreshold, int referenceWindowRadius, boolean autoTune)
extends Record
Immutable parameter set for multispectral refinement.
Provides a convenient way to configure multiple refiners consistently.
Intensity thresholds (minIntensityThreshold, maxIntensityThreshold)
can be set to Double.NaN to use auto-calibrated values based on the
image's bit depth (the default behavior).
-
Constructor Summary
ConstructorsConstructorDescriptionParameters(double intensityWeight, double colorWeight, double radiusWeight, double cosSimilarityThreshold, double backgroundThreshold, double minIntensityThreshold, double maxIntensityThreshold, double minPercentC, double maxPercentC, int maxRadius, int maxIterations, double convergenceThreshold, int referenceWindowRadius, boolean autoTune) Creates an instance of aParametersrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanautoTune()Returns the value of theautoTunerecord component.doubleReturns the value of thebackgroundThresholdrecord component.doubleReturns the value of thecolorWeightrecord component.doubleReturns the value of theconvergenceThresholdrecord component.doubleReturns the value of thecosSimilarityThresholdrecord component.defaults()Default parameters: weights and thresholds from the nCorrect publication, with intensity thresholds set to NaN (auto-calibrated from bit depth).final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.doubleReturns the value of theintensityWeightrecord component.doubleReturns the value of themaxIntensityThresholdrecord component.intReturns the value of themaxIterationsrecord component.doubleReturns the value of themaxPercentCrecord component.intReturns the value of themaxRadiusrecord component.doubleReturns the value of theminIntensityThresholdrecord component.doubleReturns the value of theminPercentCrecord component.doubleReturns the value of theradiusWeightrecord component.intReturns the value of thereferenceWindowRadiusrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Parameters
public Parameters(double intensityWeight, double colorWeight, double radiusWeight, double cosSimilarityThreshold, double backgroundThreshold, double minIntensityThreshold, double maxIntensityThreshold, double minPercentC, double maxPercentC, int maxRadius, int maxIterations, double convergenceThreshold, int referenceWindowRadius, boolean autoTune) Creates an instance of aParametersrecord class.- Parameters:
intensityWeight- the value for theintensityWeightrecord componentcolorWeight- the value for thecolorWeightrecord componentradiusWeight- the value for theradiusWeightrecord componentcosSimilarityThreshold- the value for thecosSimilarityThresholdrecord componentbackgroundThreshold- the value for thebackgroundThresholdrecord componentminIntensityThreshold- the value for theminIntensityThresholdrecord componentmaxIntensityThreshold- the value for themaxIntensityThresholdrecord componentminPercentC- the value for theminPercentCrecord componentmaxPercentC- the value for themaxPercentCrecord componentmaxRadius- the value for themaxRadiusrecord componentmaxIterations- the value for themaxIterationsrecord componentconvergenceThreshold- the value for theconvergenceThresholdrecord componentreferenceWindowRadius- the value for thereferenceWindowRadiusrecord componentautoTune- the value for theautoTunerecord component
-
-
Method Details
-
defaults
Default parameters: weights and thresholds from the nCorrect publication, with intensity thresholds set to NaN (auto-calibrated from bit depth). Reference window is -1 (global, single reference per path). Auto-tune is off by default. -
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with '=='. -
intensityWeight
public double intensityWeight()Returns the value of theintensityWeightrecord component.- Returns:
- the value of the
intensityWeightrecord component
-
colorWeight
public double colorWeight()Returns the value of thecolorWeightrecord component.- Returns:
- the value of the
colorWeightrecord component
-
radiusWeight
public double radiusWeight()Returns the value of theradiusWeightrecord component.- Returns:
- the value of the
radiusWeightrecord component
-
cosSimilarityThreshold
public double cosSimilarityThreshold()Returns the value of thecosSimilarityThresholdrecord component.- Returns:
- the value of the
cosSimilarityThresholdrecord component
-
backgroundThreshold
public double backgroundThreshold()Returns the value of thebackgroundThresholdrecord component.- Returns:
- the value of the
backgroundThresholdrecord component
-
minIntensityThreshold
public double minIntensityThreshold()Returns the value of theminIntensityThresholdrecord component.- Returns:
- the value of the
minIntensityThresholdrecord component
-
maxIntensityThreshold
public double maxIntensityThreshold()Returns the value of themaxIntensityThresholdrecord component.- Returns:
- the value of the
maxIntensityThresholdrecord component
-
minPercentC
public double minPercentC()Returns the value of theminPercentCrecord component.- Returns:
- the value of the
minPercentCrecord component
-
maxPercentC
public double maxPercentC()Returns the value of themaxPercentCrecord component.- Returns:
- the value of the
maxPercentCrecord component
-
maxRadius
public int maxRadius()Returns the value of themaxRadiusrecord component.- Returns:
- the value of the
maxRadiusrecord component
-
maxIterations
public int maxIterations()Returns the value of themaxIterationsrecord component.- Returns:
- the value of the
maxIterationsrecord component
-
convergenceThreshold
public double convergenceThreshold()Returns the value of theconvergenceThresholdrecord component.- Returns:
- the value of the
convergenceThresholdrecord component
-
referenceWindowRadius
public int referenceWindowRadius()Returns the value of thereferenceWindowRadiusrecord component.- Returns:
- the value of the
referenceWindowRadiusrecord component
-
autoTune
public boolean autoTune()Returns the value of theautoTunerecord component.- Returns:
- the value of the
autoTunerecord component
-