Hi @haesleinhuepf or one other who is familiar with CLIJ2.
I develop a IJm macro and want to equalize/normalize gray values in a stack. I want to have the average gray value in an ROI to be the same in every slice of the stack. I already have the average gray values in the ROI and now hold the derived correction factor in an array.
Next step is to use
Ext.CLIJ2_multiplyImageStackWithScalars(Image source, Image destination, Array scalars);
My question is: how to push a linear (1D) array to the GPU. In the CLIJ2 docs I see:
Ext.CLIJ2_pushArray(Image destination, Array input, Number width, Number height, Number depth);
Should I just use my 1D array name (correction_vector) for input and then set width, height, depth respectively to 1, 1, corection_vector.lenght ? (the last number is of course also the nr of slices in the stack).
Or is there another CLIJ routine to get an array into the GPU?
My confusion comes from the fact that multiplyImageStackWithScalars requires an Array, whereas pushArray delivers an image.