imgProcessor.filters package¶
Submodules¶
imgProcessor.filters.FourierFilter module¶
-
class
imgProcessor.filters.FourierFilter.
FourierFilter
(img)[source]¶ Bases:
object
Tsai, D.-M., Wu, S.-C., & Li, W.-C. (2012). Defect detection of solar cells in electroluminescence images using Fourier image reconstruction. Solar Energy Materials and Solar Cells, 99, 250�262. doi:10.1016/j.solmat.2011.12.007
-
highPassFilter
(threshold)[source]¶ remove all low frequencies by setting a square in the middle of the Fourier transformation of the size (2*threshold)^2 to zero threshold = 0...1
-
imgProcessor.filters.edgesFromBoolImg module¶
imgProcessor.filters.fastNaNmedianFilter module¶
imgProcessor.filters.localizedMaximum module¶
-
imgProcessor.filters.localizedMaximum.
localizedMaximum
(img, thresh=0, min_increase=0, max_length=0, dtype=<type 'bool'>)[source]¶ Returns the local maximum of a given 2d array
thresh -> if given, ignore all values below that value
max_length -> limit length between value has to vary > min_increase
>>> a = np.array([[0,1,2,3,2,1,0], [0,1,2,2,3,1,0], [0,1,1,2,2,3,0], [0,1,1,2,1,1,0], [0,0,0,1,1,0,0]])
>>> print localizedMaximum(a, dtype=int) [[0 1 1 1 0 1 0] [0 0 0 0 1 0 0] [0 0 0 1 0 1 0] [0 0 1 1 0 1 0] [0 0 0 1 0 0 0]]