index op• 데이터 종류: indices → labels
• 호출: import reprconv; reprconv.indices_to_labels(indices)(또는 opsreprconv.get("indices_to_labels"))
인덱스 `(N,) → 선택 마스크 labels. indices` 의 출구(가역).
> 아래 상세 설명은 원문입니다 —— 요약과 제목은 번역되어 있습니다.
`max(indices) + 1` 長の 1-D ラベル配列を作り、選ばれた位置に 1 を置く。
`indices -> labels -> indices` は bit 一致(重複と順序を除く)。
逆向き `labels -> indices -> labels` は末尾の背景を落とす
(長さが `max_index + 1` に切り詰まる)—— これは情報の損失であって
バグではないので、:func:labels_to_indices の docstring に量を書いてある。
Args:
indices: (N,) の非負整数配列。
Returns:
(max + 1,) の int64 ラベル配列(選択 = 1、背景 = 0)。
Raises:
ValueError: 1-D でない / 負 / 空 / 上限超。
• 샘플 데이터 카탈로그(DL URL / 라이선스) —— 2-D 는 skimage.data(BSD/public)+ 합성, 3-D 는 실데이터 소스(Stanford/PDS 등)의 DL URL.
• 연산자의 내력·참고문헌 —— 이 연산자 족의 바탕이 된 연구/기법의 출처.
• 알고리즘의 정전(저자·연도)과 용도는 위의 패밀리 사용 가이드에 적혀 있습니다.
• representation_conversion — py -3.11 examples/representation_conversion.py
labels 를 입력으로 받는 것)index)labels_to_indices · select_points
*Provenance: reprconv.py — REPRCONV 연산자 레지스트리. 이 op 노트는 tools/opdocs.py md 가 자동 생성합니다(직접 편집하지 마세요).*
© 2026 Kazufumi Furuse — Fullseye operator documentation. Licensed under Apache-2.0.