Open imagejan opened 3 years ago
For completeness: when running the plugin via clij{2,x}-assistant
, the arguments are indeed relative. Normalization of the relative coordinates is currently happening in two places, before calling the underlying CLIJ2 plugin with absolute coordinates:
The arguments to
SphereTransform
are calledrelative_center_{xyz}
, but the call toReslicePolar.reslice
is performing translation in pixel units, without any normalization:https://github.com/clij/clij2/blob/5c716fb414c57a42617490e8135bd07d3c4044d9/src/main/java/net/haesleinhuepf/clij2/plugins/SphereTransform.java#L54-L59
https://github.com/clij/clij2/blob/5c716fb414c57a42617490e8135bd07d3c4044d9/src/main/java/net/haesleinhuepf/clij2/plugins/ReslicePolar.java#L75-L76
I'd suggest to either rename the arguments to
center_{xyz}
, or to (re-)introduce some normalization to image dimensions before that call.