uwptest Class Reference

#include <uwptest.h>

List of all members.

Public Member Functions

 uwptest (string name, alg::alg *a)
 uwptest (uwptest *atest)
 uwptest (string name, alg::alg *a, QVTKWidget *qwidget)
void setWrappedImage (float *uimage, int xsize, int ysize)
void unwrap ()
void performTest (QWidget *parent)
void create3d ()
void create3d (int height, int width, int onlysave, QString file)
void setWidget (QVTKWidget *qwidget)
void loadWrappedPhase (float xscale, float yscale)
void loadUnwrappedPhase (float xscale, float yscale)
int loadGraph ()
string getName ()
float * getWimage ()
float * getUimage ()
vtkRenderWindow * getRenderWindow (QString window)
alggetAlg ()
int getXsize ()
int getYsize ()
map< string, bool > getFlags ()
result::result * getResults ()
int loadGraph (int height, int width, int onlysave, QString file)
void setLastLoaded (int n)
int getLastLoaded ()
void ImageFullScreen (float *uimage, float xsize, float ysize, int onlysave, QString file)
float * getCimage ()
void setTestImage (float *uimage, int xsize, int ysize)
void loadTestPhase (float xscale, float yscale)
void createRef3d (int height, int width, int onlysave, QString file)
double getTestAccuracy (float *dif)
void printResults (QString file)


Detailed Description

The uwptest class holds complete information about the execution of a given algorythm over a wrapped phase distribution


Constructor & Destructor Documentation

uwptest::uwptest string  name,
alg::alg *  a
 

Constructor, takes both the name of the test and the algorythm to be applied

Parameters:
name The name of the test
a The algorythm to be applied

uwptest::uwptest uwptest atest  ) 
 

Constructor, takes both the name of the test and the algorythm to be applied

Parameters:
atest Another uwptest

uwptest::uwptest string  name,
alg::alg *  a,
QVTKWidget *  qwidget
 

Constructor, takes both the name of the test and the algorythm to be applied

Parameters:
name The name of the test
a The algorythm to be applied
qwidget The widget associated with the class


Member Function Documentation

void uwptest::create3d int  height,
int  width,
int  onlysave,
QString  file
 

Creates an VTK 3d model out of the unwrapped phase distribution in an outer window

Parameters:
height The height of the new created window
width The width of the new created window
onlysave A flag indicating if the model should be pipelined to the file specified as parameter
file The string containing the path to save the model

void uwptest::create3d  ) 
 

Creates an VTK 3d model out of the unwrapped phase distribution

void uwptest::createRef3d int  height,
int  width,
int  onlysave,
QString  file
 

Creates an VTK 3d model out of the test phase distribution in an outer window

Parameters:
height The height of the new created window
width The width of the new created window
onlysave A flag indicating that the pipeline should only be created for the image to be saved
file The name of the file the image will be saved as

alg * uwptest::getAlg  ) 
 

Returns the algorythm of this test

float * uwptest::getCimage  ) 
 

Returns the compared image

Returns:
The compared image

map< string, bool > uwptest::getFlags  ) 
 

Returns the map containing all the flags

int uwptest::getLastLoaded  ) 
 

Gets the type last widget loaded

Returns:
1 for wrapped, 2 for unwrapped,3 to plot and 4 to 3d view

string uwptest::getName  ) 
 

Returns the name of the instanciated class

vtkRenderWindow * uwptest::getRenderWindow QString  window  ) 
 

Returns the renderwindow specified in param of the wrapped phase window as default

Parameters:
window The discriminator to get the specified renderer

result::result * uwptest::getResults  ) 
 

Returns the results of the test

double uwptest::getTestAccuracy float *  dif  ) 
 

Creates an VTK 3d model out of the test phase distribution in an outer window

Parameters:
dif An array containing the differences
Returns:
The accuracy of the reconstructed image

float * uwptest::getUimage  ) 
 

Returns the unwrapped image

float * uwptest::getWimage  ) 
 

Returns the wrapped image

int uwptest::getXsize  ) 
 

Returns the size (X) of the test images

int uwptest::getYsize  ) 
 

Returns the size (X) of the test images

void uwptest::ImageFullScreen float *  uimage,
float  xsize,
float  ysize,
int  onlysave,
QString  file
 

Gets the type last widget loaded

Parameters:
uimage The image to be shown
xsize The width of the image to be shown
ysize The height of the image to be shown
onlysave A flag indicating that the pipeline should only be created for the image to be saved
file The name of the file the image will be saved as

int uwptest::loadGraph int  height,
int  width,
int  onlysave,
QString  file
 

Set the current plot to full screen

Parameters:
height The height desired
width The width desired
onlysave A flag indicating if the model should be pipelined to the file specified as parameter
file The string containing the path to save the graph

int uwptest::loadGraph  ) 
 

Loads the graphic test results in the QVTKWidget

void uwptest::loadTestPhase float  xscale,
float  yscale
 

Loads the test phase in the QVTKWidget

Parameters:
xscale Width of the compared image
yscale Height of the compared image

void uwptest::loadUnwrappedPhase float  xscale,
float  yscale
 

Loads the unwrapped phase in the QVTKWidget

void uwptest::loadWrappedPhase float  xscale,
float  yscale
 

Loads the graphics phase in the QVTKWidget

Parameters:
xscale Scale factor along the X axis
yscale Scale factor along the Y axis

void uwptest::performTest QWidget *  parent  ) 
 

Performs an incremental test with the alogrythm and the wrapped phase distribution defined for the class

void uwptest::printResults QString  file  ) 
 

Prints the result of the current text to a CSV file

Parameters:
file The file the results will be saved to

void uwptest::setLastLoaded int  n  ) 
 

Sets the type last widget loaded

Parameters:
n 1 for wrapped, 2 for unwrapped,3 to plot and 4 to 3d view

void uwptest::setTestImage float *  uimage,
int  xsize,
int  ysize
 

Defines the coomparative

Parameters:
uimage An array of floats as a representation of the wrapped phase distribution
xsize Width of the compared image
ysize Height of the compared image

void uwptest::setWidget QVTKWidget *  qwidget  ) 
 

Loads the wrapped phase in the QVTKWidget

Parameters:
qwidget The widget that will be now associated with the test

void uwptest::setWrappedImage float *  uimage,
int  xsize,
int  ysize
 

Defines the wrapped image the algorythm will work with

Parameters:
uimage An array of floats as a representation of the wrapped phase distribution
xsize The width of the new created window
ysize The height of the new created window

void uwptest::unwrap  ) 
 

Executes the unwrapping algorythm and fills the unwrappedImage variable with the output of the algorythm


The documentation for this class was generated from the following files:
Generated on Tue Sep 5 00:04:05 2006 for UWP by  doxygen 1.4.6