Convert Binary Occupancy Grid to logical or numeric values

10 ビュー (過去 30 日間)
mohammed alany
mohammed alany 2019 年 3 月 12 日
コメント済み: mohammed alany 2019 年 3 月 14 日
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

採用された回答

Cam Salzberger
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
  3 件のコメント
mohammed alany
mohammed alany 2019 年 3 月 14 日
Many thanks dear, great answer

サインインしてコメントする。

その他の回答 (0 件)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by