I'm new to Gimp, and I'm looking for a plug-in that would do the following job:
- There are two images, A &B, which will be used to create a resulting image C
- "t" is a user defined value.
- take a pixel at position x,y on image A, compare it's color (rA,gA,bA) to the color (rB,gB,bB) of pixel x,y on image B
- if sqrt( (rA-rB)^2 + (gA-gB)^2 + (bA-bB)^2) < t
then create a transparent pixel at position x,y on image C
Add pixel x,y from image B to image C,
- move to next pixel.
that's the idea, which can also be fulfilled with an additional condition on the Alpha value, and/or a tolerance in the position of the neighboring pixel of image B that's used to compare to image A.
Do you guys know if there 's a plug-in that does this job or something similar ?