Bases: object
Class to sample image data along an elliptical path.
The image intensities along the elliptical path can be extracted using a selection of integration algorithms.
The geometry
attribute describes the geometry of the elliptical path.
ndarray
The input image.
The semimajor axis length in pixels.
The (x, y) coordinate of the ellipse center.
The step value for growing/shrinking the semimajor axis. It can be expressed either in pixels (when linear_growth=True
) or as a relative value (when linear_growth=False
). The default is 0.1.
The ellipticity of the ellipse. The default is 0.2.
The position angle of ellipse in relation to the positive x axis of the image array (rotating towards the positive y axis). The default is 0.
The sigma-clip sigma value. The default is 3.0.
The number of sigma-clip iterations. Set to zero to skip sigma-clipping. The default is 0.
The semimajor axis growing/shrinking mode. The default is False
.
The area integration mode. The default is ‘bilinear’.
EllipseGeometry
instance or None
The geometry that describes the ellipse. This can be used in lieu of the explicit specification of parameters sma
, x0
, y0
, eps
, etc. In any case, the EllipseGeometry
instance becomes an attribute of the EllipseSample
object. The default is None
.
ndarray
The sampled values as a 2D array, where the rows contain the angles, radii, and extracted intensity values, respectively.
The mean intensity along the elliptical path.
EllipseGeometry
instance
The geometry of the elliptical path.
The local radial intensity gradient.
The error associated with the local radial intensity gradient.
The relative error associated with the local radial intensity gradient.
The average area of the sectors along the elliptical path from which the sample values were integrated.
The total number of sample values that would cover the entire elliptical path.
The actual number of sample values that were taken from the image. It can be smaller than total_points
when the ellipse encompasses regions outside the image, or when sigma-clipping removed some of the points.
Methods Summary
Methods Documentation
Return the (x, y) coordinates associated with each sampled point.
ndarray
The x and y coordinate arrays.
Extract sample data by scanning an elliptical path over the image array.
ndarray
The rows of the array contain the angles, radii, and extracted intensity values, respectively.
Update this EllipseSample
instance.
This method calls the extract()
method to get the values that match the current geometry
attribute, and then computes the mean intensity, local gradient, and other associated quantities.
None
or array_like, optional
An array of the fixed parameters. Must have 4 elements, corresponding to x center, y center, PA, and EPS.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4