Replies: 9 comments 24 replies
-
It will be hard to evaluate the horizontal alignment between a DEM and a dataset as sparse as MOLA. Normally, if the terrain has any relief, bad horizontal alignment will correlate with bad overall differences. If the terrain is flat, nothing will help. I noticed myself that the ICP algorithm in pc_align is fragile. For each source point (second cloud, which in your case would be MOLA), it tries to match to first cloud, which is the ASP DEM. If the --max-displacement value is too high, this can end up in bad matches. If it is too low, it won't match to the right points. I usually set that one to about 4x the vertical difference, hoping that it may work well enough. Note that the ICP in pc_align does reject outliers, with a 75% ratio, though such logic may not be robust enough. What you can do, after adjusting --max-displacement, and if still getting insufficiently good results, is to attempt a second pc_align pass with the original clouds, but using the previous alignment transform as initial guess, and this time using lower max-displacement, since that will be used only after the initial alignment is done. At some point I need to spend more time robustifying pc_align. Ideally internally it should do several attempts and then retain the best result. |
Beta Was this translation helpful? Give feedback.
-
Oleg, That is what I expected. I'll have to see if our two pass pc_align approach is causing the issue on some of these. That's a good thing for me to be able to quantify. I have another 200+ of these that used the CSM. I noticed that more passed using the CSM than using ISIS, so I'm going to try and understand why. Also going to check and see if the horizontal displacements are the same. I assume they will be, but will report next week on the status there. As always, many thanks for the rapid response! |
Beta Was this translation helpful? Give feedback.
-
Are you using the default point-to-plane ICP alignment routine? I’ve had better luck with the point-to-point alignment for co-registering DEMs with sparse ICESat altimetry over flat areas (ice sheet interior). Are you considering the MOLA point density and spatial distribution for each CTX DEM in your assessment? Are the failures all near the equator? Honestly, 5% seems pretty good :) You could potentially analyze terrain characteristics in the CTX DEM to predict whether pc_align with sparse MOLA points should work. As Oleg said, if the terrain is flat (or technically, planar), not much hope. But if you have some real terrain roughness at length scales greater than the average MOLA shot spacing, or really, enough curvature/deviation from a planar fit to the CTX DEM or MOLA shots, you should be able to get a decent result with pc_align - definitely better than 1-3 km horizontal. Of course the CTX “jitter” artifacts and MOLA geolocation issues won’t make life easier, but magnitude should be less than 1-3 km. |
Beta Was this translation helpful? Give feedback.
-
I know this isn't quite apples-to-apples, but I banged out a quick CTX DTM in ASP from that stereopair using the ISIS camera model, running Here is a transect over the CTX DTM (blue line on chart) and HRSC DTM h2940_0000_dt4 (red line on chart). (Edited to add: horizontal scale is degrees because I was in a hurry; vertical scale is meters.) I haven't made any attempt to to align the CTX DTM to anything, and the HRSC DTM is using a different vertical datum than the CTX DTM, so there's a spurious 190 meter vertical offset on top of the "real" errors. Nonetheless, the long baseline slope is not even remotely similar between the 2 DTMs, especially over the northern end. This is typical of distortions I've seen before in very long CTX stereopairs. This is a pretty flat and smooth area on Mars at CTX scale (no ~2 km vertical parabolas), so even if there's a large horizontal offset, the slopes should be similar. Not shown, but the crater at the northern end of the CTX stereopair looked fairly well aligned horizontally to the HRSC reference. Given the distortion in the CTX DTM , I'd be curious to hear if anyone has ideas on how to fix the long baseline distortion (can that be done in bundle adjustment?). I've always just thrown out pairs like this when I've encountered them. |
Beta Was this translation helpful? Give feedback.
-
@dshean Thanks for the suggestion to use point-to-point and thanks @oleg-alexandrov for prompting to look at max-displacement more. Even with a DTM that is showing very significant bowing, the horizontal alignment is being maintained. I believe I am going to need to deal with the overall 'shape' of the DTM in processing before the alignment stage (unless I am mistaken?). I'll run some additional tests on other DTMs to check how portable this parameterization is for my use case, I'll check the other image in the pair with cam_test, and I'm going to try building the DTM in chunks thinking that might address what @dpmayerUSGS suggested when discussing N/S clipping. I am also wondering if a 'chunked' DTM won't exhibit the same parabolic elevation swings. The fact that the CSM is 'losing' the top/bottom of the pair while ISIS is able to generate a DTM is bothersome to say the least. Two step pc_align ICP using point to point with 85% inlier requirement and then FGR seeded with the output from the first pc_align on the same point cloud as the initial posts. Transect of the CTX DTM to the MOLA gridded product (identical datums). |
Beta Was this translation helpful? Give feedback.
-
There's a 500 elevation difference, is that really a jitter problem? Seems much too high of a magnitude for that. Don't get me wrong, there is something quite broken about this pair, but I can't quite put my finger on it. |
Beta Was this translation helpful? Give feedback.
-
Just peeked at our internal-to-HiRISE data server which keeps track of a variety of statistics, and both halves of this HiRISE image had 2 to 6 pixels of jitter, and the first observation indicates that the spacecraft was not in high stability mode, but for the second it was (not that it seemed to matter much). That doesn't explain the long-wavelength weirdness, but when the spacecraft oscillates to produce HiRISE-scale jitter, I wouldn't be surprised if there was a other frequency components, but long-wavelength stuff like that is supposed to be captured by SPICE, I thought. |
Beta Was this translation helpful? Give feedback.
-
The long-wavelength behavior looks like madness. I guess the only alternatives are to throw this out as David says (using the IntersectionErr.tif mean and stddev stats as criteria), or hope that with semi-decent horizontal alignment which appears to exist here, the jitter solver could bend properly that offending spacecraft trajectory to make things behave better, though clearly the magnitude of errors here is not just a handful of pixels. A 500 meter elevation difference is maybe 100 pixels at CTX resolution. Big, but not out of this world, given the overall CTX image dimensions (yes, mixing up vertical and horizontal measurements here). |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
I am working with some CTX DTMs and am wondering what the best approach might be to assess the horizontal alignment of the pc_aligned DTM to some proxy of the reference. The proxy could be the MOLA gridded product, MDIM2.1, USGS controlled THEMIS, etc.
Put another way, once an ASP generated DTM has been pc_aligned to a MOLA point cloud, I am periodically seeing horizontal offsets on the order of 1-3km in the aligned DTM. Based on some testing, I believe this is due to the number or MOLA tracks and the minimization of error that pc_align is optimizing to. No issues or complaints there - as far as I am concerned pc_align is running as expected!
Currently, I am using geodiff and the descriptive statistics that are output to determine whether or not the DTM is misaligned. I am seeing that large StdDev, Min difference, and Max difference are generally, but not always an indicator of poor horizontal alignment.
If assessing quality just by horizontal alignment, the failure rate is ~5%, so not terrible at all.
Can anyone suggest other approaches for assessing the horizontal alignment between MOLA and an ASP generated DTM?
Beta Was this translation helpful? Give feedback.
All reactions