CSE509F23_Ass4

pdf

School

Arizona State University *

*We aren’t endorsed by this school

Course

509

Subject

Computer Science

Date

Dec 6, 2023

Type

pdf

Pages

2

Uploaded by SuperHumanOstrich3671

Report
CSE 509 Digital Video Processing Assignment 4 Due: Sunday, October 22nd at 11:59pm Submit a single PDF with your responses to Gradescope. 1. Write Python code to demonstrate the use of the OpenCV function matchTemplate() to search for matches between an image patch and an input image. Also, use the OpenCV function minMaxLoc() to find the maximum and minimum values (as well as their positions) in the output array of matchTemplate(). Use the images of Nadia provided on our website and produce an output similar to that shown below. Note that when the template is found, a white rectangle is drawn over the original image to show its location. 2. Use the code from question 1 to write an EBMA in Python. It should take two images and calculate the motion vectors and then display the vectors using the OpenCV fuction, quiver() . Write your EBMA so that it has an adjustable block size and search region. Use the target and anchor images provided on our website and produce an output similar to that shown below. 10 pts. 10 pts.
3. Write a Python program that will read a video, such as the provided videos for ‘Foreman’ and the bouncing ball, and perform motion estimation using the EBMA from question 2. You can limit your experiment to 5-10 frames which should be enough to see that you have good vectors. Produce an output similar to that shown below. 10 pts.
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help