From: ImageAnalyst on
Then just extract some portion of the image around the edge which
won't include the hand, take the histogram, and look for the mode.
Then fall down the histogram hump until you get near the bottom and
call that the threshold. Then you're basically done.