HALCON Reference Manual 10.0.2
Table of Contents / Tools / Lines ClassesClassesClasses | | | Operators

select_lines_longestT_select_lines_longestselect_lines_longestSelectLinesLongestSelectLinesLongest (Operator)

Name

select_lines_longestT_select_lines_longestselect_lines_longestSelectLinesLongestSelectLinesLongest — Select the longest input lines.

Signature

select_lines_longest( : : RowBeginIn, ColBeginIn, RowEndIn, ColEndIn, Num : RowBeginOut, ColBeginOut, RowEndOut, ColEndOut)

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)

Herror 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 HOperatorSetX.SelectLinesLongest(
[in] VARIANT RowBeginIn, [in] VARIANT ColBeginIn, [in] VARIANT RowEndIn, [in] VARIANT ColEndIn, [in] VARIANT Num, [out] VARIANT* RowBeginOut, [out] VARIANT* ColBeginOut, [out] VARIANT* RowEndOut, [out] VARIANT* ColEndOut)

VARIANT HMiscX.SelectLinesLongest(
[in] VARIANT RowBeginIn, [in] VARIANT ColBeginIn, [in] VARIANT RowEndIn, [in] VARIANT ColEndIn, [in] Hlong Num, [out] VARIANT* ColBeginOut, [out] VARIANT* RowEndOut, [out] VARIANT* 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)

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_longestselect_lines_longestselect_lines_longestSelectLinesLongestSelectLinesLongest selects the NumNumNumNumnum longest input lines from the input lines described by the tuples RowBeginInRowBeginInRowBeginInRowBeginInrowBeginIn, ColBeginInColBeginInColBeginInColBeginIncolBeginIn, RowEndInRowEndInRowEndInRowEndInrowEndIn and ColEndInColEndInColEndInColEndIncolEndIn.

Parallelization

Parameters

RowBeginInRowBeginInRowBeginInRowBeginInrowBeginIn (input_control)  line.begin.y-array HTupleHTupleVARIANTHtuple (integer) (int / long) (Hlong) (Hlong) (Hlong)

Row coordinates of the starting points of the input lines.

ColBeginInColBeginInColBeginInColBeginIncolBeginIn (input_control)  line.begin.x-array HTupleHTupleVARIANTHtuple (integer) (int / long) (Hlong) (Hlong) (Hlong)

Column coordinates of the starting points of the input lines.

RowEndInRowEndInRowEndInRowEndInrowEndIn (input_control)  line.end.y-array HTupleHTupleVARIANTHtuple (integer) (int / long) (Hlong) (Hlong) (Hlong)

Row coordinates of the ending points of the input lines.

ColEndInColEndInColEndInColEndIncolEndIn (input_control)  line.end.x-array HTupleHTupleVARIANTHtuple (integer) (int / long) (Hlong) (Hlong) (Hlong)

Column coordinates of the ending points of the input lines.

NumNumNumNumnum (input_control)  integer HTupleHTupleVARIANTHtuple (integer) (int / long) (Hlong) (Hlong) (Hlong)

(Maximum) desired number of output lines.

Default value: 10

RowBeginOutRowBeginOutRowBeginOutRowBeginOutrowBeginOut (output_control)  line.begin.y-array HTupleHTupleVARIANTHtuple (integer) (int / long) (Hlong) (Hlong) (Hlong)

Row coordinates of the starting points of the output lines.

ColBeginOutColBeginOutColBeginOutColBeginOutcolBeginOut (output_control)  line.begin.x-array HTupleHTupleVARIANTHtuple (integer) (int / long) (Hlong) (Hlong) (Hlong)

Column coordinates of the starting points of the output lines.

RowEndOutRowEndOutRowEndOutRowEndOutrowEndOut (output_control)  line.end.y-array HTupleHTupleVARIANTHtuple (integer) (int / long) (Hlong) (Hlong) (Hlong)

Row coordinates of the ending points of the output lines.

ColEndOutColEndOutColEndOutColEndOutcolEndOut (output_control)  line.end.x-array HTupleHTupleVARIANTHtuple (integer) (int / long) (Hlong) (Hlong) (Hlong)

Column coordinates of the ending points of the output lines.

Result

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

Possible Predecessors

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

Possible Successors

set_line_widthset_line_widthset_line_widthSetLineWidthSetLineWidth, disp_linedisp_linedisp_lineDispLineDispLine

Alternatives

line_orientationline_orientationline_orientationLineOrientationLineOrientation, line_positionline_positionline_positionLinePositionLinePosition, select_linesselect_linesselect_linesSelectLinesSelectLines, partition_linespartition_linespartition_linesPartitionLinesPartitionLines

See also

select_linesselect_linesselect_linesSelectLinesSelectLines, partition_linespartition_linespartition_linesPartitionLinesPartitionLines, detect_edge_segmentsdetect_edge_segmentsdetect_edge_segmentsDetectEdgeSegmentsDetectEdgeSegments, select_shapeselect_shapeselect_shapeSelectShapeSelectShape

Module

Foundation


Table of Contents / Tools / Lines ClassesClassesClasses | | | Operators
HALCON Reference Manual 10.0.2 Copyright © 1996-2011 MVTec Software GmbH