51#if AF_API_VERSION >= 31 
   68#if AF_API_VERSION >= 31 
   87#if AF_API_VERSION >= 31 
   99#if AF_API_VERSION >= 32 
  120#if AF_API_VERSION >= 32 
  150#if AF_API_VERSION >= 33 
  227#if AF_API_VERSION >= 33 
  340AFAPI array meanShift(
const array& in, 
const float spatial_sigma, 
const float chromatic_sigma, 
const unsigned iter, 
const bool is_color=
false);
 
  488AFAPI array rgb2gray(
const array& in, 
const float rPercent=0.2126f, 
const float gPercent=0.7152f, 
const float bPercent=0.0722f);
 
  573#if AF_API_VERSION >= 31 
  600                   const bool is_column = 
true);
 
  603#if AF_API_VERSION >= 31 
  641                 const bool is_column = 
true);
 
  644#if AF_API_VERSION >= 31 
  656#if AF_API_VERSION >= 31 
  672#if AF_API_VERSION >= 31 
  688#if AF_API_VERSION >= 34 
  702#if AF_API_VERSION >= 34 
  715#if AF_API_VERSION >= 35 
  736                  const float lowThresholdRatio, 
const float highThresholdRatio,
 
  737                  const unsigned sobelWindow = 3, 
const bool isFast = 
false);
 
  740#if AF_API_VERSION >= 36 
  756                                 const float conductance, 
const unsigned iterations,
 
  761#if AF_API_VERSION >= 37 
  781                            const unsigned iterations, 
const float relaxFactor,
 
  821                         const unsigned radius,
 
  822                         const unsigned multiplier, 
const int iter,
 
  823                         const double segmentedValue);
 
  844                         const array &seedy, 
const unsigned radius,
 
  845                         const unsigned multiplier, 
const int iter,
 
  846                         const double segmentedValue);
 
  868                         const unsigned *seedx, 
const unsigned *seedy,
 
  869                         const unsigned radius, 
const unsigned multiplier,
 
  870                         const int iter, 
const double segmentedValue);
 
  918#if AF_API_VERSION >= 31 
  932#if AF_API_VERSION >= 31 
  948#if AF_API_VERSION >= 31 
  961#if AF_API_VERSION >= 32 
  983#if AF_API_VERSION >= 32 
 1015#if AF_API_VERSION >= 33 
 1065#if AF_API_VERSION >= 37 
 1094#if AF_API_VERSION >= 33 
 1176                         const bool inverse);
 
 1405                                    const int rows, 
const int cols,
 
 1406                                    const double sigma_r, 
const double sigma_c);
 
 1455#if AF_API_VERSION >= 31 
 1485                           const bool is_column);
 
 1488#if AF_API_VERSION >= 31 
 1530                         const bool is_column);
 
 1533#if AF_API_VERSION >= 37 
 1576                            const bool is_column);
 
 1579#if AF_API_VERSION >= 31 
 1593#if AF_API_VERSION >= 31 
 1611#if AF_API_VERSION >= 31 
 1629#if AF_API_VERSION >= 34 
 1644#if AF_API_VERSION >= 34 
 1660#if AF_API_VERSION >= 35 
 1685                          const float low_threshold_ratio,
 
 1686                          const float high_threshold_ratio,
 
 1687                          const unsigned sobel_window, 
const bool is_fast);
 
 1690#if AF_API_VERSION >= 36 
 1710                                          const float timestep,
 
 1711                                          const float conductance,
 
 1712                                          const unsigned iterations,
 
 1717#if AF_API_VERSION >= 37 
 1740                                     const unsigned iterations,
 
 1741                                     const float relax_factor,
 
 1762                                   const af_array psf, 
const float gamma,
 
 1787                                  const unsigned radius,
 
 1788                                  const unsigned multiplier, 
const int iter,
 
 1789                                  const double segmented_value);
 
A multi dimensional data container.
@ f32
32-bit floating point values
@ AF_PAD_ZERO
Out of bound values are 0.
@ AF_FIF_PNG
FreeImage Enum for Portable Network Graphics File.
@ AF_YCC_601
ITU-R BT.601 (formerly CCIR 601) standard.
@ AF_INTERP_NEAREST
Nearest Interpolation.
@ AF_DIFFUSION_GRAD
Gradient diffusion equation.
@ AF_FLUX_EXPONENTIAL
Exponential flux function.
@ AF_CONNECTIVITY_4
Connectivity includes neighbors, North, East, South and West of current pixel.
af_err af_gradient(af_array *dx, af_array *dy, const af_array in)
C Interface for calculating the gradients.
void grad(array &dx, array &dy, const array &in)
C++ Interface for calculating the gradients.
array anisotropicDiffusion(const af::array &in, const float timestep, const float conductance, const unsigned iterations, const fluxFunction fftype=AF_FLUX_EXPONENTIAL, const diffusionEq diffusionKind=AF_DIFFUSION_GRAD)
C++ Interface for gradient anisotropic(non-linear diffusion) smoothing.
af_err af_anisotropic_diffusion(af_array *out, const af_array in, const float timestep, const float conductance, const unsigned iterations, const af_flux_function fftype, const af_diffusion_eq diffusion_kind)
C Interface for anisotropic diffusion.
af_err af_bilateral(af_array *out, const af_array in, const float spatial_sigma, const float chromatic_sigma, const bool isColor)
C Interface for bilateral filter.
array bilateral(const array &in, const float spatial_sigma, const float chromatic_sigma, const bool is_color=false)
C++ Interface for bilateral filter.
array canny(const array &in, const cannyThreshold thresholdType, const float lowThresholdRatio, const float highThresholdRatio, const unsigned sobelWindow=3, const bool isFast=false)
C++ Interface for canny edge detector.
af_err af_canny(af_array *out, const af_array in, const af_canny_threshold threshold_type, const float low_threshold_ratio, const float high_threshold_ratio, const unsigned sobel_window, const bool is_fast)
C Interface for canny edge detector.
array colorSpace(const array &image, const CSpace to, const CSpace from)
C++ Interface wrapper for colorspace conversion.
af_err af_color_space(af_array *out, const af_array image, const af_cspace_t to, const af_cspace_t from)
C Interface wrapper for color space conversion.
array confidenceCC(const array &in, const array &seeds, const unsigned radius, const unsigned multiplier, const int iter, const double segmentedValue)
C++ Interface for confidence connected components.
af_err af_confidence_cc(af_array *out, const af_array in, const af_array seedx, const af_array seedy, const unsigned radius, const unsigned multiplier, const int iter, const double segmented_value)
C Interface for confidence connected components.
af_err af_dilate3(af_array *out, const af_array in, const af_array mask)
C Interface for 3d image dilation.
array dilate3(const array &in, const array &mask)
C++ Interface for 3D image dilation.
array dilate(const array &in, const array &mask)
C++ Interface for image dilation (max filter)
af_err af_dilate(af_array *out, const af_array in, const af_array mask)
C Interface for image dilation (max filter)
array erode3(const array &in, const array &mask)
C++ Interface for 3d for image erosion.
af_err af_erode3(af_array *out, const af_array in, const af_array mask)
C Interface for 3D image erosion.
af_err af_erode(af_array *out, const af_array in, const af_array mask)
C Interface for image erosion (min filter)
array erode(const array &in, const array &mask)
C++ Interface for image erosion (min filter)
array gaussianKernel(const int rows, const int cols, const double sig_r=0, const double sig_c=0)
C++ Interface for generating gausian kernels.
af_err af_gaussian_kernel(af_array *out, const int rows, const int cols, const double sigma_r, const double sigma_c)
C Interface generating gaussian kernels.
array gray2rgb(const array &in, const float rFactor=1.0, const float gFactor=1.0, const float bFactor=1.0)
C++ Interface for gray to RGB conversion.
af_err af_gray2rgb(af_array *out, const af_array in, const float rFactor, const float gFactor, const float bFactor)
C Interface for converting gray to RGB.
array histEqual(const array &in, const array &hist)
C++ Interface for histogram equalization.
af_err af_hist_equal(af_array *out, const af_array in, const af_array hist)
C Interface for histogram equalization.
array histogram(const array &in, const unsigned nbins, const double minval, const double maxval)
C++ Interface for histogram.
af_err af_histogram(af_array *out, const af_array in, const unsigned nbins, const double minval, const double maxval)
C Interface for histogram.
af_err af_hsv2rgb(af_array *out, const af_array in)
C Interface for converting HSV to RGB.
array hsv2rgb(const array &in)
C++ Interface for converting HSV to RGB.
af_err af_inverse_deconv(af_array *out, const af_array in, const af_array psf, const float gamma, const af_inverse_deconv_algo algo)
C Interface for Tikhonov deconvolution algorithm.
array inverseDeconv(const array &in, const array &psf, const float gamma, const inverseDeconvAlgo algo)
C++ Interface for Tikhonov deconvolution algorithm.
array iterativeDeconv(const array &in, const array &ker, const unsigned iterations, const float relaxFactor, const iterativeDeconvAlgo algo)
C++ Interface for Iterative deconvolution algorithm.
af_err af_iterative_deconv(af_array *out, const af_array in, const af_array ker, const unsigned iterations, const float relax_factor, const af_iterative_deconv_algo algo)
C Interface for Iterative deconvolution algorithm.
af_err af_maxfilt(af_array *out, const af_array in, const dim_t wind_length, const dim_t wind_width, const af_border_type edge_pad)
C Interface for maximum filter.
array maxfilt(const array &in, const dim_t wind_length=3, const dim_t wind_width=3, const borderType edge_pad=AF_PAD_ZERO)
C++ Interface for maximum filter.
array meanShift(const array &in, const float spatial_sigma, const float chromatic_sigma, const unsigned iter, const bool is_color=false)
C++ Interface for mean shift.
af_err af_mean_shift(af_array *out, const af_array in, const float spatial_sigma, const float chromatic_sigma, const unsigned iter, const bool is_color)
C Interface for mean shift.
af_err af_minfilt(af_array *out, const af_array in, const dim_t wind_length, const dim_t wind_width, const af_border_type edge_pad)
C Interface for minimum filter.
array minfilt(const array &in, const dim_t wind_length=3, const dim_t wind_width=3, const borderType edge_pad=AF_PAD_ZERO)
C++ Interface for minimum filter.
af_err af_moments(af_array *out, const af_array in, const af_moment_type moment)
C Interface for finding image moments.
void moments(double *out, const array &in, const momentType moment=AF_MOMENT_FIRST_ORDER)
C++ Interface for calculating an image moment.
af_err af_moments_all(double *out, const af_array in, const af_moment_type moment)
C Interface for calculating image moment(s) of a single image.
af_err af_regions(af_array *out, const af_array in, const af_connectivity connectivity, const af_dtype ty)
C Interface for regions in an image.
array regions(const array &in, const af::connectivity connectivity=AF_CONNECTIVITY_4, const dtype type=f32)
C++ Interface for getting regions in an image.
array rgb2gray(const array &in, const float rPercent=0.2126f, const float gPercent=0.7152f, const float bPercent=0.0722f)
C++ Interface for RGB to gray conversion.
af_err af_rgb2gray(af_array *out, const af_array in, const float rPercent, const float gPercent, const float bPercent)
C Interface for converting RGB to gray.
array rgb2hsv(const array &in)
C++ Interface for converting RGB to HSV.
af_err af_rgb2hsv(af_array *out, const af_array in)
C Interface for converting RGB to HSV.
af_err af_rgb2ycbcr(af_array *out, const af_array in, const af_ycc_std standard)
C Interface for converting RGB to YCbCr.
array rgb2ycbcr(const array &in, const YCCStd standard=AF_YCC_601)
C++ Interface for converting RGB to YCbCr.
af_err af_sat(af_array *out, const af_array in)
C Interface wrapper for summed area tables.
array sat(const array &in)
C++ Interface wrapper for summed area tables.
af_err af_sobel_operator(af_array *dx, af_array *dy, const af_array img, const unsigned ker_size)
C Interface for getting sobel gradients.
void sobel(array &dx, array &dy, const array &img, const unsigned ker_size=3)
C++ Interface for extracting sobel gradients.
af_err af_unwrap(af_array *out, const af_array in, const dim_t wx, const dim_t wy, const dim_t sx, const dim_t sy, const dim_t px, const dim_t py, const bool is_column)
C Interface for rearranging windowed sections of an input into columns (or rows)
array unwrap(const array &in, const dim_t wx, const dim_t wy, const dim_t sx, const dim_t sy, const dim_t px=0, const dim_t py=0, const bool is_column=true)
C++ Interface for rearranging windowed sections of an input into columns (or rows)
array wrap(const array &in, const dim_t ox, const dim_t oy, const dim_t wx, const dim_t wy, const dim_t sx, const dim_t sy, const dim_t px=0, const dim_t py=0, const bool is_column=true)
C++ Interface for performing the opposite of unwrap.
af_err af_wrap_v2(af_array *out, const af_array in, const dim_t ox, const dim_t oy, const dim_t wx, const dim_t wy, const dim_t sx, const dim_t sy, const dim_t px, const dim_t py, const bool is_column)
C Interface for the version of af_wrap that accepts a preallocated output array.
af_err af_wrap(af_array *out, const af_array in, const dim_t ox, const dim_t oy, const dim_t wx, const dim_t wy, const dim_t sx, const dim_t sy, const dim_t px, const dim_t py, const bool is_column)
C Interface for performing the opposite of unwrap()
array ycbcr2rgb(const array &in, const YCCStd standard=AF_YCC_601)
C++ Interface for converting YCbCr to RGB.
af_err af_ycbcr2rgb(af_array *out, const af_array in, const af_ycc_std standard)
C Interface for converting YCbCr to RGB.
af_err af_is_image_io_available(bool *out)
Function to check if Image IO is available.
bool isImageIOAvailable()
Function to check if Image IO is available.
af_err af_load_image(af_array *out, const char *filename, const bool isColor)
C Interface for loading an image.
array loadImage(const char *filename, const bool is_color=false)
C++ Interface for loading an image.
af_err af_load_image_native(af_array *out, const char *filename)
C Interface for loading an image as is original type.
array loadImageNative(const char *filename)
C++ Interface for loading an image as its original type.
void saveImageNative(const char *filename, const array &in)
C++ Interface for saving an image without modifications.
void saveImage(const char *filename, const array &in)
C++ Interface for saving an image.
af_err af_save_image_native(const char *filename, const af_array in)
C Interface for saving an image without modifications.
af_err af_save_image(const char *filename, const af_array in)
C Interface for saving an image.
void deleteImageMem(void *ptr)
C++ Interface for deleting memory created by saveImageMem or af_save_image_memory.
af_err af_delete_image_memory(void *ptr)
C Interface for deleting an image from memory.
af_err af_load_image_memory(af_array *out, const void *ptr)
C Interface for loading an image from memory.
array loadImageMem(const void *ptr)
C++ Interface for loading an image from memory.
af_err af_save_image_memory(void **ptr, const af_array in, const af_image_format format)
C Interface for saving an image to memory using FreeImage.
void * saveImageMem(const array &in, const imageFormat format=AF_FIF_PNG)
C++ Interface for saving an image to memory.
AFAPI array inverse(const array &in, const matProp options=AF_MAT_NONE)
C++ Interface to invert a matrix.
af_diffusion_eq diffusionEq
af_flux_function fluxFunction
af_border_type borderType
af_moment_type momentType
af_iterative_deconv_algo iterativeDeconvAlgo
af_interp_type interpType
af_canny_threshold cannyThreshold
af_connectivity connectivity
af_inverse_deconv_algo inverseDeconvAlgo
af_image_format imageFormat