Operator Reference

select_lines_longestT_select_lines_longestSelectLinesLongestSelectLinesLongestselect_lines_longest (Operator)

select_lines_longestT_select_lines_longestSelectLinesLongestSelectLinesLongestselect_lines_longest — Select the longest input lines.

Warning

select_lines_longestselect_lines_longestSelectLinesLongestSelectLinesLongestselect_lines_longest is obsolete and is only provided for reasons of backward compatibility.

Signature

Herror T_select_lines_longest(const Htuple RowBeginIn, const Htuple ColBeginIn, const Htuple RowEndIn, const Htuple ColEndIn, const Htuple Num, Htuple* RowBeginOut, Htuple* ColBeginOut, Htuple* RowEndOut, Htuple* ColEndOut)

void SelectLinesLongest(const HTuple& RowBeginIn, const HTuple& ColBeginIn, const HTuple& RowEndIn, const HTuple& ColEndIn, const HTuple& Num, HTuple* RowBeginOut, HTuple* ColBeginOut, HTuple* RowEndOut, HTuple* ColEndOut)

static void HMisc::SelectLinesLongest(const HTuple& RowBeginIn, const HTuple& ColBeginIn, const HTuple& RowEndIn, const HTuple& ColEndIn, Hlong Num, HTuple* RowBeginOut, HTuple* ColBeginOut, HTuple* RowEndOut, HTuple* ColEndOut)

def select_lines_longest(row_begin_in: Sequence[int], col_begin_in: Sequence[int], row_end_in: Sequence[int], col_end_in: Sequence[int], num: int) -> Tuple[Sequence[int], Sequence[int], Sequence[int], Sequence[int]]

Description

The operator select_lines_longestselect_lines_longestSelectLinesLongestSelectLinesLongestselect_lines_longest selects the NumNumNumnumnum longest input lines from the input lines described by the tuples RowBeginInRowBeginInRowBeginInrowBeginInrow_begin_in, ColBeginInColBeginInColBeginIncolBeginIncol_begin_in, RowEndInRowEndInRowEndInrowEndInrow_end_in and ColEndInColEndInColEndIncolEndIncol_end_in.

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

RowBeginInRowBeginInRowBeginInrowBeginInrow_begin_in (input_control)  line.begin.y-array HTupleSequence[int]HTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Row coordinates of the starting points of the input lines.

ColBeginInColBeginInColBeginIncolBeginIncol_begin_in (input_control)  line.begin.x-array HTupleSequence[int]HTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Column coordinates of the starting points of the input lines.

RowEndInRowEndInRowEndInrowEndInrow_end_in (input_control)  line.end.y-array HTupleSequence[int]HTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Row coordinates of the ending points of the input lines.

ColEndInColEndInColEndIncolEndIncol_end_in (input_control)  line.end.x-array HTupleSequence[int]HTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Column coordinates of the ending points of the input lines.

NumNumNumnumnum (input_control)  integer HTupleintHTupleHtuple (integer) (int / long) (Hlong) (Hlong)

(Maximum) desired number of output lines.

Default: 10

RowBeginOutRowBeginOutRowBeginOutrowBeginOutrow_begin_out (output_control)  line.begin.y-array HTupleSequence[int]HTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Row coordinates of the starting points of the output lines.

ColBeginOutColBeginOutColBeginOutcolBeginOutcol_begin_out (output_control)  line.begin.x-array HTupleSequence[int]HTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Column coordinates of the starting points of the output lines.

RowEndOutRowEndOutRowEndOutrowEndOutrow_end_out (output_control)  line.end.y-array HTupleSequence[int]HTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Row coordinates of the ending points of the output lines.

ColEndOutColEndOutColEndOutcolEndOutcol_end_out (output_control)  line.end.x-array HTupleSequence[int]HTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Column coordinates of the ending points of the output lines.

Result

The operator select_lines_longestselect_lines_longestSelectLinesLongestSelectLinesLongestselect_lines_longest returns the value 2 ( H_MSG_TRUE) if the parameter values are correct. Otherwise an exception is raised.

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_orientationline_orientationLineOrientationLineOrientationline_orientation, line_positionline_positionLinePositionLinePositionline_position, select_linesselect_linesSelectLinesSelectLinesselect_lines, partition_linespartition_linesPartitionLinesPartitionLinespartition_lines

See also

select_linesselect_linesSelectLinesSelectLinesselect_lines, partition_linespartition_linesPartitionLinesPartitionLinespartition_lines, detect_edge_segmentsdetect_edge_segmentsDetectEdgeSegmentsDetectEdgeSegmentsdetect_edge_segments, select_shapeselect_shapeSelectShapeSelectShapeselect_shape

Module

Foundation