You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is how much was painted before the stack overflow occurred:
partial fill
In case it helps, I ended up using connected components labelling from the outline of the convex hull to solve my problem, which generalizes to 3D and runs very fast:
Hi all,
I understand that BoundaryFill recursively paints the pixels within a boundary. This recursive approach leads to stack overflow in my computer.
In my particular case, I computed a convex hull, converted it into an
ImageDraw.Polygon
, and painted its outline withImageDraw.draw!
:convex hull
Using the centroid of the convex hull as a reference, I try to paint the interior with this code... but I consistently get a stack overflow error:
This is how much was painted before the stack overflow occurred:
partial fill
In case it helps, I ended up using connected components labelling from the outline of the convex hull to solve my problem, which generalizes to 3D and runs very fast:
working pipeline
The text was updated successfully, but these errors were encountered: