wrap_c_cuda.h File Reference

#include "cudadefs.h"
Include dependency graph for wrap_c_cuda.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void cuda_c_getRGBY (const float3_t *src, float *rgptr, float *byptr, const float thresh, const float min_range, const float max_range, const int w, const int h, const int tile_width, const int tile_height)
 Get double color opponency maps.
void cuda_c_toRGB (float3_t *dst, const float *src, int sz, const int tile_len)
 Convert luminance to an RGB formatted image (which will still be grayscale).
void cuda_c_getComponents (const float3_t *srcptr, float *rptr, float *gptr, float *bptr, int w, int h, int tile_width, int tile_height)
 Get color components of an RGB image.
void cuda_c_luminance (float3_t *aptr, float *dptr, int w, int h, int tile_width, int tile_height)
 Get luminance using (r+g+b)/3 calculation.
void cuda_c_luminanceNTSC (float3_t *aptr, float *dptr, int w, int h, int tile_width, int tile_height)
 Get luminance using Matlab's NTSC calculation.
void cuda_c_drawFilledRect (float *dst, int top, int left, int bottom, int right, const float intensity, const int w, const int h, const int tile_width, const int tile_height)
 Draw a filled in rectangle on top of an image with a particular intensity.
void cuda_c_drawFilledRectRGB (float3_t *dst, int top, int left, int bottom, int right, const float3_t *color, const int w, const int h, const int tile_width, const int tile_height)
 Draw a filled in rectangle on top of an image with a particular intensity.
void cuda_c_lowpass_5_x_dec_x (const float *src, const unsigned int w, const unsigned int h, float *dst, int tile_width)
 Convolve and decimate in X direction with 5-tap lowpass filter.
void cuda_c_lowpass_5_y_dec_y (const float *src, const unsigned int w, const unsigned int h, float *dst, int tile_width, int tile_height)
 Convolve and decimate in Y direction with 5-tap lowpass filter.
void cuda_c_lowpass_9_x (const float *src, const unsigned int w, const unsigned int h, float *dst, int tile_width)
 Convolve in X direction with 9-tap lowpass filter.
void cuda_c_lowpass_9_y (const float *src, const unsigned int w, const unsigned int h, float *dst, int tile_width, int tile_height)
 Convolve in Y direction with 9-tap lowpass filter.
void cuda_c_lowpass_9_x_dec_x (const float *src, const unsigned int w, const unsigned int h, float *dst, const int dw, const int dh, int tile_width)
 Convolve and decimate in X direction with 9-tap lowpass filter.
void cuda_c_lowpass_9_y_dec_y (const float *src, const unsigned int w, const unsigned int h, float *dst, const int dw, const int dh, int tile_width, int tile_height)
 Convolve and decimate in Y direction with 9-tap lowpass filter.
void cuda_c_lowpass_texture_9_x_dec_x (const float *src, int w, int h, float *dst, int dw, int dh, int tile_width, int tile_height)
 Convolve and decimate in X direction with 9-tap lowpass filter using texture memory.
void cuda_c_lowpass_texture_9_y_dec_y (const float *src, int w, int h, float *dst, int dw, int dh, int tile_width, int tile_height)
 Convolve and decimate in Y direction with 9-tap lowpass filter using texture memory.
void cuda_c_lowpass_5_x (const float *src, const unsigned int w, const unsigned int h, float *dst, int tile_width)
 Convolve in X direction with 5-tap lowpass filter.
void cuda_c_lowpass_5_y (const float *src, const unsigned int w, const unsigned int h, float *dst, int tile_width, int tile_height)
 Convolve in Y direction with 5-tap lowpass filter.
void cuda_c_lowpass_3_x (const float *src, const unsigned int w, const unsigned int h, float *dst, int tile_width)
 Convolve in X direction with 3-tap lowpass filter.
void cuda_c_lowpass_3_y (const float *src, const unsigned int w, const unsigned int h, float *dst, int tile_width, int tile_height)
 Convolve in Y direction with 3-tap lowpass filter.
void cuda_c_dec_xy (const float *src, float *dst, const int x_factor, const int y_factor, const unsigned int w, const unsigned int h, int tile_width)
 Decimate image in the X and Y directions by factors.
void cuda_c_dec_x (const float *src, float *dst, const int x_factor, const unsigned int w, const unsigned int h, int tile_width)
 Decimate image in X direction.
void cuda_c_dec_y (const float *src, float *dst, const int y_factor, const unsigned int w, const unsigned int h, int tile_width)
 Decimate image in Y direction.
void cuda_c_quickLocalAvg (const float *in, float *res, float fac, int lw, int lh, int sw, int sh, int tile_width, int tile_height)
 Take a local average of size scalex by scaley.
void cuda_c_quickLocalAvg2x2 (const float *in, float *res, int lw, int lh, int sw, int sh, int tile_width, int tile_height)
 Take a local average of 2x2 blocks.
void cuda_c_quickLocalMax (const float *in, float *res, int lw, int lh, int sw, int sh, int tile_width, int tile_height)
 Take a local max of size scalex by scaley.
void cuda_c_rescaleBilinear (const float *src, float *res, float sw, float sh, int orig_w, int orig_h, int new_w, int new_h, int tile_width, int tile_height)
 Rescale image using bilinear interpolation.
void cuda_c_rescaleBilinearRGB (const float3_t *src, float3_t *res, float sw, float sh, int orig_w, int orig_h, int new_w, int new_h, int tile_width, int tile_height)
 Rescale RGB image using bilinear interpolation.
void cuda_c_inplaceRectify (float *ptr, const int tile_len, const int sz)
 Rectify image.
void cuda_c_inplaceClamp (float *ptr, const float cmin, const float cmax, const int tile_len, const int sz)
 Clamp image.
void cuda_c_inplaceNormalize (float *src, const float *omin, const float *omax, const float nmin, const float nmax, const int tile_len, const int sz)
 Normalize an image inplace given the old min/max and the new min max.
void cuda_c_abs (float *src, const int tile_len, const int sz)
 Take absolute value of the image.
void cuda_c_clear (float *src, const float val, const int tile_len, const int sz)
 Set the value of an entire image to a particular value.
void cuda_c_inplaceAddScalar (float *ptr, const float *offset, const int tile_len, const int sz)
 Add device scalar inplace.
void cuda_c_inplaceSubtractScalar (float *ptr, const float *offset, const int tile_len, const int sz)
 Subtract device scalar inplace.
void cuda_c_inplaceMultiplyScalar (float *ptr, const float *offset, const int tile_len, const int sz)
 Multiply device scalar inplace.
void cuda_c_inplaceDivideScalar (float *ptr, const float *offset, const int tile_len, const int sz)
 Divide device scalar inplace.
void cuda_c_inplaceAddHostScalar (float *ptr, const float val, const int tile_len, const int sz)
 Add host scalar.
void cuda_c_inplaceSubtractHostScalar (float *ptr, const float val, const int tile_len, const int sz)
 Subtract host scalar.
void cuda_c_inplaceMultiplyHostScalar (float *ptr, const float val, const int tile_len, const int sz)
 Multiply host scalar.
void cuda_c_inplaceDivideHostScalar (float *ptr, const float val, const int tile_len, const int sz)
 Divide host scalar.
void cuda_c_inplaceAddImages (float *im1, const float *im2, const int tile_len, const int sz)
 Add images inplace.
void cuda_c_inplaceSubtractImages (float *im1, const float *im2, const int tile_len, const int sz)
 Subtract images inplace.
void cuda_c_inplaceMultiplyImages (float *im1, const float *im2, const int tile_len, const int sz)
 Multiply images inplace.
void cuda_c_inplaceDivideImages (float *im1, const float *im2, const int tile_len, const int sz)
 Divide images inplace.
void cuda_c_addImages (const float *im1, const float *im2, float *res, const int tile_len, const int sz)
 Add images.
void cuda_c_subtractImages (const float *im1, const float *im2, float *res, const int tile_len, const int sz)
 Subtract images.
void cuda_c_multiplyImages (const float *im1, const float *im2, float *res, const int tile_len, const int sz)
 Multiply images.
void cuda_c_divideImages (const float *im1, const float *im2, float *res, const int tile_len, const int sz)
 Divide images.
void cuda_c_takeMax (const float *im1, const float *im2, float *res, const int tile_len, const int sz)
 Take the max of each pixel from the two input images as the output.
void cuda_c_addScalar (const float *im1, const float *im2, float *res, const int tile_len, const int sz)
 Add device scalar.
void cuda_c_subtractScalar (const float *im1, const float *im2, float *res, const int tile_len, const int sz)
 Subtract device scalar.
void cuda_c_multiplyScalar (const float *im1, const float *im2, float *res, const int tile_len, const int sz)
 Multiply device scalar.
void cuda_c_divideScalar (const float *im1, const float *im2, float *res, const int tile_len, const int sz)
 Divide device scalar.
void cuda_c_addHostScalar (const float *im1, const float val, float *res, const int tile_len, const int sz)
 Add host scalar.
void cuda_c_subtractHostScalar (const float *im1, const float val, float *res, const int tile_len, const int sz)
 Subtract host scalar.
void cuda_c_multiplyHostScalar (const float *im1, const float val, float *res, const int tile_len, const int sz)
 Multiply host scalar.
void cuda_c_divideHostScalar (const float *im1, const float val, float *res, const int tile_len, const int sz)
 Divide host scalar.
void cuda_c_getMin (const float *src, float *dest, float *buf, const int tile_len, const int sz)
 Get the global min of an image.
void cuda_c_getMax (const float *src, float *dest, float *buf, const int tile_len, const int sz)
 Get the global max of an image.
void cuda_c_getAvg (const float *src, float *dest, float *buf, const int tile_len, const int sz)
 Get the global avg of an image.
void cuda_c_getSum (const float *src, float *dest, float *buf, const int tile_len, const int sz)
 Get the sum of all of the pixels of the image.
void cuda_c_squared (const float *im, float *res, const int tile_len, const int sz)
 Square each pixel.
void cuda_c_sqrt (const float *im, float *res, const int tile_len, const int sz)
 Take square root of each pixel.
void cuda_c_quadEnergy (const float *real, const float *imag, float *out, int tile_len, int sz)
 Get the quad energy.
void cuda_c_inplaceAttenuateBorders (float *im, int borderSize, int tile_len, int w, int h)
 Progressive attenuation of the border of an image.
void cuda_c_findMax (const float *src, float *buf, int *loc, const int tile_len, const int sz)
 Find the index of the largest value of an image.
void cuda_c_findMin (const float *src, float *buf, int *loc, const int tile_len, const int sz)
 Find the index of the lowest value of an image.
void cuda_c_dogFilterHmax (float *dest, const float theta, const float gamma, const int size, const float div, const int tile_width, const int tile_height)
 Generate a difference of Gaussian filter as parameterized by HMAX.
void cuda_c_dogFilter (float *dest, float theta, float stddev, int half_size, int size, int tile_width, int tile_height)
 Generate a difference of Gaussian filter.
void cuda_c_gaborFilter3 (float *kern, const float major_stddev, const float minor_stddev, const float period, const float phase, const float theta, const int size, const int tile_len, const int sz)
 Generate gabor kernel.
void cuda_c_gaussian (float *res, float c, float sig22, int hw, int tile_len, int sz)
 Generate a 1D Gaussian kernel.
void cuda_c_orientedFilter (const float *src, float *re, float *im, const float kx, const float ky, const float intensity, const int w, const int h, const int tile_width)
 Run 2d oriented filter over image.
void cuda_c_centerSurroundAbs (const float *center, const float *surround, float *res, int lw, int lh, int sw, int sh, int tile_width)
 Compute abs(Center-Surround).
void cuda_c_centerSurroundClamped (const float *center, const float *surround, float *res, int lw, int lh, int sw, int sh, int tile_width)
 Compute rectified(Center-Surround).
void cuda_c_centerSurroundDirectional (const float *center, const float *surround, float *pos, float *neg, int lw, int lh, int sw, int sh, int tile_width)
 Compute pos(Center-Surround) and neg(Center-Surround) separately to maintain direction.
void cuda_c_centerSurroundAbsAttenuate (const float *center, const float *surround, float *res, int lw, int lh, int sw, int sh, int attBorder, int tile_width, int tile_height)
 Compute abs(Center-Surround) with an attenuated border.
void cuda_c_spatialPoolMax (const float *src, float *res, float *buf1, float *buf2, const int src_w_in, const int src_h_in, const int skip_w_in, const int skip_h_in, const int reg_w_in, const int reg_h_in, int tile_width_in, int tile_height_in)
 Do local max over a window of activation.
void cuda_c_seedMT (unsigned int seed)
 Seed the random number generator -- MANDATORY!
void cuda_c_randomMT (float *d_Random, int numVals, int tile_len)
 Get a bank of random numbers.
void cuda_c_inplaceAddBGnoise2 (float *in, float *rnd, const int brd_siz, const float range, int w, int h, int tile_len)
 Add background noise to the image.
void cuda_c_convolveHmaxHelper (float *res, const float *src, const int src_w, const int src_h, const float *f, const int Nx, const int Ny, const int tile_width, const int tile_height)
 Hmax image energy normalized convolution.
void cuda_c_convolveZeroHelper (float *res, const float *src, const int src_w, const int src_h, const float *f, const int Nx, const int Ny, const int tile_width, const int tile_height)
 Zero boundary convolution.
void cuda_c_convolveCleanHelper (float *res, const float *src, const int src_w, const int src_h, const float *f, const int Nx, const int Ny, const int tile_width, const int tile_height)
 Clean boundary convolution.
void cuda_c_convolveHmaxHelperOptimized (float *res, const float *src, const int src_w, const int src_h, const float *f, const int Nx, const int Ny, const int tile_width, const int tile_height)
 Optimized Hmax image energy normalized convolution.
void cuda_c_convolveZeroHelperOptimized (float *res, const float *src, const int src_w, const int src_h, const float *f, const int Nx, const int Ny, const int tile_width, const int tile_height)
 Optimized zero boundary convolution.
void cuda_c_optConvolve (float *res, const float *src, const int src_w, const int src_h, const float *f, const int fil_w, const int fil_h, const int tile_width, const int tile_height)
 Optimized convolution.
void cuda_c_xFilterZero (float *res, const float *src, const int src_w, const int src_h, const float *f, const int hfs, const int share_len, const int tile_len)
 Zero boundary X dimension separable filter convolution.
void cuda_c_xFilterClean (float *res, const float *src, const int src_w, const int src_h, const float *f, const int hfs, const int share_len, const int tile_len)
 Clean boundary X dimension separable filter convolution.
void cuda_c_xFilterReplicate (float *res, const float *src, const int src_w, const int src_h, const float *f, const int hfs, const int share_len, const int tile_len)
 Replicated boundary X dimension separable filter convolution.
void cuda_c_yFilterZero (float *res, const float *src, const int src_w, const int src_h, const float *f, const int hfs, const int share_len, const int tile_len)
 Zero boundary Y dimension separable filter convolution.
void cuda_c_yFilterClean (float *res, const float *src, const int src_w, const int src_h, const float *f, const int hfs, const int share_len, const int tile_len)
 Clean boundary Y dimension separable filter convolution.
void cuda_c_yFilterReplicate (float *res, const float *src, const int src_w, const int src_h, const float *f, const int hfs, const int share_len, const int tile_len)
 Replicated boundary Y dimension separable filter convolution.
void cuda_c_optXFilterZero (float *res, const float *src, const int src_w, const int src_h, const float *f, const int hfs, const int tile_len)
 Optimized version of zero boundary X dimension separable filter, limited to only a certain size.
void cuda_c_optYFilterZero (float *res, const float *src, const int src_w, const int src_h, const float *f, const int hfs, const int tile_len)
 Optimized version of zero boundary Y dimension separable filter, limited to only a certain size.
void cuda_c_optXFilterClean (float *res, const float *src, const int src_w, const int src_h, const float *f, const int hfs, const int tile_len)
 Optimized version of clean boundary X dimension separable filter, limited to only a certain size.
void cuda_c_optYFilterClean (float *res, const float *src, const int src_w, const int src_h, const float *f, const int hfs, const int tile_len)
 Optimized version of clean boundary Y dimension separable filter, limited to only a certain size.
void cuda_c_optXFilterReplicate (float *res, const float *src, const int src_w, const int src_h, const float *f, const int hfs, const int tile_len)
 Optimized version of replicate boundary X dimension separable filter, limited to only a certain size.
void cuda_c_optYFilterReplicate (float *res, const float *src, const int src_w, const int src_h, const float *f, const int hfs, const int tile_len)
 Optimized version of replicate boundary Y dimension separable filter, limited to only a certain size.
void cuda_2_debayer (float *src, float3_t *dptr, int w, int h, int tile_width, int tile_height)
 Debayer the image.
void cuda_c_crop (const float *src, float *res, int srcw, int srch, int startx, int starty, int endx, int endy, int maxx, int maxy, int tile_width, int tile_height)
 Crop the image.
void cuda_c_shiftImage (const float *src, float *dst, int w, int h, float deltax, float deltay, int tile_width, int tile_height)
 Translate image by deltax, deltay.
void cuda_c_inplacePaste (float *dst, const float *img, int w, int h, int iw, int ih, int dx, int dy, int tile_width, int tile_height)
void cuda_c_inplacePasteRGB (float3_t *dst, const float3_t *img, int w, int h, int iw, int ih, int dx, int dy, int tile_width, int tile_height)
void cuda_c_inplaceOverlay (float *dst, const float *img, int w, int h, int iw, int ih, int dx, int dy, int tile_width, int tile_height)
void cuda_c_inplaceOverlayRGB (float3_t *dst, const float3_t *img, int w, int h, int iw, int ih, int dx, int dy, int tile_width, int tile_height)
void cuda_c_inertiaMap (float_t *dst, float s, float r_inv, int px, int py, int tile_width, int tile_height, int w, int h)
void cuda_c_inhibitionMap (float *dst, float factorOld, float factorNew, float radius, int px, int py, int tile_width, int tile_height, int w, int h)

Detailed Description

CUDA/GPU optimized saliency code

Definition in file wrap_c_cuda.h.


Function Documentation

void cuda_2_debayer ( float *  src,
float3_t dptr,
int  w,
int  h,
int  tile_width,
int  tile_height 
)

Debayer the image.

Definition at line 864 of file wrap_c_cuda.cu.

void cuda_c_abs ( float *  src,
const int  tile_len,
const int  sz 
)

Take absolute value of the image.

Definition at line 254 of file wrap_c_cuda.cu.

void cuda_c_addHostScalar ( const float *  im1,
const float  val,
float *  res,
const int  tile_len,
const int  sz 
)

Add host scalar.

Definition at line 409 of file wrap_c_cuda.cu.

void cuda_c_addImages ( const float *  im1,
const float *  im2,
float *  res,
const int  tile_len,
const int  sz 
)

Add images.

Definition at line 346 of file wrap_c_cuda.cu.

void cuda_c_addScalar ( const float *  im1,
const float *  im2,
float *  res,
const int  tile_len,
const int  sz 
)

Add device scalar.

Definition at line 381 of file wrap_c_cuda.cu.

void cuda_c_centerSurroundAbs ( const float *  center,
const float *  surround,
float *  res,
int  lw,
int  lh,
int  sw,
int  sh,
int  tile_width 
)

Compute abs(Center-Surround).

Definition at line 613 of file wrap_c_cuda.cu.

void cuda_c_centerSurroundAbsAttenuate ( const float *  center,
const float *  surround,
float *  res,
int  lw,
int  lh,
int  sw,
int  sh,
int  attBorder,
int  tile_width,
int  tile_height 
)

Compute abs(Center-Surround) with an attenuated border.

Definition at line 640 of file wrap_c_cuda.cu.

void cuda_c_centerSurroundClamped ( const float *  center,
const float *  surround,
float *  res,
int  lw,
int  lh,
int  sw,
int  sh,
int  tile_width 
)

Compute rectified(Center-Surround).

Definition at line 622 of file wrap_c_cuda.cu.

void cuda_c_centerSurroundDirectional ( const float *  center,
const float *  surround,
float *  pos,
float *  neg,
int  lw,
int  lh,
int  sw,
int  sh,
int  tile_width 
)

Compute pos(Center-Surround) and neg(Center-Surround) separately to maintain direction.

Definition at line 631 of file wrap_c_cuda.cu.

void cuda_c_clear ( float *  src,
const float  val,
const int  tile_len,
const int  sz 
)

Set the value of an entire image to a particular value.

Definition at line 247 of file wrap_c_cuda.cu.

void cuda_c_convolveCleanHelper ( float *  res,
const float *  src,
const int  src_w,
const int  src_h,
const float *  f,
const int  Nx,
const int  Ny,
const int  tile_width,
const int  tile_height 
)

Clean boundary convolution.

Definition at line 746 of file wrap_c_cuda.cu.

void cuda_c_convolveHmaxHelper ( float *  res,
const float *  src,
const int  src_w,
const int  src_h,
const float *  f,
const int  Nx,
const int  Ny,
const int  tile_width,
const int  tile_height 
)

Hmax image energy normalized convolution.

Definition at line 730 of file wrap_c_cuda.cu.

void cuda_c_convolveHmaxHelperOptimized ( float *  res,
const float *  src,
const int  src_w,
const int  src_h,
const float *  f,
const int  Nx,
const int  Ny,
const int  tile_width,
const int  tile_height 
)

Optimized Hmax image energy normalized convolution.

Definition at line 754 of file wrap_c_cuda.cu.

void cuda_c_convolveZeroHelper ( float *  res,
const float *  src,
const int  src_w,
const int  src_h,
const float *  f,
const int  Nx,
const int  Ny,
const int  tile_width,
const int  tile_height 
)

Zero boundary convolution.

Definition at line 738 of file wrap_c_cuda.cu.

void cuda_c_convolveZeroHelperOptimized ( float *  res,
const float *  src,
const int  src_w,
const int  src_h,
const float *  f,
const int  Nx,
const int  Ny,
const int  tile_width,
const int  tile_height 
)

Optimized zero boundary convolution.

Definition at line 762 of file wrap_c_cuda.cu.

void cuda_c_crop ( const float *  src,
float *  res,
int  srcw,
int  srch,
int  startx,
int  starty,
int  endx,
int  endy,
int  maxx,
int  maxy,
int  tile_width,
int  tile_height 
)

Crop the image.

Definition at line 871 of file wrap_c_cuda.cu.

void cuda_c_dec_x ( const float *  src,
float *  dst,
const int  x_factor,
const unsigned int  w,
const unsigned int  h,
int  tile_width 
)

Decimate image in X direction.

Definition at line 189 of file wrap_c_cuda.cu.

void cuda_c_dec_xy ( const float *  src,
float *  dst,
const int  x_factor,
const int  y_factor,
const unsigned int  w,
const unsigned int  h,
int  tile_width 
)

Decimate image in the X and Y directions by factors.

Definition at line 181 of file wrap_c_cuda.cu.

void cuda_c_dec_y ( const float *  src,
float *  dst,
const int  y_factor,
const unsigned int  w,
const unsigned int  h,
int  tile_width 
)

Decimate image in Y direction.

Definition at line 197 of file wrap_c_cuda.cu.

void cuda_c_divideHostScalar ( const float *  im1,
const float  val,
float *  res,
const int  tile_len,
const int  sz 
)

Divide host scalar.

Definition at line 430 of file wrap_c_cuda.cu.

void cuda_c_divideImages ( const float *  im1,
const float *  im2,
float *  res,
const int  tile_len,
const int  sz 
)

Divide images.

Definition at line 367 of file wrap_c_cuda.cu.

void cuda_c_divideScalar ( const float *  im1,
const float *  im2,
float *  res,
const int  tile_len,
const int  sz 
)

Divide device scalar.

Definition at line 402 of file wrap_c_cuda.cu.

void cuda_c_dogFilter ( float *  dest,
float  theta,
float  stddev,
int  half_size,
int  size,
int  tile_width,
int  tile_height 
)

Generate a difference of Gaussian filter.

Definition at line 583 of file wrap_c_cuda.cu.

void cuda_c_dogFilterHmax ( float *  dest,
const float  theta,
const float  gamma,
const int  size,
const float  div,
const int  tile_width,
const int  tile_height 
)

Generate a difference of Gaussian filter as parameterized by HMAX.

Definition at line 576 of file wrap_c_cuda.cu.

void cuda_c_drawFilledRect ( float *  dst,
int  top,
int  left,
int  bottom,
int  right,
const float  intensity,
const int  w,
const int  h,
const int  tile_width,
const int  tile_height 
)

Draw a filled in rectangle on top of an image with a particular intensity.

Definition at line 65 of file wrap_c_cuda.cu.

void cuda_c_drawFilledRectRGB ( float3_t dst,
int  top,
int  left,
int  bottom,
int  right,
const float3_t color,
const int  w,
const int  h,
const int  tile_width,
const int  tile_height 
)

Draw a filled in rectangle on top of an image with a particular intensity.

Definition at line 76 of file wrap_c_cuda.cu.

void cuda_c_findMax ( const float *  src,
float *  buf,
int *  loc,
const int  tile_len,
const int  sz 
)

Find the index of the largest value of an image.

Definition at line 544 of file wrap_c_cuda.cu.

void cuda_c_findMin ( const float *  src,
float *  buf,
int *  loc,
const int  tile_len,
const int  sz 
)

Find the index of the lowest value of an image.

Definition at line 559 of file wrap_c_cuda.cu.

void cuda_c_gaborFilter3 ( float *  kern,
const float  major_stddev,
const float  minor_stddev,
const float  period,
const float  phase,
const float  theta,
const int  size,
const int  tile_len,
const int  sz 
)

Generate gabor kernel.

Definition at line 590 of file wrap_c_cuda.cu.

void cuda_c_gaussian ( float *  res,
float  c,
float  sig22,
int  hw,
int  tile_len,
int  sz 
)

Generate a 1D Gaussian kernel.

Definition at line 599 of file wrap_c_cuda.cu.

void cuda_c_getAvg ( const float *  src,
float *  dest,
float *  buf,
const int  tile_len,
const int  sz 
)

Get the global avg of an image.

Definition at line 486 of file wrap_c_cuda.cu.

void cuda_c_getComponents ( const float3_t srcptr,
float *  rptr,
float *  gptr,
float *  bptr,
int  w,
int  h,
int  tile_width,
int  tile_height 
)

Get color components of an RGB image.

Definition at line 40 of file wrap_c_cuda.cu.

void cuda_c_getMax ( const float *  src,
float *  dest,
float *  buf,
const int  tile_len,
const int  sz 
)

Get the global max of an image.

Definition at line 473 of file wrap_c_cuda.cu.

void cuda_c_getMin ( const float *  src,
float *  dest,
float *  buf,
const int  tile_len,
const int  sz 
)

Get the global min of an image.

Definition at line 459 of file wrap_c_cuda.cu.

void cuda_c_getRGBY ( const float3_t src,
float *  rgptr,
float *  byptr,
const float  thresh,
const float  min_range,
const float  max_range,
const int  w,
const int  h,
const int  tile_width,
const int  tile_height 
)

Get double color opponency maps.

Note that src and dst should have been allocated already by the caller in DEVICE memory, and source data should have been copied to src. The caller may have to copy the result back to host memory if no further GPU processing is needed.

Definition at line 23 of file wrap_c_cuda.cu.

void cuda_c_getSum ( const float *  src,
float *  dest,
float *  buf,
const int  tile_len,
const int  sz 
)

Get the sum of all of the pixels of the image.

Definition at line 499 of file wrap_c_cuda.cu.

void cuda_c_inplaceAddBGnoise2 ( float *  in,
float *  rnd,
const int  brd_siz,
const float  range,
int  w,
int  h,
int  tile_len 
)

Add background noise to the image.

Definition at line 723 of file wrap_c_cuda.cu.

void cuda_c_inplaceAddHostScalar ( float *  ptr,
const float  val,
const int  tile_len,
const int  sz 
)

Add host scalar.

Definition at line 289 of file wrap_c_cuda.cu.

void cuda_c_inplaceAddImages ( float *  im1,
const float *  im2,
const int  tile_len,
const int  sz 
)

Add images inplace.

Definition at line 318 of file wrap_c_cuda.cu.

void cuda_c_inplaceAddScalar ( float *  ptr,
const float *  offset,
const int  tile_len,
const int  sz 
)

Add device scalar inplace.

Definition at line 261 of file wrap_c_cuda.cu.

void cuda_c_inplaceAttenuateBorders ( float *  im,
int  borderSize,
int  tile_len,
int  w,
int  h 
)

Progressive attenuation of the border of an image.

Definition at line 534 of file wrap_c_cuda.cu.

void cuda_c_inplaceClamp ( float *  ptr,
const float  cmin,
const float  cmax,
const int  tile_len,
const int  sz 
)

Clamp image.

Definition at line 444 of file wrap_c_cuda.cu.

void cuda_c_inplaceDivideHostScalar ( float *  ptr,
const float  val,
const int  tile_len,
const int  sz 
)

Divide host scalar.

Definition at line 310 of file wrap_c_cuda.cu.

void cuda_c_inplaceDivideImages ( float *  im1,
const float *  im2,
const int  tile_len,
const int  sz 
)

Divide images inplace.

Definition at line 339 of file wrap_c_cuda.cu.

void cuda_c_inplaceDivideScalar ( float *  ptr,
const float *  offset,
const int  tile_len,
const int  sz 
)

Divide device scalar inplace.

Definition at line 282 of file wrap_c_cuda.cu.

void cuda_c_inplaceMultiplyHostScalar ( float *  ptr,
const float  val,
const int  tile_len,
const int  sz 
)

Multiply host scalar.

Definition at line 303 of file wrap_c_cuda.cu.

void cuda_c_inplaceMultiplyImages ( float *  im1,
const float *  im2,
const int  tile_len,
const int  sz 
)

Multiply images inplace.

Definition at line 332 of file wrap_c_cuda.cu.

void cuda_c_inplaceMultiplyScalar ( float *  ptr,
const float *  offset,
const int  tile_len,
const int  sz 
)

Multiply device scalar inplace.

Definition at line 275 of file wrap_c_cuda.cu.

void cuda_c_inplaceNormalize ( float *  src,
const float *  omin,
const float *  omax,
const float  nmin,
const float  nmax,
const int  tile_len,
const int  sz 
)

Normalize an image inplace given the old min/max and the new min max.

Definition at line 452 of file wrap_c_cuda.cu.

void cuda_c_inplaceRectify ( float *  ptr,
const int  tile_len,
const int  sz 
)

Rectify image.

Definition at line 437 of file wrap_c_cuda.cu.

void cuda_c_inplaceSubtractHostScalar ( float *  ptr,
const float  val,
const int  tile_len,
const int  sz 
)

Subtract host scalar.

Definition at line 296 of file wrap_c_cuda.cu.

void cuda_c_inplaceSubtractImages ( float *  im1,
const float *  im2,
const int  tile_len,
const int  sz 
)

Subtract images inplace.

Definition at line 325 of file wrap_c_cuda.cu.

void cuda_c_inplaceSubtractScalar ( float *  ptr,
const float *  offset,
const int  tile_len,
const int  sz 
)

Subtract device scalar inplace.

Definition at line 268 of file wrap_c_cuda.cu.

void cuda_c_lowpass_3_x ( const float *  src,
const unsigned int  w,
const unsigned int  h,
float *  dst,
int  tile_width 
)

Convolve in X direction with 3-tap lowpass filter.

Definition at line 161 of file wrap_c_cuda.cu.

void cuda_c_lowpass_3_y ( const float *  src,
const unsigned int  w,
const unsigned int  h,
float *  dst,
int  tile_width,
int  tile_height 
)

Convolve in Y direction with 3-tap lowpass filter.

Definition at line 171 of file wrap_c_cuda.cu.

void cuda_c_lowpass_5_x ( const float *  src,
const unsigned int  w,
const unsigned int  h,
float *  dst,
int  tile_width 
)

Convolve in X direction with 5-tap lowpass filter.

Definition at line 141 of file wrap_c_cuda.cu.

void cuda_c_lowpass_5_x_dec_x ( const float *  src,
const unsigned int  w,
const unsigned int  h,
float *  dst,
int  tile_width 
)

Convolve and decimate in X direction with 5-tap lowpass filter.

Definition at line 86 of file wrap_c_cuda.cu.

void cuda_c_lowpass_5_y ( const float *  src,
const unsigned int  w,
const unsigned int  h,
float *  dst,
int  tile_width,
int  tile_height 
)

Convolve in Y direction with 5-tap lowpass filter.

Definition at line 151 of file wrap_c_cuda.cu.

void cuda_c_lowpass_5_y_dec_y ( const float *  src,
const unsigned int  w,
const unsigned int  h,
float *  dst,
int  tile_width,
int  tile_height 
)

Convolve and decimate in Y direction with 5-tap lowpass filter.

Definition at line 96 of file wrap_c_cuda.cu.

void cuda_c_lowpass_9_x ( const float *  src,
const unsigned int  w,
const unsigned int  h,
float *  dst,
int  tile_width 
)

Convolve in X direction with 9-tap lowpass filter.

Definition at line 106 of file wrap_c_cuda.cu.

void cuda_c_lowpass_9_x_dec_x ( const float *  src,
const unsigned int  w,
const unsigned int  h,
float *  dst,
const int  dw,
const int  dh,
int  tile_width 
)

Convolve and decimate in X direction with 9-tap lowpass filter.

Definition at line 123 of file wrap_c_cuda.cu.

void cuda_c_lowpass_9_y ( const float *  src,
const unsigned int  w,
const unsigned int  h,
float *  dst,
int  tile_width,
int  tile_height 
)

Convolve in Y direction with 9-tap lowpass filter.

Definition at line 114 of file wrap_c_cuda.cu.

void cuda_c_lowpass_9_y_dec_y ( const float *  src,
const unsigned int  w,
const unsigned int  h,
float *  dst,
const int  dw,
const int  dh,
int  tile_width,
int  tile_height 
)

Convolve and decimate in Y direction with 9-tap lowpass filter.

Definition at line 132 of file wrap_c_cuda.cu.

void cuda_c_lowpass_texture_9_x_dec_x ( const float *  src,
int  w,
int  h,
float *  dst,
int  dw,
int  dh,
int  tile_width,
int  tile_height 
)

Convolve and decimate in X direction with 9-tap lowpass filter using texture memory.

Definition at line 3178 of file cuda_lowpass.h.

void cuda_c_lowpass_texture_9_y_dec_y ( const float *  src,
int  w,
int  h,
float *  dst,
int  dw,
int  dh,
int  tile_width,
int  tile_height 
)

Convolve and decimate in Y direction with 9-tap lowpass filter using texture memory.

Definition at line 3222 of file cuda_lowpass.h.

void cuda_c_luminance ( float3_t aptr,
float *  dptr,
int  w,
int  h,
int  tile_width,
int  tile_height 
)

Get luminance using (r+g+b)/3 calculation.

Definition at line 48 of file wrap_c_cuda.cu.

void cuda_c_luminanceNTSC ( float3_t aptr,
float *  dptr,
int  w,
int  h,
int  tile_width,
int  tile_height 
)

Get luminance using Matlab's NTSC calculation.

Definition at line 56 of file wrap_c_cuda.cu.

void cuda_c_multiplyHostScalar ( const float *  im1,
const float  val,
float *  res,
const int  tile_len,
const int  sz 
)

Multiply host scalar.

Definition at line 423 of file wrap_c_cuda.cu.

void cuda_c_multiplyImages ( const float *  im1,
const float *  im2,
float *  res,
const int  tile_len,
const int  sz 
)

Multiply images.

Definition at line 360 of file wrap_c_cuda.cu.

void cuda_c_multiplyScalar ( const float *  im1,
const float *  im2,
float *  res,
const int  tile_len,
const int  sz 
)

Multiply device scalar.

Definition at line 395 of file wrap_c_cuda.cu.

void cuda_c_optConvolve ( float *  res,
const float *  src,
const int  src_w,
const int  src_h,
const float *  f,
const int  fil_w,
const int  fil_h,
const int  tile_width,
const int  tile_height 
)

Optimized convolution.

Definition at line 770 of file wrap_c_cuda.cu.

void cuda_c_optXFilterClean ( float *  res,
const float *  src,
const int  src_w,
const int  src_h,
const float *  f,
const int  hfs,
const int  tile_len 
)

Optimized version of clean boundary X dimension separable filter, limited to only a certain size.

Definition at line 835 of file wrap_c_cuda.cu.

void cuda_c_optXFilterReplicate ( float *  res,
const float *  src,
const int  src_w,
const int  src_h,
const float *  f,
const int  hfs,
const int  tile_len 
)

Optimized version of replicate boundary X dimension separable filter, limited to only a certain size.

Definition at line 849 of file wrap_c_cuda.cu.

void cuda_c_optXFilterZero ( float *  res,
const float *  src,
const int  src_w,
const int  src_h,
const float *  f,
const int  hfs,
const int  tile_len 
)

Optimized version of zero boundary X dimension separable filter, limited to only a certain size.

Definition at line 820 of file wrap_c_cuda.cu.

void cuda_c_optYFilterClean ( float *  res,
const float *  src,
const int  src_w,
const int  src_h,
const float *  f,
const int  hfs,
const int  tile_len 
)

Optimized version of clean boundary Y dimension separable filter, limited to only a certain size.

Definition at line 842 of file wrap_c_cuda.cu.

void cuda_c_optYFilterReplicate ( float *  res,
const float *  src,
const int  src_w,
const int  src_h,
const float *  f,
const int  hfs,
const int  tile_len 
)

Optimized version of replicate boundary Y dimension separable filter, limited to only a certain size.

Definition at line 856 of file wrap_c_cuda.cu.

void cuda_c_optYFilterZero ( float *  res,
const float *  src,
const int  src_w,
const int  src_h,
const float *  f,
const int  hfs,
const int  tile_len 
)

Optimized version of zero boundary Y dimension separable filter, limited to only a certain size.

Definition at line 827 of file wrap_c_cuda.cu.

void cuda_c_orientedFilter ( const float *  src,
float *  re,
float *  im,
const float  kx,
const float  ky,
const float  intensity,
const int  w,
const int  h,
const int  tile_width 
)

Run 2d oriented filter over image.

Definition at line 606 of file wrap_c_cuda.cu.

void cuda_c_quadEnergy ( const float *  real,
const float *  imag,
float *  out,
int  tile_len,
int  sz 
)

Get the quad energy.

Definition at line 527 of file wrap_c_cuda.cu.

void cuda_c_quickLocalAvg ( const float *  in,
float *  res,
float  fac,
int  lw,
int  lh,
int  sw,
int  sh,
int  tile_width,
int  tile_height 
)

Take a local average of size scalex by scaley.

Definition at line 204 of file wrap_c_cuda.cu.

void cuda_c_quickLocalAvg2x2 ( const float *  in,
float *  res,
int  lw,
int  lh,
int  sw,
int  sh,
int  tile_width,
int  tile_height 
)

Take a local average of 2x2 blocks.

Definition at line 215 of file wrap_c_cuda.cu.

void cuda_c_quickLocalMax ( const float *  in,
float *  res,
int  lw,
int  lh,
int  sw,
int  sh,
int  tile_width,
int  tile_height 
)

Take a local max of size scalex by scaley.

Definition at line 222 of file wrap_c_cuda.cu.

void cuda_c_randomMT ( float *  d_Random,
int  numVals,
int  tile_len 
)

Get a bank of random numbers.

Definition at line 710 of file wrap_c_cuda.cu.

void cuda_c_rescaleBilinear ( const float *  src,
float *  res,
float  sw,
float  sh,
int  orig_w,
int  orig_h,
int  new_w,
int  new_h,
int  tile_width,
int  tile_height 
)

Rescale image using bilinear interpolation.

Definition at line 233 of file wrap_c_cuda.cu.

void cuda_c_rescaleBilinearRGB ( const float3_t src,
float3_t res,
float  sw,
float  sh,
int  orig_w,
int  orig_h,
int  new_w,
int  new_h,
int  tile_width,
int  tile_height 
)

Rescale RGB image using bilinear interpolation.

Definition at line 240 of file wrap_c_cuda.cu.

void cuda_c_seedMT ( unsigned int  seed  ) 

Seed the random number generator -- MANDATORY!

Definition at line 50 of file cuda_mersennetwisterkernel.h.

void cuda_c_shiftImage ( const float *  src,
float *  dst,
int  w,
int  h,
float  deltax,
float  deltay,
int  tile_width,
int  tile_height 
)

Translate image by deltax, deltay.

Definition at line 878 of file wrap_c_cuda.cu.

void cuda_c_spatialPoolMax ( const float *  src,
float *  res,
float *  buf1,
float *  buf2,
const int  src_w_in,
const int  src_h_in,
const int  skip_w_in,
const int  skip_h_in,
const int  reg_w_in,
const int  reg_h_in,
int  tile_width_in,
int  tile_height_in 
)

Do local max over a window of activation.

Definition at line 649 of file wrap_c_cuda.cu.

void cuda_c_sqrt ( const float *  im,
float *  res,
const int  tile_len,
const int  sz 
)

Take square root of each pixel.

Definition at line 519 of file wrap_c_cuda.cu.

void cuda_c_squared ( const float *  im,
float *  res,
const int  tile_len,
const int  sz 
)

Square each pixel.

Definition at line 512 of file wrap_c_cuda.cu.

void cuda_c_subtractHostScalar ( const float *  im1,
const float  val,
float *  res,
const int  tile_len,
const int  sz 
)

Subtract host scalar.

Definition at line 416 of file wrap_c_cuda.cu.

void cuda_c_subtractImages ( const float *  im1,
const float *  im2,
float *  res,
const int  tile_len,
const int  sz 
)

Subtract images.

Definition at line 353 of file wrap_c_cuda.cu.

void cuda_c_subtractScalar ( const float *  im1,
const float *  im2,
float *  res,
const int  tile_len,
const int  sz 
)

Subtract device scalar.

Definition at line 388 of file wrap_c_cuda.cu.

void cuda_c_takeMax ( const float *  im1,
const float *  im2,
float *  res,
const int  tile_len,
const int  sz 
)

Take the max of each pixel from the two input images as the output.

Definition at line 374 of file wrap_c_cuda.cu.

void cuda_c_toRGB ( float3_t dst,
const float *  src,
int  sz,
const int  tile_len 
)

Convert luminance to an RGB formatted image (which will still be grayscale).

Definition at line 32 of file wrap_c_cuda.cu.

void cuda_c_xFilterClean ( float *  res,
const float *  src,
const int  src_w,
const int  src_h,
const float *  f,
const int  hfs,
const int  share_len,
const int  tile_len 
)

Clean boundary X dimension separable filter convolution.

Definition at line 785 of file wrap_c_cuda.cu.

void cuda_c_xFilterReplicate ( float *  res,
const float *  src,
const int  src_w,
const int  src_h,
const float *  f,
const int  hfs,
const int  share_len,
const int  tile_len 
)

Replicated boundary X dimension separable filter convolution.

Definition at line 792 of file wrap_c_cuda.cu.

void cuda_c_xFilterZero ( float *  res,
const float *  src,
const int  src_w,
const int  src_h,
const float *  f,
const int  hfs,
const int  share_len,
const int  tile_len 
)

Zero boundary X dimension separable filter convolution.

Definition at line 778 of file wrap_c_cuda.cu.

void cuda_c_yFilterClean ( float *  res,
const float *  src,
const int  src_w,
const int  src_h,
const float *  f,
const int  hfs,
const int  share_len,
const int  tile_len 
)

Clean boundary Y dimension separable filter convolution.

Definition at line 806 of file wrap_c_cuda.cu.

void cuda_c_yFilterReplicate ( float *  res,
const float *  src,
const int  src_w,
const int  src_h,
const float *  f,
const int  hfs,
const int  share_len,
const int  tile_len 
)

Replicated boundary Y dimension separable filter convolution.

Definition at line 813 of file wrap_c_cuda.cu.

void cuda_c_yFilterZero ( float *  res,
const float *  src,
const int  src_w,
const int  src_h,
const float *  f,
const int  hfs,
const int  share_len,
const int  tile_len 
)

Zero boundary Y dimension separable filter convolution.

Definition at line 799 of file wrap_c_cuda.cu.

Generated on Sun May 8 08:11:25 2011 for iLab Neuromorphic Vision Toolkit by  doxygen 1.6.3