imagej.js
imagej.js copied to clipboard
blockly integration?
This has been discussed already in other contexts, but now that ImageJ has a javascript version, integration of blockly (or similar) seems more possible than ever before.
https://developers.google.com/blockly/guides/get-started/web
Hi @mutterer I think that's a great idea! We can basically automatically wrap the imagej macro/commands/plugins into modules.
I had this demo plugin for blockly you might have seen before: https://imjoy.io/lite?plugin=imjoy-team%2Fimjoy-demo-plugins%3AFixed-Blockly
It also works in ImageJ.JS: https://ij.imjoy.io/?plugin=imjoy-team%2Fimjoy-demo-plugins%3AFixed-Blockly#
We can generate js code directly, for each module we can call ij.runMacro(...)
. We need to find a way to generate modules for different commands/plugins (we might need to do it manually, @rasband may provide suggestion here).
I guess it will be much easier with the scijava modular framework in ImageJ2, there we can get a list of modules easily (@ctrueden ).
It would be also interesting to make blockly work with https://github.com/imagej/imagej-server .
The only problem is I have limited bandwidth recently, so please go ahead if you have sometime to look into it.
Hi,
This is great! It would also be great if we could run JavaScript code from within ImageJ.JS, including the 29 examples in the Help>Examples>JavaScript menu.
-wayne
On Nov 26, 2020, at 6:34 AM, Wei Ouyang [email protected] wrote:
Hi @mutterer I think that's a great idea! We can basically automatically wrap the imagej macro/commands/plugins into modules.
I had this demo plugin for blockly you might seen before: https://imjoy.io/lite?plugin=imjoy-team%2Fimjoy-demo-plugins%3AFixed-Blockly
It also works in ImageJ.JS: https://ij.imjoy.io/?plugin=imjoy-team%2Fimjoy-demo-plugins%3AFixed-Blockly#
We can generate js code directly, for each module we can call ij.runMacro(...). We need to find a way to generate modules for different commands/plugins (we might need to do it manually, @rasband may provide suggestion here).
I guess it will be much easier with the scijava modular framework in ImageJ2, there we can get a list of modules easily (@ctrueden ).
It would be also interesting to make blockly work with https://github.com/imagej/imagej-server .
The only problem is I have limited bandwidth recently, so please go ahead if you have sometime to look into it.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.