Miscellaneous Arrayfire-OpenCV interoperability functions