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,499
  • 8
  • 44
  • 59

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
  • 9,825
  • 10
  • 52
  • 78