I have an binary image as shown below.
As can be seen in the image there is an edge which looks like an arc of an ellipse, as illustrated below. The red pixels are marked manually by myself for illustrations purposes.
My final goal is to fit an ellipse to the pixels that are colored in red in the above picture. This fitted ellipse is shown in below.
Could someone kindly tell me how I can get the pixels that are marked as red in the second image using MATLAB image processing? I will then use them for an elliptical fitting and I know how to fit the red pixels to an ellipse. At this moment, I want to find a way to get the red pixels.