I'm trying to make an image filter that computes the optimal transparency key for alpha test purposes.
First it computes the average color at the bounds.
Then it should find the closest color of this color (that is not present in the image) to fill RGB transparent areas.
My problem is : given a manhattan distance, how to find all the permutations of the given color ?
For example for distance=1, the permutations are :
Thanks for your help =)
Edited by Tournicoti, 21 February 2013 - 07:10 AM.