How can I see the fitted ellipse on the image?

I fitted an ellipse on the image and can see the angle of long aixs by measure menu in ROI manager. How can I see the fitted ellipse on the image?

Use the Edit>Selection>Fit Ellipse command. Here is an example:

  newImage("Untitled", "8-bit black", 500, 500, 1);
  makePolygon(156,97,309,143,389,337,202,337,128,228);
  run("Add Selection...");
  run("Fit Ellipse");

Screenshot

2 Likes

@Wayne How about without macro? just by the tabs of imagej

Hi
@Zeynab_Mousavi
You will find everything here:
https://imagej.nih.gov/ij/docs/guide/index.html

For draw polygone

19.1.6 figure images/tools/Polygon.png Polygon Selection Tool

https://imagej.nih.gov/ij/docs/guide/146-19.html#toc-Subsection-19.3
For Fit ellipse
https://imagej.nih.gov/ij/docs/guide/146-27.html#toc-Section-27

This may also interest you:

1 Like

Type ‘b’ (Image>Overlay>Add Selection) to add the selection to an overlay and then use the Edit>Selection>Fit Ellipse command to display the fitted ellipse.

2 Likes