HALCON Reference Manual 10.0.2
Name
line_orientationline_orientationline_orientationLineOrientationLineOrientation — Calculate the orientation of lines.
static void HOperatorSet.LineOrientation(HTuple rowBegin, HTuple colBegin, HTuple rowEnd, HTuple colEnd, out HTuple phi)
static HTuple HMisc.LineOrientation(HTuple rowBegin, HTuple colBegin, HTuple rowEnd, HTuple colEnd)
static double HMisc.LineOrientation(double rowBegin, double colBegin, double rowEnd, double colEnd)
The operator line_orientationline_orientationline_orientationLineOrientationLineOrientation returns the orientation
(-pi/2 < PhiPhiPhiPhiphi <= pi/2) of the given lines. If more
than one line is to be treated the line and column indices can be
passed as tuples. In this case PhiPhiPhiPhiphi is, of course, also
a tuple and contains the corresponding orientations.
The procedure is typically applied to model lines in order to select
parallel image lines, which were found, e.g., by
detect_edge_segmentsdetect_edge_segmentsdetect_edge_segmentsDetectEdgeSegmentsDetectEdgeSegments, via the operator
select_linesselect_linesselect_linesSelectLinesSelectLines.
- Multithreading type: reentrant (runs in parallel with non-exclusive operators).
- Multithreading scope: global (may be called from any thread).
- Processed without parallelization.
Row coordinates of the starting points of the
input lines.
Column coordinates of the starting points of the
input lines.
RowEndRowEndRowEndRowEndrowEnd (input_control) line.end.y(-array) → HTupleHTupleVARIANTHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong) (double / Hlong)
Row coordinates of the ending points of the
input lines.
ColEndColEndColEndColEndcolEnd (input_control) line.end.x(-array) → HTupleHTupleVARIANTHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong) (double / Hlong)
Column coordinates of the ending points of the
input lines.
PhiPhiPhiPhiphi (output_control) angle.rad(-array) → HTupleHTupleVARIANTHtuple (real) (double) (double) (double) (double)
Orientation of the input lines.
line_orientationline_orientationline_orientationLineOrientationLineOrientation always returns the value 2 (H_MSG_TRUE).
sobel_ampsobel_ampsobel_ampSobelAmpSobelAmp,
edges_imageedges_imageedges_imageEdgesImageEdgesImage,
thresholdthresholdthresholdThresholdThreshold,
hysteresis_thresholdhysteresis_thresholdhysteresis_thresholdHysteresisThresholdHysteresisThreshold,
split_skeleton_regionsplit_skeleton_regionsplit_skeleton_regionSplitSkeletonRegionSplitSkeletonRegion,
split_skeleton_linessplit_skeleton_linessplit_skeleton_linesSplitSkeletonLinesSplitSkeletonLines
set_line_widthset_line_widthset_line_widthSetLineWidthSetLineWidth,
disp_linedisp_linedisp_lineDispLineDispLine
line_positionline_positionline_positionLinePositionLinePosition,
select_linesselect_linesselect_linesSelectLinesSelectLines,
partition_linespartition_linespartition_linesPartitionLinesPartitionLines
line_positionline_positionline_positionLinePositionLinePosition,
select_linesselect_linesselect_linesSelectLinesSelectLines,
partition_linespartition_linespartition_linesPartitionLinesPartitionLines,
detect_edge_segmentsdetect_edge_segmentsdetect_edge_segmentsDetectEdgeSegmentsDetectEdgeSegments
Foundation
| HALCON Reference Manual 10.0.2 |
Copyright © 1996-2011 MVTec Software GmbH |