my project is detect optimal threshold value from many values,I need to mesure similarity with out depend on the ground truth of any image to compare btween the original image and segmented image such as comparsion the area and shape for both image (orginal and segmented)