line_orientationline_orientationLineOrientationLineOrientationline_orientation (算子)
名称
line_orientationline_orientationLineOrientationLineOrientationline_orientation — 计算线的方向。
签名
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
描述
The operator line_orientationline_orientationLineOrientationLineOrientationLineOrientationline_orientation returns the orientation
(-pi/2 < PhiPhiPhiPhiphiphi <= 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 PhiPhiPhiPhiphiphi is, of course, also
a tuple and contains the corresponding orientations.
执行信息
- 多线程类型:可重入(与非独占算子并行运行)。
- 多线程作用域:全局(可从任何线程调用)。
- 未采用并行化处理。
参数
RowBeginRowBeginRowBeginRowBeginrowBeginrow_begin (输入控制) 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.
ColBeginColBeginColBeginColBegincolBegincol_begin (输入控制) 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.
RowEndRowEndRowEndRowEndrowEndrow_end (输入控制) 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.
ColEndColEndColEndColEndcolEndcol_end (输入控制) 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.
PhiPhiPhiPhiphiphi (输出控制) angle.rad(-array) → HTupleSequence[float]HTupleHtuple (real) (double) (double) (double)
Orientation of the input lines.
结果
line_orientationline_orientationLineOrientationLineOrientationLineOrientationline_orientation 始终返回值 2 (
H_MSG_TRUE)
.
可能的前趋
sobel_ampsobel_ampSobelAmpSobelAmpSobelAmpsobel_amp,
edges_imageedges_imageEdgesImageEdgesImageEdgesImageedges_image,
thresholdthresholdThresholdThresholdThresholdthreshold,
hysteresis_thresholdhysteresis_thresholdHysteresisThresholdHysteresisThresholdHysteresisThresholdhysteresis_threshold,
split_skeleton_regionsplit_skeleton_regionSplitSkeletonRegionSplitSkeletonRegionSplitSkeletonRegionsplit_skeleton_region,
split_skeleton_linessplit_skeleton_linesSplitSkeletonLinesSplitSkeletonLinesSplitSkeletonLinessplit_skeleton_lines
可能的后继
set_line_widthset_line_widthSetLineWidthSetLineWidthSetLineWidthset_line_width,
disp_linedisp_lineDispLineDispLineDispLinedisp_line
替代
line_positionline_positionLinePositionLinePositionLinePositionline_position
另见
line_positionline_positionLinePositionLinePositionLinePositionline_position,
detect_edge_segmentsdetect_edge_segmentsDetectEdgeSegmentsDetectEdgeSegmentsDetectEdgeSegmentsdetect_edge_segments
模块
Foundation