**Sorry, I am very new to both python and java so I might not recognize that this has been answered and only needs adjusted for my situation.
Essentially I have a script manager that operates in a python environment and I need to pass data off to the bonej plugin for analysis, which should then return an array that will then be used by another python script for further analysis.
I have been directed to jython as a way to do this, but I can't figure out how to import imageJ as if it were a module.
I know that I can simply open imagej from a command line and direct it to analyze an image, but this is not what I need because it simply returns an average in a segment of bone.
Basically I need to tell imagej that it should analyze this segment of bone, return the array, then this next segment of bone. An additional python script interpolates the arrays onto a predefined background grid.
If anyone has some insight on how to achieve this back and fort from jython I would appreciate it.