How to compute occupancy grid in opencv?
I already have disparity image and i want to compute an occupancy grid, is there is a way to do it in Opencv?, i am using opencv 2.4.13 with C++.
I already have disparity image and i want to compute an occupancy grid, is there is a way to do it in Opencv?, i am using opencv 2.4.13 with C++.
There is no specific function to create the occupancy grid, however a good idea which worked for me is - Create a 2D openCV matrix with same number of rows and columns as your occupancy grid. Initialize Matrix with 0 values. Then, get the occupancy values from the occupancy grid for each cell, while iterating through the 2D Matrix push occupancy value of each cell as each element for the 2D matrix. This will give you a image of the occupancy grid.
I don't think there is such algorithm in OpenCV (Image Processing library). May be you would find it in ROS (or in github)
Asked: 2017-02-17 02:12:25 -0600
Seen: 1,868 times
Last updated: May 13 '20
missing region in disparity map
How to reduce false positives for face detection
OpenCV DescriptorMatcher matches
Heavy shearing effects using Hartley's rectification
Record/Store constant refreshing coordinates points into notepad
Conversion between IplImage and MxArray
How can solvePnPRansac be used with double values?
There have been people doing it and claiming they did it completely in OpenCV, so it should be possible. This is another example.