title: Find the pixel of center of a circle in an image
body: <p>Hy guys,
  I need to find the coordinates of the center of the small circles inside in an image.
  I don't want to use the Hought method of cv.
  Every circle has radius of 20 pixels.</p>
  <p>The image is like this:</p>
  <p><a href="https://i.stack.imgur.com/KazLd.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/KazLd.png" alt="enter image description here" /></a></p>
  <p>I read the image in grayscale because I want e value normalized between 0-255.</p>
  <p>This is the code, I can't find where I wrong:</p>
  <pre><code>img = cv2.imread('input_image',0)#read in grayscale
  lista = []
  rows,cols = img.shape
  for i in range(rows):
      for j in range(cols):
          k = img[i,j]
          if k == 0:
              #No circle
              continue
          else:
              #Circle
              x=i+10
              y=j
              k = img[x,y]#centro del pallino
              i+=21
              
              arr = np.array([x,y,k])
              lista.append(arr)
        
  print(lista)
  </code></pre>
  <p>I would to have a list of arrays, where each arrays contains the x coordinate, the y coordinate and the value of pixel.
  Where i wrong?</p>