Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/image/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Image Arrayfire支持的图像格式_Image_Arrayfire - Fatal编程技术网

Image Arrayfire支持的图像格式

Image Arrayfire支持的图像格式,image,arrayfire,Image,Arrayfire,我想开始一个小项目,以确定重复的图像在我的硬盘-主要是尝试GPU和Swift。我看着Arrayfire,想知道它是否真的能够加载原始图像。我读了docu,看到它使用FreeImage,但不知道支持什么原始格式。任何暗示都将不胜感激 ArrayFire使用FreeImage加载和存储支持原始文件读取的图像。我给了它一个从佳能EOS 1DX加载原始文件的快速尝试,它似乎已经正确加载-虽然我不能肯定,因为我还没有验证加载图像的准确性。下面是我尝试过的代码 array a = af::loadImage

我想开始一个小项目,以确定重复的图像在我的硬盘-主要是尝试GPU和Swift。我看着Arrayfire,想知道它是否真的能够加载原始图像。我读了docu,看到它使用FreeImage,但不知道支持什么原始格式。任何暗示都将不胜感激

ArrayFire使用FreeImage加载和存储支持原始文件读取的图像。我给了它一个从佳能EOS 1DX加载原始文件的快速尝试,它似乎已经正确加载-虽然我不能肯定,因为我还没有验证加载图像的准确性。下面是我尝试过的代码

array a = af::loadImage("/home/pradeep/Downloads/RAW_CANON_EOS_1DX.CR2", true);
af::Window wnd;
while(!wnd.close())
    wnd.image(normalize(a)); //rescale the channel values to 0-1 range
加载图像后,可以使用加载的af::数组上的所有函数