如何在 C 中读取二维双数组中的 .pgm 图像文件 [英] How to read a .pgm image file in a 2D double array in C

查看:23
本文介绍了如何在 C 中读取二维双数组中的 .pgm 图像文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问题很简单:如何在 C 中将 .pgm 图像文件读入 2D 双数组.我的内存中没有 .pgm 缓冲区.我想将它从磁盘读入内存.

The question is quite simple: How to read a .pgm image file into a 2D double array in C. I do not have a .pgm buffer in memory. I would like to read it from the disk into memory.

如果我能得到代码片段,我将不胜感激.谢谢.

Would really appreciate if I could get a code snippet. Thank You.

推荐答案

您可能不会有人为您编写所有代码,但这里有一些有用的链接可能会为您指明正确的方向:

You probably won't get someone writing you all the code, but here are some useful links that might point you in the right direction:

这篇关于如何在 C 中读取二维双数组中的 .pgm 图像文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆