Closed rogermm14 closed 3 years ago
Hi @rogermm14, thanks for reporting this issue. Are you using the latest version of the master
branch?
This issue is supposed to have been fixed by commit ab68729.
My apologies, you are absolutely right: I was pointing to an outdated master branch when I launched such tests. Tested again with the same data and the latest version of the code and everything went smooth and well. I am closing this issue. Thank you @carlodef !
Hello,
I was testing s2p on some WorldView-3 RGB images this morning, and I got the following error in my log file:
There seems to be a little misadjustment with the shape of the mask that is generated by
create_rejection_mask
in https://github.com/centreborelli/s2p/blob/eaa94dbb9e11f14d6f162c6b18a178505593591d/s2p/block_matching.py#L31 which is used as input in https://github.com/centreborelli/s2p/blob/eaa94dbb9e11f14d6f162c6b18a178505593591d/s2p/triangulation.py#L84Basically the mask that is created has shape (3, rows, cols) as the input RGB image. I guess the channels dimension, if existent, should be dropped, since I managed to fix the issue for this kind of images by adding
mask = mask[0, :, :].copy()
in thedisp_to_xyz
function above.Best, Roger