MATLAB: Detecting the epicardium of LGE images

Image Processing Toolboximage segmentation

Hello everyone! Wish you all a good day!
Could you please tell me how to automatically find the epicardium on the LGE images?
Here is the image:
And this is what I want:
'imfindcircles' doesn't work on this kind of images.
Best regards

Best Answer

Neil:
Here's something to get you started. It's attached below the image as test.m. Of course it works just for this image and may not work for any possible image that you'll ever encounter. This is where you need to improve the algorithm and where all the time comes in. I just spent 5 minutes on this code but you could spend years on making it robust and general.