There are some interesting edge-preserving filters in ximgproc. Unfortunately, I didn't know about ximgproc when I originally built OpenCV, and the build process was extremely tedious, so I'd like to avoid a complete rebuild if that is possible. Also, some of the filters are in OpenCV 4, which I'm not running yet.
Has anyone here split off parts of ximgproc for separate compilation? If so, was it difficult to resolve dependencies?