NeoGeographyToolkit / StereoPipeline

The NASA Ames Stereo Pipeline is a suite of automated geodesy & stereogrammetry tools designed for processing planetary imagery captured from orbiting and landed robotic explorers on other planets.
Apache License 2.0
495 stars 173 forks source link

geodiff could be made faster #40

Closed oleg-alexandrov closed 9 years ago

oleg-alexandrov commented 12 years ago

Given two DEMs, A.tif and B.tif, the command

geodiff A.tif B.tif

can be hundreds of times slower than

geodiff B.tif A.tif

That happens if A.tif covers a huge area but B.tif a smaller one. I think geodiff could be more clever in first finding the intersection of the bounding boxes of the two images and finding the diff only in that area.

More seriously, geodiff A.tif B.tif returned an empty result (after all that work), while the reverse returned a good result. Perhaps it is because the grids were different.

I'll perhaps get to fixing this issue myself at some point, I put it here to make sure it is not forgotten.

ScottMcMichael commented 9 years ago

Done.