Giter VIP home page Giter VIP logo

pablocastilla / angiogenesis-analyzer Goto Github PK

View Code? Open in Web Editor NEW
14.0 2.0 6.0 63.05 MB

This project is done for the Biomedicine, Biotechnology and Public Healthcare department of the University of Cádiz. They idea is to automatize the processing of the microscopic images of their experiments related to angiogenesis.

License: GNU General Public License v3.0

Python 100.00%
angiogenesis image-processing laboratory microscopy-images python opencv biomedicine biotechnology

angiogenesis-analyzer's Introduction

Build Status

Angiogenesis analyzer

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: original image

  • The code takes the tif file and process the image returning the following images: processed on original bit image

    • 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

Do you want to automate your image analyses? Contact me through LinkedIn and let's talk.

Use the program

  1. Go to releases and grab the latest one.
  2. Put the exe in a folder, create a folder called videos and put the tif files inside it
  3. Execute process_tiff, a folder called analysis will be created with the analysis result

Work with the code

Create environment

  1. Install python 3.7 amd64 adding it to the path
  2. https://docs.python.org/3/library/venv.html
  3. python -m venv ./venv
  4. activate
  5. pip install final-requirements.txt

Process

  • Each tif has different frames in it and each frame is processed doing the following:

    1. Extract the frame
    2. Resize the frame
    3. Contours are found using opencv
    4. Image is skeletonized
    5. Inner graph is found using the skeleton and the contours
    6. 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

Create executable

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.