Question: MATLAB Coding please. This is a final project for a MATLAB class. I need help on the project on image thresholding, especially the two function

MATLAB Coding please.
This is a final 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.
This is the testing script the two functions will require to run:
name = input('Enter a Connect Four image: ','s');
mat = FindPieces(name);
disp(mat);
s1= ScoreLayout(mat,1);
s2= ScoreLayout(mat,2);
fprintf('Player 1''s score: %g
', s1);
fprintf('Player 2''s score: %g
', s2);
Function file Findpieces.m
%Part -1
function [layout]= FindPieces(filename)
layout = zeros(6,7);
end
Function file ScoreLayout.m
%Part-2
function [score]= ScoreLayout(layout, pnum)
score =0;
end
Please assist the code in the two function files for the test script to run correctly.
 MATLAB Coding please. This is a final project for a MATLAB

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!