function testshow(im) 
%% shows im, replacing -1 with 0s for debugging purposes

dim = size(im);
im(im<=0)=0;
reshape(im,dim);
imshow(im);
