Results 1 to 15 of 15

Thread: how to display images in mosaic format?

  1. #1
    Join Date
    Apr 2008
    Posts
    29
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default how to display images in mosaic format?

    how to create and display Tile Geotiff (mosaic format)
    Last edited by Nithya; 23rd April 2008 at 11:30.

  2. #2
    Join Date
    Jan 2006
    Location
    Bremen, Germany
    Posts
    554
    Thanked 86 Times in 81 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: how to display images in mosaic format?

    As there's no plugin for this available (at least none I'm aware of) you have to write your own QImageIOHandler where you have to do loading by yourself.
    Because geotiff is similar to tiff maybe it's worth trying if you can load it as simple tiff file.

  3. #3
    Join Date
    Apr 2008
    Posts
    29
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: how to display images in mosaic format?

    I already have developed a pluggin that supports all the raster formats(tif,dted,...) to display.
    Now I am trying for some method to display more than one images on one widget in a mosaic view.

  4. #4
    Join Date
    Apr 2008
    Posts
    29
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: how to display images in mosaic format?

    Is there any available concept of mosaicing multiple images(geotif) in Qt or simply in C++ before displaying???

    I'm using libgdal function calls in Qt to display the images. Now I'm stuck in the middle how to proceed in CREATING and DISPLAYING TILED Geotiff.

  5. #5
    Join Date
    Jan 2006
    Location
    Bremen, Germany
    Posts
    554
    Thanked 86 Times in 81 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: how to display images in mosaic format?

    Currently I've no idea other than
    a) creating one big image with all tilces
    b) overwrite QWidget:aintEvent() and paint the tiles the way you like it

  6. #6
    Join Date
    Apr 2008
    Posts
    29
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11

    Question Re: how to display images in mosaic format?

    Has anybody got to see any samples of mosacing concept???

  7. #7
    Join Date
    Jan 2006
    Location
    Bremen, Germany
    Posts
    554
    Thanked 86 Times in 81 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: how to display images in mosaic format?

    I don't understand what you're missing - why can't you simply paint your images one to each other onto your QLabel? What else needs to be done?

  8. #8
    Join Date
    Apr 2008
    Posts
    29
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: how to display images in mosaic format?

    what I'm missing is combine multiple tiled geotiff images into one Image(QImage) and display.

  9. #9
    Join Date
    Apr 2008
    Posts
    29
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: how to display images in mosaic format?

    I need to create tiled image from multiple images.

  10. #10
    Join Date
    Jan 2006
    Location
    Bremen, Germany
    Posts
    554
    Thanked 86 Times in 81 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: how to display images in mosaic format?

    Create a new QImage and paint on it with QPainter

  11. #11
    Join Date
    Apr 2008
    Posts
    29
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: how to display images in mosaic format?

    Sorry, It is not as simple.Since it is GIS map I'm expecting for a solution to merge more than one images into a single image and display .
    Merging is the problem(based on lat/lon) .it needs to merged.

    Thank you for your suggestion

  12. #12
    Join Date
    Apr 2008
    Posts
    29
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: how to display images in mosaic format?

    Sorry, It is not as simple.Since it is GIS map, I'm expecting for a solution to merge more than one images into a single image and display .
    Merging is the problem(based on lat/lon).

    Tiling concept is available in gdal . The proper sequential use of it in Qt is what now I'm looking forward.

    Thank you for your suggestion

  13. #13
    Join Date
    Jan 2006
    Location
    Bremen, Germany
    Posts
    554
    Thanked 86 Times in 81 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: how to display images in mosaic format?

    I don't see what this has to do with Qt but ...

  14. #14
    Join Date
    Apr 2008
    Posts
    29
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: how to display images in mosaic format?

    As I told you before stitching more than one Image into a single image before displaying is what I need to do with Qt.

    Any function is available to append a QImage type to another QImage type and to display as single image.(without any space in between).

  15. #15
    Join Date
    Oct 2006
    Location
    New Delhi, India
    Posts
    2,467
    Thanks
    8
    Thanked 334 Times in 317 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: how to display images in mosaic format?

    Why cnt u make a function yourself ?

    or may be QImage::bitBlt might be useful to u ?

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.