forked from andreacesari/pyAvalanches
-
Notifications
You must be signed in to change notification settings - Fork 0
/
start_visualBarkh.py
55 lines (49 loc) · 2.3 KB
/
start_visualBarkh.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# -*- coding: utf-8 -*-
"""
Created on Thu Oct 6 17:06:23 2011
@author: gf
"""
import os
import visualBarkh as vB
reload(vB)
if __name__ == "__main__":
#mainDir = "/home/gf/meas/Barkh/Films/CoFe/50nm/run2/"
# Select dir for analysis: TO IMPROVE
#mainDir = "/home/gf/meas/Baxrkh/Films/CoFe/20nm/run3_50x/down/"
#mainDir = "/home/gf/meas/Barkh/Films/FeBSi/50nm/run1/down"
#mainDir = "/home/gf/meas/Barkh/Films/CoFe/20nm/run1_20x/down"
#mainDir = "/home/gf/meas/Barkh/Films/CoFe/20nm/run9_20x_5ms"
#mainDir = "/home/gf/meas/Barkh/Films/CoFe/20nm/run10_20x_bin1"
#mainDir = "/home/gf/meas/Barkh/Films/CoFe/20nm/run11_20x_bin1_contrast_diff"
#mainDir = "/home/gf/meas/Barkh/Films/CoFe/20nm/run15_20x_save_to_memory/down"
#mainDir = "/home/gf/meas/Barkh/Films/CoFe/20nm/run32"
#mainDir = "/home/gf/meas/Barkh/Films/CoFe/20nm/good set 2/run5/"
#mainDir = "/home/gf/meas/MO/py170/20x/set7"
#mainDir = "/home/gf/Misure/Alex/Zigzag/samespot/run2"
#mainDir = "/home/gf/meas/Barkh/Films/CoFe/20nm/run22_50x_just_rough/down"
#mainDir = "/home/gf/meas/Barkh/Films/CoFe/20nm/run23_50x_rough_long"
#mainDir = "/home/gf/meas/Simulation"
#mainDir = "/media/DATA/meas/MO/CoFe 20 nm/10x/good set 2/run7"
##mainDir = "/media/DATA/meas/MO/CoFe 20 nm/5x/set1/run1/"
#mainDir = "/home/gf/meas/Barkh/Films/CoFe/20nm/10x/good set 2/run8/"
#mainDir = "/home/gf/meas/Barkh/Films/CoFe/50nm/run2/"
rootDir = "/media/DATA/meas/MO/CoFe/50nm/"
rootDir = "/media/DATA/meas/Barkh/Films/CoFe/50nm/"
magnification = "20x"
#runNo, firstImage, lastImage = "run2", 384, 1325
#runNo, firstImage, lastImage = "run5", 250, 1050
#runNo, firstImage, lastImage = "run6", 470, 1431
runNo, firstImage, lastImage = "run7", 120, 1180
#runNo, firstImage, lastImage = "run9", 1, 1380
magnification = "10x"
runNo, firstImage, lastImage = "run2", 1, 867
#magnification = "5x"
#runNo, firstImage, lastImage = "run1", 575, 1060
mainDir = os.path.join(rootDir, magnification, runNo)
filtering = 'gauss'
sigma = 1.5
pattern = "Data1-*.tif"
imArray = vB.StackImages(mainDir,pattern, filtering=filtering, sigma=sigma,\
firstImage=firstImage, lastImage=lastImage)
imArray.width='small'
imArray.useKernel = 'step'