title: OpenCV get pixels on an ellipse
body: <p>I'm trying to get the pixels of an ellipse from an image.</p>
  <p>For example, I draw an ellipse on a random image (sample geeksforgeeks code):</p>
  <pre><code>import cv2
  path = r'C:\Users\Rajnish\Desktop\geeksforgeeks\geeks.png'
  image = cv2.imread(path)
  window_name = 'Image'
  center_coordinates = (120, 100)
  axesLength = (100, 50)
  angle = 0
  startAngle = 0
  endAngle = 360
  color = (0, 0, 255)
  thickness = 5
  image = cv2.ellipse(image, center_coordinates, axesLength,
             angle, startAngle, endAngle, color, thickness)
  cv2.imshow(window_name, image)
  </code></pre>
  <p>It gives output like below:
  <a href="https://i.stack.imgur.com/ZN9sM.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ZN9sM.png" alt="enter image description here" /></a></p>
  <p>Now, I want to get the pixel value of boundary line of ellipse. If it is possible I would like to get the pixel of ellipse using cv2.ellipse() back as an array of coordinates.<br />
  Can anyone help me with this please.</p>