Read tiff from memory(从内存流读取TIFF)
2007-04-15 10:10
531 查看
libtiff提供的TIFFOpen函数值能够从文件打开TIFF,如果想从内存流,或者数据库中的BLOB字段读取则不是很方便,或者我们会把流存为临时的TIFF文件再打开,那显然不很经济。关于如何从内存留读取TIFF格式图像数据,在libtiff的用户共享包里有个例子,参考:
http://www.libtiff.org/contrib.html
contrib/mfs
code from Mike Johnson to read+write images in memory without modifying the library
该问题的一些提问请参考如下两条回复:
1、http://www.asmail.be/msg0055488938.html
Thread2004.04.14 20:01 "Read tiff from memory", by Ann Wang
2004.04.14 21:03 "Re: Read tiff from memory", by Andrey Kiselev
2004.04.14 21:06 "Re: Read tiff from memory", by Frank Warmerdam
2004.04.14 21:03 "Re: Read tiff from memory", by Andrey Kiselev
On Wed, Apr 14, 2004 at 03:01:22PM -0500, Ann Wang wrote: > Hi, I am a newbie and want to know if there is a way to read tiff from > memory buffer instead of from file. Looking at the documentation, I > only see examples reading the tiff using TIFFOpen(tiff filename, > mode). Is there a TIFFOpen function that will read from memory buffer > instead? You need TIFFClientOpen() function. And contrib/mfs directory even contains the code for working with the memory buffer. Regards, Andrey -- Andrey V. Kiselev Home phone: +7 812 5274898 ICQ# 26871517
2、http://www.asmail.be/msg0055488682.html
Thread2004.04.14 20:01 "Read tiff from memory", by Ann Wang
2004.04.14 21:03 "Re: Read tiff from memory", by Andrey Kiselev
2004.04.14 21:06 "Re: Read tiff from memory", by Frank Warmerdam
2004.04.14 21:06 "Re: Read tiff from memory", by Frank Warmerdam
Ann Wang wrote: > Hi, I am a newbie and want to know if there is a way to read tiff from > memory buffer instead of from file. Looking at the documentation, I only > see examples reading the tiff using TIFFOpen(tiff filename, mode). Is > there a TIFFOpen function that will read from memory buffer instead? Ann, The TIFFClientOpen() function allows you to pass in functions to be used for seeking, reading, writing and so forth. This can be used to access in memory datasets. The contrib/mfs directory contains one example of an "in memory" access implementation using this mechanism. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam@pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent
3、另:IBM网站的资料
Graphics programming with libtiff, Part 2
http://www-128.ibm.com/developerworks/linux/librar...
相关文章推荐
- WinAPI: ReadProcessMemory 读取指定进程内存数据
- !!!!高分求教ReadProcessMemory读取内存.有关内存偏移量的问题!
- 通过ReadProcessMemory读取进程内存
- Mysql SQL random read n item data from a table ( Mysql随机读取SQL查询语句 )
- Read physical memory information from registry
- [WASM] Read WebAssembly Memory from JavaScript
- 读取系统通讯录信息的时候出错:.IllegalStateException: Couldn't read row 0, col -1 from CursorWindow
- 使用CSVRead, CSVData Set Config, __StringfromFile从外部读取参数
- ORA-39050: parameter _log_private_parallelism is incompatible with parameter _redo_read_from_memory
- Python3 pandas read_csv 读取txt文件报错:IOError: Initializing from file failed
- 【Delphi】从内存(MemoryStream)使用WMP(WindowsMediaPlayer)控件播放视频音频(Play Video with WMP from MemoryStream)
- ReadProcessMemory 输入进程ID 输入读取地址
- 读取系统通讯录信息的时候出错:.IllegalStateException: Couldn't read row 0, col -1 from CursorWindow
- 读取与修改其他程序的数据Read/WriteProcessMemory
- 如何利用Win32API取得另一支程式中的ListView內的所有值(RegisterHotKey,ReadProcessMemory,WindowFromPoint和VirtualAllocEx)
- 【封装】ReadFromFile——从文件中读取数据
- java 读取配置(read config from file)
- 内存变量 Export / Import ...To Memory ID 'ID_Name' / From Memory ID 'ID_Name' 导出/读取的使用
- 0x00000090 - 该内存不能read written
- Tomcat的内存设置(Tomcat java.lang.OutOfMemoryError )