fastpli.model.sandbox.seeds.crop_rectangle

crop_rectangle(a, b, seeds, radii=0)[source]

Crops a sequence of 2-dim points inside a rectangle.

Parameters
  • a, b (float) – cropping between [0,a]x[0,b]

  • a, b ((2,)-array_like) – cropping between [a[0],b[0]]x[a[1],b[1]]

  • seeds ((n,2)-array_like) – to be cropped seed points

  • radii (float or (n,)-array_like, optional) – seed points will be iterpreted as cricles with a global or individual radii

Returns

res – cropped seed points

Return type

(nx2)-array