Try out = ones(size(ben), 'uint8');
ones()creates a doubling array by default. When it imshow()receives an array of doubles, it assumes that the pixel values are in the range from 0 to 1, and assigns a white color to something greater than 1. However, if you pass the array from uint8to imshow(), it will count the range from 0 to 255.
imagesc(); imshow(), colormap gray , , .
:
imshow(out / max(out(:)));