This project is done for the Biomedicine, Biotechnology and Public Healthcare of the University of Cádiz. They idea is to automatize the processing of the microscopic images of their experiments related to angiogenesis.
-
The microscope takes images in a defined interval and are stored in a tif file,the images look like this one:
-
The code takes the tif file and process the image returning the following images:
- A csv with the results showing:
- frame
- number of joints
- number of meshes
- total meshes area in pixels
- total meshes area in nm
- average meshes area in pixels
- average meshes area in nm
- number of segments
- total segments length in pixels
- total segments length in nm
- A csv with the results showing:
Do you want to automate your image analyses? Contact me through LinkedIn and let's talk.
- Go to releases and grab the latest one.
- Put the exe in a folder, create a folder called videos and put the tif files inside it
- Execute process_tiff, a folder called analysis will be created with the analysis result
- Install python 3.7 amd64 adding it to the path
- https://docs.python.org/3/library/venv.html
- python -m venv ./venv
- activate
- pip install final-requirements.txt
-
Each tif has different frames in it and each frame is processed doing the following:
- Extract the frame
- Resize the frame
- Contours are found using opencv
- Image is skeletonized
- Inner graph is found using the skeleton and the contours
- Selected measures are calculated and returned (number of joins, number of meshes, total meshes area, number of segments, total segments length)
-
After every frame is processed a csv is created and saved in the analysis folder with the results
From the terminal with the environment activated type
- pyinstaller --onefile process_tiff.spec
- If distributables doesn't work and you have a mac you can try platypus