Project 02

Last edit 1/31/2023

Project 2

Problem 1

Find the horizontal edges of a grayscale image (of your choice).   Hint : For vertical edges this is done in Notebook 031.

Problem 2

Pick a small grayscale image (your choice) and use only matrix transposition and multiplication with suitable matrices to produce the following six images :

Problem 3

In Notebook 031  a "resampling" algorithm is shown that cuts the number of rows and columns of an image in half.  Suppose you want to reduce the number of rows and columns of an image by 20%. One  idea is to delete every fifth row and column, but this leads to unsatisfactory results (see example below). Can you come up with an idea for an improved algorithm that may lead to better results? Briefly describe such an algorithm, i.e. the matrices you would multiply the original image by. (No coding in Mathematica is required.) It may be advantageous to first think about this problem in one dimension (for a vector).