我如何逐行阅读图像? [英] How I can read image line by line ?
本文介绍了我如何逐行阅读图像?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
请我使用visual studio c语言,
i想知道我如何逐行读取图像(输入图像像c中的文件)
例如图像512 * 512
逐行读取512行,每行将其保存在一个文件中:)
thnx:)
我尝试了什么:
i没有试过我想要一个想法
解决方案
这不是很多。如果您只想读取字节数,则可以使用文件i / o 并阅读512字节。
但有趣的是显示数据。比你必须正确访问像素。通常,x轴是直线,y轴是直线计数。首先准备足够大的图片,然后循环并设置像素。
CXImage文章是一篇杰出的文章,展示了所需技术的漏洞。
hey friends
please i work with visual studio c language ,
i want know how i can read image line by line (input image like a file in c)
for example image 512*512
read 512 line by line and every line save it in one file :)
thnx :)
What I have tried:
i nothing tried i want just a idea
解决方案
That isnt much. If you only want to read the bytes than you can use the file i/o and read your 512 bytes.
But interesting gets the display of that data. Than you must access the pixels correctly. Normally the x-axis is a line and the y-axis is the line count. Prepare a big enough picture at first and than loop and set the pixels.
The CXImage article is an outstanding piece which demonstrates a hole bunch of the needed technology.
这篇关于我如何逐行阅读图像?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文