Originally posted by remaxx:
c) then changed the selection into a path (using to path under select menu).
d) stroked the path with line at 1pix in black. This created an outline of the parts.
e) Then selected the new outline (the stroked path) and cut and paste it to a transparent layer.