Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

SHarmonics.cpp File Reference

#include "SHarmonics.h"
#include "TorstensFilters.h"
#include "vuVector.h"
#include "Transform.h"
#include "Image_io.h"
#include <math.h>
#include <string.h>
#include <stdio.h>

Include dependency graph for SHarmonics.cpp:

Include dependency graph

Go to the source code of this file.

Defines

#define ANGLE_TOL   20.0/180.0 * M_PI

Functions

bool inRange (float v, float value, float error)
int indexOf (int x, int xMax, int y, int yMax, int z, int zMax)
void realTrans (t_data *volume, int &xMax, int &yMax, int &zMax, t_data *Yarray[10])
void realLight (t_data sphy[], t_data lv[3])

Variables

t_data dc []
bool downsample = false


Define Documentation

#define ANGLE_TOL   20.0/180.0 * M_PI
 

Definition at line 12 of file SHarmonics.cpp.

Referenced by realTrans().


Function Documentation

int indexOf int  x,
int  xMax,
int  y,
int  yMax,
int  z,
int  zMax
 

Definition at line 23 of file SHarmonics.cpp.

Referenced by realTrans().

bool inRange float  v,
float  value,
float  error
 

Definition at line 19 of file SHarmonics.cpp.

void realLight t_data  sphy[],
t_data  lv[3]
 

Definition at line 266 of file SHarmonics.cpp.

References M_PI, pow(), and t_data.

Referenced by vu1112117::updateShLight().

Here is the call graph for this function:

void realTrans t_data *  volume,
int &  xMax,
int &  yMax,
int &  zMax,
t_data *  Yarray[10]
 

Let's compute the exact gradient, using Fourier Transform.

Let's transform the volume to frequency domain first.

Definition at line 28 of file SHarmonics.cpp.

References ANGLE_TOL, FVR_NS::computeGradient(), FVR_NS::destroyTransform3D(), vuVector::dot, downsample, dword, indexOf(), SpecFVRNS::initTransform3D(), M_PI, vuVector::norm(), vuVector::print(), SpecFVRNS::shift3D(), t_data, and SpecFVRNS::transform3D().

Referenced by vu1112117::preprocess().

Here is the call graph for this function:


Variable Documentation

t_data dc[]
 

Initial value:

{3.14198,
             2.09440,2.09440,2.09440,
             0.78520,0.78520,0.78520,0.78520,0.78520}

Definition at line 15 of file SHarmonics.cpp.

Referenced by vuSpecPalette::ClearAndHighlight(), vuLightDial::DrawShape(), vuSpecPalette::OnColourClick(), vuSpecPalette::OnCompSlider(), vuSpecPalette::OnPaint(), _HistoCanvas::OnPaint(), vuGLCanvas::onPaint(), vuSpecPalette::PaintColour(), vuSpecPalette::PaintColours(), and vuSpecPalette::PaintSpectrum().

bool downsample = false
 

Definition at line 18 of file SHarmonics.cpp.

Referenced by realTrans().


Generated on Wed Dec 15 21:20:46 2004 for vuVolume by  doxygen 1.3.9.1