The extraction is done by using partial derivatives of a Gaussian
smoothing kernel to determine the parameters of a quadratic
polynomial in x and y for each point of the image. The parameter
SigmaSigmaSigmaSigmaSigmasigma determines the amount of smoothing to be performed.
Larger values of SigmaSigmaSigmaSigmaSigmasigma lead to a larger smoothing of the
image, but can lead to worse localization of the line. Generally,
the localization will be much better than that of lines returned by
lines_facetlines_facetLinesFacetlines_facetLinesFacetLinesFacet with comparable parameters. The parameters of
the polynomial are used to calculate the line direction for each
pixel. Pixels which exhibit a local maximum in the second
directional derivative perpendicular to the line direction are
marked as line points. The line points found in this manner are
then linked to contours. This is done by immediately accepting line
points that have a second derivative larger than HighHighHighHighHighhigh.
Points that have a second derivative smaller than LowLowLowLowLowlow are
rejected. All other line points are accepted if they are connected
to accepted points by a connected path. This is similar to a
hysteresis threshold operation with infinite path length (see
hysteresis_thresholdhysteresis_thresholdHysteresisThresholdhysteresis_thresholdHysteresisThresholdHysteresisThreshold). However, this function is not used
internally since it does not allow the extraction of subpixel
precise contours.
For the choice of the thresholds HighHighHighHighHighhigh and LowLowLowLowLowlow
one has to keep in mind that the second directional derivative
depends on the amplitude and width of the line as well as the choice
of SigmaSigmaSigmaSigmaSigmasigma. The value of the second derivative depends
linearly on the amplitude, i.e., the larger the amplitude, the
larger the response. For the width of the line there is an
approximately inverse exponential dependence: The wider the line is,
the smaller the response gets. This holds analogously for the
dependence on SigmaSigmaSigmaSigmaSigmasigma: The larger SigmaSigmaSigmaSigmaSigmasigma is
chosen, the smaller the second derivative will be. This means that
for larger smoothing correspondingly smaller values for
HighHighHighHighHighhigh and LowLowLowLowLowlow have to be chosen. Two examples
help to illustrate this: If 5 pixel wide lines with an amplitude
larger than 100 are to be extracted from an image with a smoothing
of SigmaSigmaSigmaSigmaSigmasigma = 1.5, HighHighHighHighHighhigh should be chosen larger
than 14. If, on the other hand, 10 pixel wide lines with an
amplitude larger than 100 and a SigmaSigmaSigmaSigmaSigmasigma = 3 are to be
detected, HighHighHighHighHighhigh should be chosen larger than 3.5. For the
choice of LowLowLowLowLowlow values between 0.25 HighHighHighHighHighhigh and 0.5
HighHighHighHighHighhigh are appropriate.
The extracted lines are returned in a topologically sound data
structure in LinesLinesLinesLinesLineslines. This means that lines are correctly
split at junction points.
If ExtractWidthExtractWidthExtractWidthExtractWidthExtractWidthextractWidth was set to 'true'"true""true""true""true""true" and
LineModelLineModelLineModelLineModelLineModellineModel to a value different from 'none'"none""none""none""none""none", the
following attributes are defined in addition to 'angle'"angle""angle""angle""angle""angle",
'response'"response""response""response""response""response", 'width_left'"width_left""width_left""width_left""width_left""width_left", and
'width_right'"width_right""width_right""width_right""width_right""width_right":
In general, but in particular if the line width is to be extracted,
should be selected, where w is the width (half the diameter) of
the lines in the image. As the lowest allowable value
must be selected. If, for example, lines with a width of
4 pixels (diameter 8 pixels) are to be extracted, should be selected. Note that the
attributes 'width_left'"width_left""width_left""width_left""width_left""width_left", 'width_right'"width_right""width_right""width_right""width_right""width_right",
'asymmetry'"asymmetry""asymmetry""asymmetry""asymmetry""asymmetry", and 'contrast'"contrast""contrast""contrast""contrast""contrast" are set to zero if
SigmaSigmaSigmaSigmaSigmasigma is set too low.
lines_gausslines_gaussLinesGausslines_gaussLinesGaussLinesGauss uses a special implementation that is optimized
using SSE2 instructions if the system parameter
'sse2_enable'"sse2_enable""sse2_enable""sse2_enable""sse2_enable""sse2_enable" is set to 'true'"true""true""true""true""true" (which is default
if SSE2 is available on your machine). This implementation is
slightly inaccurate compared to the pure C version due to numerical
issues. If you prefer accuracy over performance you can set
'sse2_enable'"sse2_enable""sse2_enable""sse2_enable""sse2_enable""sse2_enable" to 'false'"false""false""false""false""false" (using
set_systemset_systemSetSystemset_systemSetSystemSetSystem) before you call lines_gausslines_gaussLinesGausslines_gaussLinesGaussLinesGauss. This way
lines_gausslines_gaussLinesGausslines_gaussLinesGaussLinesGauss does not use SSE2 accelerations. Don't forget
to set 'sse2_enable'"sse2_enable""sse2_enable""sse2_enable""sse2_enable""sse2_enable" back to 'true'"true""true""true""true""true" afterwards.
List of values: 'bar-shaped'"bar-shaped""bar-shaped""bar-shaped""bar-shaped""bar-shaped", 'gaussian'"gaussian""gaussian""gaussian""gaussian""gaussian", 'none'"none""none""none""none""none", 'parabolic'"parabolic""parabolic""parabolic""parabolic""parabolic"
* Detection of lines in an aerial image
read_image(Image,'mreut4_3')
lines_gauss(Image,Lines,1.5,3,8,'light','true','bar-shaped','true')
dev_display(Lines)
/* Detection of lines in an aerial image */
read_image(&Image,"mreut4_3");
lines_gauss(Image:&Lines:1.5,3,8,"light","true","bar-shaped","true");
disp_xld(Lines,WindowHandle);
* Detection of lines in an aerial image
read_image(Image,'mreut4_3')
lines_gauss(Image,Lines,1.5,3,8,'light','true','bar-shaped','true')
dev_display(Lines)
* Detection of lines in an aerial image
read_image(Image,'mreut4_3')
lines_gauss(Image,Lines,1.5,3,8,'light','true','bar-shaped','true')
dev_display(Lines)
* Detection of lines in an aerial image
read_image(Image,'mreut4_3')
lines_gauss(Image,Lines,1.5,3,8,'light','true','bar-shaped','true')
dev_display(Lines)
Let A be the number of pixels in the domain of ImageImageImageImageImageimage.
Then the runtime complexity is O(A*Sigma).
The amount of temporary memory required is dependent on the height
H of the domain of ImageImageImageImageImageimage and the width W of
ImageImageImageImageImageimage. Let S = W*H, then lines_gausslines_gaussLinesGausslines_gaussLinesGaussLinesGauss requires at
least 55*S bytes of temporary memory during execution.
C. Steger: “Extracting Curvilinear Structures: A Differential
Geometric Approach”. In B. Buxton, R. Cipolla, eds., “Fourth
European Conference on Computer Vision”, Lecture Notes in Computer
Science, Volume 1064, Springer Verlag, pp. 630-641, 1996.
C. Steger: “Extraction of Curved Lines from Images”. In “13th
International Conference on Pattern Recognition”, Volume II,
pp. 251-255, 1996.
C. Steger: “An Unbiased Detector of Curvilinear Structures”.
IEEE Transactions on Pattern Analysis and Machine Intelligence,
vol. 20, no. 2, pp. 113-125, 1998.