plant op• 資料種類:rgbimage × labels2d → table
• 呼叫: import fullseye as fs; fs.ledger.superpixel_color_texture_features(rgb, labels, *, dark_floor: 'float' = 0.02, texture_sigma: 'float' = 1.0, min_size: 'int' = 4) -> 'Dict[str, object]'(要直接呼叫實作,import cropweed; cropweed.superpixel_color_texture_features(rgb, labels, *, dark_floor: 'float' = 0.02, texture_sigma: 'float' = 1.0, min_size: 'int' = 4) -> 'Dict[str, object]';從台帳取用則 opssegmentation.get("superpixel_color_texture_features"))
為標籤影像的每個區域輸出 10 個顏色(植物顏色指數、色度)與紋理(梯度、方向一致性)特徵。
rgb 為 (H, W, 3)(與 plant_color_index 相同的約定),labels 為同樣大小的整數影像(0 忽略,1 以上為區域;超像素或格網皆可)。欄依 FEATURE_NAMES 的順序:
ExG、ExGR、CIVE 的平均,色度 r、g 的平均,亮度(RGB 的平均)的平均與標準差, 亮度的 Gauss 梯度(σ = texture_sigma)大小的平均,結構張量的方向一致性 coherence = √((Jxx − Jyy)² + 4Jxy²)/(Jxx + Jyy)(在區域內求和的張量。1 = 單一方向,0 = 等向), ExG 的標準差。顏色特徵只對亮度不低於 dark_floor 的像素取平均。像素數少於 min_size 的區域,以及沒有任何像素可確定色度的區域,不產生列, 而是連同理由記入 dropped_ids(不以 0 或 NaN 填補平均值)。
回傳: X(N, 10)、names、ids(每列的區域編號)、sizes、centroids((N, 2) 的 [row, col])、dropped_ids、texture_sigma。空輸入、形狀不符、負標籤、剩餘區域為 0 時以 ValueError 拒絕。
• 範例資料目錄(下載 URL / 授權) —— 2-D 用 skimage.data(BSD/公有領域)加合成圖,3-D 給出真實資料源(Stanford/PDS 等)的下載 URL。
• 運算子來歷與參考文獻 —— 該運算子族所依據的研究/方法出處。
• 演算法的正典(作者、年份)與用途見上面的族使用指南。
• poc_weed_rice_ratio — py -3.11 examples/poc_weed_rice_ratio.py
table 作為輸入)class_ndim_norm · fisher_lda_score
plant)plant_color_index · cover_ratio_grade
*Provenance: cropweed.py — SEGMENTATION 運算子登記表。本條目由 tools/opdocs.py md 自動產生(請勿手動編輯)。*
© 2026 Kazufumi Furuse — Fullseye operator documentation. Licensed under Apache-2.0.