raboof / dualfisheye2equirectangular

Convert 'dual-fisheye' 360 image material to equirectangular mapping
MIT License
128 stars 38 forks source link

Rotation and One X #10

Open Gorillarock opened 4 years ago

Gorillarock commented 4 years ago

I am trying to find the perfect combination of args for the Insta360 OneX. Not only is this not to obvious, but the rotation of the images are off. The dual fisheye are head to head in the middle of the frame. each one needs to be rotated 90 degrees away from the center line. Do you have any example args for this camera?

raboof commented 4 years ago

No - perhaps you can share some example images/video?

Gorillarock commented 4 years ago

IMG_20200528_044302_00_009m

Here is an example of the image. The resolution has been reduced for this posting format to handle, but the dimensions are true. Do you see how the camera places the top of the images in the center, so that the left side must be turned 90 degrees counter-clockwise, and the right half must be turned 90 degrees clockwise?

cristianoccazinsp commented 2 years ago

Looking for the same.

Any chance to get a Java code example of this instead of C++?

raboof commented 2 years ago

It looks like the thetas and samsung_gear_360 modes have two fisheyes. Have you tried them both? They both have different rotations? If so you could probably add a third 'mode' for your scenario, and take the thetas or samsung_gear_360 as a starting point.

Also, documenting what input images correspond to what modes would be very useful ;)

raboof commented 2 years ago

Any chance to get a Java code example of this instead of C++?

I'm not aware of any, perhaps you could do a manual conversion of the parts of the code you need?