From: Sana on
I am trying to develop a program in Matlab that is able to detect a green-colored dotted ellipse already present in the image, and correlate that to the equations and locations of the ellipse within the image. I want to then use the ellipse's center of mass to center all of my images, which all have the similarly drawn ellipse on the object of interest.

My image has a pre-drawn green-dotted ellipse structure around my main object of interest.
I haven several such images, and I want to center all of the images using the center of mass/center of the predrawn GREEN dotted ellipse encircling my object of interest.

I've tried using the roicolor function, but it just returns a black and white image with the ellipse boundary outlined.

is there a better way to do this that you may know of? I am very new at matlab, and i am having trouble figuring this out.