image.h File Reference

(2014-04-30 15:38:09 -0400, (build fd32605))

#include "defines.h"
#include <string>

Go to the source code of this file.

Namespaces

 af
 

Enumerations

enum  af_cspace_t { af_rgb = 0, af_hsv, af_gray, af_ycrcb }
 Colorspace Transform Enum. More...
 

Functions

afError af_transform_S (float *d_out, const float *d_in, const unsigned *idims, const float *d_tf, const unsigned *odims, unsigned nimages, unsigned ntranforms, const bool inverse)
 
afError af_transform_D (double *d_out, const double *d_in, const unsigned *idims, const float *d_tf, const unsigned *odims, unsigned nimages, unsigned ntranforms, const bool inverse)
 
afError af_transform_I (int *d_out, const int *d_in, const unsigned *idims, const float *d_tf, const unsigned *odims, unsigned nimages, unsigned ntranforms, const bool inverse)
 
afError af_transform_U (unsigned *d_out, const unsigned *d_in, const unsigned *idims, const float *d_tf, const unsigned *odims, unsigned nimages, unsigned ntranforms, const bool inverse)
 
afError af_transform_B (bool *d_out, const bool *d_in, const unsigned *idims, const float *d_tf, const unsigned *odims, unsigned nimages, unsigned ntranforms, const bool inverse)
 
array gaussiankernel (int rows, int cols, double sigma_r=0, double sigma_c=0)
 Generate kernels. More...
 
array filter (const array &image, const array &kernel)
 Image Filtering. More...
 
array medfilt (const array &image, const unsigned height=3, const unsigned width=3)
 Median filtering within window (default 3x3) More...
 
array minfilt (const array &image, const unsigned height=3, const unsigned width=3)
 Minimum filtering within window (default 3x3) More...
 
array maxfilt (const array &image, const unsigned height=3, const unsigned width=3)
 Maximum filtering within window (default 3x3) More...
 
array erode (const array &image, const array &mask)
 
array dilate (const array &image, const array &mask)
 
array resize (const float scale, const array &image, const char method='L')
 Resize an image based on a scaling factor (uniform) More...
 
array resize (const float scale_x, const float scale_y, const array &image, const char method='L')
 Resize an image based on two scale factors (non-uniform) More...
 
array resize (const unsigned height, const unsigned width, const array &image, const char method='L')
 Resize an image to a specified width and height in pixels. More...
 
array transform (const array &image, const array &transform, const unsigned oh=0, const unsigned ow=0, const bool inverse=true)
 
array rotate (const array &image, const float theta=0, const bool iscrop=true, const bool recenter=true)
 
array translate (const array &image, const float trans_x, const float trans_y, const unsigned oh=0, const unsigned ow=0)
 
array scale (const array &image, const float scale_x, const float scale_y, const unsigned oh=0, const unsigned ow=0)
 
array skew (const array &image, const float skew_x, const float skew_y, const unsigned oh=0, const unsigned ow=0, const bool inverse=false)
 
array transform_coord (const array &vertices, const array &transform)
 
array rotate_coord (const array &vertices, const unsigned axis, const float theta)
 
array bilateral (const array &image, const float space, const float color)
 Bilateral filtering. More...
 
array meanshift (const array &image, const float space, const float color, const int iter=5)
 Meanshift filtering. More...
 
array colorspace (const array &image, const af_cspace_t to, const af_cspace_t from)
 
array histogram (const array &data, unsigned nbins)
 Histogram takes in the input array data and computes the minimum and maximum of the range. More...
 
array histogram (const array &data, unsigned nbins, float min, float max)
 This function takes in the input array data. More...
 
array histequal (const array &data, const array &histogram)
 
array regions (const array &image, const unsigned connectivity=8)
 
array areas (const array &regions)
 
array centroids (const array &regions)
 
array loadimage (const char *filename, bool iscolor=false)
 Load an image from disk. More...
 
void saveimage (const char *filename, const af::array &img)
 Save an image to disk. More...
 
afError af_rotate_S (float *d_out, unsigned xo, unsigned yo, const float *d_in, unsigned xi, unsigned yi, float theta, unsigned batch)
 Rotate a given image by a specified amount. More...
 
afError af_resize_S (const unsigned mO, const unsigned nO, float *d_out, const unsigned mI, const unsigned nI, const float *d_in, const unsigned channels, const int type=1)
 Image resizing. More...
 
afError af_resize_D (const unsigned mO, const unsigned nO, double *d_out, const unsigned mI, const unsigned nI, const double *d_in, const unsigned channels, const int type=1)
 Image resize, double precision. More...
 
afError af_erode_B (bool *d_out, unsigned in_ndims, const unsigned *in_dims, const bool *d_in, unsigned nhood_ndims, const unsigned *nhood_dims, const bool *h_nhood, unsigned batch)
 Erode an Image. More...
 
afError af_erode_S (float *d_out, unsigned in_ndims, const unsigned *in_dims, const float *d_in, unsigned nhood_ndims, const unsigned *nhood_dims, const float *h_nhood, unsigned batch)
 Single precision, Image Erosion. More...
 
afError af_erode_D (double *d_out, unsigned in_ndims, const unsigned *in_dims, const double *d_in, unsigned nhood_ndims, const unsigned *nhood_dims, const double *h_nhood, unsigned batch)
 Double precision, Image Erosion. More...
 
afError af_dilate_B (bool *d_out, unsigned in_ndims, const unsigned *in_dims, const bool *d_in, unsigned nhood_ndims, const unsigned *nhood_dims, const bool *d_nhood, unsigned batch)
 Dilate an image. More...
 
afError af_dilate_S (float *d_out, unsigned in_ndims, const unsigned *in_dims, const float *d_in, unsigned nhood_ndims, const unsigned *nhood_dims, const float *d_nhood, unsigned batch)
 Single precision, Image Dilation. More...
 
afError af_dilate_D (double *d_out, unsigned in_ndims, const unsigned *in_dims, const double *d_in, unsigned nhood_ndims, const unsigned *nhood_dims, const double *d_nhood, unsigned batch)
 Double precision, Image Dilation. More...
 
afError af_transform_coord_S (float *d_dst, const float *d_src, const unsigned *dims, const float *d_tf, const unsigned *hdims, unsigned batch)
 
afError af_transform_coord_D (double *d_dst, const double *d_src, const unsigned *dims, const double *d_tf, const unsigned *hdims, unsigned batch)
 
afError af_bilateral_S (float *d_out, const float *d_in, unsigned mI, unsigned nI, const float space, const float color, int channels)
 Bilateral filtering. More...
 
afError af_meanshift_S (float *d_out, const float *d_in, unsigned mI, unsigned nI, const float space, const float color, const int iter, int channels)
 Meanshift filtering. More...
 
afError af_histogram_S (float *d_hist, unsigned length, const float *d_data, unsigned nbins, const float *h_bins, unsigned nsets, unsigned ngfor)
 Form a non-normalized histogram from input matrix. More...
 
afError af_histminmax_S (float *d_hist, unsigned len, const float *d_data, unsigned bins, const float *h_data, unsigned nsets, unsigned ngfor, float min, float max)
 Form a non-normalized histogram from input matrix, using the specified minimum and maximum range for binning. More...
 
afError af_histequalize_S (float *d_out, unsigned length, const float *d_data, unsigned nbins, const float *d_bins)
 Equalize a given vector or matrix based on a given histogram. More...
 
afError af_regions_B (float *d_out, const unsigned nx, const unsigned ny, const bool *d_in, unsigned conn)
 Uniquely label connected components in a binary image. More...
 
afError af_medfilt_B (char *d_out, unsigned m, unsigned n, const char *d_in, const unsigned *h_W)
 Median filtering of a matrix using the specified window (or a 3 x 3 default window). More...
 
afError af_medfilt_c (unsigned char *d_out, unsigned m, unsigned n, const unsigned char *d_in, const unsigned *h_W)
 Medfilt: 8-bit unsigned int. More...
 
afError af_medfilt_I (int *d_out, unsigned m, unsigned n, const int *d_in, const unsigned *h_W)
 Medfilt: int data. More...
 
afError af_medfilt_U (unsigned *d_out, unsigned m, unsigned n, const unsigned *d_in, const unsigned *h_W)
 Medfilt: unsigned int data. More...
 
afError af_medfilt_S (float *d_out, unsigned m, unsigned n, const float *d_in, const unsigned *h_W)
 Medfilt: single-precision data. More...
 
afError af_medfilt_D (double *d_out, unsigned m, unsigned n, const double *d_in, const unsigned *h_W)
 Medfilt: double-precision data. More...
 

Function Documentation

afError af_transform_S ( float *  d_out,
const float *  d_in,
const unsigned *  idims,
const float *  d_tf,
const unsigned *  odims,
unsigned  nimages,
unsigned  ntranforms,
const bool  inverse 
)
afError af_transform_D ( double *  d_out,
const double *  d_in,
const unsigned *  idims,
const float *  d_tf,
const unsigned *  odims,
unsigned  nimages,
unsigned  ntranforms,
const bool  inverse 
)
afError af_transform_I ( int *  d_out,
const int *  d_in,
const unsigned *  idims,
const float *  d_tf,
const unsigned *  odims,
unsigned  nimages,
unsigned  ntranforms,
const bool  inverse 
)
afError af_transform_U ( unsigned *  d_out,
const unsigned *  d_in,
const unsigned *  idims,
const float *  d_tf,
const unsigned *  odims,
unsigned  nimages,
unsigned  ntranforms,
const bool  inverse 
)
afError af_transform_B ( bool *  d_out,
const bool *  d_in,
const unsigned *  idims,
const float *  d_tf,
const unsigned *  odims,
unsigned  nimages,
unsigned  ntranforms,
const bool  inverse 
)