Code Monkey home page Code Monkey logo

cellimaging's Introduction

cellimaging

Installation

Make sure you have Python installed, then install Tensorflow on system, then clone this repo.

Image classification with transfer learning from Google's Inveption v3 already done with models and labels uploaded in Dropbox links for brightfield and fluorescent. Both folders must be unzipped and placed directly in the cellimaging folder as indicated below.

|
---- /cellimaging
|    |
|    |
|    ---- /logs-brightfield
|    |    trained_graph.pb
|    |    trained_labels.txt
|    |
|    ---- /logs-fluorescence
|    |    trained_graph.pb
|    |    trained_labels.txt
|    |
|    ---- /images
|    |    firstimagec1t1.tiff
|    |    firstimagec12t1.tiff
|    |    secondimagec1t2.tiff
|    |    secondimagec12t2.tiff
|         ...
|

Ensure that requirements are installed by running

pip install -r requirements.txt

Note that logs-brightfield and logs-fluoresecence must maintain the same folder name. The image folder you are analyzing is not restricted by naming.

Usage

python gui.py

Select image folder and click submit. Progress is documented in terminal.

File Descriptions

gui.py: runs user input for image folder with GUI

  • for each timepoint/location, must have two corresponding images (brightfield and fluoresecent)

  • naming of files must end with c1t* for brightfield and c2t* for fluorescent, otherwise same

  • note: folder of images MUST be within the 'cellimaging' folder directory

BEHIND THE SCENES:

getting cell centers (run either getCounts.txt for manual OR getcenters.py)

getCounts.txt: macro for ImageJ to get coordinates of selected points (for centers of droplets)

getcenters.py: automated cell selection and numbering with Canny edge detection and modified Hough Circle transform with thresholded area and circularity

before machine learning

blobdetector.py: example of image detection with no machine learning

main code

boundaries-original.py: original code with keras model for wellplate (in progress)

boundaries.py: only with google inception v3 transfer learning

canny.py: detecting with Watershed and distance transform (in progress)

classify.py: identifies brightfield photos

classify2.py: identifies fluoresecent photos

convert.py: 90, 180, 270 rotation with reflection (vertical and horizontal) for initial manual labelling

helpers.py: required helper functions for boundaries

cellimaging's People

Contributors

chriskjou avatar

Watchers

James Cloos avatar

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.