Skip to content

Commit

Permalink
Add j2j branch distance to image stats
Browse files Browse the repository at this point in the history
  • Loading branch information
jni committed Feb 7, 2017
1 parent 676568d commit f431723
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions skan/pipe.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,8 @@ def process_images(filenames, image_format, threshold_radius,
image_stats['filename'] = file
image_stats['branch density'] = (framedata.shape[0] /
image_stats['area'])
j2j = framedata[framedata['branch-type'] == 2]
image_stats['mean J2J branch distance'] = j2j['branch-distance'].mean()
image_results.append(image_stats)

return pd.concat(results), pd.concat(image_results)

0 comments on commit f431723

Please sign in to comment.