Convert Binary Occupancy Grid to logical or numeric values
조회 수: 29(최근 30일)
표시 이전 댓글
i want to perform the code "imcomplement" on Binary Occupancy Grid figure, the erroe message occurs was :
"Error using imcomplement Expected input to be one of these types: logical, numeric Instead its type was robotics.BinaryOccupancyGrid."
if i cant not to convert to this extention, may i perform the code "inflate" on logical or numeric values
댓글 수: 0
채택된 답변
Cam Salzberger
2019년 3월 13일
Hello Mohammed,
You can use the occupancyMatrix method to extract the numeric values of the occupancy grid. Then you can manipulate the matrix how you want. For binary values, ~occGridMatrix would be the same as imcomplement.
As for going the other direction, inflate is similar to imdilate, though the exact algorithm differs.
-Cam
추가 답변(0개)
참고 항목
범주
Find more on Mapping in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!