图像阅读 [英] image reading

查看:66
本文介绍了图像阅读的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道如何在C中读取图像文件..什么是标题

我应该包括哪些?有关于此的任何教程吗?请告诉我。
$ div class =h2_lin>解决方案

vi ******* @ gmail.com 说:


我想知道如何在C中读取图像文件。我应该包括什么标题




C并不直接支持任何特定的图像格式(尽管有人可能会为XPM提供一个案例),但它'很容易用fopen打开一个文件。

然后是有趣的部分 - 确定文件的哪一部分意味着什么。


有关于此的任何教程吗?

http://www.wotsit.org 有规格许多文件格式。


-

Richard Heathfield< http://www.cpax.org.uk>

电子邮件:-http:// www。 + rjh @

谷歌用户:< http://www.cpax.org.uk/prg/writings/googly.php>

Usenet是一个奇怪的放置" - dmr 1999年7月29日


10月6日下午4:18,vimal3 ... @ gmail.com写道:


我想知道如何在C中读取图像文件..什么是标题

我应该包括哪些?有关于此的任何教程吗?



您可以使用fopen打开文件。您可以使用各种

函数读取数据,例如fgetc,fread。

应包含的标题取决于您的功能

将要使用。

任何体面的C书都会帮助你完成所有这些。

我推荐K& R2。


请通知我。



请问?不是吗?请输入整个单词。


文章< 5a *********************** *********** @ c22g2000prc。 googlegroups.com>,

< vi ******* @ gmail.comwrote:


>我想知道如何在C中读取图像文件..我应该包括什么标题?有关于此的任何教程吗?请告诉我。



你可能不想自己写这个。有免费的

库可用于JPEG和TIFF等常见格式,而

它们应该是相当便携的。显然,显示图像是系统相关的,但只是读取数据的情况要少得多。


从谷歌搜索libjpeg,libtiff,libpng开始。 ..


- Richard

-

请记得提及我/你留下的录音带。


I want to know how to read image files in C.. what are the headers
that i should include? is there any tutorials regarding this ? pls
inform me.

解决方案

vi*******@gmail.com said:

I want to know how to read image files in C.. what are the headers
that i should include?

C doesn''t directly support any particular image format (although one might
make out a case for XPM), but it''s easy enough to open a file using fopen.
Then comes the fun part - working out which bit of the file means what.

is there any tutorials regarding this ?

http://www.wotsit.org has the specs on lots of file formats.

--
Richard Heathfield <http://www.cpax.org.uk>
Email: -http://www. +rjh@
Google users: <http://www.cpax.org.uk/prg/writings/googly.php>
"Usenet is a strange place" - dmr 29 July 1999


On Oct 6, 4:18 pm, vimal3...@gmail.com wrote:

I want to know how to read image files in C.. what are the headers
that i should include? is there any tutorials regarding this ?

You can open files with fopen. You can read their data with various
functions, for example, fgetc, fread.
The headers that should be included depend on the functions you are
going to use.
Any decent C book will help you with all these.
I recommend K&R2.

pls inform me.

pls? Don''t you mean please? Type the whole word, please.


In article <5a**********************************@c22g2000prc. googlegroups.com>,
<vi*******@gmail.comwrote:

>I want to know how to read image files in C.. what are the headers
that i should include? is there any tutorials regarding this ? pls
inform me.

You probably don''t want to write this yourself. There are free
libraries available for the common formats like JPEG and TIFF, and
they should be fairly portable. Obviously displaying an image is
system-dependent, but just reading in the data is much less so.

Start by Googling for libjpeg, libtiff, libpng...

-- Richard
--
Please remember to mention me / in tapes you leave behind.


这篇关于图像阅读的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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