classify op• Data kinds: matrix → table
• Call: import fullseye as fs; fs.ledger.train_class_knn(features, labels) (to call the implementation directly, import mvclass; mvclass.train_class_knn(features, labels); from the registry, opsmv.get("train_class_knn"))
• HALCON equivalent: train_class_knn (the HALCON reference is a useful guide to its meaning and parameters)
• GPU: none (CPU reference implementation only)
Build a k-NN classifier (the features are standardized and kept).
> The detailed description below is the original text — the summary and the headings are translated.
標準偏差が 0 の列は 1 で割る(その列は距離に効かない)。空の入力(features が 0 要素)は ValueError。
Args:
features: (N, D) の特徴。
labels: 長さ N のクラス(2 種類以上)。
Returns:
X、y、mu、sd を持つモデルの dict。
• machine_vision_classics family guide
• Sample-data catalog (download URLs / licences) — 2-D uses skimage.data (BSD/public domain) plus synthetic images; 3-D lists download URLs for real data sources (Stanford, PDS, …).
• Operator provenance and references — the sources of the research/methods this op family came from.
• The canonical algorithm (author, year) and its uses are named in the family usage guide above.
• machine_vision_tour — py -3.11 examples/machine_vision_tour.py
table as input)map_image · rectify_to_world_plane · change_radial_distortion_image · find_ncc_models · run_bg_esti · give_bg_esti · update_bg_esti · classify_class_gmm
classify)train_class_gmm · classify_class_gmm · evaluate_class_gmm · classify_class_knn · train_class_mlp · classify_class_mlp · train_class_svm · classify_class_svm
*Provenance: mvclass.py — MV operator registry. This per-op note is generated by tools/opdocs.py md (do not hand-edit).*
© 2026 Kazufumi Furuse — Fullseye operator documentation. Licensed under Apache-2.0.