Mirroring in dual lens imeges

51 views
Skip to first unread message

Juho Reivo

unread,
Apr 13, 2020, 1:53:28 PM4/13/20
to hugin and other free panoramic software
Hi

My 360camera (Insta360 One) records the two fisheye images images to one file that the clever assistant for dual lens images almost manages to process. Is it possible to flip (mirror) the other image using some of the image variables? Manual editing before using Hugin seems to confuse the assistant for some reason and the other image ends up rotated (could be just the test image).

Thanks,
-JR

Bruno Postle

unread,
Apr 13, 2020, 2:46:36 PM4/13/20
to hugi...@googlegroups.com
Do you have an example image to show? It would be helpful to see if it is a normal problem, or something that needs to change in the assistant.

--
Bruno

Bruno Postle

unread,
Apr 13, 2020, 6:40:04 PM4/13/20
to hugi...@googlegroups.com
Thanks, that is quite clear (there are two circular fisheye photos covering half the scene each, and the one on the left is mirrored).

Hugin doesn't have any tools to work with mirror images directly, so you will have to do some external processing.

I would use the assistant for dual lens cameras, but then before you align: in the photos tab you will see the file appears twice, swap the first entry with a mirrored version of the file.

The cleanest way to mirror the file is to use jpegtran, this is also very fast as jpegtran is lossless:

jpegtran -flip vertical -copy all -outfile mirrored.jpg original.jpg

--
Bruno


On 13 April 2020 20:40:37 BST, Juho * Reivo wrote:
>Exmaple image included. It's jpg despite the .insp.
>
>ma 13. huhtik. 2020 klo 18.46 Bruno Postle kirjoitti:
>>
>> Do you have an example image to show? It would be helpful to see if
>it is a normal problem, or something that needs to change in the
>assistant.

Juho * Reivo

unread,
Apr 14, 2020, 4:37:46 AM4/14/20
to hugi...@googlegroups.com
After fiddling with the camera some more, I noticed it also can make a
duplicate raw-file (.dng) which has the two vertically but there also
the other (top) is mirrored. Wishful thinking: a mirroring feature to
Hugin (not just for this but also to... make caleidoscope images?) :)

Thanks for the reply.
- JR
> --
> A list of frequently asked questions is available at: http://wiki.panotools.org/Hugin_FAQ
> ---
> You received this message because you are subscribed to the Google Groups "hugin and other free panoramic software" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to hugin-ptx+...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/hugin-ptx/BC878627-209B-4CE9-862C-CE8F5F6F9A06%40postle.net.



--
-----
Juho * Reivo
ju...@reivo.fi
www.starman.fi
-----

Rogier Wolff

unread,
Apr 14, 2020, 5:47:45 AM4/14/20
to hugi...@googlegroups.com
On Mon, Apr 13, 2020 at 11:39:54PM +0100, Bruno Postle wrote:
> Hugin doesn't have any tools to work with mirror images directly, so
> you will have to do some external processing.

I would think that it is an artificial limit that would enforce that
images cannot be mirrored in hugin. A negative scaling would map the
image to its mirrored version. It is some "in hindsight unneccesary"
limit check that checks for something negative to prevent mirrored
images...

Roger.

--
+-- Rogier Wolff -- www.harddisk-recovery.nl -- 0800 220 20 20 --
- Datarecovery Services Nederland B.V. Delft. KVK: 30160549 -
| Files foetsie, bestanden kwijt, alle data weg?!
| Blijf kalm en neem contact op met Harddisk-recovery.nl!

Bruno Postle

unread,
Apr 14, 2020, 6:46:35 AM4/14/20
to hugi...@googlegroups.com


On 14 April 2020 10:47:41 BST, Rogier Wolff wrote:
>On Mon, Apr 13, 2020 at 11:39:54PM +0100, Bruno Postle wrote:
>> Hugin doesn't have any tools to work with mirror images directly, so
>> you will have to do some external processing.
>
>I would think that it is an artificial limit that would enforce that
>images cannot be mirrored in hugin. A negative scaling would map the
>image to its mirrored version. It is some "in hindsight unneccesary"
>limit check that checks for something negative to prevent mirrored
>images...

Hugin could have a negative angle of view, which is equivalent to scaling, but this would have the effect of 180° rotation rather than mirroring.

There used to be a bug where images placed behind the camera would appear mirrored in the scene at front, but we really wouldn't want to reintroduce this.

--
Bruno
Reply all
Reply to author
Forward
0 new messages