0

I need a flood fill algorithm for using with BufferedImage and Graphics2D in Java. I do not need the simple recursive (DFS) or queue (BFS) versions of this algorithm due to their impractically. I need an efficient, practical, and salable version of this algorithm using scan lines method or any other method.

moorara
  • 3,897
  • 10
  • 47
  • 60

1 Answers1

1

seems you're not the 1.st one: Flood fill using a stack however their solution goes for the queue. But as marked as correct, should work in case you won't find anything more efficient.

Community
  • 1
  • 1
Peter Butkovic
  • 11,143
  • 10
  • 57
  • 81