line_orientationline_orientationLineOrientationLineOrientationline_orientation (Operator)
line_orientationline_orientationLineOrientationLineOrientationline_orientation
— Calculate the orientation of lines.
Signature
void LineOrientation(const HTuple& RowBegin, const HTuple& ColBegin, const HTuple& RowEnd, const HTuple& ColEnd, HTuple* Phi)
static HTuple HMisc::LineOrientation(const HTuple& RowBegin, const HTuple& ColBegin, const HTuple& RowEnd, const HTuple& ColEnd)
static double HMisc::LineOrientation(double RowBegin, double ColBegin, double RowEnd, double ColEnd)
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)
def line_orientation(row_begin: MaybeSequence[Union[int, float]], col_begin: MaybeSequence[Union[int, float]], row_end: MaybeSequence[Union[int, float]], col_end: MaybeSequence[Union[int, float]]) -> Sequence[float]
def line_orientation_s(row_begin: MaybeSequence[Union[int, float]], col_begin: MaybeSequence[Union[int, float]], row_end: MaybeSequence[Union[int, float]], col_end: MaybeSequence[Union[int, float]]) -> float
Description
The operator line_orientationline_orientationLineOrientationLineOrientationline_orientation
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.
Execution Information
- Multithreading type: reentrant (runs in parallel with non-exclusive operators).
- Multithreading scope: global (may be called from any thread).
- Processed without parallelization.
Parameters
RowBeginRowBeginRowBeginrowBeginrow_begin
(input_control) line.begin.y(-array) →
HTupleMaybeSequence[Union[int, float]]HTupleHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong)
Row coordinates of the starting points of the
input lines.
ColBeginColBeginColBegincolBegincol_begin
(input_control) line.begin.x(-array) →
HTupleMaybeSequence[Union[int, float]]HTupleHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong)
Column coordinates of the starting points of the
input lines.
RowEndRowEndRowEndrowEndrow_end
(input_control) line.end.y(-array) →
HTupleMaybeSequence[Union[int, float]]HTupleHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong)
Row coordinates of the ending points of the
input lines.
ColEndColEndColEndcolEndcol_end
(input_control) line.end.x(-array) →
HTupleMaybeSequence[Union[int, float]]HTupleHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong)
Column coordinates of the ending points of the
input lines.
PhiPhiPhiphiphi
(output_control) angle.rad(-array) →
HTupleSequence[float]HTupleHtuple (real) (double) (double) (double)
Orientation of the input lines.
Result
line_orientationline_orientationLineOrientationLineOrientationline_orientation
always returns the value 2 (
H_MSG_TRUE)
.
Possible Predecessors
sobel_ampsobel_ampSobelAmpSobelAmpsobel_amp
,
edges_imageedges_imageEdgesImageEdgesImageedges_image
,
thresholdthresholdThresholdThresholdthreshold
,
hysteresis_thresholdhysteresis_thresholdHysteresisThresholdHysteresisThresholdhysteresis_threshold
,
split_skeleton_regionsplit_skeleton_regionSplitSkeletonRegionSplitSkeletonRegionsplit_skeleton_region
,
split_skeleton_linessplit_skeleton_linesSplitSkeletonLinesSplitSkeletonLinessplit_skeleton_lines
Possible Successors
set_line_widthset_line_widthSetLineWidthSetLineWidthset_line_width
,
disp_linedisp_lineDispLineDispLinedisp_line
Alternatives
line_positionline_positionLinePositionLinePositionline_position
See also
line_positionline_positionLinePositionLinePositionline_position
,
detect_edge_segmentsdetect_edge_segmentsDetectEdgeSegmentsDetectEdgeSegmentsdetect_edge_segments
Module
Foundation