How do I move a foreground image onto another part of a background image?

3 views (last 30 days)
I'm writing a script that lets you input a background image and a foreground green screen image, and then adds the foreground image onto the background image, without the green screen. I have a function which tests if a pixel is green and gives an answer of 1 or 0, and a second function calls the previous function and stores the 1's and 0's in a matrix which can then be used as an image mask. The script correctly adds the foreground image to the background image and can also scale the foreground image, but I am unsure how to move the foreground image onto a different part of the image. I know how to use the ginput() to specify the pixel I want the image to move to but I don't know how to actually move the image to that spot.
Thanks, Belle.

Answers (1)

Image Analyst
Image Analyst on 28 Oct 2015
See this link, especially Professor Tearle's blog on green screen.

Categories

Find more on Visual Exploration in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!