问题
Morphological reconstruction by opening is similar to basic morphological opening. However in contrast, reconstruction uses two images: a “seed” image, which specifies the values that spread, and a “mask” image.
Skimage has an implementation of it here http://scikit-image.org/docs/dev/api/skimage.morphology.html#skimage.morphology.reconstruction
Matlab has an implementation which is explained very well here. https://www.mathworks.com/tagteam/64199_91822v00_eddins_final.pdf
There is a StackOverflow post from year 2015 linked underneath which suggested a fairly good algorithm to address this issue. It has been two years since and I was wondering if a better implementation was released for opencv or if anyone has a better solution for the same.
Morphological Reconstruction in OpenCV
I would prefer to not mix 2 libraries (opencv and skimage) and am trying to find if there is an opencv method to do morphological reconstruction. I am not looking for ready to consume code any pointers are appreciated.
来源:https://stackoverflow.com/questions/42111467/opencv-is-there-an-implementation-of-marker-based-reconstruction-in-opencv