public class SpotContrastAndSNRAnalyzer<T extends RealType<T>> extends AbstractSpotFeatureAnalyzer<T>
FeatureAnalyzer
computes both the
Michelson
contrast and the SNR for each spot:
The contrast is defined as C = (I_in - I_out) / (I_in + I_out)
where I_in
is the mean intensity inside the spot volume
(computed from its Spot.RADIUS
feature), and I_out
is
the mean intensity in a ring ranging from its radius to twice its radius.
The spots's SNR is computed a (I_in - I_out) / std_in
where
std_in
is the standard deviation computed within the spot.
Important: this analyzer relies on some results provided by the
SpotIntensityMultiCAnalyzer
analyzer. Thus, it must be run
after it.
SpotAnalyzer.DummySpotAnalyzer<T extends RealType<T> & NativeType<T>>
Modifier and Type | Field and Description |
---|---|
protected static double |
RAD_PERCENTAGE |
errorMessage
DUMMY_ANALYZER
Constructor and Description |
---|
SpotContrastAndSNRAnalyzer(ImgPlus<T> img,
int channel)
Instantiates an analyzer for contrast and SNR.
|
Modifier and Type | Method and Description |
---|---|
void |
process(Spot spot) |
getNumThreads, getProcessingTime, process, setNumThreads, setNumThreads
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
dummyAnalyzer
protected static final double RAD_PERCENTAGE
Copyright © 2015–2021 Fiji. All rights reserved.