Well for me there ise a way for doing a mean shift algorithm.
You can use a filter like this, and apply it with "Imaq Convolute" :
1 1 1
1 1 1
1 1 1
Of course this is for a 3x3 window for averaging
or any size for a larger window. Note that it must be odd numbered size
It would be nice if you take the time to rate this answer
http://www.machinevision.ch