title: black area between overlapped circles in opencv - python
body: <p>I am implementing &quot;Bubbles algorithm&quot; for classification recognition analysis.
  in this algorithm, we have to make mask with gaussian circles.
  the center of circles would be 1(255) and it will decrease over the radius which will be 0.
  i have problem when i put circles on each other for creating the mask, it will put a black line between circles and i can not remove it.
  this is my code:</p>
  <pre><code>def make_gaussian(circle_center, Gaussian_base):
  for t in range(circle_center[1] - radius, circle_center[1] + radius):
      for tt in range(circle_center[0] - radius, circle_center[0] + radius):
          distance = int(compute_distance(tt, circle_center[0], t, circle_center[1]))
          if distance &lt; radius  :
              value = int(((radius - distance) * (1 / radius)) * 255)
              if Gaussian_base[t][tt].mean() &lt; value:
              Gaussian_base[t][tt] = [value, value, value]
  return Gaussian_base
  
  Gaussian_base = np.zeros((height, width, 3), np.uint8)
  for s in centers:
      #xmin, ymin, xmax, ymax
      Gaussian_base = make_gaussian(s, Gaussian_base)
  cv2.imwrite('gaussianMask.jpg', Gaussian_base)
  </code></pre>
  <p>you can use this list as centers:</p>
  <pre><code>centers = [(139, 102), (223, 193), (94, 385), (205, 301), (90, 147), (190, 209), (45, 349), (193, 259), (110, 343), (159, 99)]
  </code></pre>
  <p>and the output is like this:
  <a href="https://i.stack.imgur.com/95kLl.jpg" rel="nofollow noreferrer">enter image description here</a>
  the problem is the black line(area) between two overlapped circles which should be removed and the joint area should be continous.</p>