makeimg.myphantom

makeimg.myphantom(N, ns=0.0)[source]

Create the famous Shepp–Logan phantom

Parameters:

N : int

Image dimension (image is an N-by-N array)

ns : float

Noise level applied to the image, i.e., 0.1 = 10% noise, 0.2 = 20% noise, etc. Thus ns has to satisfy 0 <= ns <= 1. By default ns = 0.0.

Returns:

It : NumPy 2darray

Array representation of the image (2D array)

See also

onesquare
another piece-wise constant test image
fivesquares
another piece-wise constant test image

References

[R6]Jain, Anil K., Fundamentals of Digital Image Processing, Englewood Cliffs, NJ, Prentice Hall, 1989, p. 439