Hi Sandhu. I wish to apply your algorithm on a set of images in time sequence with 30 frames per second for 5 seconds. So there are approx 150 images and i wish the code to detect the same contour in all the images. I am successfull in doing this on one image
What you will need to have your own initalization is simply comment out the line where I pre-load a binary mask. Also, when you call "run.m", do not give it a mask variable.
This will invoke "run.m" to call a user initialization program.