Geometrical Shapes

Common features

All the geometrical shapes inherit from EShape .NET Python and have these common features:

Geometrical shapes

Rectangle (ERectangle .NET Python)

Circle (ECircle .NET Python)

  • Center: ECircle.Center.

  • Radius: ECircle::GetRadius .NET Python or diameter: ECircle.Diameter.

  • Starting orientation of the circle when it is not full: ECircle.Angle.

  • The amplitude of the circle when it is not full: ECircle.Amplitude.

  • Fit a circle to a set of points: ECircle.Fit.

    ../../../_images/shapecircle.jpg

Wedge (EWedge .NET Python)

Line (ELine .NET Python)

Point set (EPointSet .NET Python)

../../../_images/shapepointset.jpg

Polygon (EPolygon .NET Python)

Ellipse (EEllipse .NET Python)

../../../_images/eellipse.webp

Note

The graphical manipulation of the ellipse is not possible at the moment.

Difference between a shape and a region or an arbitrarily shaped ROI

The objects do not have the same usage:

  • A shape is intended to just represent a shape and to perform geometric operations on that shape.

  • A region is an arbitrarily shaped region of interest in an image.

    • There are shape-based regions (ERectangleRegion .NET Python, EPolygonRegion .NET Python…) that can be constructed from their equivalent shape objects.

    • The shape-based regions inherit from ERegion .NET Python and, as such, generate, store and manage the list of pixels to be processed. They are heavier objects compared to the shape objects.