Skip to content

Ellipse and circle contour detection produces incorrect results #326

@StefanoPierini-Codra

Description

@StefanoPierini-Codra

Description

Ellipse contour detection returns completely wrong results, while polygon contour detection works correctly on the same image.

Steps to reproduce

  1. Create a new image using Create > Blobs (default 512×512)
  2. Apply preprocessing (e.g. binarization via the test plugin)
  3. Run Analysis > Contour detection with:
    • Threshold: 0.5 (default)
    • Shape: Polygon → result is correct ✅
  4. Run Analysis > Contour detection again with:
    • Threshold: 0.5 (default)
    • Shape: Ellipse → result is completely wrong ❌

Expected behavior

Detected ellipses should overlay the blobs in the image, matching the contours found by the polygon mode.

Actual behavior

Ellipse contours appear at incorrect positions, not matching the actual objects in the image.

Environment

  • Sigima 1.1.2
  • scikit-image 0.26.0
  • Python 3.14
Image

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions