fullseye

tb_zero_crossings_funct_1d — 2D typed op

図なし: 走ったが返り値が空だった(合成入力ではこの op の答えが無い —— 零交差や外れ値が無い、など)。空を図にはしない。下の「Studio で試す」のプログラムは走るので、自分の画像で試すこと。

使い方

Indices where the function changes sign (HALCON zero_crossings_funct_1d).

Returns the integer indices i with sign(y[i]) * sign(y[i+1]) < 0 — the sample before each crossing. An empty input returns an empty index array (degenerate case, not an error).

Honest limitation: the test is a strict sign product, so a crossing that lands exactly on a zero sample ([-1, 0, 1]) is not reported, nor is a touch of zero without a sign change ([1, 0, 1]).

:param y: 1-D function (may be empty). :returns: int index array (possibly empty). :raises ValueError: non-1-D / NaN / Inf input.

Empty input (y with 0 elements) returns an empty result (reason: a 1-D function with 0 samples is a valid function (as in HALCON’s funct_1d), and empty functions flow through chains of function ops).

Typed bridge of the 1d op zero_crossings_funct_1d into the 2-D evolution registry: the same implementation, called under the op(v, a, b) convention. This op has no tunable parameter; a and b are unused.

参考(サンプルデータ・文献)

実行できる例(この op を実際に呼ぶ検証済みサンプル)

次の例は元の台帳 op zero_crossings_funct_1d を呼ぶもの。この橋渡し op は同じ実装を fn(v, a, b) 規約に合わせただけなので、挙動はそのまま当てはまる(呼び出し形だけ違う)。

型が繋がる次の op(signal を入力に取れる)

identity · tb_create_funct_1d_array · tb_smooth_funct_1d_gauss · tb_smooth_funct_1d_mean · tb_derivate_funct_1d · tb_integrate_funct_1d · tb_abs_funct_1d · tb_negate_funct_1d

同カテゴリ(typed)

tb_points_to_voxel · tb_estimate_point_normals · tb_iss_keypoints · tb_project_points · tb_render_point_depth · tb_points_render · tb_statistical_outlier_removal · tb_radius_outlier_removal


Provenance: ops.py — 2D operator registry. この per-op ノートは tools/opdocs.py md が自動生成(手編集しない)。

© 2026 Kazufumi Furuse — Fullseye operator documentation. Licensed under Apache-2.0.