-
Notifications
You must be signed in to change notification settings - Fork 288
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Demo code: in-memory image encoding and npz data encoding #1263
Conversation
…sing multiple save with different attribute names.
f9f880e
to
d34d59c
Compare
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #1263 +/- ##
==========================================
- Coverage 53.58% 52.47% -1.12%
==========================================
Files 399 401 +2
Lines 50509 51826 +1317
==========================================
+ Hits 27067 27196 +129
- Misses 23442 24630 +1188 ☔ View full report in Codecov by Sentry. |
@s-trinh Nice job. Can I merge or do you want to add other functionalities? |
@fspindle Thanks! To be done:
I will ping you back when the PR will be ready. |
…lld’ expects argument of type ‘long long int’, but argument 5 has type ‘size_t’ {aka ‘long unsigned int’} [-Wformat=]" and "tutorial-mb-generic-tracker-save.cpp:171:56: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 5 has type ‘size_t’ {aka ‘long unsigned int’} [-Wformat=]" warnings on Ubuntu and x86-64 platform.
…c-dealloc-mismatch (malloc vs operator delete [])"
aba1b0a
to
38f28d5
Compare
…z file. Update "script/PlotCameraTrajectory.py" to read poses from npz file. Add documentation to "visp::cnpy::npz_load()", "npz_save()", [...] functions.
38f28d5
to
4cfa003
Compare
@fspindle PR is ready from my side. To quickly test:
Note:
PR #1311 reintroduced some C++98 compatibility code. Should we add the minimum C++ version required for the ViSP library here? https://github.com/lagadic/visp/blob/master/README.md TODO one day:
|
@s-trinh Thanks. As far as c++98 is concerned, we need to reintroduce this functionality for a project we have with a partner. The idea is to make an effort to make it possible to build ViSP with c++98, but certainly not to port all the classes to c++98. In ViSP you can continue to develop and use c++11 and later features, just remember to disable them if c++98. |
Is there any public news on this project? |
Why
.npy
or.npz
file formats used in NumPycnpy
for my needs: for a sequence of data, save some basic datatypes (int, bool, ...) and save some vector of double dataBut
cnpy
but I have not searched if better options exist or if there are already in ViSP the code to achieve the same thingWhat
tutorial-mb-generic-tracker-save.cpp
, save the images + some data to be displayed into anpz
filetutorial-mb-generic-tracker-read.cpp
, open thenpz
file, display the images + the model of the teaboxHow
vpIoTools
class for facilityreadPNGfromMem
andwritePNGtoMem
functions are added to be able to save compressed image data using code from the stb library, the same can be done forjpg
encoding