defines.h (2020-07-07 17:43:34 +0530, (build 218dd2c99))
Go to the documentation of this file.
1 /*******************************************************
2  * Copyright (c) 2014, ArrayFire
3  * All rights reserved.
4  *
5  * This file is distributed under 3-clause BSD license.
6  * The complete license agreement can be obtained at:
7  * https://arrayfire.com/licenses/BSD-3-Clause
8  ********************************************************/
9 
10 #pragma once
11 
12 #ifndef __CUDACC_RTC__
13 #include <af/compilers.h>
14 #endif
15 
16 #if defined(_WIN32) || defined(_MSC_VER)
17  // https://msdn.microsoft.com/en-us/library/b0084kay(v=VS.80).aspx
18  // https://msdn.microsoft.com/en-us/library/3y1sfaz2%28v=VS.80%29.aspx
19  #ifdef AFDLL // libaf
20  #define AFAPI __declspec(dllexport)
21  #else
22  #define AFAPI __declspec(dllimport)
23  #endif
24 
25  // bool
26  #ifndef __cplusplus
27  #define bool unsigned char
28  #define false 0
29  #define true 1
30  #endif
31  #define __PRETTY_FUNCTION__ __FUNCSIG__
32  #define SIZE_T_FRMT_SPECIFIER "%Iu"
33  #define AF_DEPRECATED(msg) __declspec(deprecated( msg ))
34  #if _MSC_VER >= 1800
35  #define AF_HAS_VARIADIC_TEMPLATES
36  #endif
37 #else
38  #define AFAPI __attribute__((visibility("default")))
39  #include <stdbool.h>
40  #define SIZE_T_FRMT_SPECIFIER "%zu"
41 #if __GNUC__ >= 4 && __GNUC_MINOR > 4
42  #define AF_DEPRECATED(msg) __attribute__((deprecated( msg )))
43 #else
44  #define AF_DEPRECATED(msg) __attribute__((deprecated))
45 #endif
46 #endif
47 
48 // Known 64-bit x86 and ARM architectures use long long
49 #if defined(__x86_64__) || defined(_M_X64) || defined(_WIN64) || defined(__aarch64__) || defined(__LP64__) // 64-bit Architectures
50  typedef long long dim_t;
51 // Known 32-bit x86 and ARM architectures use int
52 #elif defined(__i386__) || defined(_M_IX86) || defined(__arm__) || defined(_M_ARM) // 32-bit x86 Architecture
53  typedef int dim_t;
54 // All other platforms use long long
55 #else
56  typedef long long dim_t;
57 #endif
58 
59 #include <stdlib.h>
60 
61 #ifndef AFDLL // prevents the use of these types internally
62 typedef AF_DEPRECATED("intl is deprecated. Use long long instead.") long long intl;
63 typedef AF_DEPRECATED("uintl is deprecated. Use unsigned long long instead.") unsigned long long uintl;
64 #endif
65 
66 #include <af/version.h>
67 #ifndef AF_API_VERSION
68 #define AF_API_VERSION AF_API_VERSION_CURRENT
69 #endif
70 
71 typedef enum {
75  AF_SUCCESS = 0
76 
77  // 100-199 Errors in environment
78 
82  , AF_ERR_NO_MEM = 101
83 
87  , AF_ERR_DRIVER = 102
88 
93 
94  // 200-299 Errors in input parameters
95 
100 
104  , AF_ERR_ARG = 202
105 
109  , AF_ERR_SIZE = 203
110 
114  , AF_ERR_TYPE = 204
115 
120 
124  , AF_ERR_BATCH = 207
125 
126 
127 #if AF_API_VERSION >= 33
128  , AF_ERR_DEVICE = 208
132 #endif
133 
134  // 300-399 Errors for missing software features
135 
140 
145 
146 #if AF_API_VERSION >= 32
147  , AF_ERR_NONFREE = 303
151 #endif
152 
153  // 400-499 Errors for missing hardware features
154 
159 
165 
166 #if AF_API_VERSION >= 37
167  , AF_ERR_NO_HALF = 403
171 #endif
172 
173  // 500-599 Errors specific to heterogenous API
174 
175 #if AF_API_VERSION >= 32
176  , AF_ERR_LOAD_LIB = 501
180 #endif
181 
182 #if AF_API_VERSION >= 32
183  , AF_ERR_LOAD_SYM = 502
187 #endif
188 
189 #if AF_API_VERSION >= 32
194 #endif
195 
196  // 900-999 Errors from upstream libraries and runtimes
197 
203 
209 
210 typedef enum {
211  f32,
212  c32,
213  f64,
214  c64,
215  b8 ,
216  s32,
217  u32,
218  u8 ,
219  s64,
220  u64
221 #if AF_API_VERSION >= 32
222  , s16
223 #endif
224 #if AF_API_VERSION >= 32
225  , u16
226 #endif
227 #if AF_API_VERSION >= 37
228  , f16
229 #endif
231 
232 typedef enum {
234  afHost
236 
237 #define AF_MAX_DIMS 4
238 
239 // A handle for an internal array object
240 typedef void * af_array;
241 
242 typedef enum {
248 #if AF_API_VERSION >= 34
250 #endif
251 #if AF_API_VERSION >= 34
253 #endif
254 #if AF_API_VERSION >= 34
256 #endif
257 #if AF_API_VERSION >= 34
259 #endif
260 #if AF_API_VERSION >= 34
262 #endif
263 
265 
266 typedef enum {
271 
276 
281 
287 
288 typedef enum {
293 
299 
300 typedef enum {
301 
306 
312 
313 typedef enum {
316  AF_CONV_FREQ
318 
319 typedef enum {
320  AF_SAD = 0,
328  AF_SHD
330 
331 #if AF_API_VERSION >= 31
332 typedef enum {
333  AF_YCC_601 = 601,
334  AF_YCC_709 = 709,
335  AF_YCC_2020 = 2020
337 #endif
338 
339 typedef enum {
340  AF_GRAY = 0,
342  AF_HSV
343 #if AF_API_VERSION >= 31
345 #endif
347 
348 typedef enum {
356  AF_MAT_SYM = 512,
357  AF_MAT_POSDEF = 1024,
358  AF_MAT_ORTHOG = 2048,
360  AF_MAT_BLOCK_DIAG = 8192
362 
363 typedef enum {
372 
375 
376 #if AF_API_VERSION >= 31
377 typedef enum {
382  AF_FIF_PNG = 13,
383  AF_FIF_PPM = 14,
385  AF_FIF_TIFF = 18,
386  AF_FIF_PSD = 20,
387  AF_FIF_HDR = 26,
388  AF_FIF_EXR = 29,
389  AF_FIF_JP2 = 31,
390  AF_FIF_RAW = 34
392 #endif
393 
394 #if AF_API_VERSION >=34
395 typedef enum {
402 #endif
403 
404 #if AF_API_VERSION >= 32
405 typedef enum {
409 #endif
410 
411 #if AF_API_VERSION >= 32
412 // These enums should be 2^x
413 typedef enum {
417  AF_BACKEND_OPENCL = 4
419 #endif
420 
421 // Below enum is purely added for example purposes
422 // it doesn't and shoudn't be used anywhere in the
423 // code. No Guarantee's provided if it is used.
424 typedef enum {
425  AF_ID = 0
427 
428 #if AF_API_VERSION >=34
429 typedef enum {
433  AF_BINARY_MAX = 3
435 #endif
436 
437 #if AF_API_VERSION >=34
438 typedef enum {
439  AF_RANDOM_ENGINE_PHILOX_4X32_10 = 100, //Philox variant with N = 4, W = 32 and Rounds = 10
440  AF_RANDOM_ENGINE_THREEFRY_2X32_16 = 200, //Threefry variant with N = 2, W = 32 and Rounds = 16
441  AF_RANDOM_ENGINE_MERSENNE_GP11213 = 300, //Mersenne variant with MEXP = 11213
447 #endif
448 
450 // FORGE / Graphics Related Enums
451 // These enums have values corresponsding to Forge enums in forge defines.h
453 typedef enum {
464  AF_COLORMAP_VIRIDIS = 10
466 
467 #if AF_API_VERSION >= 32
468 typedef enum {
476  AF_MARKER_STAR = 7
478 #endif
479 
481 #if AF_API_VERSION >= 35
482 typedef enum {
486 #endif
487 
488 #if AF_API_VERSION >= 34
489 typedef enum {
493  AF_STORAGE_COO = 3
495 #endif
496 
497 #if AF_API_VERSION >= 36
498 typedef enum {
501  AF_FLUX_DEFAULT = 0
503 
504 typedef enum {
509 
510 typedef enum {
513  AF_TOPK_DEFAULT = 0
515 #endif
516 
517 #if AF_API_VERSION >= 37
518 typedef enum {
523 
524 typedef enum {
529 
530 typedef enum {
534 
535 #endif
536 
537 #if AF_API_VERSION >= 37
538 typedef enum {
544 #endif
545 
546 #ifdef __cplusplus
547 namespace af
548 {
549  typedef af_dtype dtype;
550  typedef af_source source;
556  typedef af_someenum_t SomeEnum; // Purpose of Addition: How to add Function example
563 #if AF_API_VERSION >= 31
565 #endif
566 #if AF_API_VERSION >= 31
568 #endif
569 #if AF_API_VERSION >= 32
571 #endif
572 #if AF_API_VERSION >= 32
574 #endif
575 #if AF_API_VERSION >= 34
577 #endif
578 #if AF_API_VERSION >= 34
580 #endif
581 #if AF_API_VERSION >= 34
583 #endif
584 #if AF_API_VERSION >= 34
586 #endif
587 #if AF_API_VERSION >= 35
589 #endif
590 #if AF_API_VERSION >= 36
594 #endif
595 #if AF_API_VERSION >= 37
600 #endif
601 }
602 
603 #endif
af::diffusionEq
af_diffusion_eq diffusionEq
Definition: defines.h:592
AF_INTERP_BICUBIC_SPLINE
@ AF_INTERP_BICUBIC_SPLINE
Bicubic Interpolation with Catmull-Rom splines.
Definition: defines.h:261
af::matchType
af_match_type matchType
Definition: defines.h:554
AF_CONV_FREQ
@ AF_CONV_FREQ
Perform convolution in frequency domain.
Definition: defines.h:316
AF_TOPK_DEFAULT
@ AF_TOPK_DEFAULT
Default option (max)
Definition: defines.h:513
af::CSpace
af_cspace_t CSpace
Definition: defines.h:555
AF_BINARY_ADD
@ AF_BINARY_ADD
Definition: defines.h:430
AF_COLORMAP_PLASMA
@ AF_COLORMAP_PLASMA
Perceptually uniform shades of blue-red-yellow.
Definition: defines.h:463
af::varBias
af_var_bias varBias
Definition: defines.h:596
af_marker_type
af_marker_type
Definition: defines.h:468
af_diffusion_eq
af_diffusion_eq
Definition: defines.h:504
AF_MAT_TRANS
@ AF_MAT_TRANS
Data needs to be transposed.
Definition: defines.h:350
AF_FIF_JPEG
@ AF_FIF_JPEG
FreeImage Enum for JPEG File.
Definition: defines.h:380
AF_STORAGE_COO
@ AF_STORAGE_COO
Storage type is COO.
Definition: defines.h:493
af_source
af_source
Definition: defines.h:232
AF_NCC
@ AF_NCC
Match based on Normalized Cross Correlation (NCC)
Definition: defines.h:326
af_conv_gradient_type
af_conv_gradient_type
Definition: defines.h:538
AF_MARKER_POINT
@ AF_MARKER_POINT
Definition: defines.h:470
AF_INTERP_NEAREST
@ AF_INTERP_NEAREST
Nearest Interpolation.
Definition: defines.h:243
af_conv_mode
af_conv_mode
Definition: defines.h:300
AF_MOMENT_M11
@ AF_MOMENT_M11
Definition: defines.h:399
AF_ERR_NOT_CONFIGURED
@ AF_ERR_NOT_CONFIGURED
Definition: defines.h:144
AF_FIF_PSD
@ AF_FIF_PSD
FreeImage Enum for Adobe Photoshop File.
Definition: defines.h:386
AF_INTERP_LINEAR_COSINE
@ AF_INTERP_LINEAR_COSINE
Linear Interpolation with cosine smoothing.
Definition: defines.h:249
af_topk_function
af_topk_function
Definition: defines.h:510
AF_FIF_HDR
@ AF_FIF_HDR
FreeImage Enum for High Dynamic Range File.
Definition: defines.h:387
AF_NORM_VECTOR_INF
@ AF_NORM_VECTOR_INF
treats the input as a vector and returns the max of absolute values
Definition: defines.h:365
AF_PAD_SYM
@ AF_PAD_SYM
Out of bound values are symmetric over the edge.
Definition: defines.h:275
AF_FIF_PNG
@ AF_FIF_PNG
FreeImage Enum for Portable Network Graphics File.
Definition: defines.h:382
AF_COLORMAP_DEFAULT
@ AF_COLORMAP_DEFAULT
Default grayscale map.
Definition: defines.h:454
dim_t
long long dim_t
Definition: defines.h:56
AF_MAT_LOWER
@ AF_MAT_LOWER
Matrix is lower triangular.
Definition: defines.h:354
AF_CONNECTIVITY_8
@ AF_CONNECTIVITY_8
Connectivity includes 4-connectivity neigbors and also those on Northeast, Northwest,...
Definition: defines.h:297
af_binary_op
af_binary_op
Definition: defines.h:429
AF_TOPK_MIN
@ AF_TOPK_MIN
Top k min values.
Definition: defines.h:511
AF_COLORMAP_SPECTRUM
@ AF_COLORMAP_SPECTRUM
Spectrum map (390nm-830nm, in sRGB colorspace)
Definition: defines.h:455
af_var_bias
af_var_bias
Definition: defines.h:518
AF_SSD
@ AF_SSD
Match based on Sum of Squared Differences (SSD)
Definition: defines.h:323
AF_BACKEND_DEFAULT
@ AF_BACKEND_DEFAULT
Default backend order: OpenCL -> CUDA -> CPU.
Definition: defines.h:414
AF_MARKER_CIRCLE
@ AF_MARKER_CIRCLE
Definition: defines.h:471
af::Backend
af_backend Backend
Definition: defines.h:570
AF_COLORMAP_HEAT
@ AF_COLORMAP_HEAT
Heat map.
Definition: defines.h:459
af::convMode
af_conv_mode convMode
Definition: defines.h:558
AF_ERR_DEVICE
@ AF_ERR_DEVICE
Definition: defines.h:131
AF_ZSSD
@ AF_ZSSD
Match based on Zero mean SSD.
Definition: defines.h:324
AF_ERR_TYPE
@ AF_ERR_TYPE
Definition: defines.h:114
AF_FIF_RAW
@ AF_FIF_RAW
FreeImage Enum for RAW Camera Image File.
Definition: defines.h:390
AF_CONV_SPATIAL
@ AF_CONV_SPATIAL
Perform convolution in spatial domain.
Definition: defines.h:315
af::momentType
af_moment_type momentType
Definition: defines.h:576
af::dtype
af_dtype dtype
Definition: defines.h:549
u64
@ u64
64-bit unsigned integral values
Definition: defines.h:220
af::iterativeDeconvAlgo
af_iterative_deconv_algo iterativeDeconvAlgo
Definition: defines.h:597
AF_LSSD
@ AF_LSSD
Match based on Locally scaled SSD.
Definition: defines.h:325
AF_FLUX_QUADRATIC
@ AF_FLUX_QUADRATIC
Quadratic flux function.
Definition: defines.h:499
AF_SAD
@ AF_SAD
Match based on Sum of Absolute Differences (SAD)
Definition: defines.h:320
AF_BINARY_MAX
@ AF_BINARY_MAX
Definition: defines.h:433
AF_RANDOM_ENGINE_MERSENNE
@ AF_RANDOM_ENGINE_MERSENNE
Definition: defines.h:444
afHost
@ afHost
Host pointer.
Definition: defines.h:234
af
Definition: algorithm.h:15
AF_BINARY_MIN
@ AF_BINARY_MIN
Definition: defines.h:432
AF_NORM_MATRIX_1
@ AF_NORM_MATRIX_1
return the max of column sums
Definition: defines.h:368
af_mat_prop
af_mat_prop
Definition: defines.h:348
AF_ERR_UNKNOWN
@ AF_ERR_UNKNOWN
Definition: defines.h:207
AF_INVERSE_DECONV_DEFAULT
@ AF_INVERSE_DECONV_DEFAULT
Default is Tikhonov deconvolution.
Definition: defines.h:532
af::connectivity
af_connectivity connectivity
Definition: defines.h:553
AF_ERR_ARG
@ AF_ERR_ARG
Definition: defines.h:104
AF_ERR_NO_GFX
@ AF_ERR_NO_GFX
Definition: defines.h:164
af_cspace_t
af_cspace_t
Definition: defines.h:339
AF_ERR_LOAD_LIB
@ AF_ERR_LOAD_LIB
Definition: defines.h:179
af::source
af_source source
Definition: defines.h:550
AF_BACKEND_OPENCL
@ AF_BACKEND_OPENCL
OpenCL Compute Backend.
Definition: defines.h:417
AF_FIF_BMP
@ AF_FIF_BMP
FreeImage Enum for Bitmap File.
Definition: defines.h:378
af::ColorMap
af_colormap ColorMap
Definition: defines.h:561
AF_MARKER_STAR
@ AF_MARKER_STAR
Definition: defines.h:476
af_moment_type
af_moment_type
Definition: defines.h:395
AF_YCbCr
@ AF_YCbCr
3-channel YCbCr
Definition: defines.h:344
AF_RANDOM_ENGINE_MERSENNE_GP11213
@ AF_RANDOM_ENGINE_MERSENNE_GP11213
Definition: defines.h:441
AF_FIF_TIFF
@ AF_FIF_TIFF
FreeImage Enum for Tagged Image File Format File.
Definition: defines.h:385
AF_VARIANCE_SAMPLE
@ AF_VARIANCE_SAMPLE
Sample variance.
Definition: defines.h:520
AF_CONV_AUTO
@ AF_CONV_AUTO
ArrayFire automatically picks the right convolution algorithm.
Definition: defines.h:314
AF_RANDOM_ENGINE_PHILOX_4X32_10
@ AF_RANDOM_ENGINE_PHILOX_4X32_10
Definition: defines.h:439
AF_FIF_PPMRAW
@ AF_FIF_PPMRAW
FreeImage Enum for Portable Pixelmap (Binary) File.
Definition: defines.h:384
AF_CONV_DEFAULT
@ AF_CONV_DEFAULT
Output of the convolution is the same size as input.
Definition: defines.h:305
uintl
unsigned long long uintl
Definition: defines.h:63
AF_ERR_DRIVER
@ AF_ERR_DRIVER
Definition: defines.h:87
AF_NORM_MATRIX_2
@ AF_NORM_MATRIX_2
returns the max singular value). Currently NOT SUPPORTED
Definition: defines.h:370
AF_HOMOGRAPHY_RANSAC
@ AF_HOMOGRAPHY_RANSAC
Computes homography using RANSAC.
Definition: defines.h:406
AF_ERR_NONFREE
@ AF_ERR_NONFREE
Definition: defines.h:150
AF_MAT_TRI_DIAG
@ AF_MAT_TRI_DIAG
Matrix is tri diagonal.
Definition: defines.h:359
af::convGradientType
af_conv_gradient_type convGradientType
Definition: defines.h:599
AF_NORM_MATRIX_L_PQ
@ AF_NORM_MATRIX_L_PQ
returns Lpq-norm
Definition: defines.h:371
AF_NORM_EUCLID
@ AF_NORM_EUCLID
The default. Same as AF_NORM_VECTOR_2.
Definition: defines.h:373
AF_INTERP_CUBIC
@ AF_INTERP_CUBIC
Cubic Interpolation.
Definition: defines.h:246
AF_BINARY_MUL
@ AF_BINARY_MUL
Definition: defines.h:431
AF_FIF_JP2
@ AF_FIF_JP2
FreeImage Enum for JPEG-2000 File.
Definition: defines.h:389
AF_TOPK_MAX
@ AF_TOPK_MAX
Top k max values.
Definition: defines.h:512
u8
@ u8
8-bit unsigned integral values
Definition: defines.h:218
af_array
void * af_array
Definition: defines.h:240
AF_MAT_ORTHOG
@ AF_MAT_ORTHOG
Matrix is orthogonal.
Definition: defines.h:358
af_match_type
af_match_type
Definition: defines.h:319
af_image_format
af_image_format
Definition: defines.h:377
afDevice
@ afDevice
Device pointer.
Definition: defines.h:233
AF_NORM_VECTOR_1
@ AF_NORM_VECTOR_1
treats the input as a vector and returns the sum of absolute values
Definition: defines.h:364
AF_FIF_EXR
@ AF_FIF_EXR
FreeImage Enum for ILM OpenEXR File.
Definition: defines.h:388
intl
long long intl
Definition: defines.h:62
AF_COLORMAP_INFERNO
@ AF_COLORMAP_INFERNO
Perceptually uniform shades of black-red-yellow.
Definition: defines.h:461
AF_PAD_PERIODIC
@ AF_PAD_PERIODIC
Out of bound values are mapped to range of the dimension in cyclic fashion.
Definition: defines.h:285
b8
@ b8
8-bit boolean values
Definition: defines.h:215
AF_FIF_JNG
@ AF_FIF_JNG
FreeImage Enum for JPEG Network Graphics File.
Definition: defines.h:381
AF_ERR_INTERNAL
@ AF_ERR_INTERNAL
Definition: defines.h:202
AF_STORAGE_DENSE
@ AF_STORAGE_DENSE
Storage type is dense.
Definition: defines.h:490
AF_RANDOM_ENGINE_DEFAULT
@ AF_RANDOM_ENGINE_DEFAULT
Definition: defines.h:445
AF_SHD
@ AF_SHD
Match based on Sum of Hamming Distances (SHD)
Definition: defines.h:328
AF_YCC_709
@ AF_YCC_709
ITU-R BT.709 standard.
Definition: defines.h:334
af::borderType
af_border_type borderType
Definition: defines.h:552
af_canny_threshold
af_canny_threshold
Definition: defines.h:482
af::inverseDeconvAlgo
af_inverse_deconv_algo inverseDeconvAlgo
Definition: defines.h:598
AF_COLORMAP_COLORS
@ AF_COLORMAP_COLORS
Colors, aka. Rainbow.
Definition: defines.h:456
AF_CONV_EXPAND
@ AF_CONV_EXPAND
Output of the convolution is signal_len + filter_len - 1.
Definition: defines.h:310
AF_INTERP_BILINEAR
@ AF_INTERP_BILINEAR
Bilinear Interpolation.
Definition: defines.h:245
AF_ERR_SIZE
@ AF_ERR_SIZE
Definition: defines.h:109
AF_ITERATIVE_DECONV_RICHARDSONLUCY
@ AF_ITERATIVE_DECONV_RICHARDSONLUCY
Richardson-Lucy Deconvolution.
Definition: defines.h:526
af::normType
af_norm_type normType
Definition: defines.h:562
af_random_engine_type
af_random_engine_type
Definition: defines.h:438
af_dtype
af_dtype
Definition: defines.h:210
AF_COLORMAP_VIRIDIS
@ AF_COLORMAP_VIRIDIS
Perceptually uniform shades of blue-green-yellow.
Definition: defines.h:464
f64
@ f64
64-bit complex floating point values
Definition: defines.h:213
f16
@ f16
16-bit floating point value
Definition: defines.h:228
af::convDomain
af_conv_domain convDomain
Definition: defines.h:559
af::binaryOp
af_binary_op binaryOp
Definition: defines.h:582
AF_FLUX_EXPONENTIAL
@ AF_FLUX_EXPONENTIAL
Exponential flux function.
Definition: defines.h:500
AF_FLUX_DEFAULT
@ AF_FLUX_DEFAULT
Default flux function is exponential.
Definition: defines.h:501
af_backend
af_backend
Definition: defines.h:413
AF_YCC_2020
@ AF_YCC_2020
ITU-R BT.2020 standard.
Definition: defines.h:335
AF_MAT_BLOCK_DIAG
@ AF_MAT_BLOCK_DIAG
Matrix is block diagonal.
Definition: defines.h:360
AF_ERR_NO_MEM
@ AF_ERR_NO_MEM
Definition: defines.h:82
af::randomEngineType
af_random_engine_type randomEngineType
Definition: defines.h:585
AF_DIFFUSION_DEFAULT
@ AF_DIFFUSION_DEFAULT
Default option is same as AF_DIFFUSION_GRAD.
Definition: defines.h:507
af::YCCStd
af_ycc_std YCCStd
Definition: defines.h:564
AF_CONV_GRADIENT_FILTER
@ AF_CONV_GRADIENT_FILTER
Definition: defines.h:540
AF_DIFFUSION_GRAD
@ AF_DIFFUSION_GRAD
Gradient diffusion equation.
Definition: defines.h:505
s32
@ s32
32-bit signed integral values
Definition: defines.h:216
AF_NORM_MATRIX_INF
@ AF_NORM_MATRIX_INF
return the max of row sums
Definition: defines.h:369
AF_MOMENT_M10
@ AF_MOMENT_M10
Definition: defines.h:398
AF_RANDOM_ENGINE_PHILOX
@ AF_RANDOM_ENGINE_PHILOX
Definition: defines.h:442
AF_NORM_VECTOR_2
@ AF_NORM_VECTOR_2
treats the input as a vector and returns euclidean norm
Definition: defines.h:366
AF_ERR_NOT_SUPPORTED
@ AF_ERR_NOT_SUPPORTED
Definition: defines.h:139
AF_PAD_CLAMP_TO_EDGE
@ AF_PAD_CLAMP_TO_EDGE
Out of bound values are clamped to the edge.
Definition: defines.h:280
AF_ID
@ AF_ID
Definition: defines.h:425
af_flux_function
af_flux_function
Definition: defines.h:498
af_ycc_std
af_ycc_std
Definition: defines.h:332
af_iterative_deconv_algo
af_iterative_deconv_algo
Definition: defines.h:524
af_norm_type
af_norm_type
Definition: defines.h:363
af::trans
af_mat_prop trans
Definition: defines.h:557
AF_INTERP_LOWER
@ AF_INTERP_LOWER
Floor Indexed.
Definition: defines.h:247
af_inverse_deconv_algo
af_inverse_deconv_algo
Definition: defines.h:530
AF_ERR_NO_HALF
@ AF_ERR_NO_HALF
Definition: defines.h:170
s16
@ s16
16-bit signed integral values
Definition: defines.h:222
AF_SUCCESS
@ AF_SUCCESS
The function returned successfully.
Definition: defines.h:75
af::fluxFunction
af_flux_function fluxFunction
Definition: defines.h:591
AF_LSAD
@ AF_LSAD
Match based on Locally scaled SAD.
Definition: defines.h:322
AF_COLORMAP_RED
@ AF_COLORMAP_RED
Red hue map.
Definition: defines.h:457
AF_ZNCC
@ AF_ZNCC
Match based on Zero mean NCC.
Definition: defines.h:327
AF_CONV_GRADIENT_BIAS
@ AF_CONV_GRADIENT_BIAS
Definition: defines.h:542
AF_MOMENT_M01
@ AF_MOMENT_M01
Definition: defines.h:397
u16
@ u16
16-bit unsigned integral values
Definition: defines.h:225
AF_MARKER_CROSS
@ AF_MARKER_CROSS
Definition: defines.h:474
AF_MARKER_TRIANGLE
@ AF_MARKER_TRIANGLE
Definition: defines.h:473
AF_ITERATIVE_DECONV_DEFAULT
@ AF_ITERATIVE_DECONV_DEFAULT
Default is Landweber deconvolution.
Definition: defines.h:527
AF_STORAGE_CSR
@ AF_STORAGE_CSR
Storage type is CSR.
Definition: defines.h:491
AF_DEPRECATED
#define AF_DEPRECATED(msg)
Definition: defines.h:44
af::imageFormat
af_image_format imageFormat
Definition: defines.h:567
AF_RGB
@ AF_RGB
3-channel RGB
Definition: defines.h:341
AF_NORM_VECTOR_P
@ AF_NORM_VECTOR_P
treats the input as a vector and returns the p-norm
Definition: defines.h:367
AF_MARKER_NONE
@ AF_MARKER_NONE
Definition: defines.h:469
AF_COLORMAP_BLUE
@ AF_COLORMAP_BLUE
Blue hue map.
Definition: defines.h:460
AF_ERR_NO_DBL
@ AF_ERR_NO_DBL
Definition: defines.h:158
AF_ERR_LOAD_SYM
@ AF_ERR_LOAD_SYM
Definition: defines.h:186
u32
@ u32
32-bit unsigned integral values
Definition: defines.h:217
AF_HOMOGRAPHY_LMEDS
@ AF_HOMOGRAPHY_LMEDS
Computes homography using Least Median of Squares.
Definition: defines.h:407
af_border_type
af_border_type
Definition: defines.h:266
AF_CANNY_THRESHOLD_AUTO_OTSU
@ AF_CANNY_THRESHOLD_AUTO_OTSU
Determine canny algorithm thresholds using Otsu algorithm.
Definition: defines.h:484
AF_CONV_GRADIENT_DATA
@ AF_CONV_GRADIENT_DATA
Definition: defines.h:541
AF_ITERATIVE_DECONV_LANDWEBER
@ AF_ITERATIVE_DECONV_LANDWEBER
Landweber Deconvolution.
Definition: defines.h:525
AF_FIF_PPM
@ AF_FIF_PPM
FreeImage Enum for Portable Pixelmap (ASCII) File.
Definition: defines.h:383
AF_COLORMAP_MOOD
@ AF_COLORMAP_MOOD
Mood map.
Definition: defines.h:458
AF_STORAGE_CSC
@ AF_STORAGE_CSC
Storage type is CSC.
Definition: defines.h:492
AF_MAT_SYM
@ AF_MAT_SYM
Matrix is symmetric.
Definition: defines.h:356
AF_ERR_RUNTIME
@ AF_ERR_RUNTIME
Definition: defines.h:92
AF_MAT_POSDEF
@ AF_MAT_POSDEF
Matrix is positive definite.
Definition: defines.h:357
AF_MARKER_SQUARE
@ AF_MARKER_SQUARE
Definition: defines.h:472
AF_BACKEND_CUDA
@ AF_BACKEND_CUDA
CUDA Compute Backend.
Definition: defines.h:416
AF_ZSAD
@ AF_ZSAD
Match based on Zero mean SAD.
Definition: defines.h:321
af::markerType
af_marker_type markerType
Definition: defines.h:573
AF_CONV_GRADIENT_DEFAULT
@ AF_CONV_GRADIENT_DEFAULT
Definition: defines.h:539
af::interpType
af_interp_type interpType
Definition: defines.h:551
AF_RANDOM_ENGINE_THREEFRY_2X32_16
@ AF_RANDOM_ENGINE_THREEFRY_2X32_16
Definition: defines.h:440
AF_MOMENT_FIRST_ORDER
@ AF_MOMENT_FIRST_ORDER
Definition: defines.h:400
AF_GRAY
@ AF_GRAY
Grayscale.
Definition: defines.h:340
af::storage
af_storage storage
Definition: defines.h:579
AF_CONNECTIVITY_4
@ AF_CONNECTIVITY_4
Connectivity includes neighbors, North, East, South and West of current pixel.
Definition: defines.h:292
AF_ERR_DIFF_TYPE
@ AF_ERR_DIFF_TYPE
Definition: defines.h:119
AF_MAT_NONE
@ AF_MAT_NONE
Default.
Definition: defines.h:349
AF_MOMENT_M00
@ AF_MOMENT_M00
Definition: defines.h:396
af_conv_domain
af_conv_domain
Definition: defines.h:313
AF_INTERP_BICUBIC
@ AF_INTERP_BICUBIC
Bicubic Interpolation.
Definition: defines.h:255
AF_INVERSE_DECONV_TIKHONOV
@ AF_INVERSE_DECONV_TIKHONOV
Tikhonov Inverse deconvolution.
Definition: defines.h:531
AF_MAT_CTRANS
@ AF_MAT_CTRANS
Data needs to be conjugate tansposed.
Definition: defines.h:351
AF_YCC_601
@ AF_YCC_601
ITU-R BT.601 (formerly CCIR 601) standard.
Definition: defines.h:333
af::matProp
af_mat_prop matProp
Definition: defines.h:560
AF_MAT_UPPER
@ AF_MAT_UPPER
Matrix is upper triangular.
Definition: defines.h:353
AF_PAD_ZERO
@ AF_PAD_ZERO
Out of bound values are 0.
Definition: defines.h:270
AF_INTERP_BILINEAR_COSINE
@ AF_INTERP_BILINEAR_COSINE
Bilinear Interpolation with cosine smoothing.
Definition: defines.h:252
af_interp_type
af_interp_type
Definition: defines.h:242
AF_VARIANCE_POPULATION
@ AF_VARIANCE_POPULATION
Population variance.
Definition: defines.h:521
c64
@ c64
64-bit complex floating point values
Definition: defines.h:214
AF_INTERP_CUBIC_SPLINE
@ AF_INTERP_CUBIC_SPLINE
Cubic Interpolation with Catmull-Rom splines.
Definition: defines.h:258
c32
@ c32
32-bit complex floating point values
Definition: defines.h:212
af::cannyThreshold
af_canny_threshold cannyThreshold
Definition: defines.h:588
AF_MAT_DIAG_UNIT
@ AF_MAT_DIAG_UNIT
Matrix diagonal contains unitary values.
Definition: defines.h:355
AF_ERR_ARR_BKND_MISMATCH
@ AF_ERR_ARR_BKND_MISMATCH
Definition: defines.h:193
AF_MAT_CONJ
@ AF_MAT_CONJ
Data needs to be conjugate.
Definition: defines.h:352
af_connectivity
af_connectivity
Definition: defines.h:288
af::SomeEnum
af_someenum_t SomeEnum
Definition: defines.h:556
AF_ERR_INVALID_ARRAY
@ AF_ERR_INVALID_ARRAY
Definition: defines.h:99
af_storage
af_storage
Definition: defines.h:489
af_homography_type
af_homography_type
Definition: defines.h:405
af_err
af_err
Definition: defines.h:71
AF_HSV
@ AF_HSV
3-channel HSV
Definition: defines.h:342
AF_COLORMAP_MAGMA
@ AF_COLORMAP_MAGMA
Perceptually uniform shades of black-red-white.
Definition: defines.h:462
AF_RANDOM_ENGINE_THREEFRY
@ AF_RANDOM_ENGINE_THREEFRY
Definition: defines.h:443
AF_ERR_BATCH
@ AF_ERR_BATCH
Definition: defines.h:124
AF_VARIANCE_DEFAULT
@ AF_VARIANCE_DEFAULT
Default (Population) variance.
Definition: defines.h:519
AF_MARKER_PLUS
@ AF_MARKER_PLUS
Definition: defines.h:475
AF_INTERP_LINEAR
@ AF_INTERP_LINEAR
Linear Interpolation.
Definition: defines.h:244
af_colormap
af_colormap
Definition: defines.h:453
AF_FIF_ICO
@ AF_FIF_ICO
FreeImage Enum for Windows Icon File.
Definition: defines.h:379
AF_DIFFUSION_MCDE
@ AF_DIFFUSION_MCDE
Modified curvature diffusion equation.
Definition: defines.h:506
af_someenum_t
af_someenum_t
Definition: defines.h:424
af::topkFunction
af_topk_function topkFunction
Definition: defines.h:593
f32
@ f32
32-bit floating point values
Definition: defines.h:211
AF_BACKEND_CPU
@ AF_BACKEND_CPU
CPU a.k.a sequential algorithms.
Definition: defines.h:415
AF_CANNY_THRESHOLD_MANUAL
@ AF_CANNY_THRESHOLD_MANUAL
User has to define canny thresholds manually.
Definition: defines.h:483
s64
@ s64
64-bit signed integral values
Definition: defines.h:219