Description Usage Arguments Details Value Author(s) References See Also Examples
The function implements the Acceptance Rejection (AR) procedure to simulate a marked Poisson process with spatial varying intensity. Therewith it is possible to create noisy data from a phantom, as generated in Positron Emission Tomography (PET).
1 2 3 4 |
DataInt |
(matrix) A two dimensional image in which the matrix elements comply with intensities. That means the intensity of the decay of positrons in a certain tissue. |
nSample |
(integer) |
ThetaSamples |
(integer) Specifies the number of samples in the angular parameter theta in the sinogram. The sinogram is sampled linearly from |
RhoSamples |
(integer) Specifies the number of samples in the distance parameter rho in the sinogram. Defaults to |
RhoMin |
(double) Specifies the minimum sample position in the sinogram on the second axis. It is assumed that |
vect.length |
(integer) Determines a bound of number of generated accepted events in each iteration. That means, if |
image |
(logical) If |
DebugLevel |
(character) This parameter controls the level of output. Available are: The default |
The function implements the Acceptance Rejection (AR) method to simulate a marked Poisson process with spatial varying intensity. The function was developed to simulate data of a PET scanner. Therefore, new random events are generated with the AR method from DataInt
. An angle theta will be generated to each event (uniform and iid. in [0,pi]), because a PET scanner detects two photons, who will travel in (nearly) opposite directions. The line between the two detectors has the line parameters (rho,theta), whereas rho is the shortest distance from the origin of the coordinate system to the line, and theta an angle corresponding to the angular orientation of the line. The only obtainable information from the two photons is the fact, that the photon emission took place somewhere along that line.
rData |
A matrix, that contains the Radon transformed data. |
Data |
Will be returned only in case of |
Header |
A list of following values:
|
call |
Arguments of the call to |
Joern Schulz jschulz78@web.de.
Schulz, Joern, Diploma Thesis: Analyse von PET Daten unter Einsatz adaptiver Glaettungsverfahren, Humboldt-Universitaet zu Berlin, Institut fuer Mathematik, 2006.
Gentle, J.E., Elements of Computational Statistics, Springer-Verlag New York Berlin Heidelberg, 2002.
1 2 3 4 5 6 7 8 9 10 11 12 13 | ## Not run:
P <- phantom()
rP <- radon(P)
mP1 <- markPoisson(P)
mP2 <- markPoisson(P, nSample = 1000000)
viewData(list(P, mP1$Data, mP2$Data, rP$rData, mP1$rData, mP2$rData),
list("Phantom", "nSample = 200000", "nSample = 1000000",
"Radon Transfom of Phantom", "nSample = 200000",
"nSample = 1000000"))
cat("Number of generated accepted events for mP2:",sum(mP2$Data),"\n")
rm(mP1,mP2,P,rP)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.