Create original multires from tile

  • Hi,

    I'm trying to get the original multires image back from a series of tiles created with Panotour.
    My script is something like this:

    Code
    ./krpanotools maketiles /myPath/%h_%v.jpg recombined.tif 0 -insize=10540x10540 -intilesize=512x512 -inindexbase=1

    My tiles go from 0_0.jpg all the way up to 20_20.jpg .
    The first things that the terminal says is:

    Code
    unable to open inputimage /myPath/21_1.jpg


    But it processes the image, which in the end has some errors (see pic).

    The problem is that the not all of the tiles are quads, so I've got also 512x300 or 300x512.

    Is there any way to get the multires back?
    What am I missing?

    Thanks.

    Namastè.

  • Ok, one of my errors was that I was reversing the order of the %h and %v.
    I checked the xml and saw what was wrong.

    Code
    <level tiledimagewidth="10540" tiledimageheight="10540">
              <front url=“my_name/0/4/%v_%u.jpg"/>
              <right url=“my_name/1/4/%v_%u.jpg"/>
              <back  url=“my_name/2/4/%v_%u.jpg"/>
              <left  url=“my_name/3/4/%v_%u.jpg"/>
              <up    url=“my_name/4/4/%v_%u.jpg"/>
              <down  url=“my_name/5/4/%v_%u.jpg"/>
          </level>

    Now, my face comes out quite well, but as you can see there's a glitch in the last row and column
    (obviously the center is simply censored by me).
    Here's a screenshot:

    What could be wrong here?

    Namastè.

  • Ok, figured it out.

    I hope that this thread can be useful for somebody else. :)
    Don't forget to look also at the baseindex command flag.

    From my xml:

    Code
    <image type="CUBE" multires="true" baseindex="0" tilesize="512" devices="!androidstock|webgl">

    So the script becomes:

    Code
    ./krpanotools maketiles /myPath/%v_%h.jpg recombined.tif 0 -insize=10540x10540 -intilesize=512x512 -inindexbase=0


    Namasté.

    *thumbup*

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!