Stereo Interpolation For Mesh Generation |
Stereo Interpolation For Mesh Generation |
Jan 6 2005, 11:37 PM
Post
#1
|
|
Founder Group: Chairman Posts: 14432 Joined: 8-February 04 Member No.: 1 |
Any ideas on this guys? I'm always looking for something new and interesting to do with the imagery but as you all know I'm more an artist and certainly not a programmer but I'm wondering if there's anything out there to generate terrain maps from stereo pairs?
http://schwehr.org/photoRealVR/example.html is the sort of thing I'm talking about - and a lot of googling has found nothing. Doug |
|
|
Jan 7 2005, 05:00 AM
Post
#2
|
|
Senior Member Group: Members Posts: 2228 Joined: 1-December 04 From: Marble Falls, Texas, USA Member No.: 116 |
Doug:
I ran across a guy who wrote part of Maestro for JPL while I was on the #space channel on irc.freenode.net tonight, and I asked him if he knew of any. He said "I don't know... mipl might release theirs if you ask nicely." That's all he said. I assume he meant http://www-mipl.jpl.nasa.gov/. -------------------- ...Tom
I'm not a Space Fan, I'm a Space Exploration Enthusiast. |
|
|
Jan 7 2005, 09:40 AM
Post
#3
|
|
Founder Group: Chairman Posts: 14432 Joined: 8-February 04 Member No.: 1 |
Wasnt Justin was it ?
Doug |
|
|
Jan 7 2005, 11:09 PM
Post
#4
|
|
Founder Group: Chairman Posts: 14432 Joined: 8-February 04 Member No.: 1 |
I've done some more hunting and found some VRML data sets for the Pathfinder site - and I put it together and came out with...
http://mer.rlproject.com/mpf_3d.wmv (4 meg WMV) Now - obviously - with a single P.O.V. one can get visibility 'shadows' behind things - when your cameras have wheels - you can go to a different P.O.V. and fill in the visibility 'shadows'. If I had another MPF data set from, say, 10m away - I could use it's terrain maps to 'fill in' a lot of the blanks. Now - what I would DESPERATELY like to do is this with MER data - as, for instance, one could re-build the heatshield impact site quite verbosely - as we've had Navcam stereo pairs from several locations. Doug |
|
|
Jan 7 2005, 11:20 PM
Post
#5
|
|
Interplanetary Dumpster Diver Group: Admin Posts: 4404 Joined: 17-February 04 From: Powell, TN Member No.: 33 |
Perhaps a few of those shadows could be filled in with Sojourner data.
-------------------- |
|
|
Jan 8 2005, 12:47 AM
Post
#6
|
|
Member Group: Admin Posts: 468 Joined: 11-February 04 From: USA Member No.: 21 |
I've been looking into this as well, mostly since the begining of the mission. Here's a couple references i picked up, that mostly outline the points along the chain of processing same as the webpage posted regarding Pathfinder:
This one shows some of the processing steps involved in the stereo pair vision used onboard for navigation and hazard avoidance: http://robotics.jpl.nasa.gov/people/mwm/visnavsw/aero.pdf A bit about the image correlation : http://dynamo.ecn.purdue.edu/~gekco/mars/correlator_app.html The CAHVOR camera model, used to linearize (remove lens distortion, to line up stereo pairs so that you only have to correlate features horizontally) : http://robotics.jpl.nasa.gov/people/mwm/cahvor.html The software used by MIPL to generate the steps are all VICAR ( http://www-mipl.jpl.nasa.gov/external/vicar.html ) programs, whose helpfiles are available online at http://www-mipl.jpl.nasa.gov/vicar/vicar300/html As far as I can tell, here are the steps involved: Raw image -> MARSCAHV (linearizes images) -> MARSJPLSTEREO (computes disparity map) -> MARSXYZ (computes xyz values for each pixel) Then, using the xyz files, they can derive roughness maps, slope maps, reachability maps, etc... As to the data that is already available, there were supposed to be Mesh products released with the PDS (some of the PDS directories even list them) but I can't find a search or directory that actually contains them. What was released, however, might suit your purposes. The 3 letter codes for finding them are in parenthesis first for the non-linearized, then the linearized: 5.2.4 XYZ RDR (XYZ, XYL) An XYZ file contains 3 bands of 32-bit floating point numbers in the Band Sequential order. Alternatively, X, Y and Z may be stored in separate single-band files as a X Component RDR, Y Component RDR and Z Component RDR, respectively. The single component RDRs are implicitly the same as the XYZ file, which is described below. XYZ locations in all coordinate frames for MER are expressed in meters unless otherwise noted. The pixels in an XYZ image are coordinates in 3-D space of the corresponding pixel in the reference image. This reference image is traditionally the left image of a stereo pair, but could be the right image for special products. The geometry of the XYZ image is the same as the geometry of the reference image. This means that for any pixel in the reference image the 3-D position of the viewed point can be obtained from the same pixel location in the XYZ image. The 3-D points can be referenced to any of the MER coordinate systems (specified by DERIVED_IMAGE_PARAMS Group in the PDS label). Most XYZ images will contain "holes", or pixels for which no XYZ value exists. These are caused by many factors such as differences in overlap and correlation failures. Holes are indicated by X, Y, and Z all having the same specific value. This value is defined by the MISSING_CONSTANT keyword in the IMAGE object. For the XYZ RDR, this value is (0.0,0.0,0.0), meaning that all three bands must be zero (if only one or two bands are zero, that does not indicate missing data). 5.2.5 Range RDR (RNG, RNL) A Range (distance) file contains 1 band of 32-bit floating point numbers. The pixels in a Range image represent Cartesian distances from a reference point (defined by the RANGE_ORIGIN_VECTOR keyword in the PDS label) to the XYZ position of each pixel (see XYZ RDR). This reference point is normally the camera position as defined by the C point of the camera model. A Range image is derived from an XYZ image and shares the same pixel geometry and XYZ coordinate system. As with XYZ images, range images can contain holes, defined by MISSING_CONSTANT. For MER, this value is 0.0. 5.2.7 Surface Normal RDR (UVW, UVL) A Surface Normal (UVW) file contains 3 bands of 32-bit floating point numbers in the Band Sequential order. Alternatively, U, V and W may be stored in separate single-band files as a U Component RDR, V Component RDR and W Component RDR, respectively. The single component RDRs are implicitly the same as the UVW file, which is described below. The pixels in a UVW image correspond to the pixels in an XYZ file, with the same image geometry. However, the pixels are interpreted as a unit vector representing the normal to the surface at the point represented by the pixel. U contains the X component of the vector, V the Y component, and W the Z component. The vector is defined to point out of the surface (e.g. upwards for a flat ground). The unit vector can be referenced to any of the MER coordinate systems (specified by the DERIVED_IMAGE_PARAMS Group in the PDS label). Most UVW images will contain "holes", or pixels for which no UVW value exists. These are caused by many factors such as differences in overlap, correlation failures, and insufficient neighbors to compute a surface normal. Holes are indicated by U, V, and W all having the same specific value. Unlike XYZ, (0,0,0) is an invalid value for a UVW file, since they're defined to be unit vectors. Thus there's no issue with the MISSING_CONSTANT as there is with XYZ, where (0.0,0.0,0.0) is valid. 5.2.11 Terrain Map RDR Terrain models are a high level product which are derived from the XYZ files and the corresponding image files. The terrain models are generated by meshing or triangulating the XYZ data based on the connectivity implied by the pixel ordering or by a volume based surface extraction. The XYZ files can be viewed as a collection of point data while the terrain models take this point data and connect it into a polygonal surface representation. The original image is referenced by the terrain models as a texture map which is used to modulate the surface color of the mesh. In this way the terrain models can be viewed as a surface reconstruction of the ground near the instrument with the mesh data capturing the shape of the surface and the original image, applied as a texture map, capturing the brightness variations of the surface. Specific terrain model formats such as VST, PFB, DEM and others can be viewed as analogous to GIF, TIFF or VICAR in image space in that each represents the data somewhat differently for slightly different purposes. 5.2.11.1 VST Terrain Wedge (VIS, VIL) The ViSTa (VST) format consists of one terrain model for each wedge (stereo image pair), in a JPLdefined binary format suitable for display by SAP. Each file contains meshes at multiple levels of detail. 5.2.11.2 PFB Terrain Mesh (ASD?, ASL?) The Performer Binary (PFB) format facilitates the representation of a terrain surface as polygons, optimized for use by the RSVP tool. The number of polygons at any one time may vary according to site specific features, such as small rocks versus large boulders. I know you said you weren't looking to do any programming, but that may be the only way to achieve a solution that doesn't involve waiting for the PDS release. There seems to be a lot of code available with stereo vision algorithms, but one in particular that might be helpful is the Open Computer Vision Library available at : http://sourceforge.net/projects/opencvlibrary/ |
|
|
Jan 8 2005, 03:11 AM
Post
#7
|
|
Senior Member Group: Members Posts: 2228 Joined: 1-December 04 From: Marble Falls, Texas, USA Member No.: 116 |
QUOTE (djellison @ Jan 7 2005, 03:40 AM) Wasnt Justin was it ? It sure was. You might ask him if he can help you get that software. BTW, that was a really nice VRML animation. -------------------- ...Tom
I'm not a Space Fan, I'm a Space Exploration Enthusiast. |
|
|
Jan 8 2005, 01:04 PM
Post
#8
|
|
Founder Group: Chairman Posts: 14432 Joined: 8-February 04 Member No.: 1 |
Looking at http://pdsimg.jpl.nasa.gov/cgi-bin/MER/sea...RELEASE_ID=0001 - terrain wedge and terrain mesh are listed as N/A
Poo I may get in touch with Dr JB and see what the word is on these things Doug |
|
|
Jan 17 2005, 10:20 PM
Post
#9
|
|
IMG to PNG GOD Group: Moderator Posts: 2250 Joined: 19-February 04 From: Near fire and ice Member No.: 38 |
This (generating terrain from stereo imagery) is something I'd be very interested in if I had the software to do so.
Ted Stryk mentioned something related in this thread: http://mer.rlproject.com/index.php?showtopic=604 It has even occurred to me to attempt to write a program myself to do this. In theory it isn't difficult, the idea/algorithm is actually fairly easy to understand. However, in practice there are lots of complications like image noise, inaccurate geometric information and shadows to name a few. So in prcatice this isn't exactly easy to do. |
|
|
Jan 17 2005, 10:44 PM
Post
#10
|
|
Founder Group: Chairman Posts: 14432 Joined: 8-February 04 Member No.: 1 |
It shouldnt be too hard if one starts with the depth maps - take this for instance
http://anserver1.eprsl.wustl.edu/navigops/...FF09BXP1933L0M1 It has RNL file IMG's that dont seem to make a lot of sense when img2png's The XYZ files come in at 12+Meg each The data's sort of there, just not 'accesable' Doug |
|
|
Jan 31 2005, 07:52 PM
Post
#11
|
|
Member Group: Members Posts: 180 Joined: 31-January 05 From: Brittany (France) Member No.: 164 |
I have generated some months ago a mesh for Eagle crater ("hand made", unfortunatly, from Opportunity images with help of Excel). A color panorama was wraped upon the mesh and a short movie, a "walk upon westside of Eagle crater" was synthetized with help of POV-ray. Here is the movie : outcrop02.avi
. Hope you will enjoy! -------------------- Erwann |
|
|
Jan 31 2005, 09:28 PM
Post
#12
|
|
Member Group: Members Posts: 753 Joined: 23-October 04 From: Greensboro, NC USA Member No.: 103 |
Erwan, I can't open the file -- the download button doesn't work in either Firefox or IE. Could you repost, please? I'm looking forward to seeing the movie!
-------------------- Jonathan Ward
Manning the LCC at http://www.apollolaunchcontrol.com |
|
|
Jan 31 2005, 09:58 PM
Post
#13
|
|
Founder Group: Chairman Posts: 14432 Joined: 8-February 04 Member No.: 1 |
I can download the file - but it wont play
Doug |
|
|
Jan 31 2005, 10:10 PM
Post
#14
|
|
Member Group: Members Posts: 180 Joined: 31-January 05 From: Brittany (France) Member No.: 164 |
The movie requires codec intel indeo video 5.04 (I guess it's the problem). Playing is easy with realplayer, winamp, windows player on my computer. I cross my fingers....
-------------------- Erwann |
|
|
Jan 31 2005, 10:32 PM
Post
#15
|
|
Member Group: Members Posts: 295 Joined: 2-March 04 From: Central California Member No.: 45 |
That was pretty cool! Hope you do one for Endurance...
Eric P / MizarKey -------------------- Eric P / MizarKey
|
|
|
Lo-Fi Version | Time is now: 30th April 2024 - 09:01 AM |
RULES AND GUIDELINES Please read the Forum Rules and Guidelines before posting. IMAGE 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. |