partition_lines T_partition_lines PartitionLines PartitionLines (Operator)
Name
partition_lines T_partition_lines PartitionLines PartitionLines
— Partition lines according to various criteria.
Warning
partition_lines partition_lines PartitionLines PartitionLines PartitionLines
is obsolete and is only provided for
reasons of backward compatibility.
Signature
partition_lines ( : : RowBeginIn , ColBeginIn , RowEndIn , ColEndIn , Feature , Operation , Min , Max : RowBeginOut , ColBeginOut , RowEndOut , ColEndOut , FailRowBOut , FailColBOut , FailRowEOut , FailColEOut )
Herror T_partition_lines (const Htuple RowBeginIn , const Htuple ColBeginIn , const Htuple RowEndIn , const Htuple ColEndIn , const Htuple Feature , const Htuple Operation , const Htuple Min , const Htuple Max , Htuple* RowBeginOut , Htuple* ColBeginOut , Htuple* RowEndOut , Htuple* ColEndOut , Htuple* FailRowBOut , Htuple* FailColBOut , Htuple* FailRowEOut , Htuple* FailColEOut )
void PartitionLines (const HTuple& RowBeginIn , const HTuple& ColBeginIn , const HTuple& RowEndIn , const HTuple& ColEndIn , const HTuple& Feature , const HTuple& Operation , const HTuple& Min , const HTuple& Max , HTuple* RowBeginOut , HTuple* ColBeginOut , HTuple* RowEndOut , HTuple* ColEndOut , HTuple* FailRowBOut , HTuple* FailColBOut , HTuple* FailRowEOut , HTuple* FailColEOut )
static void HMisc ::PartitionLines (const HTuple& RowBeginIn , const HTuple& ColBeginIn , const HTuple& RowEndIn , const HTuple& ColEndIn , const HTuple& Feature , const HString& Operation , const HTuple& Min , const HTuple& Max , HTuple* RowBeginOut , HTuple* ColBeginOut , HTuple* RowEndOut , HTuple* ColEndOut , HTuple* FailRowBOut , HTuple* FailColBOut , HTuple* FailRowEOut , HTuple* FailColEOut )
static void HMisc ::PartitionLines (const HTuple& RowBeginIn , const HTuple& ColBeginIn , const HTuple& RowEndIn , const HTuple& ColEndIn , const HString& Feature , const HString& Operation , const HString& Min , const HString& Max , HTuple* RowBeginOut , HTuple* ColBeginOut , HTuple* RowEndOut , HTuple* ColEndOut , HTuple* FailRowBOut , HTuple* FailColBOut , HTuple* FailRowEOut , HTuple* FailColEOut )
static void HMisc ::PartitionLines (const HTuple& RowBeginIn , const HTuple& ColBeginIn , const HTuple& RowEndIn , const HTuple& ColEndIn , const char* Feature , const char* Operation , const char* Min , const char* Max , HTuple* RowBeginOut , HTuple* ColBeginOut , HTuple* RowEndOut , HTuple* ColEndOut , HTuple* FailRowBOut , HTuple* FailColBOut , HTuple* FailRowEOut , HTuple* FailColEOut )
static void HMisc ::PartitionLines (const HTuple& RowBeginIn , const HTuple& ColBeginIn , const HTuple& RowEndIn , const HTuple& ColEndIn , const wchar_t* Feature , const wchar_t* Operation , const wchar_t* Min , const wchar_t* Max , HTuple* RowBeginOut , HTuple* ColBeginOut , HTuple* RowEndOut , HTuple* ColEndOut , HTuple* FailRowBOut , HTuple* FailColBOut , HTuple* FailRowEOut , HTuple* FailColEOut )
(Windows only)
static void HOperatorSet .PartitionLines (HTuple rowBeginIn , HTuple colBeginIn , HTuple rowEndIn , HTuple colEndIn , HTuple feature , HTuple operation , HTuple min , HTuple max , out HTuple rowBeginOut , out HTuple colBeginOut , out HTuple rowEndOut , out HTuple colEndOut , out HTuple failRowBOut , out HTuple failColBOut , out HTuple failRowEOut , out HTuple failColEOut )
static void HMisc .PartitionLines (HTuple rowBeginIn , HTuple colBeginIn , HTuple rowEndIn , HTuple colEndIn , HTuple feature , string operation , HTuple min , HTuple max , out HTuple rowBeginOut , out HTuple colBeginOut , out HTuple rowEndOut , out HTuple colEndOut , out HTuple failRowBOut , out HTuple failColBOut , out HTuple failRowEOut , out HTuple failColEOut )
static void HMisc .PartitionLines (HTuple rowBeginIn , HTuple colBeginIn , HTuple rowEndIn , HTuple colEndIn , string feature , string operation , string min , string max , out HTuple rowBeginOut , out HTuple colBeginOut , out HTuple rowEndOut , out HTuple colEndOut , out HTuple failRowBOut , out HTuple failColBOut , out HTuple failRowEOut , out HTuple failColEOut )
Description
The operator partition_lines partition_lines PartitionLines PartitionLines PartitionLines
divides lines into two sets
according to various criteria. For each input line the indicated
features (Feature Feature Feature Feature feature
) are calculated. If each
(Operation Operation Operation Operation operation
= 'and') or at least one
(Operation Operation Operation Operation operation
= 'or') of the calculated features is within
the given limits (Min Min Min Min min
,Max Max Max Max max
) the line is
transferred into the first set (parameters RowBeginOut RowBeginOut RowBeginOut RowBeginOut rowBeginOut
to
ColEndOut ColEndOut ColEndOut ColEndOut colEndOut
), otherwise into the second set (parameters
FailRowBOut FailRowBOut FailRowBOut FailRowBOut failRowBOut
to FailColEOut FailColEOut FailColEOut FailColEOut failColEOut
).
Possible values for Feature Feature Feature Feature feature
:
'length'
(Euclidean) length of the line
'row'
Line index of the center
'column'
Column index of the center
'phi'
Orientation of the line
Attention
If only one feature is used the value of Operation Operation Operation Operation operation
is
meaningless. Several features are processed according to the
sequence in which they are passed.
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
RowBeginIn RowBeginIn RowBeginIn RowBeginIn rowBeginIn
(input_control) line.begin.y-array →
HTuple HTuple Htuple (integer) (int / long) (Hlong ) (Hlong )
Row coordinates of the starting points of the
input lines.
ColBeginIn ColBeginIn ColBeginIn ColBeginIn colBeginIn
(input_control) line.begin.x-array →
HTuple HTuple Htuple (integer) (int / long) (Hlong ) (Hlong )
Column coordinates of the starting points of the
input lines.
RowEndIn RowEndIn RowEndIn RowEndIn rowEndIn
(input_control) line.end.y-array →
HTuple HTuple Htuple (integer) (int / long) (Hlong ) (Hlong )
Row coordinates of the ending points of the
input lines.
ColEndIn ColEndIn ColEndIn ColEndIn colEndIn
(input_control) line.end.x-array →
HTuple HTuple Htuple (integer) (int / long) (Hlong ) (Hlong )
Column coordinates of the ending points of the
input lines.
Feature Feature Feature Feature feature
(input_control) string(-array) →
HTuple HTuple Htuple (string) (string ) (HString ) (char* )
Features to be used for selection.
List of values: 'column' "column" "column" "column" "column" , 'length' "length" "length" "length" "length" , 'phi' "phi" "phi" "phi" "phi" , 'row' "row" "row" "row" "row"
Operation Operation Operation Operation operation
(input_control) string →
HTuple HTuple Htuple (string) (string ) (HString ) (char* )
Desired combination of the features.
List of values: 'and' "and" "and" "and" "and" , 'or' "or" "or" "or" "or"
Min Min Min Min min
(input_control) string(-array) →
HTuple HTuple Htuple (string / integer / real) (string / int / long / double) (HString / Hlong / double) (char* / Hlong / double)
Lower limits of the features or 'min'.
Default value:
'min'
"min"
"min"
"min"
"min"
Max Max Max Max max
(input_control) string(-array) →
HTuple HTuple Htuple (string / integer / real) (string / int / long / double) (HString / Hlong / double) (char* / Hlong / double)
Upper limits of the features or 'max'.
Default value:
'max'
"max"
"max"
"max"
"max"
RowBeginOut RowBeginOut RowBeginOut RowBeginOut rowBeginOut
(output_control) line.begin.y-array →
HTuple HTuple Htuple (integer) (int / long) (Hlong ) (Hlong )
Row coordinates of the starting points of the
lines fulfilling the conditions.
ColBeginOut ColBeginOut ColBeginOut ColBeginOut colBeginOut
(output_control) line.begin.x-array →
HTuple HTuple Htuple (integer) (int / long) (Hlong ) (Hlong )
Column coordinates of the starting points of the
lines fulfilling the conditions.
RowEndOut RowEndOut RowEndOut RowEndOut rowEndOut
(output_control) line.end.y-array →
HTuple HTuple Htuple (integer) (int / long) (Hlong ) (Hlong )
Row coordinates of the ending points of the
lines fulfilling the conditions.
ColEndOut ColEndOut ColEndOut ColEndOut colEndOut
(output_control) line.begin.x-array →
HTuple HTuple Htuple (integer) (int / long) (Hlong ) (Hlong )
Column coordinates of the ending points of the
lines fulfilling the conditions.
FailRowBOut FailRowBOut FailRowBOut FailRowBOut failRowBOut
(output_control) line.begin.y-array →
HTuple HTuple Htuple (integer) (int / long) (Hlong ) (Hlong )
Row coordinates of the starting points of the
lines not fulfilling the conditions.
FailColBOut FailColBOut FailColBOut FailColBOut failColBOut
(output_control) line.begin.x-array →
HTuple HTuple Htuple (integer) (int / long) (Hlong ) (Hlong )
Column coordinates of the starting points of the
lines not fulfilling the conditions.
FailRowEOut FailRowEOut FailRowEOut FailRowEOut failRowEOut
(output_control) line.end.y-array →
HTuple HTuple Htuple (integer) (int / long) (Hlong ) (Hlong )
Row coordinates of the ending points of the
lines not fulfilling the conditions.
FailColEOut FailColEOut FailColEOut FailColEOut failColEOut
(output_control) line.end.x-array →
HTuple HTuple Htuple (integer) (int / long) (Hlong ) (Hlong )
Column coordinates of the ending points of the
lines not fulfilling the conditions.
Result
The operator partition_lines partition_lines PartitionLines PartitionLines PartitionLines
returns the value 2 (H_MSG_TRUE) if the
parameter values are correct. Otherwise an exception is raised.
Possible Predecessors
sobel_amp sobel_amp SobelAmp SobelAmp SobelAmp
,
edges_image edges_image EdgesImage EdgesImage EdgesImage
,
threshold threshold Threshold Threshold Threshold
,
hysteresis_threshold hysteresis_threshold HysteresisThreshold HysteresisThreshold HysteresisThreshold
,
split_skeleton_region split_skeleton_region SplitSkeletonRegion SplitSkeletonRegion SplitSkeletonRegion
,
split_skeleton_lines split_skeleton_lines SplitSkeletonLines SplitSkeletonLines SplitSkeletonLines
Possible Successors
set_line_width set_line_width SetLineWidth SetLineWidth SetLineWidth
,
disp_line disp_line DispLine DispLine DispLine
Alternatives
line_orientation line_orientation LineOrientation LineOrientation LineOrientation
,
line_position line_position LinePosition LinePosition LinePosition
,
select_lines select_lines SelectLines SelectLines SelectLines
,
select_lines_longest select_lines_longest SelectLinesLongest SelectLinesLongest SelectLinesLongest
See also
select_lines select_lines SelectLines SelectLines SelectLines
,
select_lines_longest select_lines_longest SelectLinesLongest SelectLinesLongest SelectLinesLongest
,
detect_edge_segments detect_edge_segments DetectEdgeSegments DetectEdgeSegments DetectEdgeSegments
,
select_shape select_shape SelectShape SelectShape SelectShape
Module
Foundation