Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dlib
Commits
2812014e
"vscode:/vscode.git/clone" did not exist on "009d5d6e04679dc3ff9bcfba4143a6dd735401b3"
Commit
2812014e
authored
Feb 05, 2016
by
Davis King
Browse files
Fixed compile time error.
parent
195c7694
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
dlib/matlab/mex_wrapper.cpp
dlib/matlab/mex_wrapper.cpp
+9
-2
No files found.
dlib/matlab/mex_wrapper.cpp
View file @
2812014e
...
...
@@ -515,6 +515,13 @@ namespace mex_binding
img
[
r
][
c
].
blue
=
*
data
++
;
}
// -------------------------------------------------------
template
<
typename
T
>
void
call_private_set_mxArray
(
T
&
,
mxArray
*
)
{}
void
call_private_set_mxArray
(
matrix_colmajor
&
item
,
mxArray
*
m
)
{
item
.
_private_set_mxArray
(
m
);
}
void
call_private_set_mxArray
(
fmatrix_colmajor
&
item
,
mxArray
*
m
)
{
item
.
_private_set_mxArray
(
m
);
}
// -------------------------------------------------------
template
<
typename
T
>
...
...
@@ -578,7 +585,7 @@ namespace mex_binding
throw
invalid_args_exception
(
sout
.
str
());
}
if
(
is_column_major_matrix
<
T
>::
value
)
arg
.
_private_set_mxArray
((
mxArray
*
)
prhs
);
call
_private_set_mxArray
(
arg
,
(
mxArray
*
)
prhs
);
else
assign_mat
(
arg_idx
,
arg
,
pointer_to_matrix
(
mxGetPr
(
prhs
),
nc
,
nr
));
}
...
...
@@ -592,7 +599,7 @@ namespace mex_binding
}
if
(
is_column_major_matrix
<
T
>::
value
)
arg
.
_private_set_mxArray
((
mxArray
*
)
prhs
);
call
_private_set_mxArray
(
arg
,
(
mxArray
*
)
prhs
);
else
assign_mat
(
arg_idx
,
arg
,
pointer_to_matrix
((
const
float
*
)
mxGetData
(
prhs
),
nc
,
nr
));
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment