ethz-asl / libvisensor

Low level hardware driver for the visual inertial SLAM sensor.
39 stars 32 forks source link

Flipping output image #8

Open tomlankhorst opened 7 years ago

tomlankhorst commented 7 years ago

Is this VI-sensor interfacing library capable of flipping the image upside-down or left-right and if so, how to configure it.

schneith commented 7 years ago

Yes, this is possible. I had a quick look and you might be able to do it with this call: https://github.com/ethz-asl/libvisensor/blob/master/include/visensor/visensor_api.hpp#L67 The cmd argument for this would be row_flip and column_flip.

In general, you can set any register of the MT9V034 camera chip that has been configured here: https://github.com/ethz-asl/libvisensor/blob/master/include/sensors/camera_mt9v034.hpp#L63