indices_to_labels — REPRCONV index op

• Data kinds: indices → labels

• Call: import fullseye as fs; fs.ledger.indices_to_labels(indices) (implementation को सीधे call करना हो तो import reprconv; reprconv.indices_to_labels(indices), registry से लेना हो तो opsreprconv.get("indices_to_labels"))

उपयोग

index (N,) → selection mask labels। indices से निकास (उलटने योग्य)।

max(indices) + 1 लंबाई का 1-D label array बनाकर चुनी गई जगहों पर 1 रखता है। indices -> labels -> indices bit-दर-bit मेल खाता है (duplicate और क्रम को छोड़कर)। उलटी दिशा labels -> indices -> labels आख़िर का background छोड़ देती है (लंबाई max_index + 1 तक कट जाती है) -- यह जानकारी का loss है, bug नहीं, इसलिए उसकी मात्रा labels_to_indices के docstring में लिखी है।

Args:

indices: (N,) non-negative integer array।

Returns:

(max + 1,) int64 label array (चुना = 1, background = 0)।

Raises:

ValueError: 1-D नहीं है / negative / ख़ाली / सीमा से अधिक।

संदर्भ (sample data, साहित्य)

• Sample data catalog (DL URL / license) — 2-D के लिए skimage.data (BSD/public) + synthetic, 3-D के लिए real data sources (Stanford/PDS आदि) के DL URL।

• Operators का स्रोत और संदर्भ — इस op family के मूल research/methods के स्रोत।

• Algorithm का मानक स्रोत (लेखक, वर्ष) और उपयोग ऊपर की family usage guide में दिए गए हैं।

चलाए जा सकने वाले उदाहरण (verified samples जो सच में यह op call करते हैं)

• representation_conversion — py -3.11 examples/representation_conversion.py

वे अगले ops जिनसे type जुड़ता है (labels को input के रूप में लेते हैं)

labels_to_indices

इसी category के (index)

labels_to_indices · select_points


*Provenance: reprconv.py — REPRCONV operator registry. यह per-op note tools/opdocs.py md से अपने-आप generate होता है (हाथ से edit न करें)।*

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