Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What do you call an iterated flood fill algorithm?

I have an algorithm that I'm using for my work, but I need a name for it. I am curious if name exists in the literature for an algorithm of this type.

The algorithm takes a pixelated height map and a starting point s, and returns a modified pixelated height map. For each pixel p in the returned height map, p is the value of lowest height you must pass through to get from s to p.

Example, consider the "peak" image in Matlab: imagesc(peak) Peak Image from Matlab.

And use the pixel (20,20) as the seed, then this modified height map I am describing looks like this: enter image description here.

I had called this a flood fill algorithm, until my colleagues pointed out that flood fills are typically binary maps. So, Ive taken to calling this a "graduated flood fill" algorithm.

We have not found this operation defined in the literature. Any suggestions?

like image 416
John Avatar asked Oct 21 '22 21:10

John


2 Answers

I've worked in image processing a bit, but I've never come across an algorithm that does this before. So you can call it whatever you like, really. How about the "John" algorithm ;-)

Alternatively, you could consider calling it a "least descent" algorithm (or least descent filter, perhaps), since it effectively calculates the smallest amount of descent necessary to travel from one point to any other.

I'd avoid the word "fill" altogether, since it usually describes algorithms that are used to fill areas with a solid colour.

like image 78
r3mainer Avatar answered Oct 23 '22 23:10

r3mainer


This algorithm has similarity to "distance transform" in that it is also about a path. Thus, "minimum descent transform" or "minimum path descent transform" may be an idea, since the pixel value becomes the lowest value one needs to descend to on the way to the seed point.

like image 38
s.bandara Avatar answered Oct 23 '22 23:10

s.bandara