I've been away from the forum for a while because I've been busy on other hobbies but now I have started a new project which is causing me a small problem.
I have a bmp in which I want to replace all pixels that have a value lower or higher than a known range of values, with a common colour. i.e. a head and shoulders shot of somebody on a multi coloured background. I find the lowest and highest values of the skin tones then replace everything else.
I've been quite succesful so far by scanning each x, y co-ordinate and replacing each pixel as I go, but not surprisingly, this method is painfully slow.
Does anybody know of a more efficient way of doing this?
Alan
[gray]Experience is something you don't get until just after you need it.[/gray]
I have a bmp in which I want to replace all pixels that have a value lower or higher than a known range of values, with a common colour. i.e. a head and shoulders shot of somebody on a multi coloured background. I find the lowest and highest values of the skin tones then replace everything else.
I've been quite succesful so far by scanning each x, y co-ordinate and replacing each pixel as I go, but not surprisingly, this method is painfully slow.
Does anybody know of a more efficient way of doing this?
Alan
[gray]Experience is something you don't get until just after you need it.[/gray]