CentralCamera: project_point gives an error when distortion was defined
Hello,
I created a CentralCamera object with distortion:
camera = CentralCamera(f=1201.47, imagesize=[1280, 1024], pp=[640, 512], distortion=[0.126, -0.159 -5.527, 0.0, 0.0])
Then, when I call project_point on it, I get an error:
camera.project_point(coordinatesArray)
File ~\AppData\Roaming\Python\Python311\site-packages\machinevisiontoolbox\Camera.py:1476, in CentralCamera.project_point(self, P, pose, objpose, behind, visibility, retinal, **kwargs) 1474 # add Gaussian noise and distortion 1475 if self._distortion: -> 1476 x = self._distort(x) 1477 x = self._add_noise_distortion(x) 1479 # do visibility check if required
AttributeError: 'CentralCamera' object has no attribute '_distort'
When I don't define a distortion for the camera, it works just fine. Is the implementation of distortion for the camera still missing or is there another issue?
Thank you and best regards, Katharina Freinschlag