Skip to content

Unexpected behavior in project_to_image #299

@denniswittich

Description

@denniswittich

When trying to project points behind a camera to the camera plane, this raises a rather cryptic error:

boolean index did not match indexed array along dimension 0; dimension is 1 but corresponding boolean dimension is 3
...
/rosys/vision/calibration.py", line 233, in project_to_image
    image_array[local_coordinates[:, 2] < 0, :] = np.nan
    ~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

@NiklasNeugebauer said he knows how to fix it :)

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions