HALCON Reference Manual 10.0.2
Table of Contents / Tuple / Selection ClassesClassesClasses | | | Operators

tuple_select_ranktuple_select_ranktuple_select_rankTupleSelectRankTupleSelectRank (Operator)

Name

tuple_select_ranktuple_select_ranktuple_select_rankTupleSelectRankTupleSelectRank — Select the element of rank n of a tuple.

Signature

tuple_select_rank( : : Tuple, RankIndex : Selected)

Herror tuple_select_rank(const Hlong Tuple, const Hlong RankIndex, Hlong* Selected)

Herror T_tuple_select_rank(const Htuple Tuple, const Htuple RankIndex, Htuple* Selected)

Herror tuple_select_rank(const HTuple& Tuple, const HTuple& RankIndex, Hlong* Selected)

void HOperatorSetX.TupleSelectRank(
[in] VARIANT Tuple, [in] VARIANT RankIndex, [out] VARIANT* Selected)

VARIANT HTupleX.TupleSelectRank(
[in] VARIANT Tuple, [in] VARIANT RankIndex)

static void HOperatorSet.TupleSelectRank(HTuple tuple, HTuple rankIndex, out HTuple selected)

HTuple HTuple.TupleSelectRank(HTuple rankIndex)

Description

tuple_select_ranktuple_select_ranktuple_select_rankTupleSelectRankTupleSelectRank sorts the elements of the tuple TupleTupleTupleTupletuple and returns the element of rank n in SelectedSelectedSelectedSelectedselected. RankIndexRankIndexRankIndexRankIndexrankIndex determines the index of the element to select. Thus RankIndexRankIndexRankIndexRankIndexrankIndex may only contain integer values (any floating point number in RankIndexRankIndexRankIndexRankIndexrankIndex must represent an integer value without fraction). Indices of tuple elements start at 0, i.e. the lowest tuple element has the index 0.

Parallelization

Parameters

TupleTupleTupleTupletuple (input_control)  number(-array) HTupleHTupleVARIANTHtuple (integer / real) (int / long / double) (Hlong / double) (Hlong / double) (Hlong / double)

Input tuple.

RankIndexRankIndexRankIndexRankIndexrankIndex (input_control)  number HTupleHTupleVARIANTHtuple (integer / real) (int / long / double) (Hlong / double) (Hlong / double) (Hlong / double)

Rank of the element to select.

SelectedSelectedSelectedSelectedselected (output_control)  number HTupleHTupleVARIANTHtuple (integer / real) (int / long / double) (Hlong / double) (Hlong / double) (Hlong / double)

Selected tuple element.

Alternatives

tuple_sort_indextuple_sort_indextuple_sort_indexTupleSortIndexTupleSortIndex, tuple_sorttuple_sorttuple_sortTupleSortTupleSort

See also

tuple_mediantuple_mediantuple_medianTupleMedianTupleMedian, tuple_selecttuple_selecttuple_selectTupleSelectTupleSelect

Module

Foundation


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