Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

A picture taken in front of a green screen can be used to embed the subject of that picture into a background picture creating an

A picture taken in front of a green screen can be used to embed the subject of that picture into a background picture creating an entirely new picture. A program can do this by checking each pixel from the green-screen picture to see if the color at that pixel matches the green of the screen. If a match occurs, then that pixel is not used and the corresponding pixel from the background is copied as the pixel for the new picture. If the checked pixel is not the right shade of green, then that green-screen pixel is the one copied.

The Assignment

Write a program to take your choice of green-screen picture and embed the subject into a background picture. image text in transcribedimage text in transcribed

Pictures

Pictures are available here.

Hints

1. Your program will be given the pictures as 2D arrays holding values for green, red, and blue. To determine if a pixel is GREEN, just check to see if the green value is greater than the red value and greater than the blue value for that pixel.

2.If you want to use your own pictures, the ones I have for you are 852 pixels wide and 480 pixels high. It will be easier if you scale your pictures to this size also.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Modern Database Management

Authors: Jeffrey A. Hoffer Fred R. McFadden

9th Edition

B01JXPZ7AK, 9780805360479

More Books

Students also viewed these Databases questions

Question

Explain Coulomb's law with an example

Answered: 1 week ago

Question

What is operating system?

Answered: 1 week ago

Question

What is Ohm's law and also tell about Snell's law?

Answered: 1 week ago

Question

=+ d. What happens to Oceanias trade balance?

Answered: 1 week ago

Question

=+ e. What happens to Oceanias real exchange rate?

Answered: 1 week ago