You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+28-6Lines changed: 28 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,23 @@ This python script will open all the digital micrograph .dm3 files in a folder,
5
5
6
6
Hasn't been extensively tested but should be very useful at creating a low resolution, small size preview of the micrographs to examine, if you want higher resolution or no filtering, commands can be commented out. By using this script, all the scale bars should match on the images
7
7
8
-
Usage: *python Image_previews_openCV.py*
8
+
Usage:
9
+
process all .dm3 files in directory:
10
+
11
+
*python Image_previews_openCV.py*
12
+
13
+
process a single file
14
+
15
+
*python Image_previews_OpenCV.py --file filename*
16
+
17
+
add additional flag arguments:
18
+
19
+
*--color {white, black or grey}* -override default scale bar color choosing to make scale bar this color
20
+
*--quality {int}* -choose quality of jpg image when saving from 1-95 (default 80), lower reduces filesize
21
+
*--xybin {int}* - choose level of xybinning, this is 2 by default (output image size = x/2 y/2), put 1 for no binning, more for more binning (smaller file)
22
+
*--textoff {}* - set this to anything other than 0 (easiest is 1) to remove the text from the scalebar, scale bar size can be seen in filename.
matplotlib (*pip install matplotlib*) - Not needed unless you want to plot the images
34
+
matplotlib (*pip install matplotlib*) - Not needed unless you want to plot the images while running, will signficantly increase running time. (uncomment import and lines of code)
35
+
36
+
os (*pip install os_sys*) - handling operating system functions (create directory to save files in, list files in the directory etc) should be installed by default
19
37
20
-
os (*pip install os_sys*) - handling operating system functions (create directory to save files in, list files in the directory etc)
0 commit comments