用法:
skimage.util.regular_seeds(ar_shape, n_points, dtype=<class 'int'>)
返回具有 ~`n_points` regularly-spaced 非零像素的圖像。
- ar_shape:int 的元組
所需輸出圖像的形狀。
- n_points:int
所需的非零點數。
- dtype:numpy 數據類型,可選
所需的輸出數據類型。
- seed_img:int 或布爾數組
所需的圖像。
參數:
返回:
例子:
>>> regular_seeds((5, 5), 4) array([[0, 0, 0, 0, 0], [0, 1, 0, 2, 0], [0, 0, 0, 0, 0], [0, 3, 0, 4, 0], [0, 0, 0, 0, 0]])
相關用法
- Python skimage.util.regular_grid用法及代碼示例
- Python skimage.util.view_as_windows用法及代碼示例
- Python skimage.util.montage用法及代碼示例
- Python skimage.util.label_points用法及代碼示例
- Python skimage.util.view_as_blocks用法及代碼示例
- Python skimage.util.unique_rows用法及代碼示例
- 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.regular_seeds。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。