Right now, this is very preliminary.
importClass(net.haesleinhuepf.clicy.CLICY); importClass(Packages.icy.main.Icy); // init clicy clijx = CLICY.getInstance(); // check which GPU we're using print(clijx.getGPUName());
Then, you can push sequences to GPU memory and allocate space for more images:
// get current image from Icy sequence = getSequence(); // push image to GPU inputBuffer = clijx.pushSequence(sequence); // allocate memory on GPU for the result outputBuffer = clijx.create(inputBuffer);
You can process them using the CLIJx API:
// process image on GPU clijx.blur(inputBuffer, outputBuffer, 5, 5);
Afterwards, pull the result back and show it in Icy:
// pull result back from GPU output = clijx.pullSequence(outputBuffer); // Show result Icy.addSequence(output);
By the end, always clean up GPU memory:
// free memory of specific images clijx.release(inputBuffer); // clean up all images clijx.clear():
Download Icy. Enter “clicy” in Icys search field on top and click on install. Voilá.
If you want to have the ClIcy toolbar as well, copy over this XML code to your local
Icy support is experimental. But feedback is very welcome and will eventuall lead to Clicy becoming mature. Thanks for your support!