1. A method of identifying a foreground object of an image from a background object of said image, said method comprising: generating an outer edge intensity map associated with said foreground object, wherein information associated with said image is stored in a memory component; generating a plurality of paths on a continuous edge map from said outer edge intensity map, wherein said plurality of paths on said continuous edge map is created by connecting pixels in said outer edge intensity map; and forming an edge mask by selecting one path on said continuous edge map from said plurality of paths on said continuous edge map, wherein said selecting is based on a highest average edge intensity.