MWieland / s1s2_water

S1S2-Water: A global dataset for semantic segmentation of water bodies from Sentinel-1 and Sentinel-2 satellite images
17 stars 4 forks source link

Question on slope computation #8

Closed laetitialalla closed 3 weeks ago

laetitialalla commented 3 months ago

Hello,

i have (again ;) ) another question about data pre-processing in your dataset : How do you compute the slope from the elevation data ?

I have an implementation of Horn algorithm (with a Sobel convolution), as described here in the "planar method" section. I tried it on your elevation data (to be precise, on scene 6) but I cannot reproduce exactly your results.

Here is an histogram of the distribution of slope values in :

maybe you use a different algorithm ? Or perhaps you do some post-processing on the slope data ?

Again, thanks a lot for your help :) This dataset is VERY useful !

All the best, Laetitia

MWieland commented 2 months ago

Hi Laetitia, Many thanks for your continued interest in the dataset. We are happy that it is useful for you. We actually used the same method to compute the slope as you referenced above. No post-processing was applied. Based on this it is hard to identify the actual cause of the mismatch. My recommendation would anyway be to start from the original elevation data and compute the slope using your own method. This way you ensure higher consistency between training and inference stages of your machine learning project. Cheers, Marc

MWieland commented 3 weeks ago

Closing this issue due to inactivity. Please feel free to reopen, should you have further questions regarding slope computation.