Coder Social home page Coder Social logo

densereconstruction's Introduction

Dense Reconstruction of neurons from skeletons

Repo for constructing dense neuron segments from CATMAID skeletons, given probability maps.

To run this, you need:

  • vigra (you need the current master!)
  • sklearn
  • scipy

Input data:

  • membrane probability maps for the area of interest as tif files
  • json file with skeleton coordinates
  • bounding box coordinates to map from skeleton coordinates to probability maps
    • these have to be stored in the first line of a file, in the order: x_min, x_max, y_min, y_max, z_min, z_max
  • pretrained random forest for oversegmentation edges (I will provide this)

There are two scripts, which implement different functionality:

  • make_dense: Constructs the dense segmentation for all skeletons and saves it.
  • get_statistcs: Performs the reconstruction and extracts relevant statistics over the segments.

Usage:

For make_dense:

python make_dense.py path_to_probability_maps path_to_exported_skeletons
path_to_rf bounding_box.txt folder_for_results

The results will be stored as tif slices.

For get_statistics:

python get_statistcs.py path_to_probability_maps path_to_exported_skeletons
path_to_rf bounding_box.txt folder_for_results --debug_folder folder_for_images

The results will be stored as csv (one csv for each skeleton), containing the following statistics (in units of pixel) for every slice:

  • Area
  • x-Radius
  • y-Radius
  • Radius

Values for a skeleton id, which is not present in a given slice, are zero.

The argument debug_folder is optional, if given, the reconstructions will be saved in the given folder.

Possible Issues

  • You need proper cutouts of probability maps
  • So far, I haven't come around to look at the interpolation of virtual nodes, so there are some segments missing, but I will do this once I work on learning from skeletons.
  • Reconstruction might fail for some cells, but for regular KCs it should work ok
    • Also I can improve this with more features for the Random Forest or a suited agglomeration procedure.

densereconstruction's People

Contributors

constantinpape avatar

Stargazers

Piotr Dabkowski avatar

Watchers

James Cloos avatar  avatar  avatar

densereconstruction's Issues

Looking forward to your paper

Hey, first of all congratulations on your ISBI 2013 results! They are amazing and you almost beat humans haha

I am looking forward to seeing your paper :) Do you know when you are going to publish it?

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.