Q
HALCONのTupleについて1から1つずつ増加するインデックスを作成したい。
A
上記のTupleの配列は2つの関数の組み合わせで実現できます。
tuple_gen_const (100, 1, Newtuple)
tuple_cumul (Newtuple, Cumul)
tuple_gen_constは指定した値と数で配列を作成する関数です。
Tuple_cumulは累積和を作成する関数になります。
もしくはtuple_gen_sequenceというオペレータでも可能です。
tuple_gen_sequence (1, 100, 1, Sequence)
関連オペレーター
tuple_gen_const
tuple_cumul
tuple_gen_sequence