### Questions about mean shift noise removal and color reduction

Posted:

**2017-08-03T03:22:39-07:00**Hi again,

I understand what the windows size does now, sorry about that.

But, is it possible to specify the number of colors it can replace originals with (the number of colors in this case can be viewed as the number of clusters).

Say, for example I select 5 colors then when computing the mean of each window size, it selects the colour nearest to the mean (color) from my pre-specified color range (5 colors)?

If there is a function, that does this already. Kindly point me there.

Best,

Aigo!

I understand what the windows size does now, sorry about that.

But, is it possible to specify the number of colors it can replace originals with (the number of colors in this case can be viewed as the number of clusters).

Say, for example I select 5 colors then when computing the mean of each window size, it selects the colour nearest to the mean (color) from my pre-specified color range (5 colors)?

If there is a function, that does this already. Kindly point me there.

Best,

Aigo!