Otsu method and median filter in Python

I tried looking around and couldn't find any implementation of the Otsu method or median filter in Python other than OpenCV. These are the only two documentation links for OpenCV functions that I have tried.

http://opencv.willowgarage.com/documentation/c/image_filtering.html

http://www.cs.indiana.edu/cgi-pub/oleykin/website/OpenCVHelp/ref/OpenCVRef_Cv.htm#decl_cvThreshold3

I checked this post first, but it never had a complete solution that would fit my problem. Python Machine Vision

I basically look to see if anyone knows other functions that I can implement both the Otsu method and the median filter. I'm just trying to find alternatives before I have to program them in myself, but I would prefer not to reinvent the wheel if necessary. Thanks for your help in advance, if you need more information, just let me know.

+5
source share
3 answers

I'm not sure about the Otsu method, but the Scipy library has a whole sub-library designed for image processing. For example, here is a link to their multidimensional median filter:

http://docs.scipy.org/doc/scipy-0.9.0/reference/generated/scipy.ndimage.filters.median_filter.html#scipy.ndimage.filters.median_filter

+2
source

The Matlab image tool contains a built-in media filter. http://www.mathworks.com/help/toolbox/images/ref/medfilt2.html

If you do not have tools for image processing, you can implement it using block processing.

0
source

All Articles