public class InteractiveDoG extends Object implements ij.plugin.PlugIn
Modifier and Type | Class and Description |
---|---|
protected class |
InteractiveDoG.ApplyButtonListener |
protected class |
InteractiveDoG.EnableListener |
protected class |
InteractiveDoG.FinishedButtonListener |
protected class |
InteractiveDoG.FrameListener |
protected class |
InteractiveDoG.ImagePlusListener |
protected class |
InteractiveDoG.MaxListener |
protected class |
InteractiveDoG.MinListener |
protected class |
InteractiveDoG.RoiListener
Tests whether the ROI was changed and will recompute the preview
|
protected class |
InteractiveDoG.Sigma2Listener |
protected class |
InteractiveDoG.SigmaListener |
protected class |
InteractiveDoG.ThresholdListener |
static class |
InteractiveDoG.ValueChange |
Modifier and Type | Field and Description |
---|---|
Rectangle |
standardRectangle |
static int |
standardSensitivity |
Constructor and Description |
---|
InteractiveDoG() |
InteractiveDoG(ij.ImagePlus imp) |
InteractiveDoG(ij.ImagePlus imp,
int channel) |
Modifier and Type | Method and Description |
---|---|
protected void |
close(Frame parent,
SliceObserver sliceObserver,
ij.ImagePlus imp,
InteractiveDoG.RoiListener roiListener) |
protected static int |
computeScrollbarPositionFromValue(float sigma,
float min,
float max,
int scrollbarSize) |
static float |
computeSigma2(float sigma1,
int sensitivity) |
protected static float |
computeValueFromScrollbarPosition(int scrollbarPosition,
float min,
float max,
int scrollbarSize) |
static FloatImagePlus<FloatType> |
convertToFloat(ij.ImagePlus imp,
int channel,
int timepoint)
Normalize and make a copy of the
ImagePlus into an Image >FloatType< for faster access when copying the slices |
static FloatImagePlus<FloatType> |
convertToFloat(ij.ImagePlus imp,
int channel,
int timepoint,
double min,
double max) |
static FloatImagePlus<FloatType> |
createImgLib2(List<float[]> img,
int w,
int h) |
protected void |
displaySliders()
Instantiates the panel for adjusting the paramters
|
protected Image<FloatType> |
extractImage(FloatImagePlus<FloatType> source,
Rectangle rectangle,
int extraSize)
Extract the current 2d region of interest from the souce image
|
FloatImagePlus<FloatType> |
getConvertedImage() |
double |
getInitialSigma() |
boolean |
getLookForMaxima() |
boolean |
getLookForMinima() |
double |
getSigma2() |
boolean |
getSigma2WasAdjusted() |
double |
getThreshold() |
boolean |
isFinished() |
static void |
main(String[] args) |
void |
run(String arg) |
void |
setInitialSigma(float value) |
void |
setLookForMaxima(boolean lookForMaxima) |
void |
setLookForMinima(boolean lookForMinima) |
void |
setMaxIntensityImage(double max) |
void |
setMinIntensityImage(double min) |
void |
setSigma2isAdjustable(boolean state) |
void |
setSigmaMax(float sigmaMax) |
void |
setThreshold(float value) |
protected void |
updatePreview(InteractiveDoG.ValueChange change)
Updates the Preview with the current parameters (sigma, threshold, roi, slicenumber)
|
boolean |
wasCanceled() |
public static int standardSensitivity
public Rectangle standardRectangle
public InteractiveDoG(ij.ImagePlus imp, int channel)
public InteractiveDoG(ij.ImagePlus imp)
public InteractiveDoG()
public boolean isFinished()
public boolean wasCanceled()
public double getInitialSigma()
public void setInitialSigma(float value)
public double getSigma2()
public double getThreshold()
public void setThreshold(float value)
public boolean getSigma2WasAdjusted()
public boolean getLookForMaxima()
public boolean getLookForMinima()
public void setLookForMaxima(boolean lookForMaxima)
public void setLookForMinima(boolean lookForMinima)
public void setSigmaMax(float sigmaMax)
public void setSigma2isAdjustable(boolean state)
public FloatImagePlus<FloatType> getConvertedImage()
public void setMinIntensityImage(double min)
public void setMaxIntensityImage(double max)
public void run(String arg)
run
in interface ij.plugin.PlugIn
protected void updatePreview(InteractiveDoG.ValueChange change)
change
- - what did changepublic static float computeSigma2(float sigma1, int sensitivity)
protected Image<FloatType> extractImage(FloatImagePlus<FloatType> source, Rectangle rectangle, int extraSize)
source
- - the source image, a Image
which is a copy of the ImagePlus
rectangle
- - the area of interestextraSize
- - the extra size around so that detections at the border of the roi are not messed uppublic static FloatImagePlus<FloatType> convertToFloat(ij.ImagePlus imp, int channel, int timepoint)
ImagePlus
into an Image
>FloatType< for faster access when copying the slicesimp
- - the ImagePlus
input imagepublic static FloatImagePlus<FloatType> convertToFloat(ij.ImagePlus imp, int channel, int timepoint, double min, double max)
public static FloatImagePlus<FloatType> createImgLib2(List<float[]> img, int w, int h)
protected void displaySliders()
protected final void close(Frame parent, SliceObserver sliceObserver, ij.ImagePlus imp, InteractiveDoG.RoiListener roiListener)
protected static float computeValueFromScrollbarPosition(int scrollbarPosition, float min, float max, int scrollbarSize)
protected static int computeScrollbarPositionFromValue(float sigma, float min, float max, int scrollbarSize)
public static void main(String[] args)
Copyright © 2015–2021 Fiji. All rights reserved.