entropyfilt() gives you the entropy at each location. This does not necessarily increase contrast. In fact it might not look much like a contrast adjusted version of the original at all. It looks more like an edge detection image. To increase contrast of an image, you should use imadjust().