1 | initial version |
What about a top-hat filtering? From an ipython console:
kernel18 = cv2.getStructuringElement(cv2.MORPH_ELLIPSE,(18,18))
filtered = cv2.morphologyEx(image, cv2.MORPH_TOPHAT, kernel18)
The image may has to be converted into a greyscaled image.
2 | No.2 Revision |
What about a top-hat filtering? From an ipython console:
kernel18 = cv2.getStructuringElement(cv2.MORPH_ELLIPSE,(18,18))
filtered = cv2.morphologyEx(image, cv2.MORPH_TOPHAT, kernel18)
The image may has to be converted into a greyscaled image.
It's possible to get something like this image with a smaller kernel:
3 | No.3 Revision |
What about a top-hat filtering? From an ipython console:
kernel18 = cv2.getStructuringElement(cv2.MORPH_ELLIPSE,(18,18))
filtered = cv2.morphologyEx(image, cv2.MORPH_TOPHAT, kernel18)
The image may has to be converted into a greyscaled image.
It's possible to get something like this image with a smaller kernel:
!Top hat on an image](http://postimg.org/image/k7n2fjrfd/)
4 | No.4 Revision |
What about a top-hat filtering? From an ipython console:
kernel18 = cv2.getStructuringElement(cv2.MORPH_ELLIPSE,(18,18))
filtered = cv2.morphologyEx(image, cv2.MORPH_TOPHAT, kernel18)
The image may has to be converted into a greyscaled image.
It's possible to get something like this image with a smaller kernel:
!Top hat kernel (clik on an image](http://postimg.org/image/k7n2fjrfd/)the link)
http://postimg.org/image/k7n2fjrfd/