PyCuAmpcor: offer an option to fix the starting pixel locations
Some changes were made to allow users to fix the coordinate of the first window (center). This will be useful in cases such as 1) to compare the results with different window sizes (center needs to be fixed); 2) to find out the offsets for a particular pixel or a group of pixels.
When the center is fixed, it is possible that some pixels in the window are out of range when the window is close to borders. Zeros are padded for these out-of-range pixels.
The code tidying from #622 is also merged. Thanks, @rtburns-jpl !
A recent update 51af91d fixes the issue of gpu memory leak when repeating the cuAmpcor processes within the same python script.
@lijun99 sorry for getting to this PR very late. We have had enough with the ISCE3, NISAR etc. Is this PR still the latest or do you want to change anything? @vbrancat and @rtburns-jpl please take a look at this PR. Also, do we need to port any part to isce3?