clij / clijx-assistant

A user interface for GPU-accelerated image processing using CLIJ2
https://clij.github.io/assistant
BSD 3-Clause "New" or "Revised" License
4 stars 4 forks source link

Imrove auto-generated names of variables in generated scripts #50

Closed tischi closed 3 years ago

tischi commented 3 years ago

I could not find a command to Rename an image. Can I just use the Rename command in ImageJ? But then I guess this not be recorded in the script, or would it?

haesleinhuepf commented 3 years ago

Hi @tischi ,

you mean renaming an image in the GPU I guess. I conclude you're using clij from ImageJ macro, because in the other scripting languages, images have no names. Interesting request. Can you explain the use-case for that?

As a workaround, you can copy an image to a given name.

haesleinhuepf commented 3 years ago

I just added a function pushAs which has two parameters: The image to push and the name under which it will be accessible on the GPU. Does that help your use-case?

tischi commented 3 years ago

I conclude you're using clij from ImageJ macro, because in the other scripting languages, images have no names.

Indeed, good point. Maybe my point is a bit more general: in the recorded macros (and scripts?) the images have names imageN, which makes it a bit hard to read the scripts. If the image names would correspond to whatever happened in the last processing step, it could be better for human readability, e.g. gaussianBlurred or sumProjected. Not sure how feasible this is.