Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
First you have to identify the object to be isolated. Then draw a border around that object such that the difference of pixels values along that border crosses a certain threshold.
You can also use a high pass filter on the image and then comparing the output from HPF with the original (by Matlab script) find out the border. In this case the distance of the transition band from the center of the filter will decide the position of the nature of border.