Basic example shows how to select edge and mark background and foreground areas.
"Zoomed technique" is very useful for better edge recognition. This video demonstrate how to draw Edge on zoomed image by using space bar for fast switch between Magic Edge and Pan/Move tool.
If the edge is not accurate recognized, clear the yellow edge, zoom several times and draw thinner edge.
Magic wand is very useful for white of gradient background removal.