libSGM icon indicating copy to clipboard operation
libSGM copied to clipboard

How can we apply filtering after disparity is obtained?

Open lingjiankong opened this issue 6 years ago • 6 comments

Hello! I am interested in obtain a smoother disparity map for point cloud generation. How can I apply a filtering / smoothing operation in libSGM (for example, similar to OpenCV's DisparityWLSFilter)? Which function / parameter should I call / tweak to obtain the smoother disparity?

Thanks!

lingjiankong avatar Aug 27 '19 21:08 lingjiankong

Last time I checked WLS Filter didn't work out the way I expected. #20

Check out Bilateral, it may work out for you.

Also look into SDR, it has lot of parameter to tweak and some what preserved edges in an expected way.

mohanen avatar Aug 28 '19 06:08 mohanen

We also found that SPS which has 11 parameters might work finer.

sotsuka-fixstars avatar Aug 28 '19 07:08 sotsuka-fixstars

Last time I checked WLS Filter didn't work out the way I expected. #20

Check out Bilateral, it may work out for you.

Also look into SDR, it has lot of parameter to tweak and some what preserved edges in an expected way.

Thanks. I posted how to get OpenCV's DisparityWLSFilter working in #20, for people who are confused about the data type and interface.

lingjiankong avatar Aug 28 '19 17:08 lingjiankong

@sotsuka-fixstars Are there any GPU-based filtering implementation that I can use? My goal is to free up as much CPU space as possible.

lingjiankong avatar Aug 29 '19 23:08 lingjiankong

@lingjiankong At the moment, we don't have it. OpenCV has CUDA-implemented Bilateral filter in cudaimgproc module. https://docs.opencv.org/4.1.1/d0/d05/group__cudaimgproc.html#ga6abeaecdd4e7edc0bd1393a04f4f20bd

sotsuka-fixstars avatar Aug 30 '19 03:08 sotsuka-fixstars

Last time I checked WLS Filter didn't work out the way I expected. #20

Check out Bilateral, it may work out for you.

Also look into SDR, it has lot of parameter to tweak and some what preserved edges in an expected way.

is SDR able to run realtime?

ynma-hanvo avatar Mar 03 '22 07:03 ynma-hanvo