用法:
skimage.future.manual_polygon_segmentation(image, alpha=0.4, return_all=False)
根據鼠標所做的多邊形選擇返回標簽圖像。
- image:(M, N[, 3]) 數組
灰度或 RGB 圖像。
- alpha:浮點數,可選
在圖像上繪製的多邊形的透明度值。
- return_all:布爾型,可選
如果為 True,則返回一個包含每個繪製的單獨多邊形的數組。 (多邊形可能重疊。)如果為 False(默認),則後麵的多邊形 “overwrite” 較早的多邊形重疊。
- labels:int 形狀數組 ([Q, ]M, N)
分割的區域。如果 mode 為‘separate’,則數組的前導維度對應於用戶繪製的區域數。
參數:
返回:
注意:
使用左鍵單擊選擇多邊形的頂點,並在選擇所有頂點後右鍵單擊以確認選擇。
例子:
>>> from skimage import data, future, io >>> camera = data.camera() >>> mask = future.manual_polygon_segmentation(camera) >>> io.imshow(mask) >>> io.show()
相關用法
- Python skimage.future.manual_lasso_segmentation用法及代碼示例
- Python skimage.future.graph.RAG.__init__用法及代碼示例
- Python skimage.future.graph.show_rag用法及代碼示例
- Python skimage.future.graph.cut_normalized用法及代碼示例
- Python skimage.future.graph.cut_threshold用法及代碼示例
- Python skimage.future.graph.ncut用法及代碼示例
- Python skimage.future.graph.rag_boundary用法及代碼示例
- Python skimage.future.graph.rag_mean_color用法及代碼示例
- Python skimage.feature.graycomatrix用法及代碼示例
- Python skimage.feature.blob_doh用法及代碼示例
- Python skimage.feature.blob_dog用法及代碼示例
- Python skimage.filters.unsharp_mask用法及代碼示例
- Python skimage.filters.rank.noise_filter用法及代碼示例
- Python skimage.filters.gaussian用法及代碼示例
- Python skimage.feature.graycoprops用法及代碼示例
- Python skimage.feature.corner_orientations用法及代碼示例
- Python skimage.filters.threshold_otsu用法及代碼示例
- Python skimage.feature.structure_tensor用法及代碼示例
- Python skimage.filters.rank.sum用法及代碼示例
- Python skimage.filters.window用法及代碼示例
注:本文由純淨天空篩選整理自scikit-image.org大神的英文原創作品 skimage.future.manual_polygon_segmentation。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。