rosys icon indicating copy to clipboard operation
rosys copied to clipboard

Unexpected behavior in `project_to_image`

Open denniswittich opened this issue 10 months ago • 1 comments

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

denniswittich avatar Jun 03 '25 08:06 denniswittich

I have added tests in hope of reproducing the issue but was unable to do so, yet (see #309). Can you add the input you used to call the function that caused the issue?

NiklasNeugebauer avatar Jun 26 '25 07:06 NiklasNeugebauer