phantom
Create head phantom image
Description
generates an image of a head phantom that can be used to test the numerical accuracy
of P
= phantom(def
,n
)radon
and iradon
or other two-dimensional
reconstruction algorithms. P
is a grayscale image that consists
of one large ellipse (representing the brain) containing several smaller ellipses
(representing features in the brain). def
specifies the type of
head phantom to generate, and n
specifies the number of rows
and columns in the phantom image.
Examples
Input Arguments
Output Arguments
Tips
For any given pixel in the output image, the pixel's value is equal to the sum of the additive intensity values of all ellipses that the pixel is a part of. If a pixel is not part of any ellipse, its value is 0.
The additive intensity value A
for an ellipse can be positive or
negative; if it is negative, the ellipse will be darker than the surrounding pixels.
Note that, depending on the values of A
, some pixels can have values
outside the range [0, 1].
References
[1] Jain, Anil K., Fundamentals of Digital Image Processing, Englewood Cliffs, NJ, Prentice Hall, 1989, p. 439.
Version History
Introduced before R2006a