mdoube/BoneJ — pull request #14 by tjrantal (2011-10-25 23:35:16+00:00)
Title: Added mass distribution analysis, updated cleaving

Hello Michael,

I added the mass distribution analysis, I mentioned. In this context I made figuring out alignment rotation an independent step in the analysis, as the angle is used for both the mass and the density distribution. I think that it is also more logical to have it as a separate step (and object), since we are allowing a few ways of setting the rotation angle.

Also updated the cleaving function used to separate connected bones, that should be separated. The newer version retains both of the separated parts instead of just the last remaining bit. Needed for rotating the mass distribution results from distal bone sites.

Also changed, when analysis parameters are written out.

On the batch processing mode (setBatchMode), it didn't work on my macro by just adding setBatchMode(true). Couldn't find the image to analyse... I'll take a look at whether I need to modify my macro, or if need to change the Distribution_Analysis constructor.