MorphologicalPerimeter[image, ...] yields a binary image in which pixels considered to be on the morphological perimeter have value 1 and others have value 0.
The morphological perimeter is defined to consist of foreground pixels that are directly adjacent to the background.