Question: MATLAB Coding please. This is a project for a MATLAB class. I need help on the project on image thresholding, especially the two function files
MATLAB Coding please.
This is a project for a MATLAB class. I need help on the project on image thresholding, especially the two function files listed in the project images. There are multiple test cases, but I will provide Alpha.png for the code to test. Make sure the output is not all zeros, but show the expected results of the test case of Alpha in the document.
These are the starting formats of the two functions:
FindPieces
function layout FindPiecesfilename
layout zeros;
end
ScoreLayout
function score ScoreLayoutlayout pnum
score ;
end
The testing script is here
name inputEnter a Connect Four image: s;
mat FindPiecesname;
dispmat;
s ScoreLayoutmat;
s ScoreLayoutmat;
fprintfPlayer s score: g s;
fprintfPlayer s score: g s;
The expected test case result is:
Enter a Connect Four image: Alpha.png
Player s Score:
Player s Score:
Please assist the code in the two function files for the test script to run correctly.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
