comparison transformations/thick.py @ 144:c958941c1b9d

merge
author XavierMuller
date Tue, 23 Feb 2010 18:16:55 -0500
parents 5e00ed18ae32
children
comparison
equal deleted inserted replaced
143:f341a4efb44a 144:c958941c1b9d
19 class Thick(): 19 class Thick():
20 def __init__(self,complexity = 1): 20 def __init__(self,complexity = 1):
21 #---------- private attributes 21 #---------- private attributes
22 self.__nx__ = 32 #xdim of the images 22 self.__nx__ = 32 #xdim of the images
23 self.__ny__ = 32 #ydim of the images 23 self.__ny__ = 32 #ydim of the images
24 self.__erodemax__ = 9 #nb of index max of erode structuring elements 24 self.__erodemax__ = 5 #nb of index max of erode structuring elements
25 self.__dilatemax__ = 9 #nb of index max of dilation structuring elements 25 self.__dilatemax__ = 9 #nb of index max of dilation structuring elements
26 self.__structuring_elements__ = [N.asarray([[1,1]]),N.asarray([[1],[1]]),\ 26 self.__structuring_elements__ = [N.asarray([[1,1]]),N.asarray([[1],[1]]),\
27 N.asarray([[1,1],[1,1]]),N.asarray([[0,1,0],[1,1,1],[0,1,0]]),\ 27 N.asarray([[1,1],[1,1]]),N.asarray([[0,1,0],[1,1,1],[0,1,0]]),\
28 N.asarray([[1,1,1],[1,1,1]]),N.asarray([[1,1],[1,1],[1,1]]),\ 28 N.asarray([[1,1,1],[1,1,1]]),N.asarray([[1,1],[1,1],[1,1]]),\
29 N.asarray([[1,1,1],[1,1,1],[1,1,1]]),\ 29 N.asarray([[1,1,1],[1,1,1],[1,1,1]]),\