Login  Register

Exporting database without depth images

classic Classic list List threaded Threaded
3 messages Options Options
Embed post
Permalink
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Exporting database without depth images

jseng
24 posts
Hi, I have created an RTABMAP database.  I have been trying to reduce the size of the database by exporting without depth images.  When I load the database again, I lose the graph.

Does the RTABMAP database need to have the depth images?  I thought the necessary information was just the graph and bag of words for each image.

Thanks.
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Re: Exporting database without depth images

matlabbe
Administrator
4438 posts
Hi,
This functionality is not implemented. The exporting option is just exporting the raw data. The easiest way to remove all depth images for the database is to edit manually the database:
$ sqlite3 my_map.db "UPDATE Data SET depth = NULL;"
I am not sure if the database file will shrink. If not, check this post to rebuild the database after updating the "depth" field to null: https://stackoverflow.com/a/7682690

cheers,
Mathieu
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Re: Exporting database without depth images

jseng
24 posts
Thank you for the reply!  I was able to reduce the database size with the 2 commands:

sqlite3 my_map.db "UPDATE Data SET depth = NULL;"
sqlite3 my_map.db "VACUUM;"