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

tuple_str_bit_selecttuple_str_bit_selecttuple_str_bit_selectTupleStrBitSelectTupleStrBitSelect (Operator)

Name

tuple_str_bit_selecttuple_str_bit_selecttuple_str_bit_selectTupleStrBitSelectTupleStrBitSelect — Select single character or bit from a tuple.

Signature

tuple_str_bit_select( : : Tuple, Index : Selected)

Herror tuple_str_bit_select(const char* Tuple, const Hlong Index, char* Selected)

Herror T_tuple_str_bit_select(const Htuple Tuple, const Htuple Index, Htuple* Selected)

Herror tuple_str_bit_select(const HTuple& Tuple, const HTuple& Index, char* Selected)

Herror tuple_str_bit_select(const HTuple& Tuple, const HTuple& Index, HTuple* Selected)

void HOperatorSetX.TupleStrBitSelect(
[in] VARIANT Tuple, [in] VARIANT Index, [out] VARIANT* Selected)

VARIANT HTupleX.TupleStrBitSelect(
[in] VARIANT Tuple, [in] VARIANT Index)

static void HOperatorSet.TupleStrBitSelect(HTuple tuple, HTuple index, out HTuple selected)

HTuple HTuple.TupleStrBitSelect(HTuple index)

Description

tuple_str_bit_selecttuple_str_bit_selecttuple_str_bit_selectTupleStrBitSelectTupleStrBitSelect selects a single character or bit from a tuple TupleTupleTupleTupletuple of integer numbers and/or strings. The input parameter IndexIndexIndexIndexindex determines the character or bit position to select. IndexIndexIndexIndexindex must contain a single number. If IndexIndexIndexIndexindex contains a floating point number, this may only represent an integer value (without fraction). The result tuple SelectedSelectedSelectedSelectedselected contains a new element for each element of TupleTupleTupleTupletuple. Let IndexIndexIndexIndexindex contain the number “n” then each element of SelectedSelectedSelectedSelectedselected consists of the “n-th” character (for strings) or “n-th” bit (for integers) of the corresponding element of TupleTupleTupleTupletuple.

Parallelization

Parameters

TupleTupleTupleTupletuple (input_control)  number(-array) HTupleHTupleVARIANTHtuple (string / integer) (string / int / long) (char* / Hlong) (BSTR / Hlong) (char* / Hlong)

Input tuple.

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

Position of character or bit to select.

SelectedSelectedSelectedSelectedselected (output_control)  number(-array) HTupleHTupleVARIANTHtuple (string / integer) (string / int / long) (char* / Hlong) (BSTR / Hlong) (char* / Hlong)

Tuple containing the selected characters and bits.

Alternatives

tuple_str_bit_selecttuple_str_bit_selecttuple_str_bit_selectTupleStrBitSelectTupleStrBitSelect, tuple_selecttuple_selecttuple_selectTupleSelectTupleSelect, tuple_first_ntuple_first_ntuple_first_nTupleFirstNTupleFirstN, tuple_last_ntuple_last_ntuple_last_nTupleLastNTupleLastN, tuple_concattuple_concattuple_concatTupleConcatTupleConcat, tuple_strchrtuple_strchrtuple_strchrTupleStrchrTupleStrchr, tuple_strrchrtuple_strrchrtuple_strrchrTupleStrrchrTupleStrrchr, tuple_str_first_ntuple_str_first_ntuple_str_first_nTupleStrFirstNTupleStrFirstN, tuple_str_last_ntuple_str_last_ntuple_str_last_nTupleStrLastNTupleStrLastN, tuple_andtuple_andtuple_andTupleAndTupleAnd, tuple_ortuple_ortuple_orTupleOrTupleOr, tuple_xortuple_xortuple_xorTupleXorTupleXor, tuple_nottuple_nottuple_notTupleNotTupleNot

See also

tuple_removetuple_removetuple_removeTupleRemoveTupleRemove

Module

Foundation


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