-
Notifications
You must be signed in to change notification settings - Fork 15
Open
Description
The arguments to SphereTransform are called relative_center_{xyz}, but the call to ReslicePolar.reslice is performing translation in pixel units, without any normalization:
| ReslicePolar.reslicePolar(clij2, pushed, result, | |
| delta_angle_in_degrees, 0f, 0f, | |
| relative_center_x, relative_center_y, relative_center_z, | |
| 1f, 1f, 1f, | |
| 0f, 0f, 0f, | |
| 0f, 0f, 0f); |
clij2/src/main/java/net/haesleinhuepf/clij2/plugins/ReslicePolar.java
Lines 75 to 76 in 5c716fb
| public static boolean reslicePolar(CLIJ2 clij2, ClearCLBuffer src, ClearCLBuffer dst, Float deltaAngle, Float startInclinationDegrees, Float startAzimuthDegrees, Float centerX, Float centerY, Float centerZ, Float scaleFactorX, Float scaleFactorY, Float scaleFactorZ, | |
| float translation_x, float translation_y, float translation_z, float rotation_x, float rotation_y, float rotation_z) { |
I'd suggest to either rename the arguments to center_{xyz}, or to (re-)introduce some normalization to image dimensions before that call.
haesleinhuepf
Metadata
Metadata
Assignees
Labels
No labels