用法:
skimage.util.unique_rows(ar)
從二維數組中刪除重複的行。
特別是,如果給定一個形狀坐標數組 (Npoints, Ndim),它將刪除重複的點。
- ar:二維數組
輸入數組。
- ar_out:二維數組
刪除了重複行的輸入數組的副本。
- ValueError:如果阿爾不是二維的。
參數:
返回:
拋出:
注意:
如果不是C-contiguous,該函數將生成ar 的副本,這將對大型輸入數組的性能產生負麵影響。
例子:
>>> ar = np.array([[1, 0, 1], ... [0, 1, 0], ... [1, 0, 1]], np.uint8) >>> unique_rows(ar) array([[0, 1, 0], [1, 0, 1]], dtype=uint8)
相關用法
- Python skimage.util.view_as_windows用法及代碼示例
- Python skimage.util.montage用法及代碼示例
- Python skimage.util.regular_grid用法及代碼示例
- Python skimage.util.label_points用法及代碼示例
- Python skimage.util.regular_seeds用法及代碼示例
- Python skimage.util.view_as_blocks用法及代碼示例
- Python skimage.util.invert用法及代碼示例
- Python skimage.feature.graycomatrix用法及代碼示例
- Python skimage.color.lab2lch用法及代碼示例
- Python skimage.draw.random_shapes用法及代碼示例
- Python skimage.feature.blob_doh用法及代碼示例
- Python skimage.feature.blob_dog用法及代碼示例
- Python skimage.filters.unsharp_mask用法及代碼示例
- Python skimage.registration.optical_flow_tvl1用法及代碼示例
- Python skimage.filters.rank.noise_filter用法及代碼示例
- Python skimage.exposure.histogram用法及代碼示例
- Python skimage.filters.gaussian用法及代碼示例
- Python skimage.feature.graycoprops用法及代碼示例
- Python skimage.segmentation.active_contour用法及代碼示例
- Python skimage.feature.corner_orientations用法及代碼示例
注:本文由純淨天空篩選整理自scikit-image.org大神的英文原創作品 skimage.util.unique_rows。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。