Commit 5e000733 authored by Ahmed's avatar Ahmed

add boundingRect Command

parent 08f9912c
......@@ -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");
}
......
......@@ -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));
}
};
......
......@@ -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);
}
}
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