Commit 5e000733 authored by Ahmed's avatar Ahmed
Browse files

add boundingRect Command

parent 08f9912c
...@@ -34,7 +34,12 @@ public class BoundingRectCommand extends MathCommand{ ...@@ -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"); Log.error("No implementation for Octave Backend");
} }
......
...@@ -9,12 +9,14 @@ using namespace arma; ...@@ -9,12 +9,14 @@ using namespace arma;
using namespace cv; using namespace cv;
class test_math_boundingRectCommandTest{ class test_math_boundingRectCommandTest{
public: public:
double contour;
double rect;
void init() void init()
{ {
} }
void execute() void execute()
{ {
double a = (boundingRect(0, 0, 0, 0, 0)); rectAngle = (boundingRect(contour));
} }
}; };
......
...@@ -2,7 +2,11 @@ ...@@ -2,7 +2,11 @@
package test.math; package test.math;
component BoundingRectCommandTest{ component BoundingRectCommandTest{
implementation Math{ port
Q a = boundingRect(0,0,0,0,0); in Q contour,
out Q rect;
implementation Math {
rectAngle = boundingRect(contour);
} }
} }
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