ImageJ base code to get access to all the classes and their methods to test new Plugins. https://imagejdocu.tudor.lu/howto/plugins/the_imagej_eclipse_howto
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
554 B

2 years ago
  1. var lutdir = getDirectory("startup")+"luts"+File.separator;
  2. var luts = getLutMenu();
  3. var lCmds = newMenu("LUT Menu Tool", luts);
  4. macro "LUT Menu Tool - C037T0b10LT6b10UTeb10T" {
  5. cmd = getArgument();
  6. if (cmd!="-") run(cmd);
  7. }
  8. function getLutMenu() {
  9. list = getList("LUTs");
  10. menu = newArray(3+list.length);
  11. menu[0] = "Invert LUT";
  12. menu[1] = "Apply LUT";
  13. menu[2] = "-";
  14. for (i=0; i<list.length; i++)
  15. menu[i+3] = list[i];
  16. return menu;
  17. }