用法:
cucim.skimage.segmentation.join_segmentations(s1, s2)
返回兩個輸入分段的連接。
S1 和 S2 的連接 J 被定義為兩個體素在同一段中當且僅當它們在
both
S1 和 S2 中的同一段中的分割。- s1, s2:numpy 數組
s1 和 s2 是相同形狀的標簽字段。
- j:numpy 數組
s1 和 s2 的連接分割。
參數:
返回:
例子:
>>> import cupy as cp >>> from cucim.skimage.segmentation import join_segmentations >>> s1 = cp.array([[0, 0, 1, 1], ... [0, 2, 1, 1], ... [2, 2, 2, 1]]) >>> s2 = cp.array([[0, 1, 1, 0], ... [0, 1, 1, 0], ... [0, 1, 1, 1]]) >>> join_segmentations(s1, s2) array([[0, 1, 3, 2], [0, 5, 3, 2], [4, 5, 5, 3]])
相關用法
- Python cucim.skimage.segmentation.random_walker用法及代碼示例
- Python cucim.skimage.segmentation.find_boundaries用法及代碼示例
- Python cucim.skimage.segmentation.relabel_sequential用法及代碼示例
- Python cucim.skimage.feature.shape_index用法及代碼示例
- Python cucim.skimage.restoration.richardson_lucy用法及代碼示例
- Python cucim.skimage.util.invert用法及代碼示例
- Python cucim.skimage.data.binary_blobs用法及代碼示例
- Python cucim.skimage.filters.roberts_neg_diag用法及代碼示例
- Python cucim.skimage.color.lch2lab用法及代碼示例
- Python cucim.skimage.measure.label用法及代碼示例
- Python cucim.skimage.color.rgb2gray用法及代碼示例
- Python cucim.skimage.filters.gabor用法及代碼示例
- Python cucim.skimage.transform.rescale用法及代碼示例
- Python cucim.skimage.filters.roberts_pos_diag用法及代碼示例
- Python cucim.skimage.filters.roberts用法及代碼示例
- Python cucim.skimage.morphology.dilation用法及代碼示例
- Python cucim.skimage.feature.corner_foerstner用法及代碼示例
- Python cucim.skimage.measure.moments_coords用法及代碼示例
- Python cucim.skimage.filters.gabor_kernel用法及代碼示例
- Python cucim.skimage.color.hsv2rgb用法及代碼示例
注:本文由純淨天空篩選整理自rapids.ai大神的英文原創作品 cucim.skimage.segmentation.join_segmentations。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。