Skip to content

Commit caa44c2

Browse files
authored
Create README.md
1 parent b1daffd commit caa44c2

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Create previews of digital micrograph images
2+
### Image_previews_openCV.py
3+
4+
This python script will open all the digital micrograph .dm3 files in a folder, median filter, gaussian blur, bin the image by 2 and add a scalebar of a suitable size and save the file as a .jpg in a separate folder.
5+
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+
8+
Usage: *python Image_previews_openCV.py*
9+
10+
Dependancies :
11+
12+
numpy (*pip install numpy*) - array handling
13+
14+
opencv (*pip install opencv-python*) - image handling and filtering
15+
16+
ncempy (*pip install ncempy*) - .dm3 parser
17+
18+
matplotlib (*pip install matplotlib*) - Not needed unless you want to plot the images
19+
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

Comments
 (0)