create head phantom image -凯发k8网页登录
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
see also
|