Supplementary images files for this homework are also posted on the class website.
Part 1
Write a program that uses basic morphological operations to identify each black and white square in the chess grid. Fill in the black and white squares with two different, distinct colors. You must solve this in both board using Matlab and OpenCV.
Matlab
|
|
% Insert your code here
OpenCV
|
|
// Insert your code here
Part 2
Write a program that prints the location of each chess square (e.g., E5) as an overlay over the orignal image. Solve this and all subsequent problems using either MATLAB or OpenCV.
|
|
|
|
|
|
// Insert your code here
Part 3a
Write a program to find all knights.
|
|
|
|
|
|
// Insert your code here
Part 3b
Modify your program to find all bishops, knights, rooks, queens, and kings.
|
|
|
|
|
|
// Insert your code here
Part 3c
Repeat Part 3b on noisy chess boards.
|
|
|
|
|
|
// Insert your code here
Part 4 Extra Credit
Write a program to draw each valid move for each knight and bishop.
|
|
|
|
|
|
|
|
|
|
|
|
// Insert your code here