title: Display geotiff images with qt
body: <p>I am currently trying to make a graphical interface to a script projecting DSMs (geotiff file) on images. I thought it was a good idea to display both image and DSM before making some computations.
  Unfortunately, even if there is no problem to display the image, I have the following error while trying to display the DSM:</p>
  
  <pre><code>TIFFReadDirectory: Warning, foo: unknown field with tag 33550 (0x830e) encountered.
  TIFFReadDirectory: Warning, foo: unknown field with tag 33922 (0x8482) encountered.
  TIFFReadDirectory: Warning, foo: unknown field with tag 42112 (0xa480) encountered.
  TIFFReadDirectory: Warning, foo: unknown field with tag 42113 (0xa481) encountered.
  foo: Sorry, can not handle images with 32-bit samples.
  QPixmap::scaled: Pixmap is a null pixmap
  </code></pre>
  
  <p>Here is what I am currently trying:</p>
  
  <pre><code>QString s1 = QFileDialog::getOpenFileName(this, "Open a DSM", "/home", "Images (*.png *.xpm *.jpg *.tif *.tiff)");
  ui-&gt;DSMPath-&gt;setText(s1);
  QPixmap dispdsm(s1);
  int w = ui-&gt;DSMDisplay-&gt;width();
  int h = ui-&gt;DSMDisplay-&gt;height();
  ui-&gt;DSMDisplay-&gt;setPixmap(dispdsm.scaled(w,h,Qt::KeepAspectRatio));
  </code></pre>
  
  <p>I searched on the internet, but it seems that there is no solution yet.</p>
  
  <p>I precise that I am working on Ubuntu with QT and OpenCV and Magick++ libraries.</p>
  
  <p>Can someone please help me ?
  Thanks a lot :)</p>