A high-performance general-purpose compute library
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
14namespace af
15{
16class array;
17
21AF_DEPRECATED("Use getDeviceCount instead")
23
29
34AFAPI void deviceset(const int device);
35
41
47
52AFAPI array gaussiankernel(const int rows, const int cols, const double sig_r = 0, const double sig_c = 0);
53
60
67
73
79
85
91
97
103
109
129
135
142
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()
Gets the number of devices.
AFAPI int getDevice()
Gets the current device ID.
AFAPI int deviceget()
Gets the current device ID.
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)
Sets the current 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)
C++ Interface wrapper for colorspace conversion.
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 gaussiankernel(const int rows, const int cols, const double sig_r=0, const double sig_c=0)
AFAPI array histequal(const array &in, const array &hist)
C++ Interface for histogram equalization.
AFAPI array histEqual(const array &in, const array &hist)
C++ Interface for histogram equalization.
AFAPI array loadImage(const char *filename, const bool is_color=false)
C++ Interface for loading an image.
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)
C++ Interface for saving an image.
AFAPI void saveImage(const char *filename, const array &in)
C++ Interface for saving an image.
T alltrue(const array &in)
C++ Interface to check if all values along the first non-singleton dimension are true.
AFAPI array allTrue(const array &in, const int dim=-1)
C++ Interface to check if all values along a given dimension are true.
AFAPI array anyTrue(const array &in, const int dim=-1)
C++ Interface to check if any values along a given dimension are true.
T anytrue(const array &in)
C++ Interface to check if all values along the first non-singleton dimension are true.
AFAPI array product(const array &in, const int dim=-1)
C++ Interface to multiply array elements over a given dimension.
AFAPI array mul(const array &in, const int dim=-1)
C++ Interface to multiply array elements over a given dimension.
AFAPI array sum(const array &in, const int dim=-1)
C++ Interface to sum array elements over a given dimension.
AFAPI array setIntersect(const array &first, const array &second, const bool is_unique=false)
C++ Interface to evaluate the intersection of two arrays.
AFAPI array setintersect(const array &first, const array &second, const bool is_unique=false)
C++ Interface to evaluate the intersection of two arrays.
AFAPI array setunion(const array &first, const array &second, const bool is_unique=false)
C++ Interface to evaluate the union of two arrays.
AFAPI array setUnion(const array &first, const array &second, const bool is_unique=false)
C++ Interface to evaluate the union of two arrays.
AFAPI array setunique(const array &in, const bool is_sorted=false)
C++ Interface to return the unique values in an array.
AFAPI array setUnique(const array &in, const bool is_sorted=false)
C++ Interface to return the unique values in an array.
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.