Separating sharp portions from blurred portions in an image
How can I separate the sharp (in focus) portion of an image from the blurred (out of focus) portion of the same image?