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
5e000733
Commit
5e000733
authored
Jan 13, 2020
by
Ahmed
Browse files
add boundingRect Command
parent
08f9912c
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/main/java/de/monticore/lang/monticar/generator/cpp/commands/BoundingRectCommand.java
View file @
5e000733
...
...
@@ -34,7 +34,12 @@ public class BoundingRectCommand extends MathCommand{
}
}
public
void
convertUsingOctaveBackend
(
MathExpressionSymbol
mathExpressionSymbol
,
BluePrint
bluePrint
)
{
@Override
public
boolean
isCVMathCommand
()
{
return
true
;
}
public
void
convertUsingOctaveBackend
(
MathExpressionSymbol
mathExpressionSymbol
,
BluePrint
bluePrint
)
{
Log
.
error
(
"No implementation for Octave Backend"
);
}
...
...
src/test/resources/results/armadillo/testMath/l0/test_math_boundingRectCommandTest.h
View file @
5e000733
...
...
@@ -9,12 +9,14 @@ using namespace arma;
using
namespace
cv
;
class
test_math_boundingRectCommandTest
{
public:
double
contour
;
double
rect
;
void
init
()
{
}
void
execute
()
{
double
a
=
(
boundingRect
(
0
,
0
,
0
,
0
,
0
));
rectAngle
=
(
boundingRect
(
contour
));
}
};
...
...
src/test/resources/test/math/BoundingRectCommandTest.emam
View file @
5e000733
...
...
@@ -2,7 +2,11 @@
package
test
.
math
;
component
BoundingRectCommandTest
{
implementation
Math
{
Q
a
=
boundingRect
(
0
,
0
,
0
,
0
,
0
);
port
in
Q
contour
,
out
Q
rect
;
implementation
Math
{
rectAngle
=
boundingRect
(
contour
);
}
}
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