algorithm - How to fill circle with increasing radius? -


As part of a more complex algorithm, I need the following:

  • Say my Near the circle is a discrete grid (below the picture) with radius R1 (image) (green on the image below)
  • I think that to draw a circle with radius R2 is to draw a pixel Along with R1 is big (red on the image below).
  • Each time I have a full circle to attract circles with increasing radius in each algorithm phase.

    Enter image details here

    < Strong> How can I get points to fill in each step so that at the end of each stage I have a completely circle filled?

    I have thought about some circle rasterization algorithm, but it will move towards some interval in filling. Another method is to use some mathematical morphology operations such as perimeter, but computational is expensive to do so.

    I'm usually trying to do this on arbitrary size, but initially the circle algorithm will be sufficient.

    Your best choice is fill more a little big red circle, and then Drag and fill the green circle again then again at the next frequency.

    Only 1px is very difficult to attract the boundary. Your sample image is not quite consistent, in some places a white pixel is diagonally on a green pixel, and in other places that pixel is red.

    Edit:

    • Limit pixels <
    • If Em> border pixels (like color red to them) , whatever you want,

Comments