function[bw] = tresh(th,I)
% Peforms the tresholding function 

bw = im2bw(I,th);
