SegmentedImage = SegmentByThreshold(Image, Threshold);
2D matrix of type uint8, uint16, uint32 or double
scalar of any numeric type
boolean image of the same size as Image
This function segments a numeric image by a threshold. All pixels with a gray value >= Threshold are set to %t, all other pixels to %f.