Skip to content

select_lines_longestSelectLinesLongestSelectLinesLongestselect_lines_longestT_select_lines_longest🔗

Short description🔗

select_lines_longestSelectLinesLongestSelectLinesLongestselect_lines_longestT_select_lines_longest — Select the longest input lines.

Warning🔗

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

Signature🔗

select_lines_longest( line.begin.y RowBeginIn, line.begin.x ColBeginIn, line.end.y RowEndIn, line.end.x ColEndIn, integer Num, out line.begin.y RowBeginOut, out line.begin.x ColBeginOut, out line.end.y RowEndOut, out line.end.x 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 HOperatorSet.SelectLinesLongest( HTuple rowBeginIn, HTuple colBeginIn, HTuple rowEndIn, HTuple colEndIn, HTuple num, out HTuple rowBeginOut, out HTuple colBeginOut, out HTuple rowEndOut, out 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]]

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 )

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 )

static void HMisc.SelectLinesLongest( HTuple rowBeginIn, HTuple colBeginIn, HTuple rowEndIn, HTuple colEndIn, int num, out HTuple rowBeginOut, out HTuple colBeginOut, out HTuple rowEndOut, out HTuple colEndOut )

Description🔗

The operator select_lines_longestSelectLinesLongest selects the Numnumnum longest input lines from the input lines described by the tuples RowBeginInrowBeginInrow_begin_in, ColBeginIncolBeginIncol_begin_in, RowEndInrowEndInrow_end_in and ColEndIncolEndIncol_end_in.

Execution information🔗

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🔗

RowBeginInrowBeginInrow_begin_in (input_control) line.begin.y-array → (integer)HTuple (Hlong)HTuple (int / long)Sequence[int]Htuple (Hlong)

Row coordinates of the starting points of the input lines.

ColBeginIncolBeginIncol_begin_in (input_control) line.begin.x-array → (integer)HTuple (Hlong)HTuple (int / long)Sequence[int]Htuple (Hlong)

Column coordinates of the starting points of the input lines.

RowEndInrowEndInrow_end_in (input_control) line.end.y-array → (integer)HTuple (Hlong)HTuple (int / long)Sequence[int]Htuple (Hlong)

Row coordinates of the ending points of the input lines.

ColEndIncolEndIncol_end_in (input_control) line.end.x-array → (integer)HTuple (Hlong)HTuple (int / long)Sequence[int]Htuple (Hlong)

Column coordinates of the ending points of the input lines.

Numnumnum (input_control) integer → (integer)HTuple (Hlong)HTuple (int / long)intHtuple (Hlong)

(Maximum) desired number of output lines.

Default: 1010

RowBeginOutrowBeginOutrow_begin_out (output_control) line.begin.y-array → (integer)HTuple (Hlong)HTuple (int / long)Sequence[int]Htuple (Hlong)

Row coordinates of the starting points of the output lines.

ColBeginOutcolBeginOutcol_begin_out (output_control) line.begin.x-array → (integer)HTuple (Hlong)HTuple (int / long)Sequence[int]Htuple (Hlong)

Column coordinates of the starting points of the output lines.

RowEndOutrowEndOutrow_end_out (output_control) line.end.y-array → (integer)HTuple (Hlong)HTuple (int / long)Sequence[int]Htuple (Hlong)

Row coordinates of the ending points of the output lines.

ColEndOutcolEndOutcol_end_out (output_control) line.end.x-array → (integer)HTuple (Hlong)HTuple (int / long)Sequence[int]Htuple (Hlong)

Column coordinates of the ending points of the output lines.

Result🔗

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

Combinations with other operators🔗

Combinations

Possible predecessors

sobel_ampSobelAmp, edges_imageEdgesImage, thresholdThreshold, hysteresis_thresholdHysteresisThreshold, split_skeleton_regionSplitSkeletonRegion, split_skeleton_linesSplitSkeletonLines

Possible successors

set_line_widthSetLineWidth, disp_lineDispLine

Alternatives

line_orientationLineOrientation, line_positionLinePosition, select_linesSelectLines, partition_linesPartitionLines

See also

select_linesSelectLines, partition_linesPartitionLines, detect_edge_segmentsDetectEdgeSegments, select_shapeSelectShape

Module🔗

Foundation