#include <cuda_runtime.h>
#include <vector_types.h>
Go to the source code of this file.
Functions |
int | cudaConvolve3D (float *image, float *resultBuffer, int width, int height, int depth, float *kern, int kW, int kH, int kD) |
int | cudaGradient3D (float *image, float4 *resultBuffer, int width, int height, int depth) |
int | cudaCurvature3D (float4 *gradient, float4 *resultBuffer, int width, int height, int depth) |
Function Documentation
int cudaConvolve3D |
( |
float * |
image, |
|
|
float * |
resultBuffer, |
|
|
int |
width, |
|
|
int |
height, |
|
|
int |
depth, |
|
|
float * |
kernel, |
|
|
int |
kW, |
|
|
int |
kH, |
|
|
int |
kD |
|
) |
| |
Convolves the 3D volume with cuda
- Parameters:
-
image | is the 3D volume |
resultBuffer | is a buffer for the result |
width | is the width of the volume |
height | is the height of the volume |
depth | is the depth of the volume |
kernel | is the convolution-kernel |
kW | is the kernel width |
kH | is the kernel height |
kD | is the kernel depth |
int cudaCurvature3D |
( |
float4 * |
gradient, |
|
|
float4 * |
resultBuffer, |
|
|
int |
width, |
|
|
int |
height, |
|
|
int |
depth |
|
) |
| |
Calculates the curvature with cuda
- Parameters:
-
gradient | is the gradient image |
resultBuffer | is the result buffer in which the result should be written |
width | is the width of the volume |
height | is the height of the volume |
depth | is the depth of the volume |
int cudaGradient3D |
( |
float * |
image, |
|
|
float4 * |
resultBuffer, |
|
|
int |
width, |
|
|
int |
height, |
|
|
int |
depth |
|
) |
| |
Calculates the gradient with cuda
- Parameters:
-
image | is the volume-'image' whose gradient should be calculated |
resultBuffer | is a buffer in which the gradient will be stored |
width | is the width of the volume |
height | is the height of the volume |
depth | is the depth of the volume |