compatible.h (2022-02-24 14:07:56 -0500, (build 8c2561559))
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
14namespace af
15{
16class array;
17
21AF_DEPRECATED("Use getDeviceCount instead")
23
27AF_DEPRECATED("Use getDevice instead")
29
33AF_DEPRECATED("Use setDevice instead")
34AFAPI void deviceset(const int device);
35
39AF_DEPRECATED("Use loadImage instead")
40AFAPI array loadimage(const char* filename, const bool is_color=false);
41
45AF_DEPRECATED("Use saveImage instead")
46AFAPI void saveimage(const char* filename, const array& in);
47
51AF_DEPRECATED("Use gaussianKernel instead")
52AFAPI array gaussiankernel(const int rows, const int cols, const double sig_r = 0, const double sig_c = 0);
53
57template<typename T>
58AF_DEPRECATED("Use allTrue instead")
59T alltrue(const array &in);
60
64template<typename T>
65AF_DEPRECATED("Use anyTrue instead")
66T anytrue(const array &in);
67
71AF_DEPRECATED("Use allTrue instead")
72AFAPI array alltrue(const array &in, const int dim = -1);
73
77AF_DEPRECATED("Use anyTrue instead")
78AFAPI array anytrue(const array &in, const int dim = -1);
79
83AF_DEPRECATED("Use setUnique instead")
84AFAPI array setunique(const array &in, const bool is_sorted=false);
85
89AF_DEPRECATED("Use setUnion instead")
90AFAPI array setunion(const array &first, const array &second, const bool is_unique=false);
91
95AF_DEPRECATED("Use setIntersect instead")
96AFAPI array setintersect(const array &first, const array &second, const bool is_unique=false);
97
101AF_DEPRECATED("Use histEqual instead")
102AFAPI array histequal(const array& in, const array& hist);
103
107AF_DEPRECATED("Use colorSpace instead")
108AFAPI array colorspace(const array& image, const CSpace to, const CSpace from);
109
127AF_DEPRECATED("Use af::convolve instead")
128AFAPI array filter(const array& image, const array& kernel);
129
133AF_DEPRECATED("Use af::product instead")
134AFAPI array mul(const array& in, const int dim = -1);
135
139template<typename T>
140AF_DEPRECATED("Use af::product instead")
141T mul(const array& in);
142
146AF_DEPRECATED("Use deviceInfo instead")
147AFAPI void deviceprop(char* d_name, char* d_platform, char *d_toolkit, char* d_compute);
148
149}
150#endif
A multi dimensional data container.
Definition: array.h:37
#define AF_DEPRECATED(msg)
Definition: defines.h:44
#define AFAPI
Definition: defines.h:38
af_cspace_t
Definition: defines.h:339
AFAPI int devicecount()
AFAPI int getDevice()
Gets the current device ID.
AFAPI int deviceget()
AFAPI void deviceprop(char *d_name, char *d_platform, char *d_toolkit, char *d_compute)
AFAPI void deviceInfo(char *d_name, char *d_platform, char *d_toolkit, char *d_compute)
AFAPI void deviceset(const int device)
AFAPI void setDevice(const int device)
Sets the current device.
AFAPI array colorSpace(const array &image, const CSpace to, const CSpace from)
C++ Interface wrapper for colorspace conversion.
AFAPI array colorspace(const array &image, const CSpace to, const CSpace from)
AFAPI array gaussiankernel(const int rows, const int cols, const double sig_r=0, const double sig_c=0)
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.
AFAPI array histEqual(const array &in, const array &hist)
C++ Interface for histogram equalization.
AFAPI array histequal(const array &in, const array &hist)
AFAPI array loadimage(const char *filename, const bool is_color=false)
AFAPI array loadImage(const char *filename, const bool is_color=false)
C++ Interface for loading an image.
AFAPI void saveimage(const char *filename, const array &in)
AFAPI void saveImage(const char *filename, const array &in)
C++ Interface for saving an image.
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:327
T alltrue(const array &in)
AFAPI array allTrue(const array &in, const int dim=-1)
C++ Interface for checking all true values in an array.
T anytrue(const array &in)
AFAPI array anyTrue(const array &in, const int dim=-1)
C++ Interface for checking any true values in an array.
AFAPI array mul(const array &in, const int dim=-1)
AFAPI array product(const array &in, const int dim=-1)
C++ Interface for product of elements in an array.
AFAPI array setintersect(const array &first, const array &second, const bool is_unique=false)
AFAPI array setIntersect(const array &first, const array &second, const bool is_unique=false)
C++ Interface for finding the intersection of two arrays.
AFAPI array setunion(const array &first, const array &second, const bool is_unique=false)
AFAPI array setUnion(const array &first, const array &second, const bool is_unique=false)
C++ Interface for finding the union of two arrays.
AFAPI array setUnique(const array &in, const bool is_sorted=false)
C++ Interface for getting unique values.
AFAPI array setunique(const array &in, const bool is_sorted=false)
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.
Definition: algorithm.h:15
AFAPI array filter(const array &image, const array &kernel)
Image Filtering.