{ } Raw JSON

bundles / skimage 0.26.1rc0.dev0+git20260530.b607368ff / skimage / util / _regular_grid / regular_seeds

function

skimage.util._regular_grid:regular_seeds

source: /dev/scikit-image/src/skimage/util/_regular_grid.py :83

Signature

def   regular_seeds ( ar_shape n_points dtype = <class 'int'> )

Summary

Return an image with ~`n_points` regularly-spaced nonzero pixels.

Parameters

ar_shape : tuple of int

The shape of the desired output image.

n_points : int

The desired number of nonzero points.

dtype : dtype-like, optional

The desired data type of the output.

Returns

seed_img : array of int or bool

The desired image.

Examples

regular_seeds((5, 5), 4)

Aliases

  • skimage.util.regular_seeds