added in the hysthresh.m function to be used for isoonHysterSeg