Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
monticore
EmbeddedMontiArc
generators
EMAM2Cpp
Commits
fd0ba567
Commit
fd0ba567
authored
Jan 01, 2020
by
Ahmed
Browse files
add cvtColor command
parent
68547afc
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/main/java/de/monticore/lang/monticar/generator/cpp/commands/CvtColorCommand.java
View file @
fd0ba567
...
...
@@ -19,7 +19,7 @@ import java.util.List;
* @author Ahmed Diab
*/
public
class
CvtColorCommand
extends
MathCommand
{
public
class
CvtColorCommand
extends
ArgumentReturn
MathCommand
{
public
CvtColorCommand
()
{
setMathCommandName
(
"cvtColor"
);
}
...
...
src/test/resources/results/armadillo/testMath/l0/test_math_cvtColorCommandTest.h
View file @
fd0ba567
...
...
@@ -9,13 +9,18 @@ using namespace arma;
using
namespace
cv
;
class
test_math_cvtColorCommandTest
{
public:
mat
src
;
int
colorConversion
;
mat
dst
;
void
init
()
{
src
=
mat
(
n
,
m
);
dst
=
mat
(
n
,
m
);
}
void
execute
()
{
double
a
=
(
cvtColor
(
0
,
0
,
0
,
0
,
0
)
);
cvtColor
(
src
,
dst
,
colorConversion
);
}
};
#endif
#endif
\ No newline at end of file
src/test/resources/test/math/CvtColorCommandTest.emam
View file @
fd0ba567
...
...
@@ -2,7 +2,12 @@
package
test
.
math
;
component
CvtColorCommandTest
{
port
in
Q
^{
n
,
m
}
src
,
in
Z
colorConversion
,
out
Q
^{
n
,
m
}
dst
;
implementation
Math
{
Q
a
=
cvtColor
(
0
,
0
,
0
,
0
,
0
);
dst
=
cvtColor
(
src
,
colorConversion
);
}
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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