12 #if defined(_WIN32) || defined(_MSC_VER) 16 #define AFAPI __declspec(dllexport) 18 #define AFAPI __declspec(dllimport) 23 #define bool unsigned char 27 #define __PRETTY_FUNCTION__ __FUNCSIG__ 28 #define SIZE_T_FRMT_SPECIFIER "%Iu" 29 #define DEPRECATED(msg) __declspec(deprecated( msg )) 31 #define AFAPI __attribute__((visibility("default"))) 33 #define SIZE_T_FRMT_SPECIFIER "%zu" 34 #if __GNUC__ >= 4 && __GNUC_MINOR > 4 35 #define DEPRECATED(msg) __attribute__((deprecated( msg ))) 37 #define DEPRECATED(msg) __attribute__((deprecated)) 43 #if defined(__x86_64__) || defined(_M_X64) || defined(_WIN64) || defined(__aarch64__) || defined(__LP64__) // 64-bit Architectures 44 typedef long long dim_t;
46 #elif defined(__i386__) || defined(_M_IX86) || defined(__arm__) || defined(_M_ARM) // 32-bit x86 Architecture 56 typedef unsigned long long uintl;
58 #include <af/version.h> 59 #ifndef AF_API_VERSION 60 #define AF_API_VERSION AF_API_VERSION_CURRENT 119 #if AF_API_VERSION >= 33 138 #if AF_API_VERSION >= 32 160 #if AF_API_VERSION >= 32 167 #if AF_API_VERSION >= 32 174 #if AF_API_VERSION >= 32 206 #if AF_API_VERSION >= 32 209 #if AF_API_VERSION >= 32 219 #define AF_MAX_DIMS 4 230 #if AF_API_VERSION >= 34 233 #if AF_API_VERSION >= 34 236 #if AF_API_VERSION >= 34 239 #if AF_API_VERSION >= 34 242 #if AF_API_VERSION >= 34 303 #if AF_API_VERSION >= 31 315 #if AF_API_VERSION >= 31 348 #if AF_API_VERSION >= 31 366 #if AF_API_VERSION >=34 376 #if AF_API_VERSION >= 32 383 #if AF_API_VERSION >= 32 400 #if AF_API_VERSION >=34 409 #if AF_API_VERSION >=34 439 #if AF_API_VERSION >= 32 453 #if AF_API_VERSION >= 35 460 #if AF_API_VERSION >= 34 469 #if AF_API_VERSION >= 36 506 #if AF_API_VERSION >= 31 509 #if AF_API_VERSION >= 31 512 #if AF_API_VERSION >= 32 515 #if AF_API_VERSION >= 32 518 #if AF_API_VERSION >= 34 521 #if AF_API_VERSION >= 34 524 #if AF_API_VERSION >= 34 527 #if AF_API_VERSION >= 34 530 #if AF_API_VERSION >= 35 533 #if AF_API_VERSION >= 36
The system or device ran out of memory.
Determine canny algorithm thresholds using Otsu algorithm.
Gradient diffusion equation.
returns the max singular value). Currently NOT SUPPORTED
Match based on Sum of Squared Differences (SSD)
FreeImage Enum for RAW Camera Image File.
Perceptually uniform shades of black-red-yellow.
FreeImage Enum for JPEG Network Graphics File.
CPU a.k.a sequential algorithms.
af_topk_function topkFunction
The function returned successfully.
The type of the input arrays are not compatible.
Output of the convolution is signal_len + filter_len - 1.
af_canny_threshold cannyThreshold
FreeImage Enum for Bitmap File.
Matrix is upper triangular.
Bilinear Interpolation with cosine smoothing.
Matrix diagonal contains unitary values.
Output of the convolution is the same size as input.
32-bit signed integral values
Function does not support GFOR / batch mode.
af_diffusion_eq diffusionEq
Matrix is positive definite.
The option is not supported.
FreeImage Enum for Windows Icon File.
Default backend order: OpenCL -> CUDA -> CPU.
Match based on Zero mean SAD.
User has to define canny thresholds manually.
64-bit signed integral values
16-bit signed integral values
Match based on Zero mean SSD.
Bicubic Interpolation with Catmull-Rom splines.
Match based on Zero mean NCC.
16-bit unsigned integral values
Match based on Locally scaled SSD.
Perceptually uniform shades of blue-red-yellow.
af_random_engine_type randomEngineType
FreeImage Enum for JPEG File.
Data needs to be conjugate tansposed.
64-bit complex floating point values
There was an error when loading the symbols.
Match based on Normalized Cross Correlation (NCC)
treats the input as a vector and returns the p-norm
af_image_format imageFormat
FreeImage Enum for Adobe Photoshop File.
Computes homography using Least Median of Squares.
Data needs to be conjugate.
return the max of row sums
FreeImage Enum for Portable Pixelmap (ASCII) File.
There was an error with the runtime environment.
Out of bound values are symmetric over the edge.
Spectrum map (390nm-830nm, in sRGB colorspace)
Computes homography using RANSAC.
FreeImage Enum for JPEG-2000 File.
Match based on Locally scaled SAD.
The type is not suppported by this function.
Connectivity includes neighbors, North, East, South and West of current pixel.
64-bit unsigned integral values
ITU-R BT.601 (formerly CCIR 601) standard.
Out of bound values are 0.
This device does not support double.
64-bit complex floating point values
This build of ArrayFire was not built with graphics or this device does not support graphics...
There was an error when loading the libraries.
This build of ArrayFire does not support this feature.
There was a mismatch between the input array and the active backend.
Cubic Interpolation with Catmull-Rom splines.
FreeImage Enum for Tagged Image File Format File.
ArrayFire automatically picks the right convolution algorithm.
32-bit complex floating point values
treats the input as a vector and returns the max of absolute values
Matrix is block diagonal.
There was an error in the device driver.
Connectivity includes 4-connectivity neigbors and also those on Northeast, Northwest, Southeast and Southwest.
This build of ArrayFire is not compiled with "nonfree" algorithms.
af_conv_domain convDomain
The default. Same as AF_NORM_VECTOR_2.
Modified curvature diffusion equation.
8-bit unsigned integral values
af_border_type borderType
FreeImage Enum for ILM OpenEXR File.
Perform convolution in spatial domain.
Perform convolution in frequency domain.
Match based on Sum of Hamming Distances (SHD)
Match based on Sum of Absolute Differences (SAD)
Data needs to be transposed.
return the max of column sums
One of the function arguments is incorrect.
Perceptually uniform shades of blue-green-yellow.
Linear Interpolation with cosine smoothing.
Exponential flux function.
The input array is not a valid af_array object.
32-bit unsigned integral values
FreeImage Enum for High Dynamic Range File.
Default option is same as AF_DIFFUSION_GRAD.
Matrix is lower triangular.
FreeImage Enum for Portable Network Graphics File.
FreeImage Enum for Portable Pixelmap (Binary) File.
Perceptually uniform shades of black-red-white.
32-bit floating point values
treats the input as a vector and returns euclidean norm
Input does not belong to the current device.
af_flux_function fluxFunction
treats the input as a vector and returns the sum of absolute values
af_marker_type markerType
af_interp_type interpType
There was an internal error either in ArrayFire or in a project upstream.
af_moment_type momentType
Default flux function is exponential.
af_connectivity connectivity