fiji / SNT

Legacy project superseded by https://github.com/morphonets/SNT
GNU General Public License v3.0
11 stars 29 forks source link

SNT Sholl: Allow filtering of paths based on SWC types #6

Closed tferr closed 7 years ago

tferr commented 7 years ago

There are multiple ways of tracing a soma. If one uses multiple paths to trace it and performs Sholl on the traced structure, SNT will consider such paths as independent objects, which is unexpected. A way around it is to select all paths, then deselect manually the paths one is not interested before generating the Sholl profile. This may not be practical for large reconstructions. The issue is discussed in the forum and fiji/Simple_Neurite_Tracer#5.

This PR does the following:

I've tried to split the changes into commits. Hopefully it will be easy to review. SNT is not macro recordable, and the above changes affect only the GUI for Sholl Analysis, so it should not affect any projects depending on SNT.

@ctrueden, I guess a new SNT version should be released once this merged? I could upload the jar from Jenkins to the Java8 update site, but I cannot create a new GitHub release on this repo directly.

[1] BTW, the proper way to ensure this sort of disparities would be to pass all the calculations to tferr/ASA, which is now quite mature. In retrospect, I should have worked on this long ago. I will try to find the time to work on it later on.