如何使用Core Graphics读取二进制图像文件?

时间:2022-07-14 19:35:39

I created an image in Matlab and changed it into binary image file. I want to read in the file using Core Graphics APIs.

我在Matlab中创建了一个图像并将其更改为二进制图像文件。我想使用Core Graphics API读取文件。

Thanks

2 个解决方案

#1


Check out the ImageIO framework with raw data.

使用原始数据查看ImageIO框架。

#2


As you don't say what format your binary image file is in I will recommend ImageMagick. It is a powerful image processing library which has bindings for many languages.

由于您没有说明二进制图像文件的格式,我将推荐ImageMagick。它是一个功能强大的图像处理库,具有许多语言的绑定。

You can use it to transform your binary image file into a format that Core Graphics can understand.

您可以使用它将二进制图像文件转换为Core Graphics可以理解的格式。

#1


Check out the ImageIO framework with raw data.

使用原始数据查看ImageIO框架。

#2


As you don't say what format your binary image file is in I will recommend ImageMagick. It is a powerful image processing library which has bindings for many languages.

由于您没有说明二进制图像文件的格式,我将推荐ImageMagick。它是一个功能强大的图像处理库,具有许多语言的绑定。

You can use it to transform your binary image file into a format that Core Graphics can understand.

您可以使用它将二进制图像文件转换为Core Graphics可以理解的格式。