(Not logged on) | Register | Log On

You can subscribe to this discussion group using an RSS feed reader. The Joel on Software Discussion Group (CLOSED)

A place to discuss Joel on Software. Now closed.

This community works best when people use their real names. Please register for a free account.

Other Groups:
Joel on Software
Business of Software
Design of Software (CLOSED)
.NET Questions (CLOSED)
TechInterview.org
CityDesk
FogBugz
Fog Creek Copilot


The Old Forum


Your hosts:
Albert D. Kallal
Li-Fan Chen
Stephen Jones

"Paint bucket" algorithm?

OK, so I'm a pretty decent software developer, but I'm a complete idiot when it comes to bare-metal types of algorithms.  (i.e. a geek but not a nerd, at least in my conception of my place in the world...)

Now I'm working on a project that has a particular requirement for finding the precise bounds of a grouping of values in a 2-d array (i.e. int[][]).  I need to implement an algorithm identical to that used by graphics applications to support the 'paint bucket fill' operation.  Of course, this kind of algorithm falls right in to the middle of the blind spot I mentioned above, so what I've written so far (while it works fine) is clearly sub-optimal.

So, can anyone kindly direct me to such an algorithm that is known to be good and fast?
geeky, not nerdy
Friday, October 22, 2004
 
 
There's a (very brief) discussion at:
http://www.siggraph.org/education/materials/HyperGraph/scanline/outprims/polygon6.htm

Searching for "flood fill" in Googlew should get you more information.

-Mark
Mark Bessey Send private email
Friday, October 22, 2004
 
 
If you need more than this, you'll get decent results searching for "flood fill".
 http://www.4reference.net/encyclopedias/wikipedia/Flood_fill.html
schmoe Send private email
Friday, October 22, 2004
 
 
example Send private email
Friday, October 22, 2004
 
 

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics
 
Powered by FogBugz