measure_posmeasure_posMeasurePosMeasurePosMeasurePosmeasure_pos extracts straight edges which
lie perpendicular to the major axis of a rectangle or annular arc.
For an explanation of the concept of 1D measuring see the introduction of
chapter 1D Measuring.
After the one-dimensional edge profile has been calculated, subpixel
edge locations are computed by convolving the profile with the
derivatives of a Gaussian smoothing kernel of standard deviation
SigmaSigmaSigmaSigmasigmasigma. Salient edges can be selected with the parameter
ThresholdThresholdThresholdThresholdthresholdthreshold, which constitutes a threshold on the amplitude,
i.e., the absolute value of the first derivative of the edge.
Note that the amplitude values are scaled by the factor
.
Additionally, it is possible to select only positive edges, i.e.,
edges which constitute a dark-to-light transition in the direction
of the major axis of the rectangle or the arc (TransitionTransitionTransitionTransitiontransitiontransition =
'positive'"positive""positive""positive""positive""positive"), only negative edges, i.e., light-to-dark
transitions (TransitionTransitionTransitionTransitiontransitiontransition = 'negative'"negative""negative""negative""negative""negative"), or both
types of edges (TransitionTransitionTransitionTransitiontransitiontransition = 'all'"all""all""all""all""all"). Finally, it
is possible to select which edge points are returned. If
SelectSelectSelectSelectselectselect is set to 'all'"all""all""all""all""all", all edge points are
returned. If it is set to 'first'"first""first""first""first""first", only the first of the
extracted edge points is returned, while it is set to
'last'"last""last""last""last""last", only the last one is returned.
measure_posmeasure_posMeasurePosMeasurePosMeasurePosmeasure_pos only returns meaningful results if the
assumptions that the edges are straight and perpendicular to the
major axis of the rectangle or arc are fulfilled. Thus, it should
not be used to extract edges from curved objects, for example.
Furthermore, the user should ensure that the rectangle or arc is as
close to perpendicular as possible to the edges in the image. Additionally,
SigmaSigmaSigmaSigmasigmasigma must not become larger than approx. 0.5 * Length1
(for Length1 see gen_measure_rectangle2gen_measure_rectangle2GenMeasureRectangle2GenMeasureRectangle2GenMeasureRectangle2gen_measure_rectangle2).
It should be kept in mind that measure_posmeasure_posMeasurePosMeasurePosMeasurePosmeasure_pos ignores the
domain of ImageImageImageImageimageimage for efficiency reasons. If certain regions
in the image should be excluded from the measurement a new measure
object with appropriately modified parameters should be generated.
Execution Information
Multithreading type: reentrant (runs in parallel with non-exclusive operators).
Multithreading scope: global (may be called from any thread).
List of values: 'all'"all""all""all""all""all", 'negative'"negative""negative""negative""negative""negative", 'positive'"positive""positive""positive""positive""positive"
If the parameter values are correct the operator measure_posmeasure_posMeasurePosMeasurePosMeasurePosmeasure_pos
returns the value 2 (H_MSG_TRUE). Otherwise an exception is raised.