# HCI/CprE/ComS 575: Homework #2

Your Name
< Your Email>

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

Source

    % Insert your code here

### OpenCV

Source

    // 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.

Source

    // Insert your code here

## Part 3a

Write a program to find all knights.

Source

    // Insert your code here

## Part 3b

Modify your program to find all bishops, knights, rooks, queens, and kings.

Source

    // Insert your code here

## Part 3c

Repeat Part 3b on noisy chess boards.

Source

    // Insert your code here

## Part 4 Extra Credit

Write a program to draw each valid move for each knight and bishop.

Source

    // Insert your code here