A high-performance general-purpose compute library
compatible.h File Reference
#include <af/defines.h>

Go to the source code of this file.

Namespaces

namespace  af
 

Functions

int devicecount ()
 Gets the number of devices.
 
int deviceget ()
 Gets the current device ID.
 
void deviceset (const int device)
 Sets the current device.
 
array loadimage (const char *filename, const bool is_color=false)
 C++ Interface for loading an image.
 
void saveimage (const char *filename, const array &in)
 C++ Interface for saving an image.
 
array gaussiankernel (const int rows, const int cols, const double sig_r=0, const double sig_c=0)
 Creates a Gaussian Kernel
 
template<typename T >
alltrue (const array &in)
 C++ Interface to check if all values along the first non-singleton dimension are true.
 
template<typename T >
anytrue (const array &in)
 C++ Interface to check if all values along the first non-singleton dimension are true.
 
array alltrue (const array &in, const int dim=-1)
 C++ Interface to check if all values along a given dimension are true.
 
array anytrue (const array &in, const int dim=-1)
 C++ Interface to check if any values along a given dimension are true.
 
array setunique (const array &in, const bool is_sorted=false)
 C++ Interface to return the unique values in an array.
 
array setunion (const array &first, const array &second, const bool is_unique=false)
 C++ Interface to evaluate the union of two arrays.
 
array setintersect (const array &first, const array &second, const bool is_unique=false)
 C++ Interface to evaluate the intersection of two arrays.
 
array histequal (const array &in, const array &hist)
 C++ Interface for histogram equalization.
 
array colorspace (const array &image, const CSpace to, const CSpace from)
 C++ Interface wrapper for colorspace conversion.
 
array filter (const array &image, const array &kernel)
 Image Filtering.
 
array mul (const array &in, const int dim=-1)
 C++ Interface to multiply array elements over a given dimension.
 
template<typename T >
mul (const array &in)
 C++ Interface to multiply array elements over the first non-singleton dimension.
 
void deviceprop (char *d_name, char *d_platform, char *d_toolkit, char *d_compute)
 Gets the information about device and platform as strings