Lab2 view. Image thresholding implementation.