Skip to content

SphereTransform: center coords are not relative #42

@imagejan

Description

@imagejan

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);

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions