#include <CTData.h>
Public Methods | |
CCTData () | |
virtual | ~CCTData () |
void | showData () |
void | extractPlane () |
void | getData (CString fileName) |
void | setViewDir () |
void | setViewPoints () |
void | drawViewPoints () |
void | RotateViewX (float angle) |
void | RotateViewY (float angle) |
Public Attributes | |
int | dimX |
int | dimY |
int | dimZ |
int | dimU |
int | dimV |
fftw_complex * | data |
fftw_complex * | show |
GLubyte * | show1 |
fftwnd_plan | p2D |
fftwnd_plan | p3D |
float | hlp [256] |
Vektor3f | viewPoint [4] |
Vektor3f | viewDir |
Header | header |
Protected Methods | |
void | Initialize () |
void | Destroy () |
int | linear (float t, float *coeff) |
void | FHT3D () |
void | FHT2D () |
void | FFT3D () |
void | FFT2D () |
void | shift3D () |
void | shift2D () |
float | sqr (float d) |
void | vector_hartley_transform (float *v, unsigned long size, long stride) |
|
Constructor of CCTData calls protected funtion Initialize. |
|
Destructor of CCTData calls protected function Destroy. |
|
Function destroys the plan for FFT2D, which is needed for each rendering step as the viewing direction is changed and it deletes the dynamic data structures data, show and show1 |
|
Draw the vectors of the coordinate cross. |
|
Function which determines the viewing direction, performs a rotation based on it, interpolates the points in the volume by making use of a cyclic convolution with a filter and sets the points to be rendered. Next it performs a 2D-shift, the FFT2D and the 2D-shift back. Preparation of array show1 concerning brightness and color. |
|
Function that performs the 2D Fast Fourier Transform. |
|
Function that performs the 3D Fast Fourier Transform. |
|
Function that performs the 2D Fast Hartley Transform. |
|
Function that performs the 3D Fast Hartley Transform. |
|
Read 3D-data from input file. |
|
Initializes the viewing direction and the coordinate-cross. |
|
Function for linear filter. t is a parameter in the interval [0,1) and coeff is a pointer to the array that contains the coefficients of the filter. This function returns the number of elements that were calculated as filter coefficients, in this case 2. |
|
Perform a rotation around the X axis. angle is the parameter in radians. |
|
Perform a rotation around the Y axis. angle is the parameter in radians. |
|
set the viewing direction corresponding to the rotations performed by holding the right mouse button and moving the mouse. |
|
Initialize the vectors used for drawing the coordinate cross. |
|
Function that performs a cyclic 2D shift of all elements in the 2D-array show. |
|
Function that performs a cyclic 3D shift of all elements in the 3D-array data. |
|
Used to read out 2D-array show1 and draw the corresponding points on the screen |
|
Function that calculates the square of the input value d and returns the result. |
|
Function that calculates the FHT in one dimension. v is a pointer to the array containing the values to be transformed. size is the length of v and has to be a power of 2. stride denotes the length of one step. The data is taken at intervals of length stride. |