NeoGeographyToolkit / StereoPipeline

The NASA Ames Stereo Pipeline is a suite of automated geodesy & stereogrammetry tools designed for processing planetary imagery captured from orbiting and landed robotic explorers on other planets.
Apache License 2.0
478 stars 168 forks source link

Median Filter in point2dep #318

Closed MiladGhorbaniG closed 2 years ago

MiladGhorbaniG commented 3 years ago

Hi, I'm using asp 2.7.0. I created point clouds. I tried to generate DEM with median filter, but different values of window size and threshold have no effect on the result.

point2dem results/run-PC.tif --median-filter-params 11  40 -o stereo/image \
--nodata-value -10000 -n
oleg-alexandrov commented 3 years ago

The point of this switch --median-filter-params switch is to remove large outliers, like spikes, using a median filter (points that are too different from the median will be wiped). Unless your DEM has those spikes it won't be affected.

If you would like the points in the cloud that end up forming the grid heights to not be processed using a weighted average when binning, but to simply pick the median in each bin, you should use --filter median.

On Sat, Sep 12, 2020 at 11:04 AM MiladGhorbaniG notifications@github.com wrote:

Hi, I'm using asp 2.7.0. I created point clouds. I tried to generate DEM with median filter, but different values of window size and threshold have no effect on the result.

point2dem results/run-PC.tif --median-filter-params 11 40 -o stereo/image \ --nodata-value -10000 -n

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/NeoGeographyToolkit/StereoPipeline/issues/318, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAKDU3H5VJAL7K6YCOOZL5LSFOZ3BANCNFSM4RJZKRHQ .

MiladGhorbaniG commented 3 years ago

Thanks for the fast answer at the weekend. I will test that.