Depth of Field  0.1
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros
globals.h File Reference

Go to the source code of this file.

Macros

#define HANDLE_ERROR(err)   (HandleError( err, __FILE__, __LINE__ ))

Typedefs

typedef unsigned char VolumeType
typedef unsigned int uint
typedef unsigned char uchar

Functions

void init_cuda (void *h_volume, cudaExtent volumeSize, int dataset_nr)
 Implementation by kernelPBO.cu (compiled with nvcc)
void freeCudaBuffers ()
void launch_volren (dim3 gridSize, dim3 blockSize, dim3 volumeSize, uint *d_output, uint imageW, uint imageH, float density, float brightness, float transferOffset, float transferScale)
void copyInvViewMatrix (float *invViewMatrix, size_t sizeofMatrix)
void launch_DepthOfField (dim3 gridSize, dim3 blockSize, dim3 volumeSize, uint *d_output, uint imageW, uint imageH, float density, float brightness, float transferOffset, float transferScale, float alpha, bool viewChanged, float4 focusPoint, float4 camPos, float tstep)
void init_Cuda_DoF (int image_width, int image_height)
void freeCudaDofBuffers ()

Macro Definition Documentation

#define HANDLE_ERROR (   err)    (HandleError( err, __FILE__, __LINE__ ))

Typedef Documentation

typedef unsigned char uchar
typedef unsigned int uint
typedef unsigned char VolumeType

Function Documentation

void copyInvViewMatrix ( float *  invViewMatrix,
size_t  sizeofMatrix 
)
void freeCudaBuffers ( )
void freeCudaDofBuffers ( )

free DoF Buffers and textures

void init_cuda ( void *  h_volume,
cudaExtent  volumeSize,
int  dataset_nr 
)

Implementation by kernelPBO.cu (compiled with nvcc)

void init_Cuda_DoF ( int  image_width,
int  image_height 
)

Initialize DoF Buffers and textures

void launch_DepthOfField ( dim3  gridSize,
dim3  blockSize,
dim3  volumeSize,
uint d_output,
uint  imageW,
uint  imageH,
float  density,
float  brightness,
float  transferOffset,
float  transferScale,
float  alpha,
bool  viewChanged,
float4  focusPoint,
float4  camPos,
float  tstep 
)

launches the Depth of Field volume rendering cuda kernel

void launch_volren ( dim3  gridSize,
dim3  blockSize,
dim3  volumeSize,
uint d_output,
uint  imageW,
uint  imageH,
float  density,
float  brightness,
float  transferOffset,
float  transferScale 
)

launches the ordinary volume rendering cuda kernel