Questions tagged [libtiff]

Open source, cross-platform library and tools for TIFF images.

Project homepage

This software provides support for the Tag Image File Format (TIFF), a widely used format for storing image data.

Included in this software distribution is a library, libtiff, for reading and writing TIFF, a small collection of tools for doing simple manipulations of TIFF images on UNIX systems, and documentation on the library and tools. A small assortment of TIFF-related software for UNIX that has been contributed by others is also included.

The library, along with associated tool programs, should handle most of your needs for reading and writing TIFF images on 32- and 64-bit machines. This software can also be used on older 16-bit systems though it may require some effort and you may need to leave out some of the compression support.

310 questions
17
votes
5 answers

C++ LibTiff - Read and Save file from and to Memory

Is there a way in LibTiff how I can read a file from Memory and save it to Memory? I don't want to save the image to the disc first, before opening it with an other library... Thanks so much!
Van Coding
  • 24,244
  • 24
  • 88
  • 132
14
votes
2 answers

Writing 10,12 bit TIFF files with LibTIFF C++

I'm trying to write 10,12 bit RGB TIFF files with LibTIFF. The pixel data is saved locally in an unsigned short buffer (16bits) 1) If I set TIFFTAG_BITSPERSAMPLE to 10 or 12, not enough bits are being read from the buffer, and the output is…
Itsik
  • 3,920
  • 1
  • 25
  • 37
11
votes
3 answers

Using LibTiff from C# (to access tiled TIFF images)

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…
Adriaan
  • 3,282
  • 1
  • 23
  • 31
9
votes
1 answer

compress output tiff with g4 compression

How to write a file as tiff with g4 compression?? imwrite(string("compressed.tif"), res); update image processing This is the processing of the image data before the data is sent to write_fax() so further processing should not be necessary (have…
clarkk
  • 27,151
  • 72
  • 200
  • 340
9
votes
2 answers

In a TIFF create a Sub IFD with thumbnail (libtiff)

I know thumbnail.c includes some code that creates a thumbnail and places it in a sub IDF, but there is a lot going on in that code (generating the thumbnail, applying a contrast curve, etc.) and I am having difficulty reproducing just writing a…
KSletmoe
  • 977
  • 9
  • 23
8
votes
3 answers

How can I simply load a greyscale tiff in libtiff and get an array of pixel intensities?

I am trying to understand images some more, and I'm having a great deal of trouble. From using matlab, I have experience in using imread('test.tif'), and getting a beautiful matrix of rows vs. columns, where you have the intensity of each pixel as…
The_Anomaly
  • 83
  • 1
  • 1
  • 3
8
votes
2 answers

cmake could not find required package TIFF

I'm trying to build an application via cmake 3.9.0. Cmake keeps complaining about the inability to find the tiff library: CMake error at CMakeModules/FindPackageHandleStandardArgs.cmake:51 (Message): Could not find REQUIRED package TIFF). I tried…
TechCrap
  • 930
  • 3
  • 14
  • 28
8
votes
5 answers

efficient TIFF tile extraction C++

I am working with 1gb large tiff images of around 20000 x 20000 pixels. I need to extract several tiles (of about 300x300 pixels) out of the images, in random positions. I tried the following solutions: Libtiff (the only low level library I could…
Juan
  • 101
  • 1
  • 3
7
votes
1 answer

Ubuntu 16.04 - Why I cannot install libtiff4-dev?

Following this tutorial, I am trying to install the OpenCV 3 with Python on Ubuntu 16.04. At the step of entering $ sudo apt-get install libjpeg8-dev libtiff4-dev libjasper-dev libpng12-dev I got this message: Reading package lists... Done Building…
7
votes
2 answers

MATLAB write multipage tiff exponentially slow

I am trying to write a single multipage tiff file which is 128 pixels x 128 pixels x 122000 frames of 16-bit unsigned integers. ImageJ or a short Python script can do this in less than one minute on a fast machine. On the same machine, MATLAB would…
user3542918
  • 91
  • 1
  • 3
7
votes
6 answers

LibTIFF: Extract all tags from a TIFF image

I'm currently working on a project which requires me to split a TIFF image into a file containing all tags and a file containing all image data and to reconstruct a TIFF image from these files. The only problem is that it seems that LibTIFF…
Eric Scrivner
  • 1,839
  • 1
  • 18
  • 23
6
votes
2 answers

What are the corresponding fields to set in libtiff or libgeotiff, given a minimal ESRI ASCII file?

I have an ESRI ASCII file of the form: ncols 5 nrows 4 xllcorner 0 yllcorner 0 cellsize 10 NODATA_value -9999 25.4 26.1 27 28.6 27.7 25 26 26.4 27.9 27.4 25.1 25.8 26.8 28.6 27.6 27.5 28 27.7 30.6 28.3 And I need…
Graviton
  • 81,782
  • 146
  • 424
  • 602
6
votes
2 answers

Qt multipage TIFF

I need to save a multipage TIFF from my program, but it seems Qt doesn't support multipage TIFF. Still, I need to do it. What would be the best way to go about doing it from my program? So far, I'm thinking about using ImageMagick's command line…
sashoalm
  • 75,001
  • 122
  • 434
  • 781
5
votes
1 answer

Libtiff: Generating TIFF/EP Profile 2 Raw image from pixel array

I'm trying to generate a TIFF/EP Profile 2 raw (.dng) image from an arbitrary pixel array. This pixel array represents a Bayer pattern (CFA). I studied the TIFF/EP file specifications and, by using libtiff, I included all tags I believe are…
Fabian K
  • 141
  • 1
  • 7
5
votes
1 answer

Incompatible openCV and libtiff libs on OSX

I am working with a pyramided tiff file. However, OpenCV does not support pyramided tiff files and so I am attempting to use libtiff 4.0.3 to extract the layer/directory/resolution that I need and then pass it to OpenCV for processing. I include as…
Rick Smith
  • 9,031
  • 15
  • 81
  • 85
1
2 3
20 21