Class ToByteUpperLowerQuantileIntensity
public class ToByteUpperLowerQuantileIntensity
extends ConvertChannelToWithHistogram<UnsignedByteBuffer>
Converts a channel to unsigned byte format using upper and lower quantile intensities from a
histogram.
This class extends ConvertChannelToWithHistogram
to provide a specific implementation
for converting channels to unsigned byte format based on quantile intensities.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreates the converter.double
The lower quantile value for intensity scaling.double
The upper quantile value for intensity scaling.double
Sets the min by multiplying the quantileLower by this constant.double
Sets the max by multiplying the quantileUpper by this constant.void
setQuantileLower
(double quantileLower) The lower quantile value for intensity scaling.void
setQuantileUpper
(double quantileUpper) The upper quantile value for intensity scaling.void
setScaleLower
(double scaleLower) Sets the min by multiplying the quantileLower by this constant.void
setScaleUpper
(double scaleUpper) Sets the max by multiplying the quantileUpper by this constant.Methods inherited from class org.anchoranalysis.bean.AnchorBean
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
-
Constructor Details
-
ToByteUpperLowerQuantileIntensity
public ToByteUpperLowerQuantileIntensity()
-
-
Method Details
-
createConverter
Description copied from class:ConvertChannelToWithHistogram
Creates the converter.- Specified by:
createConverter
in classConvertChannelToWithHistogram<UnsignedByteBuffer>
- Returns:
- the created converter.
-
getQuantileLower
public double getQuantileLower()The lower quantile value for intensity scaling. -
setQuantileLower
public void setQuantileLower(double quantileLower) The lower quantile value for intensity scaling. -
getQuantileUpper
public double getQuantileUpper()The upper quantile value for intensity scaling. -
setQuantileUpper
public void setQuantileUpper(double quantileUpper) The upper quantile value for intensity scaling. -
getScaleLower
public double getScaleLower()Sets the min by multiplying the quantileLower by this constant. -
setScaleLower
public void setScaleLower(double scaleLower) Sets the min by multiplying the quantileLower by this constant. -
getScaleUpper
public double getScaleUpper()Sets the max by multiplying the quantileUpper by this constant. -
setScaleUpper
public void setScaleUpper(double scaleUpper) Sets the max by multiplying the quantileUpper by this constant.
-