Skip to content

Make use of sensor_size in Projector explicit #33

@maxrohleder

Description

@maxrohleder

The Projector class takes the CameraIntrinsicTransform as an argument during construction, which it uses to derive the desired detector resolution.

Later, it is also implicitly used as the intrinsic component of a CameraProjection, when a C-Arm helper class is provided to describe the trajectory. If another approach of projection (without the CArm helper class) is used, then it never used again.

It would be more explicit to instantiate the Projector with a sensor_size parameter, which is used to set the output image size and then explicitly pass the intrinsic to the projection method used with the CArm.

Something like this:

Projector(..., sensor_size = (976, 976))
...
projector.project_over_carm_range(
            (min_phi, max_phi, spacing_phi),
            (min_theta, max_theta, spacing_theta)
            camera_intrinsic)

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