Mean Shift Filter - Plugin

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Mean Shift Filter - Plugin

Barthel, Kai Uwe
Hello I wanted to announce a new plugin that can be used for edge  
preserving smoothing.

http://rsb.info.nih.gov/ij/plugins/mean-shift.html

The description can be found on the website.

Kai

I am looking for some code to perform region clustering after the  
filtering. Perhaps somebody has some code that could be used for this  
task:

Clustering would merge all neighboring pixels that have a color  
distance smaller than the parameter for the color distance. The  
clustering would have to be done after the filtering. It needs to be  
done using a flood filling algorithm: In a first step all pixels  
belonging to one region would have to be identified. In the second  
step all pixels of that region would get the mean color of that  
region. Then the next unassigned pixel would be the starting point for  
the next region.

Do you have some smart flood filling code that could be used for that?  
Normal flood filling would not work because the color that needs to  
assigned is only known, when the entire region is known. Perhaps the  
easiest way would be to assign a number to each region and then in a  
next step, all pixel numbers could be used as a lookup index for the  
correct color.