enh: using gaussian adaptive threshold to segmentation; enh: applying black magic to obtain discriminant value