In my project I need to remove selected colour like wand tool.For this i was used flood fill algorithm(Flood fill).but it was not working properly for colour comparison(pixel by pixel).can any one suggest the solution.
In below images i need to remove background colour only(expected).
output Result.
can any one please help me with code Or example.