GithubHelp home page GithubHelp logo

mouse-imaging-centre / minclaplace Goto Github PK

View Code? Open in Web Editor NEW
8.0 8.0 5.0 160 KB

Laplace's equation for measuring thickness (or other uses of streamlines) between two boundaries

Python 47.76% Cython 52.24%

minclaplace's People

Contributors

bcdarwin avatar jasonlerch avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

minclaplace's Issues

Deform one parameterized boundary surface to its medial surface along the gradient of a laplacian field

Hi!

I want to use your great codes to deform one parameterized boundary surface (generated by SPHARM-PDM, its format is 'vtk') to its medial surface (already generated, and its format is also 'vtk') along the gradient of a laplacian field, and I am doing so to guarantee shape-inherent point correspondence on the medial surface across subjects, but I don't know how to deal with it.

Can you give me some advice about that? Thank you for your kind assistance!

Zeng

Divide by zero crash

Documenting:

The root cause of the bug is that the if conditions in lines 61:78 in the cythonLaplaceStep function are sometimes not satisfied, and since counter starts at 0.0, and never increments, line tmpvalue = tmpvalue / counter results in a divide by zero error which crashes the program. For now I’ve wrapped the division in a check for if the counter is >0, but I need to check if perhaps there should be an else clause that would be more appropriate. The solution for the non-crashing left surface seem to be identical, so this looks okay.

Example

Dear Dr Lerch, if you have an example usage file, could you please post it?
Thank you,
Sohrab

MincLaplace ***Error in 'usr/bin/python': double free or corruption (!prev)

Hi, I am running MINC on a ubuntu (16.04) VM. Minc is installed (checked via mincinfo - returns Usage etc). Pyminc is also installed (locate pyminc gives location in '/lib/python2.7/dist-packages/pyminc'). Minclaplace is also installed correctly as command 'minclaplace' gives subsequent instruction for input. However, when I try to run 'minclaplace' with my template I get ' ***Error in 'usr/bin/python': double free or corruption (!prev)'. I think this may be a memory allocation problem, but I am unsure. I have also downloaded the VM from the cobralab github with MINC/PYMINC already installed. I have installed minclaplace on this also and get an error of 'malloc_consolidate(): invalid chunk size, aborted (core dumped)' when running the command with my template. Could you please advise on the amount of memory and storage required for these processes. If possible, is there any test images online, e.g. the template from the minclaplace/laplacegrid and representative csv file that I could download and use to compare with my images? (The attached file is the output from the ubuntu vm (not the pre-made MINC lubuntu setup from cobralab)). My template is consistent with the one outlined in the LaplaceGrid page (with central portion of the brain (non-cortex) being 0, the middle (or cortical column) having a voxel value of 5, the resistive portion = 20 and outside the brain being set to 10.

Thanks in advance! Kind regards,
Jolyon

minc_laplace_output (2).txt

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.