It is currently Fri Dec 13, 2019 5:58 am



Reply to topic  [ 59 posts ]  Go to page Previous  1, 2
 MPO2Stereo: Convert Fujifilm MPO files to JPEG stereo pairs 
Author Message
One Eyed Hopeful

Joined: Mon Feb 28, 2011 11:25 pm
Posts: 9
Reply with quote
I tried the hex technique that cybereality suggested, and I noticed that the first image isn't always the left image. Here are two MPO files. What's interesting is they both have the same camera make, model, and software. I'm working on parsing the MPO file specification to see how I can determine the difference between the two.

DSCF0006 (chess) has the left-eye content as the first image.
DSCF0035 (bench) has the right-eye content as the first image

I have a batch of 25 sample MPO files, and 6 of them has the left-eye first, but 19 of them have the right-eye first. These are taken from Fjufilm's Real 3D W1, W3, and Sony DSC-TX9

Any ideas?

Thanks,

- Phil


You do not have the required permissions to view the files attached to this post.


Tue Mar 01, 2011 6:19 pm
Profile
3D Angel Eyes (Moderator)
User avatar

Joined: Sat Apr 12, 2008 8:18 pm
Posts: 11394
Reply with quote
Interesting. Not sure what the answer is. All the MPOs I was testing with I believe were Left eye first, and I tried at least a dozen. But its possible there is something else going on. I am planning on picking up the W3 at some point, so that will make it a lot easy for me to test these things and update the program.

_________________
check my blog - cybereality.com


Tue Mar 01, 2011 6:33 pm
Profile
3D Angel Eyes (Moderator)
User avatar

Joined: Sat Apr 12, 2008 8:18 pm
Posts: 11394
Reply with quote
@philipkd: I just looked at those images you posted and they are fine. Tried them with the DDD photo viewer and they looked good. Then I converted them to JPS using my MPO2JPS utility and the JPS files were rendered correctly. So I assume those images had left image first, just like all the other ones I tried. So I am not sure what they were supposed to prove.

_________________
check my blog - cybereality.com


Tue Mar 01, 2011 7:34 pm
Profile
One Eyed Hopeful

Joined: Mon Feb 28, 2011 11:25 pm
Posts: 9
Reply with quote
Thank you for verifying this. You're right. I made the wrong guesses as to which eyes the images corresponded to. My mistake was not cropping appropriately according to parallax information. I found out how to do it here:

http://www.davidglover.org/2010/09/usin ... xunix.html


Tue Mar 01, 2011 7:49 pm
Profile
One Eyed Hopeful

Joined: Mon Feb 28, 2011 11:25 pm
Posts: 9
Reply with quote
I just wanted to let you know I finished my website that'll convert MPO to various formats: http://3dporch.com/

I gained a lot from the resources in this thread, so I want to thank you. Have a go at the site, and let me know what you think!


Wed Mar 02, 2011 11:37 am
Profile
One Eyed Hopeful

Joined: Sat Mar 26, 2011 12:40 pm
Posts: 1
Reply with quote
Surry guys for stupid question, but I'am beginer on your forum and in 3D technologies also and not in good english speaking performance (Iam ukrainian). In this topic I found lot of useful link and participant of this forum seems very professional. In this case let me ask you, is the any analog of StereoTracer software for mac for making this lovely GIF. I mean not a simple gif animation from MPO file, I mean good mathematic algorithm as in link above.

Thank for reply before :)


Sat Mar 26, 2011 12:56 pm
Profile
One Eyed Hopeful

Joined: Thu Jun 16, 2011 1:53 am
Posts: 1
Reply with quote
I used cybereality's idea to get the left and right images in Python using the Python Imaging Library. This example doesn't save the images, as I am using them in a Python app:-

from PIL import Image
from StringIO import StringIO
file = open(r'F:\My Pictures\FinePix W3 3D\DCIM\100_FUJI\DSCF0007.MPO', 'rb')
left = Image.open(file)
left.show()
file.seek(4) # skip SOI and APP1 markers of 1st image
data = file.read() # read both images
file.close()
offset = data.find('\xFF\xD8\xFF\xE1') # find SOI and APP1 markers of 2nd image
file = StringIO(data[offset:]) # make a file containing the 2nd image
right = Image.open(file)
right.show()
file.close()


Fri Jun 17, 2011 9:21 pm
Profile
3D Angel Eyes (Moderator)
User avatar

Joined: Sat Apr 12, 2008 8:18 pm
Posts: 11394
Reply with quote
Ok cool.

_________________
check my blog - cybereality.com


Sat Jun 18, 2011 8:42 am
Profile
One Eyed Hopeful

Joined: Wed Apr 18, 2012 8:48 pm
Posts: 2
Reply with quote
Hey guys, thanks for all the great work. I recently bought a viewsonic 3DPF8 3d Digital frame. I converted my .mpo files to side-by-side .jpg using Mpo2Stereo, but when I view the image on the digital frame, it displays it as 2 2D side-by-side images instead of 1 3D image. Its not the frame, because I tried loading some side-by-side images that I found online and they seem to work great. I also tried the stereo photo maker, but get the same results. Any help is greatly appreciated. Thanks in advance!.


Wed Apr 18, 2012 9:11 pm
Profile
3D Angel Eyes (Moderator)
User avatar

Joined: Sat Apr 12, 2008 8:18 pm
Posts: 11394
Reply with quote
Can you post one of the images that works so I can see the format? Also, you may want to try MPO2JPS and then renaming the files to JPG.

viewtopic.php?f=3&t=4419&p=31457

_________________
check my blog - cybereality.com


Wed Apr 18, 2012 9:29 pm
Profile
One Eyed Hopeful

Joined: Wed Apr 18, 2012 8:48 pm
Posts: 2
Reply with quote
Thank you very much cybereality. I tried the MPO2JPS and it seems to work now. Thanks!!!


Fri Apr 20, 2012 10:04 pm
Profile
One Eyed Hopeful

Joined: Thu Jun 05, 2014 11:56 am
Posts: 3
Reply with quote
ozzman2020 wrote:
Thank you very much cybereality. ..

+1
But. How to work with multiple images simultaneously?
that is, how to handle multiple photos at a time?


Thu Jun 05, 2014 12:08 pm
Profile
3D Angel Eyes (Moderator)
User avatar

Joined: Sat Apr 12, 2008 8:18 pm
Posts: 11394
Reply with quote
You can just drag multiple files onto the exe file at once.

Or you can use a command window and type each name out, ie:

MPO2Stereo.exe img1.mpo img2.mpo img3.mpo ...

_________________
check my blog - cybereality.com


Thu Jun 05, 2014 9:10 pm
Profile
One Eyed Hopeful

Joined: Thu Jun 05, 2014 11:56 am
Posts: 3
Reply with quote
tried - http://yadi.sk/d/3aE7NALUSXHpk
I do something wrong?


Fri Jun 06, 2014 12:37 pm
Profile
3D Angel Eyes (Moderator)
User avatar

Joined: Sat Apr 12, 2008 8:18 pm
Posts: 11394
Reply with quote
That batch file is not my work, and I don't know how to use it.

Please use the exe file from this post: viewtopic.php?f=3&t=4419&p=31457

_________________
check my blog - cybereality.com


Fri Jun 06, 2014 9:49 pm
Profile
One Eyed Hopeful

Joined: Thu Jun 05, 2014 11:56 am
Posts: 3
Reply with quote
cybereality wrote:
...Please use the exe file from this post: viewtopic.php?f=3&t=4419&p=31457

It works! Thank you very much.
And what about the video processing? ;)


Sat Jun 07, 2014 1:40 am
Profile
3D Angel Eyes (Moderator)
User avatar

Joined: Sat Apr 12, 2008 8:18 pm
Posts: 11394
Reply with quote
You should check out Stereo Movie Maker. Also Stereo Photo Maker can process MPO files with more options than my tool.

_________________
check my blog - cybereality.com


Sat Jun 07, 2014 11:59 am
Profile
One Eyed Hopeful
User avatar

Joined: Mon Dec 29, 2014 6:51 pm
Posts: 3
Reply with quote
I have compiled a version of MPO2STEREO for mac. It will work on intel mac 10.6 or later.


You do not have the required permissions to view the files attached to this post.


Mon Dec 29, 2014 7:20 pm
Profile
3D Angel Eyes (Moderator)
User avatar

Joined: Sat Apr 12, 2008 8:18 pm
Posts: 11394
Reply with quote
Cool man!

_________________
check my blog - cybereality.com


Mon Dec 29, 2014 9:25 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 59 posts ]  Go to page Previous  1, 2

Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group
Designed by STSoftware.