1. A method of identifying a boundary in an image, the method comprising: identifying a search region containing pixels on both sides of the boundary in the image; determining, using a processing unit, a plurality of color regions corresponding to a plurality of pixel classifications, wherein an error function represents a probability that each of the pixels within the search region belongs to one of the plurality of pixel classifications; constructing, using the processing unit, an edge map by detecting edges of one or more objects in the image; and creating, using the processing unit, an active contour based on minimizing energy of the active contour using the error function and the edge map.