get_region

threadcount.fit.get_region(rx, ry=None)[source]

Select pixels in ellipse of radius rx, ry from (0,0).

Return an array of np.array([row,col]) that are within an ellipse centered at [0,0] with radius x of rx and radius y of ry.

Parameters:
  • rx (number or list of numbers [rx, ry]) –

  • ry (number) –

Return type:

numpy.ndarray