用法:
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。非经特殊声明,原始代码版权归原作者所有,本译文未经允许或授权,请勿转载或复制。