Info
This question is closed. Reopen it to edit or answer.
have a deadline in two days and need to complete this video processing assignment, i know i should not leave things for last minute but i need help now
2 views (last 30 days)
Show older comments
Question 1
Quiz setup

Your goal for this quiz is to process the "liquidVideo.mp4" and calculate the height of the liquid in each frame, like this:
In a previous video, the liquid was isolated using color thresholding. However, for this quiz you will use the background subtraction technique covered previously. The advantage of this method over color thresholding is that it should provide more consistent results if used on new videos with liquids of different colors.
The following questions will guide you through the process. We suggest checking your answer to a question before proceeding to the next one. You can take this quiz as many times as needed.
Your first task is to isolate the liquid using the background subtraction method. Therefore, you'll need to define a background frame to use. Which option provides the best background frame for this video?
1 point
All of the frames averaged together.
The first frame of the video.
The middle frame of the video (number 120).
2.Question 2
Now that you have chosen what to use as the background frame, your next task is to test out the background subtraction method on some example frames.
What is the correct result after performing background subtraction on frame 175?
option 1= 

option 2=

option 3=

option 4= 

3.Question 3
Now your task is to isolate the liquid from the images corresponding to the difference between the background and your chosen example frames. We encourage you to experiment around with a few options. After completing this task, answer the following question.
What approach is the best method to segment the liquid?
1 point
Grayscale binarization with Otsu's method
Grayscale binarization with adaptive thresholding
Grayscale binarization with a manual threshold value
Clustering
4.Question 4
Now that you have segmented out the liquid from the background subtraction image, your next task is to use morphological operations to improve the mask by removing unwanted true pixels (such as from the grid markings on the background) and unwanted false pixels (such as from the foam). Answer the following question after finding a suitable method.
After performing background subtraction, grayscale thresholding, and morphological operations on frame number 175, what is the percentage of true pixels (corresponding to the liquid) in your final mask?
1 point
5.Question 5
Now apply the entire workflow you've developed in this quiz to the entire video, such that for each frame you:
- Perform background subtraction
- Segment out the liquid from the resulting image
- Improve the mask using morphological operations
- Use the mask to calculate how full the container is
Once completed, answer the following question.
Question
Assume that each frame of the video is 3.4 cm in height. What is the average height of the liquid 16.7 seconds into the video?
1 point
0 Comments
Answers (0)
This question is closed.
See Also
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!