public class Hough_Circle extends SwingWorker<Integer,String>
SwingWorker.StateValue
Constructor and Description |
---|
Hough_Circle() |
Modifier and Type | Method and Description |
---|---|
protected Integer |
doInBackground() |
String |
getStatus() |
void |
interruptThreads(boolean a) |
protected void |
process(List<String> status) |
void |
resultsTable(int frame) |
void |
setParameters(int radiusMin,
int radiusMax,
int radiusInc,
int minCircles,
int maxCircles,
double thresholdRatio,
int resolution,
double ratio,
int searchBand,
int searchRadius,
boolean reduce,
boolean local,
boolean houghSeries,
boolean showCircles,
boolean showID,
boolean showScores,
boolean results,
boolean isGUI)
Import values from GUI class before starting the analysis thread
|
static void |
startAndJoin(Thread[] threads)
Start all given threads and wait on each of them until all are done.
|
void |
startTransform() |
addPropertyChangeListener, cancel, done, execute, firePropertyChange, get, get, getProgress, getPropertyChangeSupport, getState, isCancelled, isDone, publish, removePropertyChangeListener, run, setProgress
public static void startAndJoin(Thread[] threads)
threads
- the threadspublic void setParameters(int radiusMin, int radiusMax, int radiusInc, int minCircles, int maxCircles, double thresholdRatio, int resolution, double ratio, int searchBand, int searchRadius, boolean reduce, boolean local, boolean houghSeries, boolean showCircles, boolean showID, boolean showScores, boolean results, boolean isGUI)
radiusMin
- the min radiusradiusMax
- the max radiusradiusInc
- the radius incrementminCircles
- the min circlesmaxCircles
- the max circlesthresholdRatio
- the threshold ratioresolution
- the resolutionratio
- the ratiosearchBand
- the search bandsearchRadius
- the search radiusreduce
- if reduction is enabledlocal
- enable local searchhoughSeries
- enable hough seriesshowCircles
- show circlesshowID
- show IDshowScores
- show scoresresults
- the resultsisGUI
- if is in GUIprotected Integer doInBackground() throws Exception
doInBackground
in class SwingWorker<Integer,String>
Exception
public void startTransform()
public void resultsTable(int frame)
protected void process(List<String> status)
process
in class SwingWorker<Integer,String>
public String getStatus()
public void interruptThreads(boolean a)
Copyright © 2020–2022 Leibniz Institute for Natural Product Research and Infection Biology - Hans Knöll Institute (HKI). All rights reserved.