thresh applies simple thresholding to an image or a cube. It also offers the possibility to threshold an image to a binary map.
thresh man page