public class LineDetector extends Object
| Constructor and Description |
|---|
LineDetector() |
| Modifier and Type | Method and Description |
|---|---|
Lines |
detectLines(ImageProcessor ip,
double sigma,
double upperThresh,
double lowerThresh,
double minLength,
double maxLength,
boolean isDarkLine,
boolean doCorrectPosition,
boolean doEstimateWidth,
boolean doExtendLine)
Detect lines.
|
Lines |
detectLines(ImageProcessor ip,
double sigma,
double upperThresh,
double lowerThresh,
double minLength,
double maxLength,
boolean isDarkLine,
boolean doCorrectPosition,
boolean doEstimateWidth,
boolean doExtendLine,
OverlapOption overlapOption)
Detect lines.
|
Junctions |
getJunctions()
Gets the junctions.
|
Options |
getUsedParamters()
Gets the used paramters.
|
public Lines detectLines(ImageProcessor ip, double sigma, double upperThresh, double lowerThresh, double minLength, double maxLength, boolean isDarkLine, boolean doCorrectPosition, boolean doEstimateWidth, boolean doExtendLine)
ip - The image where the lines should be detectedsigma - A value which depends on the line width: sigma greater or equal to
width/(2*sqrt(3))upperThresh - Upper hysteresis thresholds used in the linking algorithm (Depends
on the maximum contour brightness (greyvalue))lowerThresh - Lower hysteresis thresholds used in the linking algorithm (Depends
on the minimum contour brightness (greyvalue)).minLength - the min lengthmaxLength - the max lengthisDarkLine - True if the line darker than the backgrounddoCorrectPosition - Determines whether the line width and position correction should
be applieddoEstimateWidth - Determines whether the line width should be extracteddoExtendLine - Extends the detect lines to find more junction pointspublic Lines detectLines(ImageProcessor ip, double sigma, double upperThresh, double lowerThresh, double minLength, double maxLength, boolean isDarkLine, boolean doCorrectPosition, boolean doEstimateWidth, boolean doExtendLine, OverlapOption overlapOption)
ip - the ipsigma - the sigmaupperThresh - the upper threshlowerThresh - the lower threshminLength - the min lengthmaxLength - the max lengthisDarkLine - the is dark linedoCorrectPosition - the do correct positiondoEstimateWidth - the do estimate widthdoExtendLine - the do extend lineoverlapOption - the overlap optionpublic Options getUsedParamters()
public Junctions getJunctions()
Copyright © 2014–2017 SciJava. All rights reserved.