shichaoy / semantic_3d_mapping

Semantic 3D Occupancy Mapping through Efficient High Order CRFs
Other
194 stars 60 forks source link

How to create .bin file in ./grid_sensor/data_kitti/superpixel_bin/? #1

Closed HyuanTan closed 5 years ago

HyuanTan commented 6 years ago

Hi, thanks for share! I was confused that what the data struct in ./grid_sensor/data_kitti/superpixel_bin/000000.bin and how to create these files? Thanks!

shichaoy commented 6 years ago

Hi, we upload more instructions for data preparation. See folder /preprocess_data. For superpixel, we upload full code which you can directly use.

HyuanTan commented 6 years ago

@shichaoy Thanks for your help! The folder /preprocess_data do me great favor.

sqfsummer18 commented 6 years ago

Hi @shichaoy , I tried running superpixel_img2bin.m in matlab with your original directory and files. But it raise error as follow:

Index in position 1 exceeds array bounds (must not exceed 170).

Error in superpixel_img2bin(line 31) next_ind =sp_mat(c, 1) + 1;

do you have some suggestions on that?

shichaoy commented 6 years ago

@sqfsummer18 I re-run the code in my and other computer and don't meet problems. That line means you have more superpixels than 170, exceeding the matrix rows. I add a check max(max(im)) in the code. Let me know if you still have problems.