ultramango / gear360pano

Simple script to create equirectangular panorama by stitching images from Samsung Gear 360
MIT License
225 stars 55 forks source link

Inverted photo #6

Closed juda73 closed 7 years ago

juda73 commented 7 years ago

Centered image is reversed.

ultramango commented 7 years ago

Please provide more details of the problem, for example: example input and output image.

juda73 commented 7 years ago

example

ultramango commented 7 years ago

Thanks for the detailed description. Looks like original software does a better job at stitching - proper vertical lines. BTW: inverted means for me with inverted colours or upside-down.

I see no serious problem with script generating "shifted" panorama. There's a possibility to "shift"/"rotate" final panorama while stitching in Hugin. The only advantage would be to be in line with the original software. I'll see if I can make a better template file and perhaps also mimic the original Samsung software.

Note: that I don't have access to original app (it doesn't work on my "old" phone), that's why I created this script in the first place.

juda73 commented 7 years ago

Thank for your good work, I do not know how to use Hugin well, your writing is very helpful with lots of photos Sorry for my english.

juda73 commented 7 years ago

I have tried to invert the name of file in gear360pano2.cmd with no success, is the pto file to modify?

`echo "Stitching input images (enblend)"
cmd="enblend -o $OUTNAME \
     --compression=jpeg:$JPGQUALITY \
     $TEMPDIR/${OUTTMPNAME}0001.tif \
     $TEMPDIR/${OUTTMPNAME}0000.tif"
run_command $cmd`
ultramango commented 7 years ago

Do this:

  1. Rename your panorama to dummy.jpg (the one coming from Gear360).
  2. Start Hugin and open gear360tmpl.pto file (it will open your panorama file).
  3. Go to Fast Preview Panorama (icon with "GL").
  4. Select "Move/Drag" tab.
  5. As Drag Mode select "Normal".
  6. Using left click you can shift panorama around using left click.

You should be able to make it similar to original Samsung stitcher.

juda73 commented 7 years ago

Great!! Thanks