Reference for pyronn/ct_reconstruction/helpers/phantoms/primitives_2d.py
pyronn.ct_reconstruction.helpers.phantoms.primitives_2d.circle
Creates a simple circle primitive.
Args: shape: Shape (in [Y, X]) pos: Center (in [Y, X]) from upper left corner radius: Radius value: Value
Returns:
Type | Description |
---|---|
np.array filled with circle |
Source code in pyronn/ct_reconstruction/helpers/phantoms/primitives_2d.py
pyronn.ct_reconstruction.helpers.phantoms.primitives_2d.ellipse
Creates a simple ellipse primitive.
Args: shape: Shape (in [Y, X]) pos: Center (in [Y, X]) from upper left corner half_axes: Half axes of the ellipse (in [b, a]) value: Value phi: Rotation Angle in radians
Returns:
Type | Description |
---|---|
np.array filled with ellipse |
Source code in pyronn/ct_reconstruction/helpers/phantoms/primitives_2d.py
pyronn.ct_reconstruction.helpers.phantoms.primitives_2d.rect
Creates a simple rect primitive.
Args: shape: Shape (in [Y, X]) pos: Pos (upper left corner) (in [Y, X]) from upper left corner size: Size (in [Y, X]) value: Value
Returns:
Type | Description |
---|---|
np.array filled with rectangle |