从C#中使用的libtiff(访问平铺TIFF图像) [英] Using LibTiff from C# (to access tiled TIFF images)

查看:1474
本文介绍了从C#中使用的libtiff(访问平铺TIFF图像)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用的libtiff访问非常大的TIFF文件。我需要一个像多页和瓷砖功能等等的libtiff似乎是正确的道路要走。谁能帮助我如何使用的libtiff从C#?我发现一些链接(如博客其中包含部分code .bee-EE 。但我couln't超越得到一个版本。我已经看了 FreeImage的但发现它不适合(图片均约为800百万像素8或16位灰度 - > 800-1600兆字节)的大小,我无法加载在内存中的32位环境)

I'd like to use LibTiff to access very large TIFF files. I need functions like multiple pages and tiles, and so LibTiff seems to be the right way to go. Can anyone help me on how to use LibTiff from C#? I've found some links (like blog.bee-ee which contained partial code. But I couln't get beyond getting a version. I've looked at FreeImage but found it not suitable (pictures are approx. 800 MPixel 8 or 16 bit grayscale --> 800-1600 MByte) size and I can't load it in memory in a 32-bit environment)

我非常有经验的C / C ++,但尚未在C#。谁能帮我包装或某种暗示?

I'm very experienced in C/C++, but not yet in C#. Can anyone help me to a wrapper or some hints?

请注意:我需要的页面访问金字塔型飞机(多分辨率)的TIFF,以及256×256的瓷砖有快速访问图像的不同部分,而无需加载它一次。

Note: I need pages to access pyramidical planes (multi-resolution) in a tiff, and tiles of 256x256 to have fast access to different parts of the image without loading it at once.

LibTIFF.NET 的解决方案似乎是最现实的我。我现在集成在一个产品的开发,这将propably节省了我很多的麻烦从去输入/输出管理内存。我还没有尝试过的回调的功能,这似乎是在.NET的方式很好地解决了。 感谢您对计算器的帮助 [/编辑]

The LibTIFF.NET solution seemed most practical for me. I'm now integrating it in a product development, and it will propably save me a lot of headaches from going in/out of managed memory. I have not yet tried the 'callback' functionality, which seems to be solved nicely in a .net way. Thanks for the help on stackoverflow [/Edit]

推荐答案

您可以尝试我们LibTiff.Net。它的libtiff的自由和开放源码的版本管理使用C#编写的。我们实施的API保持非常相似,原来一个人的。

You can try our LibTiff.Net. It is free and open source version of LibTiff written using managed C#. API of our implementation kept very similar to original one's.

http://bitmiracle.com/libtiff/

我们刚刚发布,所以可能会有错误。但是,完整的源$ C ​​$ C配备了多项测试,因此最明显的错误应该是固定的。

We've just released it, so there may be bugs. But full source code comes with a number of test, so most obvious bugs should be fixed.

这篇关于从C#中使用的libtiff(访问平铺TIFF图像)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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