Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

localization_iterative max number of iterations 100 is too small #12

Open
drzhouq opened this issue Apr 29, 2021 · 8 comments
Open

localization_iterative max number of iterations 100 is too small #12

drzhouq opened this issue Apr 29, 2021 · 8 comments

Comments

@drzhouq
Copy link

drzhouq commented Apr 29, 2021

Though 100 is a good number, yet we found sometimes we need more than 100 (253) to converge. Suggest increase this number to 500? Many thanks.

@drzhouq
Copy link
Author

drzhouq commented Jun 21, 2021

@carlodef any response? Do I need to create a pull request?

@carlodef
Copy link
Member

Hi @drzhouq, could you please provide an example? Thanks

@drzhouq
Copy link
Author

drzhouq commented Jun 22, 2021

I cannot give you the image example for the issue, but the issue line is at

if n > 100:

Why the arbitrary 100 is decided? perhaps allow the 100 to be changed with an environment variable? Anyhow, as I stated in the issue, some image file needs 253 iterations to converge.

@carlodef
Copy link
Member

No need to share an image, a list of RPC coefficients would be enough. I'd like to reproduce your issue.

In general, the loop converges in one or two iterations.

@drzhouq
Copy link
Author

drzhouq commented Jul 1, 2021

Sorry for the tardy response, Carlo. Side tracked by other things.
This is the RPC data I had issue with. RPC.txt

Let me know if you need more information in order to debug. Thanks.

@Bea07
Copy link

Bea07 commented Jul 22, 2021

I have problems too relating to this. May I ask exactly what are the reasons why this convergence may not happened? I am using this package for perform a DEM from a Skysat triplet of stereo images. And the processing ends at around 97% of the images. I am quite new in this topic and I cannot understand what exactly this code is doing. Visualizing the images I see that all of them are overlapping. I start removing, from the input, the images that are read just before the last iteration, but nothing seems changing. Could you please support me? thank you a lot. PS: the increase of the iteration number seems to not solve the problem.

@gilgilad
Copy link

gilgilad commented Mar 8, 2022

looks like

while not np.all((x0 - col) ** 2 + (y0 - row) ** 2 < 1e-18):

can get Nan values causing it to always return false

@manyy
Copy link

manyy commented Jul 3, 2022

maybe : e1=0; @ 236 e1 = X1 - X0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants