Commit 51db81c6 authored by Davis King's avatar Davis King

Updated documentation

parent 2812014e
......@@ -24,6 +24,14 @@ using namespace std;
- a dlib::array2d containing any kind of scalar value.
- a dlib::vector containing any kind of scalar value.
- a dlib::point
- matrix_colmajor or fmatrix_colmajor
These are just typedefs for matrix containing double or float and using a
column major memory layout. However, they have the special distinction
of being fast to use in mex files since they sit directly on top of
MATLAB's built in matrices. That is, while other types of arguments copy
a MATLAB object into themselves, the matrix_colmajor and fmatrix_colmajor
do no such copy and are effectively zero overhead methods for working on
MATLAB's matrices.
- RGB color images
- dlib::array2d<dlib::rgb_pixel> can be used to represent
......@@ -51,9 +59,9 @@ using namespace std;
// arguments to return outputs. Finally, mex_function() must have no
// more than 10 arguments.
void mex_function (
const matrix<double>& x,
const matrix<double>& y,
matrix<double>& out1,
const matrix_colmajor& x,
const matrix_colmajor& y,
matrix_colmajor& out1,
double& out2,
double some_number
)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment