Modify cmake command to fix opencv2/viz.hpp header missing error.
Run cmake -DWITH_VTK=On without including opencv_contrib modules folder will produce no error. However, the viz folder and related header will be missing from opencv2 library folder. That leads to Kimera-VIO build error (viz header missing).
To fix that, we have to pull opencv_contrib repository and include it to cmake command.
Modify cmake command to fix opencv2/viz.hpp header missing error.
Run cmake -DWITH_VTK=On without including opencv_contrib modules folder will produce no error. However, the viz folder and related header will be missing from opencv2 library folder. That leads to Kimera-VIO build error (viz header missing).
To fix that, we have to pull opencv_contrib repository and include it to cmake command.