Skip to content
This repository has been archived by the owner on Jul 20, 2021. It is now read-only.

Conver SWC to skeletonized volume #70

Open
jpgard opened this issue Jan 24, 2020 · 2 comments
Open

Conver SWC to skeletonized volume #70

jpgard opened this issue Jan 24, 2020 · 2 comments

Comments

@jpgard
Copy link

jpgard commented Jan 24, 2020

Hi, thanks for the great software. I would like to generate a "rasterized" version of a neuronal trace, which is currently in SWC format. It seems that previously this functionality existed in SNT, as described in the Methods section of this paper. However, the procedure described here no longer seems to exist in the SNT plugin menus.

Is there a way to convert from SWC file to a 3D output, where each voxel in the output is zero if it is not an "active" voxel in the network described by the SWC, and 1 otherwise?

I have also posted this question here if it is easier to answer there!

@ctrueden
Copy link
Member

ctrueden commented Feb 4, 2020

@tferr Thoughts? I also invited you to the corresponding Image.sc Forum issue.

@tferr
Copy link
Member

tferr commented Feb 19, 2020

@jpgard, Sorry for the late reply. We are currently migrating SNT to its own organization here.We wanted to make a unique umbrella on all things NeuroAnatomy (with SciView and Cx3D integration) but things have been more tedious to finalize then anticipated. Yes. rasterization has been improved with the latest patches! It is as easy as (in Groovy):

import sc.fiji.snt.Tree
tree = new Tree("/path/to/swc/file")
tree.getSkeleton().show() // 3D skeleton
tree.getSkeleton2D().show() // MIP of rasterized skeleton

There are also methods to skeletonize a collection of reconstructions into a common image. The easiest way is to subscribe Fiji's updater to Neuroanatomy-Unstable (https://imagej.net/Neuroanatomy-Unstable) to get the latest builds of SNT. As we move things around things keep breaking in one way or the other, but that core functionality should not be affected at this point. We are also working on a website at

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants