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

ICM gives invalid threshold #2

Open
ashnair1 opened this issue Oct 29, 2021 · 1 comment
Open

ICM gives invalid threshold #2

ashnair1 opened this issue Oct 29, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@ashnair1
Copy link
Owner

ashnair1 commented Oct 29, 2021

Describe the bug

Running IRMAD with initial change mask results in an invalid threshold. Plot attached

To Reproduce

Run

changedet --algo irmad run data/LT5_19980329_sub.tif data/LT5_19980516_sub.tif --niter 50 --icm

Expected behavior
The threshold should lie between the No-change and change distributions.

Screenshots
If applicable, add screenshots to help explain your problem.

Plot of invalid threshold

icm_error

Desktop (please complete the following information):

  • OS: Ubuntu 18.04
@ashnair1 ashnair1 added the bug Something isn't working label Oct 29, 2021
@ashnair1
Copy link
Owner Author

ashnair1 commented Oct 29, 2021

With 6b41a3d, the threshold seems to be computed correctly.

image

However there are two problems:

  1. The previous np.roots method and the current discriminant method should have given the same result. The fact that it doesn't implies there might be an error in the derivation or in translating the equation to code. Derivation can be found here.
  2. The method still fails for my current test data. This line errors out with a numpy.linalg.LinAlgError: Singular matrix error. This isn't particularly informative. A better error message should be raised and the cause of this needs to be identified. It could be that the two images don't have sufficient unchanged pixels but I'm not sure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant