Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/haskell/9.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
Arrays 从UArray转换为StorableArray_Arrays_Haskell_Image Processing - Fatal编程技术网

Arrays 从UArray转换为StorableArray

Arrays 从UArray转换为StorableArray,arrays,haskell,image-processing,Arrays,Haskell,Image Processing,我正在使用加载磁盘上的PNG fron,我需要一个指向原始像素数据的指针。它作为UArray存储在JuicyPixels中。我怎样才能得到那个指针?它是否像“强制转换”到StorableArray一样简单?如果是,如何使用?您可以在IO中使用: do storableArray <- thaw uArray ... do storableArray您可以在IO中使用: do storableArray <- thaw uArray ... do storableArr

我正在使用加载磁盘上的PNG fron,我需要一个指向原始像素数据的指针。它作为UArray存储在JuicyPixels中。我怎样才能得到那个指针?它是否像“强制转换”到StorableArray一样简单?如果是,如何使用?

您可以在
IO
中使用:

do storableArray <- thaw uArray
   ...
do storableArray您可以在
IO
中使用:

do storableArray <- thaw uArray
   ...

do storableArray感谢您提及JuicyPixels!我不知道。谢谢你提到JuicyPixels!我不知道这件事。