I was having a look on the GraphCut plugin on the wiki and source code on github and I would like to use it via beanshell scripting. I have some questions about that and I would really appreciate sharing your experience with this.
Given an image stack as input. Am I correct, that the current version of GraphCut builds an isolated graph for every slice of the image stack (like a batch process)? or performs it a 3D graphcut?
In this mailing list conversation it was said to be a one-liner. I’m relatively new to to beanshell scripting and couldn’t figure out how this one-liner would look like, can someone point me out how I can call the public function ‘processSingleImageChannel’ from the file Graph_Cut.java and which classes I have to import in the script?
I guess I have to define an object first, right?, and then run the new command. However, this gives me an error that the command could not be found.
gc = processSingleChannelImage(image, edge, dataWeight, pottsWeight, edgeWeight, seg);
gc.runCommand(image, edge, dataWeight, pottsWeight, edgeWeight, seg);
Thanks for your help!