Hi ImageJ fans!
I have a “best practice” question. What is the best way to add data to a RAI? I have a 3D dataset with some z-shift between channels. I have calculated the value of z-shift and sould like to align channels together. Using legacy ImageJ API I would split the stack to individual slices and insert empty slices at the beginning or end of the stack, so all channels have same number of slices that align nicely.
I guess that splitting stack into slices (using for example crop op) is not the best way to achieve the same outcome, is it? I thought of creating a new RAI with the correct dimensions and copying pixel values, but that seems memory-intensive, especially for large datasets (2048x2048x150x5 xyzc). Do you have any suggestions? Is there a way to modify RAI in place? This could also be applicable to aligning timeseries, etc…