bundle adjustment with mapprojected images

177 views
Skip to first unread message

JOSUÉ CASADO RABASCO

unread,
Dec 21, 2021, 7:21:53 AM12/21/21
to Ames Stereo Pipeline Support
  Hello everyone, 
I'm trying to do parallel_stereo with two pleiades images I have projected with maproject. It was something like this:

mapproject -t rpc --tr 0.0000054 dem_cachemire.tif image1.tif RPC_PHR1A_P_202110080529416_SEN_6000759101-1.XML image1_mapped.tif

Previously, I did bundle_adjust to those RPC files, using original images (I think that bundle adjustment has to be made to original images, right?). 

Stereo command looks like this:

parallel_stereo -t rpcmaprpc -–subpixel-mode 1 -–alignment-method none –-stereo-algorithm 0 --left-image-crop-win 17650 11000 5500 7000 --right-image-crop-win 17650 11000 5500 7000 --bundle-adjust-prefix run_ba/run image1_mapped.tif image2_mapped.tif results/prueba02 dem_cachemire.tif

But the error is that it cannot find adjusted camera model ("Unable to load RPC model ... Missing adjusted camera model: run_ba/run-image1_mapped.adjust"). 

So I have some questions: 
1_ should I just change the name of the files in run_ba/run
2_ maybe you cannot use adjust models with mapprojected images?
3_ Size of the crop-win should be transform into geocoordinates instead of pixels?

Thank you very much

Oleg Alexandrov

unread,
Dec 21, 2021, 12:26:55 PM12/21/21
to JOSUÉ CASADO RABASCO, Ames Stereo Pipeline Support
What you are doing here is actually stereo with bundle adjusted images, and not bundle adjustment with mapprojected images, as I see it.

The tool fails because of the following. Bundle adjustment decides the name of the output .adjust file based on the camera file. In your case you have no camera file, so it uses the image file, which is image1.tif. But later, when you do stereo with mapprojected images, like:

stereo image1_mapped.tif image2_mapped.tif run/run --bundle-adjust-prefix run_ba/run

you are offering the tool neither cameras, nor original images, so it gets confused.

I am not sure it will work, but you can make a copy of your .adjust files in run_ba to look like this: 

run_ba/run-image1_mapped.adjust

and hope that it will pick them. 

Also, a bug was fixed recently where imag1_mapped.tif did not remember the RPC model from image1.tif. If you have a build without this fix, when you do stereo with mapprojected images but no bundle adjustment, so like this:

stereo image1_mapped.tif image2_mapped.tif run/run 

it will still fail, and in that case you'd need to get the daily build from GitHub (in the release area).





--
You received this message because you are subscribed to the Google Groups "Ames Stereo Pipeline Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ames-stereo-pipeline...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ames-stereo-pipeline-support/b846ff6c-73d4-4c97-b9a7-444dd9cd0cd7n%40googlegroups.com.

Tricia Nelsen

unread,
Jan 14, 2022, 10:08:14 PM1/14/22
to Ames Stereo Pipeline Support
Hi Oleg,

I use ASP with conda, does updating the stereo-pipeline package get the most recent build?

Thank you,
Tricia

Oleg Alexandrov

unread,
Jan 15, 2022, 12:23:32 AM1/15/22
to Tricia Nelsen, Ames Stereo Pipeline Support
The conda package has the latest official version, which is 3.0.0. More recent code, including some bugfixes, are available only from the Releases tab in GitHub. (The NEWS file in the ASP GitHub repo shows what changed since that official build.)

Reply all
Reply to author
Forward
0 new messages