c++ - Display geotiff images with qt -
i trying make graphical interface script projecting dsms (geotiff file) on images. thought idea display both image , dsm before making computations. unfortunately, if there no problem display image, have following error while trying display dsm:
tiffreaddirectory: warning, foo: unknown field tag 33550 (0x830e) encountered. tiffreaddirectory: warning, foo: unknown field tag 33922 (0x8482) encountered. tiffreaddirectory: warning, foo: unknown field tag 42112 (0xa480) encountered. tiffreaddirectory: warning, foo: unknown field tag 42113 (0xa481) encountered. foo: sorry, can not handle images 32-bit samples. qpixmap::scaled: pixmap null pixmap
here trying:
qstring s1 = qfiledialog::getopenfilename(this, "open dsm", "/home", "images (*.png *.xpm *.jpg *.tif *.tiff)"); ui->dsmpath->settext(s1); qpixmap dispdsm(s1); int w = ui->dsmdisplay->width(); int h = ui->dsmdisplay->height(); ui->dsmdisplay->setpixmap(dispdsm.scaled(w,h,qt::keepaspectratio));
i searched on internet, seems there no solution yet.
i precise working on ubuntu qt , opencv , magick++ libraries.
can please me ? lot :)
qt doesn't support images in format you're using. you'd need use own qimageiohandler
wrapper libgeotiff.
Comments
Post a Comment