Mercurial > ift6266
comparison transformations/thick.py @ 120:5e00ed18ae32
changed some transformation paramters to better fit with visualization
author | Xavier Glorot <glorotxa@iro.umontreal.ca> |
---|---|
date | Wed, 17 Feb 2010 17:45:48 -0500 |
parents | 47e7202d4f19 |
children |
comparison
equal
deleted
inserted
replaced
119:4f37755d301b | 120:5e00ed18ae32 |
---|---|
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]]),\ |