An example of a picture with white rays:
1 answer
Option number 1:
 convert this image to binary: 1 is white, 0 is black.
 find the coordinates of all zero pixels
 convert these coordinates from Cartesian coordinates x, y to polar PHI (angle), RHO (distance from center)
 set the radius of the circle (arbitrary)
 select pixels for which RHO = R
 can be converted back to Cartesian and presented in the form of a binary image  it will be a dotted circle. on it you need to count the number of dashes.
 mark up connected components and count their number
option number 2.
 find the center where these rays come from.
 convert image to binary: 1  white, 0  black.
 set a circle of some radius in the found center
 paint all the points inside the circle in white (1)  this step is needed to remove the central region where the rays are close, because because of it, the markup of the connected components may not work exactly. This ensures that the pixels of the neighboring rays are not adjacent.
 mark up the connected components and count their number.
