public class DNAFinderCommand
extends org.scijava.command.DynamicCommand
implements org.scijava.command.Command, org.scijava.Initializable, org.scijava.command.Previewable
The vertical gradient of the image is calculated and a DoG filter is applied. The resulting image is searched for pairs of positive and negative peaks. Vertically aligned pairs within the ranges provided are considered DNA molecules. Thresholds for the intensity and variance in intensity can be applied to filter the DNA molecules located and the ends can be fit with subpixel accuracy.
This command can report the number of molecules, a table with a position list,
or line ROIs added to the RoiManager. Line ROIs can then be used to create
a DnaMoleculeArchive using the BuildDnaArchiveCommand
.
Constructor and Description |
---|
DNAFinderCommand() |
Modifier and Type | Method and Description |
---|---|
void |
cancel() |
boolean |
getAddToRoiManager() |
int |
getChannel() |
net.imagej.Dataset |
getDataset() |
MarsTable |
getDNACountTable() |
MarsTable |
getDNATable() |
boolean |
getFilterByMedianIntensity() |
boolean |
getFilterByVariance() |
boolean |
getFit() |
int |
getFitRadius() |
boolean |
getFitSecondOrder() |
double |
getGaussianSigma() |
boolean |
getGenerateDNACountTable() |
boolean |
getGenerateDNATable() |
int |
getMedianIntensityLowerBound() |
int |
getMinimumDistance() |
int |
getOptimalDNALength() |
boolean |
getProcessAllFrames() |
java.lang.String |
getRegion() |
ij.gui.Roi[] |
getROIs() |
int |
getT() |
int |
getThreads() |
double |
getThreshold() |
double |
getVarianceUpperBound() |
int |
getXDNAEndSearchRadius() |
int |
getYDNAEndSearchRadius() |
void |
initialize() |
protected void |
openWebPage()
Called when the openWebPage button is pressed.
|
void |
preview() |
protected void |
previewChanged()
Called when the
preview parameter value changes. |
void |
run() |
void |
setAddToRoiManager(boolean addToRoiManger) |
void |
setChannel(int channel) |
void |
setDataset(net.imagej.Dataset dataset) |
void |
setDogFilterRadius(double dogFilterRadius) |
void |
setFilterByMedianIntensity(boolean medianIntensityFilter) |
void |
setFilterByVariance(boolean varianceFilter) |
void |
setFit(boolean fit) |
void |
setFitRadius(int fitRadius) |
void |
setFitSecondOrder(boolean fitSecondOrder) |
void |
setGaussianSigma(double gaussSigma) |
void |
setGenerateDNACountTable(boolean generateDNACountTable) |
void |
setGenerateDNATable(boolean generatePeakTable) |
void |
setMedianIntensityLowerBound(int medianIntensityLowerBound) |
void |
setMinimumDistance(int minimumDistance) |
void |
setOptimalDNALength(int optimalDNALength) |
void |
setProcessAllFrames(boolean allFrames) |
void |
setRegion(java.lang.String region) |
void |
setROIs(ij.gui.Roi[] rois) |
void |
setT(int theT) |
void |
setThreads(int nThreads) |
void |
setThreshold(double threshold) |
void |
setUseDogFiler(boolean useDogFilter) |
void |
setVarianceUpperBound(int varianceUpperBound) |
void |
setXDNAEndSearchRadius(int xDNAEndSearchRadius) |
void |
setYDNAEndSearchRadius(int yDNAEndSearchRadius) |
cancel, context, getCancelReason, getContext, getInfo, getInput, getOutput, isCanceled, saveInputs, setContext, setInput, setOutput, uncancel
getDelegateObject, getInputs, getOutputs, isInputResolved, isOutputResolved, resolveInput, resolveOutput, setInputs, setOutputs, unresolveInput, unresolveOutput
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public void initialize()
initialize
in interface org.scijava.Initializable
initialize
in interface org.scijava.module.Module
initialize
in class org.scijava.module.AbstractModule
public void run()
run
in interface java.lang.Runnable
run
in interface org.scijava.module.MutableModule
public void preview()
preview
in interface org.scijava.command.Previewable
preview
in interface org.scijava.module.Module
preview
in class org.scijava.module.AbstractModule
protected void openWebPage()
public void cancel()
cancel
in interface org.scijava.command.Previewable
cancel
in interface org.scijava.module.Module
cancel
in class org.scijava.module.AbstractModule
protected void previewChanged()
preview
parameter value changes.public MarsTable getDNACountTable()
public MarsTable getDNATable()
public void setDataset(net.imagej.Dataset dataset)
public net.imagej.Dataset getDataset()
public void setRegion(java.lang.String region)
public java.lang.String getRegion()
public void setROIs(ij.gui.Roi[] rois)
public ij.gui.Roi[] getROIs()
public void setChannel(int channel)
public int getChannel()
public void setT(int theT)
public int getT()
public void setGaussianSigma(double gaussSigma)
public double getGaussianSigma()
public void setUseDogFiler(boolean useDogFilter)
public void setDogFilterRadius(double dogFilterRadius)
public void setThreshold(double threshold)
public double getThreshold()
public void setMinimumDistance(int minimumDistance)
public int getMinimumDistance()
public void setOptimalDNALength(int optimalDNALength)
public int getOptimalDNALength()
public void setYDNAEndSearchRadius(int yDNAEndSearchRadius)
public int getYDNAEndSearchRadius()
public void setXDNAEndSearchRadius(int xDNAEndSearchRadius)
public int getXDNAEndSearchRadius()
public void setFilterByVariance(boolean varianceFilter)
public boolean getFilterByVariance()
public double getVarianceUpperBound()
public void setVarianceUpperBound(int varianceUpperBound)
public void setFilterByMedianIntensity(boolean medianIntensityFilter)
public boolean getFilterByMedianIntensity()
public void setMedianIntensityLowerBound(int medianIntensityLowerBound)
public int getMedianIntensityLowerBound()
public void setGenerateDNACountTable(boolean generateDNACountTable)
public boolean getGenerateDNACountTable()
public void setGenerateDNATable(boolean generatePeakTable)
public boolean getGenerateDNATable()
public void setAddToRoiManager(boolean addToRoiManger)
public boolean getAddToRoiManager()
public void setProcessAllFrames(boolean allFrames)
public boolean getProcessAllFrames()
public void setFit(boolean fit)
public boolean getFit()
public void setFitSecondOrder(boolean fitSecondOrder)
public boolean getFitSecondOrder()
public void setFitRadius(int fitRadius)
public int getFitRadius()
public void setThreads(int nThreads)
public int getThreads()