Create image of a head phantom
P = phantom(def, n) P = phantom(E, n)
It is a square matrix of gray scale values. The minimum value is 0 and the maximum value is 1.
It determines the type of phantom generated. It is a string.
It is a integer value and determines the size of the output matrix.
A matrix having six columns. Each row of the matrix E specifies an ellipse in the phantom image. Each column specifies a different parameter for the ellipses.
It generates an image of a head phantom which can be used to test the numerical accuracy of some two-dimensional reconstruction algorithms. The value of 'def' can take two different values. 'Shepp-Logan' - Used in tomography type of application. 'Modified Shepp-Logan' - It is the default option and is a variant of Shepp-Logan. Here the contrast quality of the image is more improved. Six different types of parameters for the six columns are given below: A - Additive intensity value of the ellipse. a - Length of the horizontal semiaxis of the ellipse. b - Length of the vertical semiaxis of the ellipse. x0 - x-coordinate of the center of the ellipse. y0 - y-coordinate of the center of the ellipse. phi - Angle in degrees between the horizontal semiaxis of the ellipse and the x-axis of the image.