area_center_gray — MV gray op

• Data kinds: image2d → table

• Call: import fullseye as fs; fs.ledger.area_center_gray(image, region=None) (to call the implementation directly, import image_gray; image_gray.area_center_gray(image, region=None); from the registry, opsmv.get("area_center_gray"))

• HALCON equivalent: area_center_gray (the HALCON reference is a useful guide to its meaning and parameters)

• GPU: none (CPU reference implementation only)

Usage

Return the gray-weighted mass and centroid (row, col).

> The detailed description below is the original text — the summary and the headings are translated.

region を渡すとその画素だけを数える。質量が 0 なら area が 0.0 で重心は原点を返す(理由: 重みが無いと重心が定義できない)。空の入力(image が 0 要素)は ValueError。

Detailed usage guide

• machine_vision_classics family guide

References (sample data, literature)

• 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.

Runnable examples (verified samples that actually call this op)

• machine_vision_tour — py -3.11 examples/machine_vision_tour.py

Ops the type connects to (they accept 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

Same category (gray)

atan2_image · gray_histo · gray_projections · get_grayval_contour_xld


*Provenance: image_gray.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.