- Main Page
- Tutorials
- Functions
- Release Notes
- Examples

compatible.h
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 * http://arrayfire.com/licenses/BSD-3-Clause
8 ********************************************************/
9
10 #pragma once
11 #include <af/defines.h>
12
13 #ifdef __cplusplus
14 namespace af
15 {
16 class array;
17
21 DEPRECATED("Use getDeviceCount instead")
22 AFAPI int devicecount();
23
27 DEPRECATED("Use getDevice instead")
28 AFAPI int deviceget();
29
33 DEPRECATED("Use setDevice instead")
34 AFAPI void deviceset(const int device);
35
39 DEPRECATED("Use loadImage instead")
40 AFAPI array loadimage(const char* filename, const bool is_color=false);
41
45 DEPRECATED("Use saveImage instead")
46 AFAPI void saveimage(const char* filename, const array& in);
47
51 DEPRECATED("Use gaussianKernel instead")
52 AFAPI array gaussiankernel(const int rows, const int cols, const double sig_r = 0, const double sig_c = 0);
53
57 template<typename T>
58 DEPRECATED("Use allTrue instead")
59 T alltrue(const array &in);
60
64 template<typename T>
65 DEPRECATED("Use anyTrue instead")
66 T anytrue(const array &in);
67
71 DEPRECATED("Use allTrue instead")
72 AFAPI array alltrue(const array &in, const int dim = -1);
73
77 DEPRECATED("Use anyTrue instead")
78 AFAPI array anytrue(const array &in, const int dim = -1);
79
83 DEPRECATED("Use setUnique instead")
84 AFAPI array setunique(const array &in, const bool is_sorted=false);
85
89 DEPRECATED("Use setUnion instead")
90 AFAPI array setunion(const array &first, const array &second, const bool is_unique=false);
91
95 DEPRECATED("Use setIntersect instead")
96 AFAPI array setintersect(const array &first, const array &second, const bool is_unique=false);
97
101 DEPRECATED("Use histEqual instead")
102 AFAPI array histequal(const array& in, const array& hist);
103
107 DEPRECATED("Use colorSpace instead")
108 AFAPI array colorspace(const array& image, const CSpace to, const CSpace from);
109
127 DEPRECATED("Use af::convolve instead")
128 AFAPI array filter(const array& image, const array& kernel);
129
133 DEPRECATED("Use af::product instead")
134 AFAPI array mul(const array& in, const int dim = -1);
135
139 template<typename T>
140 DEPRECATED("Use af::product instead")
141 T mul(const array& in);
142
146 DEPRECATED("Use deviceInfo instead")
147 AFAPI void deviceprop(char* d_name, char* d_platform, char *d_toolkit, char* d_compute);
148
149 }
150 #endif
af::saveImage
AFAPI void saveImage(const char *filename, const array &in)
C++ Interface for saving an image.
af::loadimage
AFAPI array loadimage(const char *filename, const bool is_color=false)
C++ Interface for loading an image.
af
Definition: algorithm.h:14
af::setunion
AFAPI array setunion(const array &first, const array &second, const bool is_unique=false)
C++ Interface for performing union of two arrays.
af::convolve
AFAPI array convolve(const array &signal, const array &filter, const convMode mode=AF_CONV_DEFAULT, const convDomain domain=AF_CONV_AUTO)
C++ Interface for convolution any(one through three) dimensional signals.
af::mul
AFAPI array mul(const array &in, const int dim=-1)
C++ Interface for product of elements in an array.
af::setunique
AFAPI array setunique(const array &in, const bool is_sorted=false)
C++ Interface for getting unique values.
af::histEqual
AFAPI array histEqual(const array &in, const array &hist)
C++ Interface for histogram equalization.
af::deviceset
AFAPI void deviceset(const int device)
Sets the current device.
af::colorspace
AFAPI array colorspace(const array &image, const CSpace to, const CSpace from)
C++ Interface wrapper for colorspace conversion.
af::allTrue
AFAPI array allTrue(const array &in, const int dim=-1)
C++ Interface for checking all true values in an array.
af::deviceget
AFAPI int deviceget()
Gets the current device ID.
af::gaussiankernel
AFAPI array gaussiankernel(const int rows, const int cols, const double sig_r=0, const double sig_c=0)
Creates a Gaussian Kernel.
af::deviceprop
AFAPI void deviceprop(char *d_name, char *d_platform, char *d_toolkit, char *d_compute)
af::histequal
AFAPI array histequal(const array &in, const array &hist)
C++ Interface for histogram equalization.
af::saveimage
AFAPI void saveimage(const char *filename, const array &in)
C++ Interface for saving an image.
DEPRECATED
#define DEPRECATED(msg)
Definition: defines.h:37
defines.h
af::gaussianKernel
AFAPI 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::setintersect
AFAPI array setintersect(const array &first, const array &second, const bool is_unique=false)
C++ Interface for performing intersect of two arrays.
af::product
AFAPI array product(const array &in, const int dim=-1)
C++ Interface for product of elements in an array.
AFAPI
#define AFAPI
Definition: defines.h:31
af::setIntersect
AFAPI array setIntersect(const array &first, const array &second, const bool is_unique=false)
C++ Interface for performing intersect of two arrays.
af::anyTrue
AFAPI array anyTrue(const array &in, const int dim=-1)
C++ Interface for checking any true values in an array.
af::setUnique
AFAPI array setUnique(const array &in, const bool is_sorted=false)
C++ Interface for getting unique values.
af::devicecount
AFAPI int devicecount()
Gets the number of devices.
af::loadImage
AFAPI array loadImage(const char *filename, const bool is_color=false)
C++ Interface for loading an image.
afcl::array
static af::array array(af::dim4 idims, cl_mem buf, af::dtype type, bool retain=false)
Create an af::array object from an OpenCL cl_mem buffer.
Definition: opencl.h:136
af::deviceInfo
AFAPI void deviceInfo(char *d_name, char *d_platform, char *d_toolkit, char *d_compute)
af::colorSpace
AFAPI array colorSpace(const array &image, const CSpace to, const CSpace from)
C++ Interface wrapper for colorspace conversion.
af::CSpace
af_cspace_t CSpace
Definition: defines.h:335
af::filter
AFAPI array filter(const array &image, const array &kernel)
Image Filtering.
af::anytrue
T anytrue(const array &in)
C++ Interface for checking if all values in an array are true.
af::setUnion
AFAPI array setUnion(const array &first, const array &second, const bool is_unique=false)
C++ Interface for performing union of two arrays.
af::setDevice
AFAPI void setDevice(const int device)
Sets the current device.
af::alltrue
T alltrue(const array &in)
C++ Interface for checking if all values in an array are true.
af::getDevice
AFAPI int getDevice()
Gets the current device ID.