nasa-jpl / autoRIFT

A Python module of a fast and intelligent algorithm for finding the pixel displacement between two images
Apache License 2.0
214 stars 52 forks source link

Hello teacher, I have a question. Why do the Dx and Dy values in offset. mat generated by autoRIFT are nan values, and 'InterpMask' and 'ChipSizeX' are also 0 values? #84

Closed mintaizu closed 1 year ago

mintaizu commented 1 year ago

Could the teacher please help me answer my question? This question has been bothering me for a long time! Thank you, teacher! I am using Sentinel 1 data for processing, topApp. py for data preprocessing, and testGeogrid for data preprocessing ISCE.py performs geogrid as follows: testGeogrid ISCE.py - m/home/zhodejun/s12/fine Coreg - s/home/zhodejun/s12/secondary/- d/home/zhodejun/s9/output Dem. tif, I use testautoRIFT ISCE.py, as shown in testautoRIFT ISCE.py - m/home/zhodejun/s12/merged/reference.slc.full - s/home/zhodejun/s12/merged/secondary.slc.full But in the final generated offset.mat file, Dx and Dy are NAN values, while 'InterpMask' and 'ChipSizeX' are 0 values ,May I ask the teacher why this is?

屏幕截图 2023-08-20 202728

And the two pictures of Dx and Dy are identical. Why??

屏幕截图 2023-08-20 202802

alex-s-gardner commented 1 year ago

autoRIFT returns no data values for locations that it is unable to find a significant match between the template and the search chip. For the example that you posted, autoRIFT is not able to find any significant matches between features in the two images and therefor returns NaNs and zeros.

alex-s-gardner commented 1 year ago

I've added a note in the readme:

https://github.com/nasa-jpl/autoRIFT/commit/3b307c3f5c287106e1ae5c1e27b7e8fa01ab0a0b

mintaizu commented 1 year ago

So, teacher, do you think this is a normal situation? I did indeed experience displacement.

alex-s-gardner commented 1 year ago

This is indeed a normal situation.. often when matching two images there are areas with no correlatable features.

mintaizu commented 1 year ago

Sorry to bother you again, but can I understand that this situation is caused by issues with the sentinel data I selected?

alex-s-gardner commented 1 year ago

Features in repeat images change over time and it can be difficult to find matching features between two images, especially if the surface conditions have changed considerably since the first image was acquired. I would suggest you read the following to get oriented:

https://www.sciencedirect.com/science/article/pii/S003442571530211X https://www.mdpi.com/2072-4292/13/4/749 https://essd.copernicus.org/articles/14/5111/2022/

mintaizu commented 1 year ago

OK , Thank you teacher!

mintaizu commented 1 year ago

Hello teacher, I am currently preparing to conduct research on offset tracking. I am planning to use autoRIFT to innovate on some simple aspects of autoRIFT or combine it with INSAR methods to publish a graduation thesis. May I use autoRIFT for related research innovation or to publish a paper? Will it involve copyright issues?

alex-s-gardner commented 1 year ago

Please refrain from posting repeated questions. All contributions, including answering questions, is done on a voluntary basis. Please be patient when waiting for a reply.

mintaizu commented 1 year ago

Sorry teacher, I will pay attention to my mistakes