|
2 | 2 | # Automatically generated using Clang.jl wrap_c, version 0.0.0 |
3 | 3 |
|
4 | 4 |
|
5 | | -export abs, accum, acos, acosh, add, afinfo, afinit, afversion, all, all_true_all, alloc_device, and, any |
6 | | -export any_true_all, approx1, approx2, arg, array_to_string, asin, asinh, assign_seq, atan, atan2, atanh |
7 | | -export bilateral, bitand, bitor, bitshiftl, bitshiftr, bitxor, canny, cbrt, ceil, cholesky_inplace, color_space |
8 | | -export complex, conj, convolve1, convolve2, convolve2_sep, convolve3, copy, corrcoef, cos, cosh, count |
9 | | -export count_all, cov, create_features, create_handle, create_indexers, create_random_engine, create_sparse_array |
10 | | -export create_sparse_array_from_dense, create_sparse_array_from_ptr, create_window, delete_image_memory |
11 | | -export destroy_window, det, device_array, device_gc, device_mem_info, diag, diagm, diff1, diff2, dilate |
12 | | -export dilate3, div, dog, dot, dot_all, draw_hist, draw_image, draw_plot, draw_plot3, draw_plot_2d, draw_plot_3d |
13 | | -export draw_plot_nd, draw_scatter, draw_scatter3, draw_scatter_2d, draw_scatter_3d, draw_scatter_nd, draw_surface |
14 | | -export draw_vector_field_2d, draw_vector_field_3d, draw_vector_field_nd, eq, erf, erfc, erode, erode3 |
15 | | -export exp, expm1, factorial, fast, flip, floor, free_device, full, gaussian_kernel, ge, get_active_backend |
16 | | -export get_available_backends, get_backend_count, get_backend_id, get_data_ptr, get_dbl_support, get_default_random_engine |
17 | | -export get_device, get_device_count, get_device_id, get_device_ptr, get_dims, get_elements, get_features_num |
18 | | -export get_features_orientation, get_features_score, get_features_size, get_features_xpos, get_features_ypos |
19 | | -export get_manual_eval_flag, get_mem_step_size, get_revision, get_seed, gloh, gradient, gray2rgb, gt, hamming_matcher |
20 | | -export harris, hist_equal, histogram, homography, hsv2rgb, hypot, identity, imag, imax, imax_all, imin |
21 | | -export imin_all, index, index_gen, inverse, iota, is_bool, is_column, is_complex, is_double, is_empty |
22 | | -export is_floating, is_image_io_available, is_integer, is_lapack_available, is_locked_array, is_real, is_realfloating |
23 | | -export is_row, is_scalar, is_single, is_vector, is_window_closed, isinf, isnan, issparse, iszero, le, lgamma |
24 | | -export load_image, load_image_memory, load_image_native, lock_array, lock_device_ptr, log, log10, log1p |
25 | | -export log2, lookup, lower, lt, lu, lu_inplace, make_seq, match_template, matmul, max_all, maxfilt, maximum |
26 | | -export maxof, mean_all, mean_all_weighted, mean_shift, medfilt, medfilt1, medfilt2, median_all, min_all |
27 | | -export minfilt, minimum, minof, mod, moments, moments_all, mul, nearest_neighbour, neq, norm, not, or |
28 | | -export orb, pow, pow2, print_array, print_array_gen, print_mem_info, prod, product_all, product_nan, product_nan_all |
29 | | -export qr, qr_inplace, random_engine_get_seed, random_engine_get_type, random_engine_set_seed, random_engine_set_type |
30 | | -export random_normal, random_uniform, range, rank, read_array_index, read_array_key, read_array_key_check |
31 | | -export real, regions, release_features, release_random_engine, rem, reorder, replace, replace, resize |
32 | | -export retain_features, retain_random_engine, rgb2gray, rgb2hsv, rgb2ycbcr, root, rotate, round, sat, save_array |
33 | | -export save_image, save_image_memory, save_image_native, scale, scan, scan_by_key, set_axes_limits_2d |
34 | | -export set_axes_limits_3d, set_axes_limits_compute, set_axes_titles, set_backend, set_default_random_engine_type |
| 5 | +export abs, accum, acos, acosh, add, afinfo, afinit, afversion, all, all_true_all, alloc_device, and, anisotropic_diffusion |
| 6 | +export any, any_true_all, approx1, approx2, arg, array_to_string, asin, asinh, assign_seq, atan, atan2 |
| 7 | +export atanh, bilateral, bitand, bitor, bitshiftl, bitshiftr, bitxor, canny, cbrt, ceil, cholesky_inplace |
| 8 | +export color_space, complex, conj, convolve1, convolve2, convolve2_sep, convolve3, copy, corrcoef, cos |
| 9 | +export cosh, count, count_all, cov, create_features, create_handle, create_indexers, create_random_engine |
| 10 | +export create_sparse_array, create_sparse_array_from_dense, create_sparse_array_from_ptr, create_window |
| 11 | +export delete_image_memory, destroy_window, det, device_array, device_gc, device_mem_info, diag, diagm |
| 12 | +export diff1, diff2, dilate, dilate3, div, dog, dot, dot_all, draw_hist, draw_image, draw_plot, draw_plot3 |
| 13 | +export draw_plot_2d, draw_plot_3d, draw_plot_nd, draw_scatter, draw_scatter3, draw_scatter_2d, draw_scatter_3d |
| 14 | +export draw_scatter_nd, draw_surface, draw_vector_field_2d, draw_vector_field_3d, draw_vector_field_nd |
| 15 | +export eq, erf, erfc, erode, erode3, exp, expm1, factorial, fast, flip, floor, free_device, full, gaussian_kernel |
| 16 | +export ge, get_active_backend, get_available_backends, get_backend_count, get_backend_id, get_data_ptr |
| 17 | +export get_dbl_support, get_default_random_engine, get_device, get_device_count, get_device_id, get_device_ptr |
| 18 | +export get_dims, get_elements, get_features_num, get_features_orientation, get_features_score, get_features_size |
| 19 | +export get_features_xpos, get_features_ypos, get_manual_eval_flag, get_mem_step_size, get_revision, get_seed |
| 20 | +export gloh, gradient, gray2rgb, gt, hamming_matcher, harris, hist_equal, histogram, homography, hsv2rgb |
| 21 | +export hypot, identity, imag, imax, imax_all, imin, imin_all, index, index_gen, inverse, iota, is_bool |
| 22 | +export is_column, is_complex, is_double, is_empty, is_floating, is_image_io_available, is_integer, is_lapack_available |
| 23 | +export is_locked_array, is_real, is_realfloating, is_row, is_scalar, is_single, is_vector, is_window_closed |
| 24 | +export isinf, isnan, issparse, iszero, le, lgamma, load_image, load_image_memory, load_image_native, lock_array |
| 25 | +export lock_device_ptr, log, log10, log1p, log2, lookup, lower, lt, lu, lu_inplace, make_seq, match_template |
| 26 | +export matmul, max_all, maxfilt, maximum, maxof, mean_all, mean_all_weighted, mean_shift, medfilt, medfilt1 |
| 27 | +export medfilt2, median_all, min_all, minfilt, minimum, minof, mod, moments, moments_all, mul, nearest_neighbour |
| 28 | +export neq, norm, not, or, orb, pow, pow2, print_array, print_array_gen, print_mem_info, prod, product_all |
| 29 | +export product_nan, product_nan_all, qr, qr_inplace, random_engine_get_seed, random_engine_get_type, random_engine_set_seed |
| 30 | +export random_engine_set_type, random_normal, random_uniform, range, rank, read_array_index, read_array_key |
| 31 | +export read_array_key_check, real, regions, release_features, release_random_engine, rem, reorder, replace |
| 32 | +export replace, resize, retain_features, retain_random_engine, rgb2gray, rgb2hsv, rgb2ycbcr, root, rotate |
| 33 | +export round, sat, save_array, save_image, save_image_memory, save_image_native, scale, scan, scan_by_key |
| 34 | +export set_axes_limits_2d, set_axes_limits_3d, set_axes_limits_compute, set_axes_titles, set_backend, set_default_random_engine_type |
35 | 35 | export set_device, set_intersect, set_manual_eval_flag, set_mem_step_size, set_position, set_seed, set_size |
36 | 36 | export set_title, set_union, set_unique, set_visibility, shift, show, sift, sigmoid, signbit, sin, sinh |
37 | 37 | export skew, sobel_operator, solve, solve_lu, sort_by_key, sparse_convert_to, sparse_get_col_idx, sparse_get_info |
@@ -1509,6 +1509,12 @@ function canny{T,N}(_in::AFArray{T,N},threshold_type::af_canny_threshold,low_thr |
1509 | 1509 | AFArray{T,N}(out[]) |
1510 | 1510 | end |
1511 | 1511 |
|
| 1512 | +function anisotropic_diffusion{T,N}(_in::AFArray{T,N},timestep::Cfloat,conductance::Cfloat,iterations::Integer,fftype::af_flux_function,diffusion_kind::af_diffusion_eq) |
| 1513 | + out = RefValue{af_array}(0) |
| 1514 | + _error(ccall((:af_anisotropic_diffusion,af_lib),af_err,(Ptr{af_array},af_array,Cfloat,Cfloat,UInt32,af_flux_function,af_diffusion_eq),out,_in.arr,timestep,conductance,UInt32(iterations),fftype,diffusion_kind)) |
| 1515 | + AFArray{T,N}(out[]) |
| 1516 | +end |
| 1517 | + |
1512 | 1518 | function svd_inplace(_in::AFArray) |
1513 | 1519 | u = RefValue{af_array}(0) |
1514 | 1520 | s = RefValue{af_array}(0) |
|
0 commit comments