public class CostesSignificanceTest<T extends RealType<T> & NativeType<T>> extends Algorithm<T>
Modifier and Type | Field and Description |
---|---|
protected int |
maxErrorRetries |
protected double[] |
psfRadius |
Constructor and Description |
---|
CostesSignificanceTest(PearsonsCorrelation<T> pc,
int psfRadiusInPixels,
int nrRandomizations,
boolean showShuffledImages)
Creates a new Costes significance test object by using a
cube block with the given edge length.
|
Modifier and Type | Method and Description |
---|---|
protected void |
calculateStatistics(List<Double> compareValues,
double originalVal) |
void |
execute(DataContainer<T> container)
Builds a list of blocks that represent the images.
|
protected void |
generateBlocks(RandomAccessible<T> img,
List<IterableInterval<T>> blockList,
double[] offset,
double[] size)
This method drives the creation of RegionOfInterest-Cursors on the given image.
|
protected void |
generateBlocksX(RandomAccessible<T> img,
List<IterableInterval<T>> blockList,
double[] offset,
double[] size)
Goes stepwise through a row of image data and adds cursors to the given list.
|
protected void |
generateBlocksXY(RandomAccessible<T> img,
List<IterableInterval<T>> blockList,
double[] offset,
double[] size)
Goes stepwise through the y-dimensions of the image data and adds cursors
for each row to the given list.
|
double |
getCostesPValue() |
double |
getShuffledMean() |
double |
getShuffledPearsonsNotLessOriginal() |
double |
getShuffledStdDerivation() |
void |
processResults(ResultHandler<T> handler)
A method to give the algorithm the opportunity to let
its results being processed by the passed handler.
|
addWarning, getName, getWarnings
protected double[] psfRadius
protected final int maxErrorRetries
public CostesSignificanceTest(PearsonsCorrelation<T> pc, int psfRadiusInPixels, int nrRandomizations, boolean showShuffledImages)
psfRadiusInPixels
- The edge width of the 3D cube block.public void execute(DataContainer<T> container) throws MissingPreconditionException
execute
in class Algorithm<T extends RealType<T> & NativeType<T>>
MissingPreconditionException
protected void generateBlocks(RandomAccessible<T> img, List<IterableInterval<T>> blockList, double[] offset, double[] size) throws MissingPreconditionException
img
- The image to create cursors on.blockList
- The list to put newly created cursors intooffset
- size
- MissingPreconditionException
protected void generateBlocksXY(RandomAccessible<T> img, List<IterableInterval<T>> blockList, double[] offset, double[] size)
img
- The image to get the data and cursors from.blockList
- The list to put the blocks into.offset
- The current offset configuration. Only [0] and [1] will be changed.size
- protected void generateBlocksX(RandomAccessible<T> img, List<IterableInterval<T>> blockList, double[] offset, double[] size)
img
- The image to get the data and cursors from.blockList
- The list to put the blocks into.offset
- The current offset configuration. Only [0] of it will be changed.size
- protected void calculateStatistics(List<Double> compareValues, double originalVal)
public void processResults(ResultHandler<T> handler)
Algorithm
processResults
in class Algorithm<T extends RealType<T> & NativeType<T>>
handler
- The ResultHandler to process the results.public double getCostesPValue()
public double getShuffledMean()
public double getShuffledStdDerivation()
public double getShuffledPearsonsNotLessOriginal()
Copyright © 2015–2021 Fiji. All rights reserved.