A small program created to help reduce the busywork involving EM images. This program is designed to help with the following tasks:
- Cropping the scale bar out of an image
- Adjusting the luminosity so all images have uniform brightness
- Download Python 3.12 or later here. This project was developed with Python 3.12. Earlier versions may work but are not guaranteed to work or be supported in the future. However at this time, I have no reason to believe that Python versions after 3.6 will not work.
- On the top of this page, click Code -> Download ZIP
- Extract the ZIP file and open the extracted folder
- Open a terminal in the extracted folder
- Run
py -m pip install -r requirements.txtto install dependencies - Run
gui.pywwith Python (ensure the correct version is being used)
To select the input data folder, click "Select Image Folder". In the file dialog, open the folder with all the .tif files. If the .tif files are scattered within sub-folders, check the "Recursive Search" checkbox.
Create an empty folder to store the output images. Then click "Select Output Folder" and select the empty folder.
If you only want to crop the scale bar, uncheck "Adjust Brightness". If you only want to adjust brightness in the images, uncheck "Crop Scale Bar".
Click "Run" to begin the processing. The program may take up to one minute depending on the number of images being processed. When complete, a message box will appear with the number of images processed.
Open the output folder to view the processed images.