nhoeche / imgprep

[imgprep] image preparation python script for my microscopy workflow
MIT License
0 stars 2 forks source link

imgprep

PLAESE NOTE: Development of this project is currently not active.

A small script to prepare the images of my microscopy for analysis.

Reasoning for the script

Many microscopy softwares can't crop images with the standard software. Neither can they put an automatic scale into the image by itself. When processing a huge amount of images, it can be tedious to edit every image by hand. Tis small python-script tries to do that automatically. Another benefit is learning the python image processing libraries their basic uses.

The script always treats one sample at a time. Multiple images can be associated to one sample. Draw red squares around your images beforehand. The software will recognize the square and crop the image to it. Also provide a csv file providing the magnification data (e.g. 63x magnification = 0.135mm screen width). The program will read it and use it to automatically add a scale to your images.

Please report any bugs / concerns / improvements.

Script-Progress

TODO Priorities

  1. Revise code to shorten it and make it more intuitive
    • Rewrite saving methods (export saving from alignment method into regular saving)
  2. Remove white borders from matplotlib figures (add_scale and align methods)
  3. Change all hard-coding to be more flexible
    • Magnification table
    • Red square -> any square