imellipse
creates a ROI on the figure, which can be removed if you delete the associated ROI object.
Let's suppose you have used imellipse
like this -
Lesion = imellipse(handles.axes1);
Then, get all the information that you need from Lesion
and then delete it. For example, if you need the mask information from it, store it somewhere.
LesionMask = Lesion.createMask();
Now, delete the ROI object which is Lesion
.
delete(Lesion); %// Deletes the ROI related to imellipse
Read more about how to handle ROIs at Region-of-interest (ROI) base class Documentation