Comments (7)
Sounds good. I think the approach should be to extend $br -convert
to allow conversion to/from the other supported matrix formats (.mtx, .csv). Sounds like Matlab also uses the .mtx
extension for a binary matrix? Is there another extension we could use to distinguish between the current .mtx
format and the matlab format? Like .mat
?
from openbr.
Actually, step 0 should be to add it to plugins/format.cpp
. See csvFormat
for an example.
from openbr.
I think the approach should be to extend $br -convert to allow conversion to/from the other supported matrix formats (.mtx, .csv).
Agreed.
Sounds like Matlab also uses the .mtx extension for a binary matrix? Is there another extension we could use to distinguish between the current .mtx format and the matlab format? Like .mat?
Matlab files to store binaries of objects (e.g., a matrix) have a default extension of .mat (so, good guess). The file structure is at the link below. I am not sure if there already exists a Qt-based implementation of this this format. If not, we should definitely code it into a -convert command.
In the meantime we can use the matlab functions loadMat() and saveMat() for a weaker amount of matlab support.
http://www.mathworks.com/help/pdf_doc/matlab/matfile_format.pdf
from openbr.
Matlab matrices are now first class citizens in OpenBR. The newly added formats are .mat
(as described in matfile_format.pdf) and .bin
(simple binary format).
You can use br -convert input_file output_file
to convert to/from matricies with any of the following formats:
- .bin
- .csv
- .mat
- .mask
- .mtx
- .jpg/.png/...
This should obviate the need for loadMat() and saveMat().
Relevant code is in sdk/plugins/format.cpp
from openbr.
Bravo sir! Looks very elegant too!
from openbr.
An update on how to use this command: br -convert Format input_file output_file
from openbr.
for example:
br -convert Format myScores.mtx myScores.mat
or
br -convert Gallery myTemplates.gal myTemplateMetadata.csv
from openbr.
Related Issues (20)
- "cxmisc.h" header is missing HOT 2
- __BEGIN__ is undefined HOT 1
- __END__ is undefined
- Problem in the tests ? HOT 1
- New to this project - about the installation
- Conflict between openbr and dlib
- Build system -- missing QT5 test and opengl v1.1.0 HOT 7
- Clustering usage? understanding rank order neighborhood construction
- OpenCV 4 HOT 4
- Build fails in with VS_2017 and Eigen HOT 1
- Failed to load stasm cascade in FaceRecognition Algorithm
- openbr not working on ubuntu 18.04 HOT 2
- 'br' is not recognized as an internal or external command in windows 10
- Get Fatal Error when try to run "Nmake intall" for building OpenBr HOT 1
- failed to build on windows HOT 1
- Fails to build with OpenCV 3.2.0
- Operating points for ROC curves HOT 4
- CMake Error at openbr/CMakeLists.txt:31 (add_library): Cannot find source file: /usr/local/include/http_parser.c
- how to compute 1:1 face compare accuracy in %
- Missing header file "opencv2/core/core_c.h"
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from openbr.