forked from jstklein/lrm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
image_one_brightfield.py
40 lines (30 loc) · 962 Bytes
/
image_one_brightfield.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
'''image_cells.py
Protocol for designed for long duration brightfield and beta imaging of living cells
The protocol loops numberCaptures times
During each loop it:
captures 1 brightfield image
captures 1 beta image of betaSecondsPerImage total duration time
rev 2
Justin Klein
Stanford University
Department of Radiation Oncology
2018
'''
from lrm import LRM
import time
# File-related Settings
baseDir = './data/'
experimentDir='one-brightfield'
experimentDataPath = baseDir + experimentDir
bfFileName = 'bf-0'
# Initialize LRM class
LRM = LRM()
# Get exposure settings for brightfield images and lock them in
bfGain,bfShutter = LRM.get_brightfield_exposure()
# Override brightfield shutter duration if so desired
bfShutter=10000
# Announce
print("Capturing single brightfield image. Shutter = " + str(bfShutter) + ' ms')
# Capture brightfield
LRM.capture_brightfield(experimentDataPath,bfFileName, 1, bfGain, bfShutter)
LRM.preview_last(True)