IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
Making anaglyph images, Methods and software
stewjack
post Aug 17 2012, 09:20 PM
Post #1


Member
***

Group: Members
Posts: 252
Joined: 5-May 05
From: Mississippi (USA)
Member No.: 379



I have found more than one good program to make anaglyphs from the same size images of the L & R HAZ and NAV Camera's, but for long baseline anaglyphs you need to do something called "registering" one of the images with the other. Five years ago I had such a program, but not any longer.

Questions
OS Windows 7

1. Does anyone know of such a program that is simple and effective. It doesn't have to be free - but not more than $100!

2. (GIMP) I can create anaglyphs using a Gimp plug-in, if I import the two images as layers. What I haven't been able to figure out is how to make the top layer transparent. Then assume I could slide the top layer around until it is registered.

Can anyone tell me how to adjust the transparency of the top layer?

Gimp is such a pain I would probably pay for a program if I did much of this. I spent about 20 hours messing about with Gimp without getting anywhere. It was only when I accidentally imported color images that the plug-in worked! So now I "increase" the color depth in my images (using Irfan), and save them out as grey-scale images with something called a "color space." It works! What can I say, the plug-in was last updated in 2008! I would love something more automated, but I won't be using it that much.

Go to the top of the page
 
+Quote Post
mcaplinger
post Aug 17 2012, 09:48 PM
Post #2


Senior Member
****

Group: Members
Posts: 2504
Joined: 13-September 05
Member No.: 497



QUOTE (stewjack @ Aug 17 2012, 02:20 PM) *
1. Does anyone know of such a program that is simple and effective.

Free. http://stereo.jpn.org/eng/stphmkr/


--------------------
Disclaimer: This post is based on public information only. Any opinions are my own.
Go to the top of the page
 
+Quote Post
stewjack
post Aug 17 2012, 10:56 PM
Post #3


Member
***

Group: Members
Posts: 252
Joined: 5-May 05
From: Mississippi (USA)
Member No.: 379



QUOTE (mcaplinger @ Aug 17 2012, 04:48 PM) *


How does it register two images if the images are of different sizes, and/or slanted at a different angles? Does it make the second image semi-transparent so that you can register one image with the other easily.

Lets say the Rover drives 200 meters latterly (long base line), but the crater is 20% bigger in the second image because the rover has also driven 100 meters closer to the crater. Lets also say one image was taken by the Mastcam camera and another by a NavCam camera.

I made an anaglyph from crops of two MARDI images. There had been both quite noticeable rotation and altitude changes between the two images. After many hours I got an anaglyph that was barely worth the name. Heck I will upload it because I can no longer trust my own judgement about its quality. The craters keep turning into mounds. Remember I didn't try for accuracy just a 3d effect. Does it have a 3d effect? These are much easier to do if you have the correct program.

EDIT Actually I double checked and there was actually little rotation.

http://mars.jpl.nasa.gov/msl-raw-images/ms...0476E1_DXXX.jpg
http://mars.jpl.nasa.gov/msl-raw-images/ms...0485E1_DXXX.jpg

Attached Image
Go to the top of the page
 
+Quote Post
3d_mars
post Aug 18 2012, 03:31 PM
Post #4


Newbie
*

Group: Members
Posts: 11
Joined: 12-August 12
Member No.: 6550



QUOTE (stewjack @ Aug 17 2012, 02:56 PM) *
How does it register two images if the images are of different sizes, and/or slanted at a different angles?


Here is a link to the documentation. The page that specifically answers your question is here.
Go to the top of the page
 
+Quote Post
stewjack
post Aug 18 2012, 07:01 PM
Post #5


Member
***

Group: Members
Posts: 252
Joined: 5-May 05
From: Mississippi (USA)
Member No.: 379



QUOTE (3d_mars @ Aug 18 2012, 10:31 AM) *
Here is a link to the documentation. The page that specifically answers your question is here.


Wow! Thanks! I did look at the user guide but did not notice, and therefore read,, the documentation.

That program certainly looks like it is worth a thorough test by me. However, I spent so much time trying to get Gimp to work,
that it will probably be a week or two before I have much free time!

Thanks again for your help

Jack



Go to the top of the page
 
+Quote Post
JohnVV
post Aug 21 2012, 09:20 PM
Post #6


Member
***

Group: Members
Posts: 890
Joined: 18-November 08
Member No.: 4489



QUOTE
2. (GIMP) I can create anaglyphs using a Gimp plug-in, if I import the two images as layers. What I haven't been able to figure out is how to make the top layer transparent. Then assume I could slide the top layer around until it is registered.

simple

open up the layer window and click on the top image
then move the slider to 50%

as for stereo images
NASA/AMES "stereo pipline" - free , but for Linux
Hyperion CV /cyclops - google code , a bit old and no longer worked on but works
http://code.google.com/p/hyperion-cv/
http://thaines.com/content/blogsection/3/6/
use svn
http://code.google.com/p/hyperion-cv/source/checkout
--win prebuilt --
http://thaines.com/content/view/38/8/
cyclops_win32_08-09-22.zip

but for cyclops YOU will HAVE TO MAKE YOUR OWN camera model
Go to the top of the page
 
+Quote Post
stewjack
post Aug 21 2012, 11:53 PM
Post #7


Member
***

Group: Members
Posts: 252
Joined: 5-May 05
From: Mississippi (USA)
Member No.: 379



QUOTE (JohnVV @ Aug 21 2012, 04:20 PM) *
simple

open up the layer window and click on the top image
then move the slider to 50%

Thanks JohnVV! Now all I have to do is find the time to compare both programs. Stereo Photo Maker
vs GIMP with the Anaglyph plug-in. sigh

I should get around to it in a couple of weeks. It appears to me that the plug-in will not recognize grey-scale
image files unless they have been modified to have a color space. That creates a couple of extra steps.

It seems the the plug-in was last updated in 2008! Maybe an older version of GIMP would not have that problem. I am not
\going to worry about that until I see if GIMP with Anaglyph plug-in has any advantages over Stereo Photo Maker.

Jack
Go to the top of the page
 
+Quote Post
jamescanvin
post Aug 22 2012, 07:21 AM
Post #8


Senior Member
****

Group: Moderator
Posts: 2262
Joined: 9-February 04
From: Melbourne - Oz
Member No.: 16



QUOTE (JohnVV @ Aug 21 2012, 10:20 PM) *
simple

open up the layer window and click on the top image
then move the slider to 50%


A better way of doing anagyphs in Gimp is to change the Mode of the top layer from 'Normal' to 'Addition'.


--------------------
Twitter
Please support unmannedspaceflight.com by donating here
Go to the top of the page
 
+Quote Post
jmknapp
post Sep 7 2012, 11:38 PM
Post #9


Senior Member
****

Group: Members
Posts: 1465
Joined: 9-February 04
From: Columbus OH USA
Member No.: 13



It's pretty easy in photoshop:

open the left and right images
drag one of the images on top of the other to create two layers, don't worry about registration yet
close the file you dragged--not needed any more
change mode from grayscale to rgb
adjust levels for the right image: set Red to 0
adjust levels for the left image: set G and B to 0
for the layer on top, set blending mode to screen
now you can see corresponding elements in each picture and can try to align it in different ways with the move tool
adjust overall levels for each layer for best effect


--------------------
Go to the top of the page
 
+Quote Post
ElkGroveDan
post Sep 8 2012, 12:27 AM
Post #10


Senior Member
****

Group: Admin
Posts: 4763
Joined: 15-March 05
From: Glendale, AZ
Member No.: 197



QUOTE (jmknapp @ Sep 7 2012, 03:38 PM) *
It's pretty easy in photoshop:
..............
adjust overall levels for each layer for best effect

Et voila! Here's one I made from two photos of Yosemite National Park through an airplane window last week (@35,000 feet, roughly over Fresno, California with a 250mm lens looking East). Most of the time spent on it was cleaning up the low contrast, low saturation, color-shifted images that result when you try to take a photo through the three or four layers of plexiglass and glass of a modern aircraft window. But once I had the two cleaned up photos it was quite easy to turn it into a red-blue 3D image using Photoshop CS5 and steps similar to the process jmknapp described above.
Attached thumbnail(s)
Attached Image
 


--------------------
If Occam had heard my theory, things would be very different now.
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

 



RSS Lo-Fi Version Time is now: 29th March 2024 - 09:53 AM
RULES AND GUIDELINES
Please read the Forum Rules and Guidelines before posting.

IMAGE COPYRIGHT
Images posted on UnmannedSpaceflight.com may be copyrighted. Do not reproduce without permission. Read here for further information on space images and copyright.

OPINIONS AND MODERATION
Opinions expressed on UnmannedSpaceflight.com are those of the individual posters and do not necessarily reflect the opinions of UnmannedSpaceflight.com or The Planetary Society. The all-volunteer UnmannedSpaceflight.com moderation team is wholly independent of The Planetary Society. The Planetary Society has no influence over decisions made by the UnmannedSpaceflight.com moderators.
SUPPORT THE FORUM
Unmannedspaceflight.com is funded by the Planetary Society. Please consider supporting our work and many other projects by donating to the Society or becoming a member.