147 AFAPI void deviceprop(
char* d_name,
char* d_platform,
char *d_toolkit,
char* d_compute);
AFAPI void saveImage(const char *filename, const array &in)
C++ Interface for saving an image.
AFAPI array loadimage(const char *filename, const bool is_color=false)
C++ Interface for loading an image.
Definition: algorithm.h:14
AFAPI array setunion(const array &first, const array &second, const bool is_unique=false)
C++ Interface for performing union of two arrays.
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.
AFAPI array mul(const array &in, const int dim=-1)
C++ Interface for product of elements in an array.
AFAPI array setunique(const array &in, const bool is_sorted=false)
C++ Interface for getting unique values.
AFAPI array histEqual(const array &in, const array &hist)
C++ Interface for histogram equalization.
AFAPI void deviceset(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 allTrue(const array &in, const int dim=-1)
C++ Interface for checking all true values in an array.
AFAPI int deviceget()
Gets the current device ID.
AFAPI array gaussiankernel(const int rows, const int cols, const double sig_r=0, const double sig_c=0)
Creates a Gaussian Kernel.
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:329
AFAPI void deviceprop(char *d_name, char *d_platform, char *d_toolkit, char *d_compute)
Gets the information about device and platform as strings.
AFAPI array histequal(const array &in, const array &hist)
C++ Interface for histogram equalization.
AFAPI void saveimage(const char *filename, const array &in)
C++ Interface for saving an image.
#define DEPRECATED(msg)
Definition: defines.h:37
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 setintersect(const array &first, const array &second, const bool is_unique=false)
C++ Interface for performing intersect of two arrays.
AFAPI array product(const array &in, const int dim=-1)
C++ Interface for product of elements in an array.
#define AFAPI
Definition: defines.h:31
AFAPI array setIntersect(const array &first, const array &second, const bool is_unique=false)
C++ Interface for performing intersect of two arrays.
AFAPI array anyTrue(const array &in, const int dim=-1)
C++ Interface for checking any true values in an array.
AFAPI array setUnique(const array &in, const bool is_sorted=false)
C++ Interface for getting unique values.
AFAPI int devicecount()
Gets the number of devices.
AFAPI array loadImage(const char *filename, const bool is_color=false)
C++ Interface for loading an image.
AFAPI void deviceInfo(char *d_name, char *d_platform, char *d_toolkit, char *d_compute)
Gets the information about device and platform as strings.
AFAPI array colorSpace(const array &image, const CSpace to, const CSpace from)
C++ Interface wrapper for colorspace conversion.
af_cspace_t CSpace
Definition: defines.h:406
AFAPI array filter(const array &image, const array &kernel)
Image Filtering.
T anytrue(const array &in)
C++ Interface for checking if all values in an array are true.
AFAPI array setUnion(const array &first, const array &second, const bool is_unique=false)
C++ Interface for performing union of two arrays.
AFAPI void setDevice(const int device)
Sets the current device.
T alltrue(const array &in)
C++ Interface for checking if all values in an array are true.
AFAPI int getDevice()
Gets the current device ID.