two images, if pixel in 2nd = 1st then make it transparent
Posted: 2009-08-22T15:17:12-07:00
Is this possible with ImageMagick:
I have two images, the first is only the background, the second includes my subject in the foreground.
On a pixel by pixel basis, if the two pixels have the same value can I turn the pixel transparent in the second or a resultant image?
I have full control in making the original images - lighting, focus, f stop, camera placement, exposure - with adequate physical and lighting separation between the background and foreground to avoid interactions.
What I do not have is a single pixel value for all the pixels in the background (an easy solution exists for this case), and providing a range, or a fuzz factor, unacceptably degrades the foreground subject (otherwise another easy solution.)
I understand I can work harder at controlling the uniformity of the background. I would like to know if I can make the computer work harder instead.
Bill
I have two images, the first is only the background, the second includes my subject in the foreground.
On a pixel by pixel basis, if the two pixels have the same value can I turn the pixel transparent in the second or a resultant image?
I have full control in making the original images - lighting, focus, f stop, camera placement, exposure - with adequate physical and lighting separation between the background and foreground to avoid interactions.
What I do not have is a single pixel value for all the pixels in the background (an easy solution exists for this case), and providing a range, or a fuzz factor, unacceptably degrades the foreground subject (otherwise another easy solution.)
I understand I can work harder at controlling the uniformity of the background. I would like to know if I can make the computer work harder instead.
Bill