12 #ifndef __CUDACC_RTC__ 13 #include <af/compilers.h> 16 #if defined(_WIN32) || defined(_MSC_VER) 20 #define AFAPI __declspec(dllexport) 22 #define AFAPI __declspec(dllimport) 27 #define bool unsigned char 31 #define __PRETTY_FUNCTION__ __FUNCSIG__ 32 #define SIZE_T_FRMT_SPECIFIER "%Iu" 33 #define AF_DEPRECATED(msg) __declspec(deprecated( msg )) 35 #define AF_HAS_VARIADIC_TEMPLATES 38 #define AFAPI __attribute__((visibility("default"))) 40 #define SIZE_T_FRMT_SPECIFIER "%zu" 41 #if __GNUC__ >= 4 && __GNUC_MINOR > 4 42 #define AF_DEPRECATED(msg) __attribute__((deprecated( msg ))) 44 #define AF_DEPRECATED(msg) __attribute__((deprecated)) 49 #if defined(__x86_64__) || defined(_M_X64) || defined(_WIN64) || defined(__aarch64__) || defined(__LP64__) // 64-bit Architectures 50 typedef long long dim_t;
52 #elif defined(__i386__) || defined(_M_IX86) || defined(__arm__) || defined(_M_ARM) // 32-bit x86 Architecture 61 #ifndef AFDLL // prevents the use of these types internally 66 #include <af/version.h> 67 #ifndef AF_API_VERSION 68 #define AF_API_VERSION AF_API_VERSION_CURRENT 127 #if AF_API_VERSION >= 33 146 #if AF_API_VERSION >= 32 166 #if AF_API_VERSION >= 37 175 #if AF_API_VERSION >= 32 182 #if AF_API_VERSION >= 32 189 #if AF_API_VERSION >= 32 221 #if AF_API_VERSION >= 32 224 #if AF_API_VERSION >= 32 227 #if AF_API_VERSION >= 37 237 #define AF_MAX_DIMS 4 248 #if AF_API_VERSION >= 34 251 #if AF_API_VERSION >= 34 254 #if AF_API_VERSION >= 34 257 #if AF_API_VERSION >= 34 260 #if AF_API_VERSION >= 34 331 #if AF_API_VERSION >= 31 343 #if AF_API_VERSION >= 31 376 #if AF_API_VERSION >= 31 394 #if AF_API_VERSION >=34 404 #if AF_API_VERSION >= 32 411 #if AF_API_VERSION >= 32 428 #if AF_API_VERSION >=34 437 #if AF_API_VERSION >=34 467 #if AF_API_VERSION >= 32 481 #if AF_API_VERSION >= 35 488 #if AF_API_VERSION >= 34 497 #if AF_API_VERSION >= 36 517 #if AF_API_VERSION >= 37 537 #if AF_API_VERSION >= 37 563 #if AF_API_VERSION >= 31 566 #if AF_API_VERSION >= 31 569 #if AF_API_VERSION >= 32 572 #if AF_API_VERSION >= 32 575 #if AF_API_VERSION >= 34 578 #if AF_API_VERSION >= 34 581 #if AF_API_VERSION >= 34 584 #if AF_API_VERSION >= 34 587 #if AF_API_VERSION >= 35 590 #if AF_API_VERSION >= 36 595 #if AF_API_VERSION >= 37
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)
Out of bound values are clamped to the edge.
FreeImage Enum for RAW Camera Image File.
Out of bound values are mapped to range of the dimension in cyclic fashion.
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.
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.
#define AF_DEPRECATED(msg)
Matrix diagonal contains unitary values.
af_inverse_deconv_algo inverseDeconvAlgo
Output of the convolution is the same size as input.
32-bit signed integral values
af_diffusion_eq diffusionEq
Matrix is positive definite.
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 floating point values
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.
Out of bound values are symmetric over the edge.
Spectrum map (390nm-830nm, in sRGB colorspace)
Computes homography using RANSAC.
af_iterative_deconv_algo iterativeDeconvAlgo
FreeImage Enum for JPEG-2000 File.
Match based on Locally scaled SAD.
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.
64-bit complex floating point values
af_conv_gradient_type convGradientType
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.
Connectivity includes 4-connectivity neigbors and also those on Northeast, Northwest, Southeast and Southwest.
af_conv_domain convDomain
Default (Population) variance.
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)
Tikhonov Inverse deconvolution.
Data needs to be transposed.
return the max of column sums
Default is Tikhonov deconvolution.
Perceptually uniform shades of blue-green-yellow.
16-bit floating point value
Linear Interpolation with cosine smoothing.
Exponential flux function.
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
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
af_moment_type momentType
Default is Landweber deconvolution.
Richardson-Lucy Deconvolution.
Default flux function is exponential.
af_connectivity connectivity