comparison transformations/pipeline.py @ 81:95c491bb5662

add all transformation to pipeline
author Xavier Glorot <glorotxa@iro.umontreal.ca>
date Wed, 10 Feb 2010 15:09:02 -0500
parents 5e448ea129b3
children a7cd8dd3221c
comparison
equal deleted inserted replaced
80:4407ab3f7805 81:95c491bb5662
40 if DEBUG_X: 40 if DEBUG_X:
41 import pylab 41 import pylab
42 pylab.ion() 42 pylab.ion()
43 43
44 #from add_background_image import AddBackground 44 #from add_background_image import AddBackground
45 #from affine_transform import AffineTransformation 45 from affine_transform import AffineTransformation
46 from PoivreSel import PoivreSel 46 from PoivreSel import PoivreSel
47 from thick import Thick 47 from thick import Thick
48 #from BruitGauss import BruitGauss 48 from BruitGauss import BruitGauss
49 #from gimp_script import GIMPTransformation 49 from gimp_script import GIMP1
50 #from Rature import Rature 50 from Rature import Rature
51 from contrast import Contrast 51 from contrast import Contrast
52 from Occlusion import Occlusion
52 from local_elastic_distortions import LocalElasticDistorter 53 from local_elastic_distortions import LocalElasticDistorter
53 from slant import Slant 54 from slant import Slant
54 55
55 if DEBUG: 56 if DEBUG:
56 from visualizer import Visualizer 57 from visualizer import Visualizer
57 # Either put the visualizer as in the MODULES_INSTANCES list 58 # Either put the visualizer as in the MODULES_INSTANCES list
58 # after each module you want to visualize, or in the 59 # after each module you want to visualize, or in the
59 # AFTER_EACH_MODULE_HOOK list (but not both, it's redundant) 60 # AFTER_EACH_MODULE_HOOK list (but not both, it's redundant)
60 VISUALIZER = Visualizer(to_dir=DEBUG_OUTPUT_DIR, on_screen=False) 61 VISUALIZER = Visualizer(to_dir=DEBUG_OUTPUT_DIR, on_screen=False)
61 62
62 MODULE_INSTANCES = [LocalElasticDistorter()] 63 MODULE_INSTANCES = [Thick(),Slant(),GIMP1(),AffineTransformation(),LocalElasticDistorter(),Occlusion(),Rature(),Contrast()]
63 64
64 # These should have a "after_transform_callback(self, image)" method 65 # These should have a "after_transform_callback(self, image)" method
65 # (called after each call to transform_image in a module) 66 # (called after each call to transform_image in a module)
66 AFTER_EACH_MODULE_HOOK = [] 67 AFTER_EACH_MODULE_HOOK = []
67 if DEBUG: 68 if DEBUG: