Project 4
Image for problem 2:  ic_degraded.tif    

Image for problem 3:  text.tif   

Solution:

Problem 1

Problem 2

Problem 3   Needs the function runlength.m