Main Page | Modules | Alphabetical List | Data Structures | File List | Data Fields | Globals

noise.h File Reference

#include <stdlib.h>
#include <stdio.h>
#include <sys/timeb.h>
#include <time.h>
#include <idvol.h>
#include "experience.h"
#include "object.h"

Go to the source code of this file.

Functions

double RandGaussian (double, double, int)
 Gaussian Noise generator by the Box-Muller Method.

double RandUniform (int)
 Uniform Noise generator.

void AddGaussianNoiseToRFVolume (PPPVOLUME_COMPLEX_DOUBLE, double)
 Add noise to K space volume.

void AddGaussianNoisePercentToRFVolume (PPPVOLUME_COMPLEX_DOUBLE, double)
 Add noise to K space volume.

void AddNoisePercentToObject (OBJECT3D *, double)
 Add noise to Object.

void AddNoiseToObject (OBJECT3D *, double)
 Add noise to Object.

void ApplyMeanToObject (OBJECT3D *, int)
 Apply an mean average filter ro each object component.


Function Documentation

void AddGaussianNoisePercentToRFVolume PPPVOLUME_COMPLEX_DOUBLE  volrf,
double  p
 

Add noise to K space volume.

Parameters:
volrf Pointer on the K space volume
p in to get the noise variance from the maximum of the rf signal

Definition at line 121 of file noise.c.

References IdVolDimX, IdVolDimY, IdVolDimZ, COMPLEX_DOUBLE::im, RandGaussian(), COMPLEX_DOUBLE::re, and x.

void AddGaussianNoiseToRFVolume PPPVOLUME_COMPLEX_DOUBLE  volrf,
double  s
 

Add noise to K space volume.

Parameters:
volrf Pointer on the K space volume
s Noise variance

Definition at line 91 of file noise.c.

References IdVolDimX, IdVolDimY, IdVolDimZ, COMPLEX_DOUBLE::im, RandGaussian(), COMPLEX_DOUBLE::re, and x.

void AddNoisePercentToObject OBJECT3D object,
double  p
 

Add noise to Object.

Parameters:
object Pointer on the virtual object
p in to get the noise variance from the maximum of object component

Definition at line 196 of file noise.c.

References object, RandGaussian(), and x.

void AddNoiseToObject OBJECT3D object,
double  s
 

Add noise to Object.

Parameters:
object Pointer on the virtual object
s Noise variance

Definition at line 160 of file noise.c.

References object, RandGaussian(), and x.

void ApplyMeanToObject OBJECT3D object,
int  N
 

Apply an mean average filter ro each object component.

Parameters:
object Pointer on the virtual object
N Size of the filter, must be odd, 3 recommended

Definition at line 245 of file noise.c.

References object, and x.

double RandGaussian double  s,
double  m,
int  initseed
 

Gaussian Noise generator by the Box-Muller Method.

Parameters:
s Standard deviation
m Mean
initseed seed for random init, or not if (0)
Returns:
random value

Definition at line 51 of file noise.c.

References PI, and x.

Referenced by AddGaussianNoisePercentToRFVolume(), AddGaussianNoiseToRFVolume(), AddNoisePercentToObject(), AddNoiseToObject(), and LabelToObject().

double RandUniform int  initseed  ) 
 

Uniform Noise generator.

Parameters:
initseed seed for random init, or not if (0)
Returns:
random value [0,1]

Definition at line 73 of file noise.c.

References x.


Generated on Wed Oct 19 09:28:36 2005 for SIMRI3D by doxygen 1.3.7