Detect a change in color?

Blitz3D Forums/Blitz3D Programming/Detect a change in color?

I have tried posterising the image by anding each color with %11000000 and also comparing the brightness of each pixel to find edges. But neither give the required effect, I know the basic mean shift algorithm will break an image into seperate color sections but I have not been able to find a good source of how to write the mean shift filter.

Once the image reduced to basic color patches I could smooth it and then define the edges.

I am trying to get the look used in "A Scanner Darkly"

big10p I would love to see what you have done?

Cheers.